From 8ebd150e8e925265921373719e6f126d35e2fe22 Mon Sep 17 00:00:00 2001 From: Dan Klinger Date: Thu, 7 Mar 2024 12:56:25 -0500 Subject: [PATCH 1/4] codegen latest version --- .swagger-codegen/VERSION | 2 +- README.md | 163 ++++++---- cloudcheckr_cmx_client/__init__.py | 60 +++- cloudcheckr_cmx_client/api/__init__.py | 5 + .../api/account_attributes_api.py | 101 +++--- .../api/account_management_api.py | 297 +++++++++--------- cloudcheckr_cmx_client/api/accounts_api.py | 37 +-- .../api/aws_credentials_api.py | 219 +++++++------ .../api/azure_common_credentials_api.py | 65 ++-- .../api/azure_credentials_api.py | 55 ++-- .../api/client_access_keys_api.py | 67 ++-- cloudcheckr_cmx_client/api/clients_api.py | 89 +++--- cloudcheckr_cmx_client/api/credentials_api.py | 110 +------ .../api/custom_theme_settings_api.py | 19 +- cloudcheckr_cmx_client/api/customers_api.py | 292 ++++++++++++++++- .../api/google_credentials_api.py | 27 +- .../api/permission_sets_api.py | 81 ++--- cloudcheckr_cmx_client/api/permissions_api.py | 5 +- cloudcheckr_cmx_client/api/roles_api.py | 173 +++++----- .../api/saml_provider_rules_api.py | 105 +++---- .../api/saml_providers_api.py | 89 +++--- .../api/token_management_api.py | 9 +- .../api/user_level_access_api.py | 43 +-- cloudcheckr_cmx_client/api/users_api.py | 105 +++---- cloudcheckr_cmx_client/api_client.py | 25 +- cloudcheckr_cmx_client/configuration.py | 47 +-- cloudcheckr_cmx_client/models/__init__.py | 54 +++- .../account_assignment_response_model.py | 23 +- ...unt_attribute_assignment_response_model.py | 24 +- .../models/account_attribute_basic_info.py | 19 +- .../models/account_attribute_modification.py | 22 +- .../models/account_attribute_request_model.py | 19 +- .../account_attribute_response_model.py | 19 +- cloudcheckr_cmx_client/models/account_cost.py | 19 +- .../account_group_hierarchy_response_model.py | 28 +- .../models/account_group_request_model.py | 21 +- .../models/account_group_response_model.py | 30 +- .../account_group_search_response_model.py | 32 +- .../models/ancestor_model.py | 28 +- .../models/ancestors_response_model.py | 19 +- .../models/application_model.py | 19 +- .../models/aws_access_key_model.py | 19 +- ...ws_assume_role_credential_request_model.py | 110 ------- .../models/aws_credential_request_model.py | 28 +- .../models/aws_cross_account_role_model.py | 19 +- ...cross_account_role_setup_response_model.py | 19 +- .../azure_authorization_response_model.py | 19 +- .../azure_billing_account_response_model.py | 19 +- ...billing_account_selection_request_model.py | 19 +- .../azure_csp_authorization_request_model.py | 25 +- ...rise_agreement_credential_request_model.py | 19 +- ...e_subscription_credential_request_model.py | 24 +- .../azure_token_credential_request_model.py | 22 +- .../models/base_account_info.py | 19 +- .../models/basic_request_list_modification.py | 22 +- .../bulk_account_assignment_request_model.py | 19 +- ...model_account_assignment_response_model.py | 19 +- ...unt_attribute_assignment_response_model.py | 19 +- ...ount_attribute_assignment_request_model.py | 19 +- .../models/client_access_key_request_model.py | 21 +- .../client_access_key_response_model.py | 19 +- .../models/client_create_request_model.py | 26 +- .../models/client_request_model.py | 26 +- .../models/client_response_model.py | 22 +- ...ate_request_account_group_request_model.py | 21 +- ...billing_account_selection_request_model.py | 21 +- ...request_client_access_key_request_model.py | 21 +- ...ate_request_client_create_request_model.py | 21 +- ...e_request_general_account_request_model.py | 21 +- .../create_request_mav_request_model.py | 21 +- ...te_request_permission_set_request_model.py | 21 +- .../create_request_role_request_model.py | 21 +- ...ate_request_saml_provider_request_model.py | 21 +- ...equest_saml_provider_rule_request_model.py | 21 +- .../create_request_user_request_model.py | 21 +- .../models/credential_metadata_model.py | 19 +- .../models/credential_response_model.py | 25 +- .../models/credentials_response_model.py | 19 +- .../models/custom_theme_request_model.py | 51 ++- .../models/custom_theme_response_model.py | 51 ++- .../models/customer_account_basic_info.py | 19 +- .../models/customer_account_modification.py | 22 +- .../models/customer_plan_response_model.py | 22 +- .../models/customer_response_model.py | 27 +- .../models/developer_info.py | 19 +- cloudcheckr_cmx_client/models/error.py | 19 +- .../models/error_response.py | 19 +- .../models/general_account_request_model.py | 24 +- .../models/general_account_response_model.py | 32 +- .../models/google_credential_request_model.py | 19 +- .../linked_aws_commercial_account_model.py | 19 +- .../models/list_modification_error.py | 21 +- .../models/list_modification_request_model.py | 19 +- .../list_modification_response_model.py | 19 +- .../models/mapped_role_response_model.py | 19 +- .../models/mav_request_model.py | 22 +- .../models/mav_response_model.py | 28 +- .../models/minimal_client_response_model.py | 19 +- .../models/minimal_user_response_model.py | 19 +- .../models/new_client_access_info.py | 19 +- .../models/pagination_info.py | 19 +- ...sponse_account_attribute_response_model.py | 21 +- ...se_azure_billing_account_response_model.py | 21 +- ..._response_permission_set_response_model.py | 21 +- ...pagination_response_role_response_model.py | 21 +- ..._account_group_hierarchy_response_model.py | 21 +- ...t_response_account_group_response_model.py | 21 +- ...nse_account_group_search_response_model.py | 21 +- ...sponse_client_access_key_response_model.py | 21 +- ...th_count_response_client_response_model.py | 21 +- ..._count_response_customer_response_model.py | 21 +- ...response_general_account_response_model.py | 21 +- ..._with_count_response_mav_response_model.py | 21 +- ..._response_minimal_client_response_model.py | 21 +- ...nt_response_minimal_user_response_model.py | 21 +- ...sponse_parent_assignment_response_model.py | 21 +- ...ount_response_permission_response_model.py | 21 +- ...ponse_referenced_account_response_model.py | 21 +- ...t_response_saml_provider_response_model.py | 21 +- ...ponse_saml_provider_rule_response_model.py | 21 +- ...with_count_response_user_response_model.py | 21 +- .../models/parent_assignment.py | 22 +- .../parent_assignment_response_model.py | 22 +- .../models/payee_configuration_model.py | 22 +- .../models/permission_group_model.py | 19 +- .../models/permission_response_model.py | 21 +- .../models/permission_set_basic_info.py | 19 +- .../models/permission_set_permission_model.py | 19 +- .../models/permission_set_request_model.py | 21 +- .../models/permission_set_response_model.py | 22 +- .../models/permitted_child_customer_model.py | 19 +- .../referenced_account_response_model.py | 22 +- .../models/related_permission_model.py | 19 +- .../models/role_request_model.py | 24 +- .../models/role_response_model.py | 25 +- .../models/saml_claim_model.py | 19 +- .../models/saml_provider_request_model.py | 19 +- .../saml_provider_response_detail_model.py | 22 +- .../models/saml_provider_response_model.py | 19 +- .../saml_provider_rule_request_model.py | 21 +- .../saml_provider_rule_response_model.py | 23 +- .../models/token_info_response.py | 19 +- .../models/token_response.py | 19 +- ...request_account_attribute_request_model.py | 21 +- ...ate_request_account_group_request_model.py | 21 +- ...ws_assume_role_credential_request_model.py | 138 -------- ...te_request_aws_credential_request_model.py | 21 +- ...t_azure_csp_authorization_request_model.py | 21 +- ...rise_agreement_credential_request_model.py | 21 +- ...e_subscription_credential_request_model.py | 21 +- ...st_azure_token_credential_request_model.py | 21 +- .../update_request_client_request_model.py | 21 +- ...date_request_custom_theme_request_model.py | 21 +- ...e_request_general_account_request_model.py | 21 +- ...request_google_credential_request_model.py | 21 +- .../update_request_mav_request_model.py | 21 +- ...te_request_permission_set_request_model.py | 21 +- .../update_request_role_request_model.py | 21 +- ...ate_request_saml_provider_request_model.py | 21 +- ...equest_saml_provider_rule_request_model.py | 21 +- ...request_user_level_access_request_model.py | 21 +- .../update_request_user_request_model.py | 21 +- .../models/user_level_access_request_model.py | 22 +- .../user_level_access_response_model.py | 22 +- .../models/user_request_model.py | 56 +++- .../models/user_response_model.py | 56 +++- .../user_saml_provider_request_model.py | 21 +- .../user_saml_provider_response_model.py | 19 +- .../models/verification_action_model.py | 22 +- cloudcheckr_cmx_client/rest.py | 5 +- docs/AWSCredentialsApi.md | 74 +++-- docs/AccountAssignmentResponseModel.md | 5 +- ...AccountAttributeAssignmentResponseModel.md | 3 +- docs/AccountAttributeBasicInfo.md | 5 +- docs/AccountAttributeModification.md | 5 +- docs/AccountAttributeRequestModel.md | 1 + docs/AccountAttributeResponseModel.md | 7 +- docs/AccountAttributesApi.md | 21 +- docs/AccountCost.md | 5 +- docs/AccountGroupHierarchyResponseModel.md | 25 +- docs/AccountGroupRequestModel.md | 5 +- docs/AccountGroupResponseModel.md | 27 +- docs/AccountGroupSearchResponseModel.md | 29 +- docs/AccountManagementApi.md | 69 ++-- docs/AccountsApi.md | 3 +- docs/AncestorModel.md | 23 +- docs/AncestorsResponseModel.md | 3 +- docs/ApplicationModel.md | 5 +- docs/AwsAccessKeyModel.md | 1 + docs/AwsAssumeRoleCredentialRequestModel.md | 9 - docs/AwsCredentialRequestModel.md | 9 +- docs/AwsCrossAccountRoleModel.md | 1 + docs/AwsCrossAccountRoleSetupResponseModel.md | 1 + docs/AzureAuthorizationResponseModel.md | 1 + docs/AzureBillingAccountResponseModel.md | 1 + ...zureBillingAccountSelectionRequestModel.md | 1 + docs/AzureCommonCredentialsApi.md | 23 +- docs/AzureCredentialsApi.md | 27 +- docs/AzureCspAuthorizationRequestModel.md | 5 +- ...terpriseAgreementCredentialRequestModel.md | 1 + ...AzureSubscriptionCredentialRequestModel.md | 7 +- docs/AzureTokenCredentialRequestModel.md | 3 +- docs/BaseAccountInfo.md | 5 +- docs/BasicRequestListModification.md | 1 + docs/BulkAccountAssignmentRequestModel.md | 1 + ...onseModelAccountAssignmentResponseModel.md | 1 + ...AccountAttributeAssignmentResponseModel.md | 1 + ...kAccountAttributeAssignmentRequestModel.md | 1 + docs/ClientAccessKeyRequestModel.md | 3 +- docs/ClientAccessKeyResponseModel.md | 7 +- docs/ClientAccessKeysApi.md | 11 +- docs/ClientCreateRequestModel.md | 5 +- docs/ClientRequestModel.md | 5 +- docs/ClientResponseModel.md | 9 +- docs/ClientsApi.md | 21 +- docs/CreateRequestAccountGroupRequestModel.md | 3 +- ...zureBillingAccountSelectionRequestModel.md | 3 +- ...reateRequestClientAccessKeyRequestModel.md | 3 +- docs/CreateRequestClientCreateRequestModel.md | 3 +- ...CreateRequestGeneralAccountRequestModel.md | 3 +- docs/CreateRequestMavRequestModel.md | 3 +- .../CreateRequestPermissionSetRequestModel.md | 3 +- docs/CreateRequestRoleRequestModel.md | 3 +- docs/CreateRequestSamlProviderRequestModel.md | 3 +- ...eateRequestSamlProviderRuleRequestModel.md | 3 +- docs/CreateRequestUserRequestModel.md | 3 +- docs/CredentialMetadataModel.md | 1 + docs/CredentialResponseModel.md | 11 +- docs/CredentialsApi.md | 54 +--- docs/CredentialsResponseModel.md | 1 + docs/CustomThemeRequestModel.md | 2 + docs/CustomThemeResponseModel.md | 6 +- docs/CustomThemeSettingsApi.md | 13 +- docs/CustomerAccountBasicInfo.md | 5 +- docs/CustomerAccountModification.md | 5 +- docs/CustomerPlanResponseModel.md | 1 + docs/CustomerResponseModel.md | 17 +- docs/CustomersApi.md | 158 +++++++++- docs/DeveloperInfo.md | 1 + docs/Error.md | 1 + docs/ErrorResponse.md | 1 + docs/GeneralAccountRequestModel.md | 7 +- docs/GeneralAccountResponseModel.md | 31 +- docs/GoogleCredentialRequestModel.md | 1 + docs/GoogleCredentialsApi.md | 11 +- docs/LinkedAwsCommercialAccountModel.md | 1 + docs/ListModificationError.md | 3 +- docs/ListModificationRequestModel.md | 1 + docs/ListModificationResponseModel.md | 1 + docs/MappedRoleResponseModel.md | 5 +- docs/MavRequestModel.md | 3 +- docs/MavResponseModel.md | 23 +- docs/MinimalClientResponseModel.md | 5 +- docs/MinimalUserResponseModel.md | 5 +- docs/NewClientAccessInfo.md | 7 +- docs/PaginationInfo.md | 1 + ...onResponseAccountAttributeResponseModel.md | 3 +- ...esponseAzureBillingAccountResponseModel.md | 3 +- ...ationResponsePermissionSetResponseModel.md | 3 +- docs/PaginationResponseRoleResponseModel.md | 3 +- ...ponseAccountGroupHierarchyResponseModel.md | 3 +- ...hCountResponseAccountGroupResponseModel.md | 3 +- ...ResponseAccountGroupSearchResponseModel.md | 3 +- ...untResponseClientAccessKeyResponseModel.md | 3 +- ...ionWithCountResponseClientResponseModel.md | 3 +- ...nWithCountResponseCustomerResponseModel.md | 3 +- ...ountResponseGeneralAccountResponseModel.md | 3 +- ...nationWithCountResponseMavResponseModel.md | 3 +- ...CountResponseMinimalClientResponseModel.md | 3 +- ...thCountResponseMinimalUserResponseModel.md | 3 +- ...ntResponseParentAssignmentResponseModel.md | 3 +- ...ithCountResponsePermissionResponseModel.md | 3 +- ...tResponseReferencedAccountResponseModel.md | 3 +- ...hCountResponseSamlProviderResponseModel.md | 3 +- ...ntResponseSamlProviderRuleResponseModel.md | 3 +- ...ationWithCountResponseUserResponseModel.md | 3 +- docs/ParentAssignment.md | 7 +- docs/ParentAssignmentResponseModel.md | 19 +- docs/PayeeConfigurationModel.md | 1 + docs/PermissionGroupModel.md | 5 +- docs/PermissionResponseModel.md | 9 +- docs/PermissionSetBasicInfo.md | 5 +- docs/PermissionSetPermissionModel.md | 5 +- docs/PermissionSetRequestModel.md | 7 +- docs/PermissionSetResponseModel.md | 15 +- docs/PermissionSetsApi.md | 19 +- docs/PermissionsApi.md | 3 +- docs/PermittedChildCustomerModel.md | 1 + docs/ReferencedAccountResponseModel.md | 15 +- docs/RelatedPermissionModel.md | 3 +- docs/RoleRequestModel.md | 9 +- docs/RoleResponseModel.md | 17 +- docs/RolesApi.md | 35 ++- docs/SAMLProviderRulesApi.md | 21 +- docs/SAMLProvidersApi.md | 21 +- docs/SamlClaimModel.md | 1 + docs/SamlProviderRequestModel.md | 1 + docs/SamlProviderResponseDetailModel.md | 9 +- docs/SamlProviderResponseModel.md | 9 +- docs/SamlProviderRuleRequestModel.md | 3 +- docs/SamlProviderRuleResponseModel.md | 7 +- docs/TokenInfoResponse.md | 1 + docs/TokenManagementApi.md | 3 +- docs/TokenResponse.md | 3 +- ...dateRequestAccountAttributeRequestModel.md | 3 +- docs/UpdateRequestAccountGroupRequestModel.md | 3 +- ...uestAwsAssumeRoleCredentialRequestModel.md | 10 - .../UpdateRequestAwsCredentialRequestModel.md | 3 +- ...equestAzureCspAuthorizationRequestModel.md | 3 +- ...terpriseAgreementCredentialRequestModel.md | 3 +- ...AzureSubscriptionCredentialRequestModel.md | 3 +- ...RequestAzureTokenCredentialRequestModel.md | 3 +- docs/UpdateRequestClientRequestModel.md | 3 +- docs/UpdateRequestCustomThemeRequestModel.md | 3 +- ...UpdateRequestGeneralAccountRequestModel.md | 3 +- ...dateRequestGoogleCredentialRequestModel.md | 3 +- docs/UpdateRequestMavRequestModel.md | 3 +- .../UpdateRequestPermissionSetRequestModel.md | 3 +- docs/UpdateRequestRoleRequestModel.md | 3 +- docs/UpdateRequestSamlProviderRequestModel.md | 3 +- ...dateRequestSamlProviderRuleRequestModel.md | 3 +- ...pdateRequestUserLevelAccessRequestModel.md | 3 +- docs/UpdateRequestUserRequestModel.md | 3 +- docs/UserLevelAccessApi.md | 11 +- docs/UserLevelAccessRequestModel.md | 5 +- docs/UserLevelAccessResponseModel.md | 5 +- docs/UserRequestModel.md | 12 +- docs/UserResponseModel.md | 22 +- docs/UserSamlProviderRequestModel.md | 3 +- docs/UserSamlProviderResponseModel.md | 5 +- docs/UsersApi.md | 21 +- docs/VerificationActionModel.md | 3 +- git_push.sh | 8 +- setup.py | 11 +- swag.config.python.json | 2 +- test/__init__.py | 1 + .../test_account_assignment_response_model.py | 1 + ...unt_attribute_assignment_response_model.py | 1 + test/test_account_attribute_basic_info.py | 1 + test/test_account_attribute_modification.py | 1 + test/test_account_attribute_request_model.py | 1 + test/test_account_attribute_response_model.py | 1 + test/test_account_attributes_api.py | 3 +- test/test_account_cost.py | 1 + ..._account_group_hierarchy_response_model.py | 1 + test/test_account_group_request_model.py | 1 + test/test_account_group_response_model.py | 1 + ...est_account_group_search_response_model.py | 1 + test/test_account_management_api.py | 3 +- test/test_accounts_api.py | 3 +- test/test_ancestor_model.py | 1 + test/test_ancestors_response_model.py | 1 + test/test_application_model.py | 1 + test/test_aws_access_key_model.py | 1 + ...ws_assume_role_credential_request_model.py | 39 --- test/test_aws_credential_request_model.py | 1 + test/test_aws_credentials_api.py | 17 +- test/test_aws_cross_account_role_model.py | 1 + ...cross_account_role_setup_response_model.py | 1 + ...test_azure_authorization_response_model.py | 1 + ...st_azure_billing_account_response_model.py | 1 + ...billing_account_selection_request_model.py | 1 + test/test_azure_common_credentials_api.py | 3 +- test/test_azure_credentials_api.py | 3 +- ...t_azure_csp_authorization_request_model.py | 1 + ...rise_agreement_credential_request_model.py | 1 + ...e_subscription_credential_request_model.py | 1 + ...st_azure_token_credential_request_model.py | 1 + test/test_base_account_info.py | 1 + test/test_basic_request_list_modification.py | 1 + ...t_bulk_account_assignment_request_model.py | 1 + ...model_account_assignment_response_model.py | 1 + ...unt_attribute_assignment_response_model.py | 1 + ...ount_attribute_assignment_request_model.py | 1 + test/test_client_access_key_request_model.py | 1 + test/test_client_access_key_response_model.py | 1 + test/test_client_access_keys_api.py | 3 +- test/test_client_create_request_model.py | 1 + test/test_client_request_model.py | 1 + test/test_client_response_model.py | 1 + test/test_clients_api.py | 3 +- ...ate_request_account_group_request_model.py | 1 + ...billing_account_selection_request_model.py | 1 + ...request_client_access_key_request_model.py | 1 + ...ate_request_client_create_request_model.py | 1 + ...e_request_general_account_request_model.py | 1 + test/test_create_request_mav_request_model.py | 1 + ...te_request_permission_set_request_model.py | 1 + .../test_create_request_role_request_model.py | 1 + ...ate_request_saml_provider_request_model.py | 1 + ...equest_saml_provider_rule_request_model.py | 1 + .../test_create_request_user_request_model.py | 1 + test/test_credential_metadata_model.py | 1 + test/test_credential_response_model.py | 1 + test/test_credentials_api.py | 10 +- test/test_credentials_response_model.py | 1 + test/test_custom_theme_request_model.py | 1 + test/test_custom_theme_response_model.py | 1 + test/test_custom_theme_settings_api.py | 3 +- test/test_customer_account_basic_info.py | 1 + test/test_customer_account_modification.py | 1 + test/test_customer_plan_response_model.py | 1 + test/test_customer_response_model.py | 1 + test/test_customers_api.py | 24 +- test/test_developer_info.py | 1 + test/test_error.py | 1 + test/test_error_response.py | 1 + test/test_general_account_request_model.py | 1 + test/test_general_account_response_model.py | 1 + test/test_google_credential_request_model.py | 1 + test/test_google_credentials_api.py | 3 +- ...est_linked_aws_commercial_account_model.py | 1 + test/test_list_modification_error.py | 1 + test/test_list_modification_request_model.py | 1 + test/test_list_modification_response_model.py | 1 + test/test_mapped_role_response_model.py | 1 + test/test_mav_request_model.py | 1 + test/test_mav_response_model.py | 1 + test/test_minimal_client_response_model.py | 1 + test/test_minimal_user_response_model.py | 1 + test/test_new_client_access_info.py | 1 + test/test_pagination_info.py | 1 + ...sponse_account_attribute_response_model.py | 1 + ...se_azure_billing_account_response_model.py | 1 + ..._response_permission_set_response_model.py | 1 + ...pagination_response_role_response_model.py | 1 + ..._account_group_hierarchy_response_model.py | 1 + ...t_response_account_group_response_model.py | 1 + ...nse_account_group_search_response_model.py | 1 + ...sponse_client_access_key_response_model.py | 1 + ...th_count_response_client_response_model.py | 1 + ..._count_response_customer_response_model.py | 1 + ...response_general_account_response_model.py | 1 + ..._with_count_response_mav_response_model.py | 1 + ..._response_minimal_client_response_model.py | 1 + ...nt_response_minimal_user_response_model.py | 1 + ...sponse_parent_assignment_response_model.py | 1 + ...ount_response_permission_response_model.py | 1 + ...ponse_referenced_account_response_model.py | 1 + ...t_response_saml_provider_response_model.py | 1 + ...ponse_saml_provider_rule_response_model.py | 1 + ...with_count_response_user_response_model.py | 1 + test/test_parent_assignment.py | 1 + test/test_parent_assignment_response_model.py | 1 + test/test_payee_configuration_model.py | 1 + test/test_permission_group_model.py | 1 + test/test_permission_response_model.py | 1 + test/test_permission_set_basic_info.py | 1 + test/test_permission_set_permission_model.py | 1 + test/test_permission_set_request_model.py | 1 + test/test_permission_set_response_model.py | 1 + test/test_permission_sets_api.py | 3 +- test/test_permissions_api.py | 3 +- test/test_permitted_child_customer_model.py | 1 + .../test_referenced_account_response_model.py | 1 + test/test_related_permission_model.py | 1 + test/test_role_request_model.py | 1 + test/test_role_response_model.py | 1 + test/test_roles_api.py | 3 +- test/test_saml_claim_model.py | 1 + test/test_saml_provider_request_model.py | 1 + ...est_saml_provider_response_detail_model.py | 1 + test/test_saml_provider_response_model.py | 1 + test/test_saml_provider_rule_request_model.py | 1 + .../test_saml_provider_rule_response_model.py | 1 + test/test_saml_provider_rules_api.py | 3 +- test/test_saml_providers_api.py | 3 +- test/test_token_info_response.py | 1 + test/test_token_management_api.py | 3 +- test/test_token_response.py | 1 + ...request_account_attribute_request_model.py | 1 + ...ate_request_account_group_request_model.py | 1 + ...ws_assume_role_credential_request_model.py | 39 --- ...te_request_aws_credential_request_model.py | 1 + ...t_azure_csp_authorization_request_model.py | 1 + ...rise_agreement_credential_request_model.py | 1 + ...e_subscription_credential_request_model.py | 1 + ...st_azure_token_credential_request_model.py | 1 + ...est_update_request_client_request_model.py | 1 + ...date_request_custom_theme_request_model.py | 1 + ...e_request_general_account_request_model.py | 1 + ...request_google_credential_request_model.py | 1 + test/test_update_request_mav_request_model.py | 1 + ...te_request_permission_set_request_model.py | 1 + .../test_update_request_role_request_model.py | 1 + ...ate_request_saml_provider_request_model.py | 1 + ...equest_saml_provider_rule_request_model.py | 1 + ...request_user_level_access_request_model.py | 1 + .../test_update_request_user_request_model.py | 1 + test/test_user_level_access_api.py | 3 +- test/test_user_level_access_request_model.py | 1 + test/test_user_level_access_response_model.py | 1 + test/test_user_request_model.py | 1 + test/test_user_response_model.py | 1 + test/test_user_saml_provider_request_model.py | 1 + .../test_user_saml_provider_response_model.py | 1 + test/test_users_api.py | 3 +- test/test_verification_action_model.py | 1 + 498 files changed, 4979 insertions(+), 2415 deletions(-) delete mode 100644 cloudcheckr_cmx_client/models/aws_assume_role_credential_request_model.py delete mode 100644 cloudcheckr_cmx_client/models/update_request_aws_assume_role_credential_request_model.py delete mode 100644 docs/AwsAssumeRoleCredentialRequestModel.md delete mode 100644 docs/UpdateRequestAwsAssumeRoleCredentialRequestModel.md mode change 100755 => 100644 git_push.sh delete mode 100644 test/test_aws_assume_role_credential_request_model.py delete mode 100644 test/test_update_request_aws_assume_role_credential_request_model.py diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index b39b0b9..2c663e0 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.24 \ No newline at end of file +2.4.39 \ No newline at end of file diff --git a/README.md b/README.md index a49babe..9f19665 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,15 @@ CloudCheckr API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen +- Package version: 1.0.2 +- Build package: io.swagger.codegen.languages.PythonClientCodegen ## How this client was generated The command used to generate this Python package: ``` -docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3:3.0.24 generate \ +docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli:2.4.39 generate \ --input-spec https://developer.cloudcheckr.com/us/CloudCheckrApi.json \ --lang python \ --config /local/swag.config.python.json \ @@ -23,6 +23,9 @@ docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3:3.0.24 genera ## Change Log +### 1.0.2 +- Update to latest codegen v2 - 2.4.39 + ### 1.0.1 - Fix base URL to https://api-us.cloudcheckr.com @@ -78,77 +81,24 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -aws_region_group = 'aws_region_group_example' # str | AWS region group where the cross-account role will be created. - -try: - # Get the external ID to use when creating an AWS cross-account role. - api_response = api_instance.get_aws_external_id(customer_id, account_id, aws_region_group) - pprint(api_response) -except ApiException as e: - print("Exception when calling AWSCredentialsApi->get_aws_external_id: %s\n" % e) - -# Configure OAuth2 access token for authorization: oauth -configuration = cloudcheckr_cmx_client.Configuration() -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) -customer_id = 'customer_id_example' # str | -account_id = 'account_id_example' # str | -purpose = 'purpose_example' # str | How the credential will be used. -body = cloudcheckr_cmx_client.UpdateRequestAwsCredentialRequestModel() # UpdateRequestAwsCredentialRequestModel | (optional) - -try: - # Modify the credential on the account. - api_response = api_instance.modify_credential(customer_id, account_id, purpose, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AWSCredentialsApi->modify_credential: %s\n" % e) - -# Configure OAuth2 access token for authorization: oauth -configuration = cloudcheckr_cmx_client.Configuration() -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) -customer_id = 'customer_id_example' # str | -aws_region_group = 'aws_region_group_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAwsAssumeRoleCredentialRequestModel() # UpdateRequestAwsAssumeRoleCredentialRequestModel | (optional) try: - # Set the credential to use when assuming a cross-acount role. - api_response = api_instance.modify_customer_aws_assume_role_credential(customer_id, aws_region_group, body=body) - pprint(api_response) + # Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. + api_instance.delete_aws_external_id(customer_id, account_id) except ApiException as e: - print("Exception when calling AWSCredentialsApi->modify_customer_aws_assume_role_credential: %s\n" % e) + print("Exception when calling AWSCredentialsApi->delete_aws_external_id: %s\n" % e) -# Configure OAuth2 access token for authorization: oauth -configuration = cloudcheckr_cmx_client.Configuration() -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) -customer_id = 'customer_id_example' # str | -account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAwsCredentialRequestModel() # UpdateRequestAwsCredentialRequestModel | (optional) - -try: - # Modify the default credential on the account. - api_response = api_instance.modify_default_credential(customer_id, account_id, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AWSCredentialsApi->modify_default_credential: %s\n" % e) ``` ## Documentation for API Endpoints -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AWSCredentialsApi* | [**delete_aws_external_id**](docs/AWSCredentialsApi.md#delete_aws_external_id) | **DELETE** /credential/v1/customers/{customerId}/accounts/{accountId}/external-id/aws | Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. *AWSCredentialsApi* | [**get_aws_external_id**](docs/AWSCredentialsApi.md#get_aws_external_id) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/external-id/aws/{awsRegionGroup} | Get the external ID to use when creating an AWS cross-account role. *AWSCredentialsApi* | [**modify_credential**](docs/AWSCredentialsApi.md#modify_credential) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/aws/{purpose} | Modify the credential on the account. -*AWSCredentialsApi* | [**modify_customer_aws_assume_role_credential**](docs/AWSCredentialsApi.md#modify_customer_aws_assume_role_credential) | **PUT** /credential/v1/customers/{customerId}/credentials/aws/assume-role/{awsRegionGroup} | Set the credential to use when assuming a cross-acount role. *AWSCredentialsApi* | [**modify_default_credential**](docs/AWSCredentialsApi.md#modify_default_credential) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/aws | Modify the default credential on the account. *AccountAttributesApi* | [**attach_account_attribute**](docs/AccountAttributesApi.md#attach_account_attribute) | **PUT** /customer/v1/customers/{customerId}/account-attributes/{attributeName}/values/{value}/assign | Bulk associate account attribute name-value to list of general accounts. *AccountAttributesApi* | [**delete_account_attribute**](docs/AccountAttributesApi.md#delete_account_attribute) | **DELETE** /customer/v1/customers/{customerId}/account-attributes/{attributeName} | Delete an account attribute. @@ -180,8 +130,8 @@ Class | Method | HTTP request | Description *AccountsApi* | [**get_account**](docs/AccountsApi.md#get_account) | **GET** /customer/v1/customers/{customerId}/accounts/{accountId} | Get an individual account, account group, or MAV. *AccountsApi* | [**get_accounts**](docs/AccountsApi.md#get_accounts) | **GET** /customer/v1/customers/{customerId}/accounts | Get all accounts, account groups, and MAVs. *AccountsApi* | [**get_ancestors**](docs/AccountsApi.md#get_ancestors) | **GET** /customer/v1/customers/{customerId}/accounts/{accountId}/ancestors | Get all ancestors of an account. -*AzureCommonCredentialsApi* | [**assign_billing_account**](docs/AzureCommonCredentialsApi.md#assign_billing_account) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credential/azure/billing-accounts | Assigns a billing account ID to an Azure credential. -*AzureCommonCredentialsApi* | [**get_billing_accounts**](docs/AzureCommonCredentialsApi.md#get_billing_accounts) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/credential/azure/billing-accounts | Retrieve billing accounts associated with credential. +*AzureCommonCredentialsApi* | [**assign_billing_account**](docs/AzureCommonCredentialsApi.md#assign_billing_account) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/billing-accounts | Assigns a billing account ID to an Azure credential. +*AzureCommonCredentialsApi* | [**get_billing_accounts**](docs/AzureCommonCredentialsApi.md#get_billing_accounts) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/billing-accounts | Retrieve billing accounts associated with credential. *AzureCommonCredentialsApi* | [**request_authorization**](docs/AzureCommonCredentialsApi.md#request_authorization) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/request-authorization | Start the Azure authorization consent flow. *AzureCredentialsApi* | [**modify_azure_enterprise_agreement_credentials**](docs/AzureCredentialsApi.md#modify_azure_enterprise_agreement_credentials) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/enterprise-agreement | Modify the credentials on the account. *AzureCredentialsApi* | [**modify_azure_subscription_credentials**](docs/AzureCredentialsApi.md#modify_azure_subscription_credentials) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/subscription | Modify the credentials on the account. @@ -194,13 +144,36 @@ Class | Method | HTTP request | Description *ClientsApi* | [**get_client**](docs/ClientsApi.md#get_client) | **GET** /auth/v1/customers/{customerId}/clients/{clientId} | Get an individual client. *ClientsApi* | [**list_clients**](docs/ClientsApi.md#list_clients) | **GET** /auth/v1/customers/{customerId}/clients | Get all clients. *ClientsApi* | [**update_client**](docs/ClientsApi.md#update_client) | **PUT** /auth/v1/customers/{customerId}/clients/{clientId} | Update a client. +*CostQueriesBetaReleaseApi* | [**get_available_query_options**](docs/CostQueriesBetaReleaseApi.md#get_available_query_options) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/options | Get available query options for a specific account. This includes information such as first / last month with data, properties that can be used for grouping, etc. +*CostQueriesBetaReleaseApi* | [**get_cost_query_results**](docs/CostQueriesBetaReleaseApi.md#get_cost_query_results) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId}/results | Get the results of a completed cost query. +*CostQueriesBetaReleaseApi* | [**get_cost_query_results_download_link**](docs/CostQueriesBetaReleaseApi.md#get_cost_query_results_download_link) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId}/download-link | Get a download link for the results of a completed query. +*CostQueriesBetaReleaseApi* | [**get_cost_query_summary**](docs/CostQueriesBetaReleaseApi.md#get_cost_query_summary) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId} | Get status information about a cost query. +*CostQueriesBetaReleaseApi* | [**start_query**](docs/CostQueriesBetaReleaseApi.md#start_query) | **POST** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries | Create / start a new cost query. *CredentialsApi* | [**get_account_credentials**](docs/CredentialsApi.md#get_account_credentials) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials | Get all credentials configured on the account. -*CredentialsApi* | [**get_customer_credentials**](docs/CredentialsApi.md#get_customer_credentials) | **GET** /credential/v1/customers/{customerId}/credentials | Get all credentials configured on the customer. -*CustomThemeSettingsApi* | [**get_theme_settings**](docs/CustomThemeSettingsApi.md#get_theme_settings) | **GET** /customer/v1/customers/theme | Retrieves the customer's theme settings. +*CustomThemeSettingsApi* | [**get_theme_settings**](docs/CustomThemeSettingsApi.md#get_theme_settings) | **GET** /customer/v1/customers/theme | Retrieves the customer's theme settings. *CustomThemeSettingsApi* | [**update_custom_theme_settings**](docs/CustomThemeSettingsApi.md#update_custom_theme_settings) | **PUT** /customer/v1/customers/{customerId}/theme | Update the custom theme settings such as logo, colors, etc. +*CustomersApi* | [**create_customer**](docs/CustomersApi.md#create_customer) | **POST** /customer/v1/customers | Create a customer. Customer is not available for immediate use. Customer will be available once necessary back-end processing has been completed. +*CustomersApi* | [**delete_customer**](docs/CustomersApi.md#delete_customer) | **DELETE** /customer/v1/customers/{customerId} | Delete a customer. *CustomersApi* | [**get_customer**](docs/CustomersApi.md#get_customer) | **GET** /customer/v1/customers/{customerId} | Get an individual customer. *CustomersApi* | [**list_customers**](docs/CustomersApi.md#list_customers) | **GET** /customer/v1/customers | Get all customers. +*CustomersApi* | [**update_customer**](docs/CustomersApi.md#update_customer) | **PUT** /customer/v1/customers/{customerId} | Update a customer. +*DashboardApi* | [**create_dashboard**](docs/DashboardApi.md#create_dashboard) | **POST** /dashboard/v1/customers/{customerId}/dashboard-configs | Create a dashboard. +*DashboardApi* | [**create_panel**](docs/DashboardApi.md#create_panel) | **POST** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels | Create the given panel. +*DashboardApi* | [**delete_dashboard**](docs/DashboardApi.md#delete_dashboard) | **DELETE** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId} | Delete a dashboard. +*DashboardApi* | [**delete_panel**](docs/DashboardApi.md#delete_panel) | **DELETE** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels/{panelId} | Delete the given panel. +*DashboardApi* | [**get_dashboard**](docs/DashboardApi.md#get_dashboard) | **GET** /dashboard/v1/customers/{customerId}/accounts/{accountId}/dashboards/{dashboardId} | Get dashboard. +*DashboardApi* | [**list_dashboards**](docs/DashboardApi.md#list_dashboards) | **GET** /dashboard/v1/customers/{customerId}/accounts/{accountId}/dashboards | Get all dashboards. +*DashboardApi* | [**update_dashboard**](docs/DashboardApi.md#update_dashboard) | **PUT** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId} | Update a dashboard. +*DashboardApi* | [**update_panel**](docs/DashboardApi.md#update_panel) | **PUT** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels/{panelId} | Add or update the given panel. +*DashboardDataApi* | [**get_cost_data**](docs/DashboardDataApi.md#get_cost_data) | **POST** /dashboard/v1/customers/{customerId}/accounts/{accountId}/data/cost | Get data points for a cost data set. +*DashboardDataApi* | [**get_discount_data**](docs/DashboardDataApi.md#get_discount_data) | **POST** /dashboard/v1/customers/{customerId}/accounts/{accountId}/data/discount | Get data points for a discount data set. +*DimensionsBetaReleaseApi* | [**get_cost_tag_keys_for_account**](docs/DimensionsBetaReleaseApi.md#get_cost_tag_keys_for_account) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-tags | Get cost tag keys for an account. +*DimensionsBetaReleaseApi* | [**get_cost_tag_keys_for_customer**](docs/DimensionsBetaReleaseApi.md#get_cost_tag_keys_for_customer) | **GET** /cost/query/v1/customers/{customerId}/cost-tags | Retrieve tag keys for all accounts of a customer +*DimensionsBetaReleaseApi* | [**get_cost_tag_values_for_account**](docs/DimensionsBetaReleaseApi.md#get_cost_tag_values_for_account) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-tags/{tagKey}/values | Get cost tag values for an account. +*DimensionsBetaReleaseApi* | [**get_cost_tag_values_for_customer**](docs/DimensionsBetaReleaseApi.md#get_cost_tag_values_for_customer) | **GET** /cost/query/v1/customers/{customerId}/cost-tags/{tagKey}/values | Retrieve values for a specific tag key, for all accounts of a customer +*DimensionsBetaReleaseApi* | [**get_values**](docs/DimensionsBetaReleaseApi.md#get_values) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/dimensions/{dimensionName} | Get valid values for the specified dimension. *GoogleCredentialsApi* | [**modify_google_credential**](docs/GoogleCredentialsApi.md#modify_google_credential) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/google | Modify the default credential on the account. +*MapToPayerCredentialsApi* | [**modify_map_to_payer_credentials**](docs/MapToPayerCredentialsApi.md#modify_map_to_payer_credentials) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/map-to-payer | Modify the credentials on the account. *PermissionSetsApi* | [**create_permission_set**](docs/PermissionSetsApi.md#create_permission_set) | **POST** /policy/v1/customers/{customerId}/permission-sets | Create a permission set. *PermissionSetsApi* | [**delete_permission_set**](docs/PermissionSetsApi.md#delete_permission_set) | **DELETE** /policy/v1/customers/{customerId}/permission-sets/{permissionSetId} | Delete a permission set. *PermissionSetsApi* | [**get_all**](docs/PermissionSetsApi.md#get_all) | **GET** /policy/v1/customers/{customerId}/permission-sets | Get all permission sets. @@ -236,6 +209,7 @@ Class | Method | HTTP request | Description *UsersApi* | [**send_activation**](docs/UsersApi.md#send_activation) | **POST** /auth/v1/customers/{customerId}/users/{userId}/send-activation | Send a user activation email. *UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PUT** /auth/v1/customers/{customerId}/users/{userId} | Update a user. + ## Documentation For Models - [AccountAssignmentResponseModel](docs/AccountAssignmentResponseModel.md) @@ -251,9 +225,10 @@ Class | Method | HTTP request | Description - [AccountGroupSearchResponseModel](docs/AccountGroupSearchResponseModel.md) - [AncestorModel](docs/AncestorModel.md) - [AncestorsResponseModel](docs/AncestorsResponseModel.md) + - [ApplicableAccountInfo](docs/ApplicableAccountInfo.md) - [ApplicationModel](docs/ApplicationModel.md) + - [AvailableQueryOptionsResponseModel](docs/AvailableQueryOptionsResponseModel.md) - [AwsAccessKeyModel](docs/AwsAccessKeyModel.md) - - [AwsAssumeRoleCredentialRequestModel](docs/AwsAssumeRoleCredentialRequestModel.md) - [AwsCredentialRequestModel](docs/AwsCredentialRequestModel.md) - [AwsCrossAccountRoleModel](docs/AwsCrossAccountRoleModel.md) - [AwsCrossAccountRoleSetupResponseModel](docs/AwsCrossAccountRoleSetupResponseModel.md) @@ -266,6 +241,7 @@ Class | Method | HTTP request | Description - [AzureTokenCredentialRequestModel](docs/AzureTokenCredentialRequestModel.md) - [BaseAccountInfo](docs/BaseAccountInfo.md) - [BasicRequestListModification](docs/BasicRequestListModification.md) + - [BasicRequestListModificationProvider](docs/BasicRequestListModificationProvider.md) - [BulkAccountAssignmentRequestModel](docs/BulkAccountAssignmentRequestModel.md) - [BulkAccountAssignmentResponseModelAccountAssignmentResponseModel](docs/BulkAccountAssignmentResponseModelAccountAssignmentResponseModel.md) - [BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel](docs/BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel.md) @@ -275,10 +251,25 @@ Class | Method | HTTP request | Description - [ClientCreateRequestModel](docs/ClientCreateRequestModel.md) - [ClientRequestModel](docs/ClientRequestModel.md) - [ClientResponseModel](docs/ClientResponseModel.md) + - [CostAggregationDataPoint](docs/CostAggregationDataPoint.md) + - [CostAggregationDownloadResponseModel](docs/CostAggregationDownloadResponseModel.md) + - [CostAggregationResponseModel](docs/CostAggregationResponseModel.md) + - [CostAggregationSummaryResponseModel](docs/CostAggregationSummaryResponseModel.md) + - [CostDataRequestModel](docs/CostDataRequestModel.md) + - [CostDataResponseModel](docs/CostDataResponseModel.md) + - [CostQuerySummaryResponseModel](docs/CostQuerySummaryResponseModel.md) + - [Costs](docs/Costs.md) + - [CreateCostQueryRequestModel](docs/CreateCostQueryRequestModel.md) - [CreateRequestAccountGroupRequestModel](docs/CreateRequestAccountGroupRequestModel.md) - [CreateRequestAzureBillingAccountSelectionRequestModel](docs/CreateRequestAzureBillingAccountSelectionRequestModel.md) - [CreateRequestClientAccessKeyRequestModel](docs/CreateRequestClientAccessKeyRequestModel.md) - [CreateRequestClientCreateRequestModel](docs/CreateRequestClientCreateRequestModel.md) + - [CreateRequestCostDataRequestModel](docs/CreateRequestCostDataRequestModel.md) + - [CreateRequestCreateCostQueryRequestModel](docs/CreateRequestCreateCostQueryRequestModel.md) + - [CreateRequestCustomerRequestModel](docs/CreateRequestCustomerRequestModel.md) + - [CreateRequestDashboardPanelRequestModel](docs/CreateRequestDashboardPanelRequestModel.md) + - [CreateRequestDashboardRequestModel](docs/CreateRequestDashboardRequestModel.md) + - [CreateRequestDiscountDataRequestModel](docs/CreateRequestDiscountDataRequestModel.md) - [CreateRequestGeneralAccountRequestModel](docs/CreateRequestGeneralAccountRequestModel.md) - [CreateRequestMavRequestModel](docs/CreateRequestMavRequestModel.md) - [CreateRequestPermissionSetRequestModel](docs/CreateRequestPermissionSetRequestModel.md) @@ -293,35 +284,57 @@ Class | Method | HTTP request | Description - [CustomThemeResponseModel](docs/CustomThemeResponseModel.md) - [CustomerAccountBasicInfo](docs/CustomerAccountBasicInfo.md) - [CustomerAccountModification](docs/CustomerAccountModification.md) + - [CustomerPlanRequestModel](docs/CustomerPlanRequestModel.md) - [CustomerPlanResponseModel](docs/CustomerPlanResponseModel.md) + - [CustomerRequestModel](docs/CustomerRequestModel.md) - [CustomerResponseModel](docs/CustomerResponseModel.md) + - [CustomerUpdateRequestModel](docs/CustomerUpdateRequestModel.md) + - [DashboardAuthInfo](docs/DashboardAuthInfo.md) + - [DashboardCommonResponseModel](docs/DashboardCommonResponseModel.md) + - [DashboardPanelRequestModel](docs/DashboardPanelRequestModel.md) + - [DashboardPanelResponseModel](docs/DashboardPanelResponseModel.md) + - [DashboardRequestModel](docs/DashboardRequestModel.md) + - [DashboardResponseModel](docs/DashboardResponseModel.md) + - [DataSetInfo](docs/DataSetInfo.md) + - [Datapoint](docs/Datapoint.md) - [DeveloperInfo](docs/DeveloperInfo.md) + - [DimensionValue](docs/DimensionValue.md) + - [DiscountDataRequestModel](docs/DiscountDataRequestModel.md) + - [DiscountDataResponseModel](docs/DiscountDataResponseModel.md) - [Error](docs/Error.md) - [ErrorResponse](docs/ErrorResponse.md) - [GeneralAccountRequestModel](docs/GeneralAccountRequestModel.md) - [GeneralAccountResponseModel](docs/GeneralAccountResponseModel.md) - [GoogleCredentialRequestModel](docs/GoogleCredentialRequestModel.md) + - [GroupingOption](docs/GroupingOption.md) + - [LandingPageModel](docs/LandingPageModel.md) - [LinkedAwsCommercialAccountModel](docs/LinkedAwsCommercialAccountModel.md) - [ListModificationError](docs/ListModificationError.md) - [ListModificationRequestModel](docs/ListModificationRequestModel.md) - [ListModificationResponseModel](docs/ListModificationResponseModel.md) + - [MapToPayerCredentialRequestModel](docs/MapToPayerCredentialRequestModel.md) - [MappedRoleResponseModel](docs/MappedRoleResponseModel.md) - [MavRequestModel](docs/MavRequestModel.md) - [MavResponseModel](docs/MavResponseModel.md) - [MinimalClientResponseModel](docs/MinimalClientResponseModel.md) - [MinimalUserResponseModel](docs/MinimalUserResponseModel.md) - [NewClientAccessInfo](docs/NewClientAccessInfo.md) + - [NewQueryResponseModel](docs/NewQueryResponseModel.md) - [PaginationInfo](docs/PaginationInfo.md) - [PaginationResponseAccountAttributeResponseModel](docs/PaginationResponseAccountAttributeResponseModel.md) - [PaginationResponseAzureBillingAccountResponseModel](docs/PaginationResponseAzureBillingAccountResponseModel.md) + - [PaginationResponseDashboardCommonResponseModel](docs/PaginationResponseDashboardCommonResponseModel.md) - [PaginationResponsePermissionSetResponseModel](docs/PaginationResponsePermissionSetResponseModel.md) - [PaginationResponseRoleResponseModel](docs/PaginationResponseRoleResponseModel.md) + - [PaginationResponseTagKeyResponseModel](docs/PaginationResponseTagKeyResponseModel.md) + - [PaginationResponseTagValueResponseModel](docs/PaginationResponseTagValueResponseModel.md) - [PaginationWithCountResponseAccountGroupHierarchyResponseModel](docs/PaginationWithCountResponseAccountGroupHierarchyResponseModel.md) - [PaginationWithCountResponseAccountGroupResponseModel](docs/PaginationWithCountResponseAccountGroupResponseModel.md) - [PaginationWithCountResponseAccountGroupSearchResponseModel](docs/PaginationWithCountResponseAccountGroupSearchResponseModel.md) - [PaginationWithCountResponseClientAccessKeyResponseModel](docs/PaginationWithCountResponseClientAccessKeyResponseModel.md) - [PaginationWithCountResponseClientResponseModel](docs/PaginationWithCountResponseClientResponseModel.md) - [PaginationWithCountResponseCustomerResponseModel](docs/PaginationWithCountResponseCustomerResponseModel.md) + - [PaginationWithCountResponseDimensionValue](docs/PaginationWithCountResponseDimensionValue.md) - [PaginationWithCountResponseGeneralAccountResponseModel](docs/PaginationWithCountResponseGeneralAccountResponseModel.md) - [PaginationWithCountResponseMavResponseModel](docs/PaginationWithCountResponseMavResponseModel.md) - [PaginationWithCountResponseMinimalClientResponseModel](docs/PaginationWithCountResponseMinimalClientResponseModel.md) @@ -331,6 +344,7 @@ Class | Method | HTTP request | Description - [PaginationWithCountResponseReferencedAccountResponseModel](docs/PaginationWithCountResponseReferencedAccountResponseModel.md) - [PaginationWithCountResponseSamlProviderResponseModel](docs/PaginationWithCountResponseSamlProviderResponseModel.md) - [PaginationWithCountResponseSamlProviderRuleResponseModel](docs/PaginationWithCountResponseSamlProviderRuleResponseModel.md) + - [PaginationWithCountResponseTagKeyResponseModel](docs/PaginationWithCountResponseTagKeyResponseModel.md) - [PaginationWithCountResponseUserResponseModel](docs/PaginationWithCountResponseUserResponseModel.md) - [ParentAssignment](docs/ParentAssignment.md) - [ParentAssignmentResponseModel](docs/ParentAssignmentResponseModel.md) @@ -352,11 +366,16 @@ Class | Method | HTTP request | Description - [SamlProviderResponseModel](docs/SamlProviderResponseModel.md) - [SamlProviderRuleRequestModel](docs/SamlProviderRuleRequestModel.md) - [SamlProviderRuleResponseModel](docs/SamlProviderRuleResponseModel.md) + - [SizedGrouping](docs/SizedGrouping.md) + - [SortingOption](docs/SortingOption.md) + - [TagKey](docs/TagKey.md) + - [TagKeyResponseModel](docs/TagKeyResponseModel.md) + - [TagValueResponseModel](docs/TagValueResponseModel.md) + - [TimePeriod](docs/TimePeriod.md) - [TokenInfoResponse](docs/TokenInfoResponse.md) - [TokenResponse](docs/TokenResponse.md) - [UpdateRequestAccountAttributeRequestModel](docs/UpdateRequestAccountAttributeRequestModel.md) - [UpdateRequestAccountGroupRequestModel](docs/UpdateRequestAccountGroupRequestModel.md) - - [UpdateRequestAwsAssumeRoleCredentialRequestModel](docs/UpdateRequestAwsAssumeRoleCredentialRequestModel.md) - [UpdateRequestAwsCredentialRequestModel](docs/UpdateRequestAwsCredentialRequestModel.md) - [UpdateRequestAzureCspAuthorizationRequestModel](docs/UpdateRequestAzureCspAuthorizationRequestModel.md) - [UpdateRequestAzureEnterpriseAgreementCredentialRequestModel](docs/UpdateRequestAzureEnterpriseAgreementCredentialRequestModel.md) @@ -364,8 +383,12 @@ Class | Method | HTTP request | Description - [UpdateRequestAzureTokenCredentialRequestModel](docs/UpdateRequestAzureTokenCredentialRequestModel.md) - [UpdateRequestClientRequestModel](docs/UpdateRequestClientRequestModel.md) - [UpdateRequestCustomThemeRequestModel](docs/UpdateRequestCustomThemeRequestModel.md) + - [UpdateRequestCustomerUpdateRequestModel](docs/UpdateRequestCustomerUpdateRequestModel.md) + - [UpdateRequestDashboardPanelRequestModel](docs/UpdateRequestDashboardPanelRequestModel.md) + - [UpdateRequestDashboardRequestModel](docs/UpdateRequestDashboardRequestModel.md) - [UpdateRequestGeneralAccountRequestModel](docs/UpdateRequestGeneralAccountRequestModel.md) - [UpdateRequestGoogleCredentialRequestModel](docs/UpdateRequestGoogleCredentialRequestModel.md) + - [UpdateRequestMapToPayerCredentialRequestModel](docs/UpdateRequestMapToPayerCredentialRequestModel.md) - [UpdateRequestMavRequestModel](docs/UpdateRequestMavRequestModel.md) - [UpdateRequestPermissionSetRequestModel](docs/UpdateRequestPermissionSetRequestModel.md) - [UpdateRequestRoleRequestModel](docs/UpdateRequestRoleRequestModel.md) @@ -381,6 +404,7 @@ Class | Method | HTTP request | Description - [UserSamlProviderResponseModel](docs/UserSamlProviderResponseModel.md) - [VerificationActionModel](docs/VerificationActionModel.md) + ## Documentation For Authorization @@ -388,11 +412,12 @@ Class | Method | HTTP request | Description - **Type**: OAuth - **Flow**: application -- **Authorization URL**: +- **Authorization URL**: https://auth-us.cloudcheckr.com/auth/connect/authorize - **Scopes**: - - ****: + - **api**: CloudCheckr API ## Author support@cloudcheckr.com + diff --git a/cloudcheckr_cmx_client/__init__.py b/cloudcheckr_cmx_client/__init__.py index 2c64fb3..5f2e3a4 100644 --- a/cloudcheckr_cmx_client/__init__.py +++ b/cloudcheckr_cmx_client/__init__.py @@ -12,6 +12,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import # import apis into sdk package @@ -23,10 +24,15 @@ from cloudcheckr_cmx_client.api.azure_credentials_api import AzureCredentialsApi from cloudcheckr_cmx_client.api.client_access_keys_api import ClientAccessKeysApi from cloudcheckr_cmx_client.api.clients_api import ClientsApi +from cloudcheckr_cmx_client.api.cost_queries__beta_release_api import CostQueriesBetaReleaseApi from cloudcheckr_cmx_client.api.credentials_api import CredentialsApi from cloudcheckr_cmx_client.api.custom_theme_settings_api import CustomThemeSettingsApi from cloudcheckr_cmx_client.api.customers_api import CustomersApi +from cloudcheckr_cmx_client.api.dashboard_api import DashboardApi +from cloudcheckr_cmx_client.api.dashboard_data_api import DashboardDataApi +from cloudcheckr_cmx_client.api.dimensions__beta_release_api import DimensionsBetaReleaseApi from cloudcheckr_cmx_client.api.google_credentials_api import GoogleCredentialsApi +from cloudcheckr_cmx_client.api.map_to_payer_credentials_api import MapToPayerCredentialsApi from cloudcheckr_cmx_client.api.permission_sets_api import PermissionSetsApi from cloudcheckr_cmx_client.api.permissions_api import PermissionsApi from cloudcheckr_cmx_client.api.roles_api import RolesApi @@ -35,6 +41,7 @@ from cloudcheckr_cmx_client.api.token_management_api import TokenManagementApi from cloudcheckr_cmx_client.api.user_level_access_api import UserLevelAccessApi from cloudcheckr_cmx_client.api.users_api import UsersApi + # import ApiClient from cloudcheckr_cmx_client.api_client import ApiClient from cloudcheckr_cmx_client.configuration import Configuration @@ -52,9 +59,10 @@ from cloudcheckr_cmx_client.models.account_group_search_response_model import AccountGroupSearchResponseModel from cloudcheckr_cmx_client.models.ancestor_model import AncestorModel from cloudcheckr_cmx_client.models.ancestors_response_model import AncestorsResponseModel +from cloudcheckr_cmx_client.models.applicable_account_info import ApplicableAccountInfo from cloudcheckr_cmx_client.models.application_model import ApplicationModel +from cloudcheckr_cmx_client.models.available_query_options_response_model import AvailableQueryOptionsResponseModel from cloudcheckr_cmx_client.models.aws_access_key_model import AwsAccessKeyModel -from cloudcheckr_cmx_client.models.aws_assume_role_credential_request_model import AwsAssumeRoleCredentialRequestModel from cloudcheckr_cmx_client.models.aws_credential_request_model import AwsCredentialRequestModel from cloudcheckr_cmx_client.models.aws_cross_account_role_model import AwsCrossAccountRoleModel from cloudcheckr_cmx_client.models.aws_cross_account_role_setup_response_model import AwsCrossAccountRoleSetupResponseModel @@ -67,6 +75,7 @@ from cloudcheckr_cmx_client.models.azure_token_credential_request_model import AzureTokenCredentialRequestModel from cloudcheckr_cmx_client.models.base_account_info import BaseAccountInfo from cloudcheckr_cmx_client.models.basic_request_list_modification import BasicRequestListModification +from cloudcheckr_cmx_client.models.basic_request_list_modification_provider import BasicRequestListModificationProvider from cloudcheckr_cmx_client.models.bulk_account_assignment_request_model import BulkAccountAssignmentRequestModel from cloudcheckr_cmx_client.models.bulk_account_assignment_response_model_account_assignment_response_model import BulkAccountAssignmentResponseModelAccountAssignmentResponseModel from cloudcheckr_cmx_client.models.bulk_account_assignment_response_model_account_attribute_assignment_response_model import BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel @@ -76,10 +85,25 @@ from cloudcheckr_cmx_client.models.client_create_request_model import ClientCreateRequestModel from cloudcheckr_cmx_client.models.client_request_model import ClientRequestModel from cloudcheckr_cmx_client.models.client_response_model import ClientResponseModel +from cloudcheckr_cmx_client.models.cost_aggregation_data_point import CostAggregationDataPoint +from cloudcheckr_cmx_client.models.cost_aggregation_download_response_model import CostAggregationDownloadResponseModel +from cloudcheckr_cmx_client.models.cost_aggregation_response_model import CostAggregationResponseModel +from cloudcheckr_cmx_client.models.cost_aggregation_summary_response_model import CostAggregationSummaryResponseModel +from cloudcheckr_cmx_client.models.cost_data_request_model import CostDataRequestModel +from cloudcheckr_cmx_client.models.cost_data_response_model import CostDataResponseModel +from cloudcheckr_cmx_client.models.cost_query_summary_response_model import CostQuerySummaryResponseModel +from cloudcheckr_cmx_client.models.costs import Costs +from cloudcheckr_cmx_client.models.create_cost_query_request_model import CreateCostQueryRequestModel from cloudcheckr_cmx_client.models.create_request_account_group_request_model import CreateRequestAccountGroupRequestModel from cloudcheckr_cmx_client.models.create_request_azure_billing_account_selection_request_model import CreateRequestAzureBillingAccountSelectionRequestModel from cloudcheckr_cmx_client.models.create_request_client_access_key_request_model import CreateRequestClientAccessKeyRequestModel from cloudcheckr_cmx_client.models.create_request_client_create_request_model import CreateRequestClientCreateRequestModel +from cloudcheckr_cmx_client.models.create_request_cost_data_request_model import CreateRequestCostDataRequestModel +from cloudcheckr_cmx_client.models.create_request_create_cost_query_request_model import CreateRequestCreateCostQueryRequestModel +from cloudcheckr_cmx_client.models.create_request_customer_request_model import CreateRequestCustomerRequestModel +from cloudcheckr_cmx_client.models.create_request_dashboard_panel_request_model import CreateRequestDashboardPanelRequestModel +from cloudcheckr_cmx_client.models.create_request_dashboard_request_model import CreateRequestDashboardRequestModel +from cloudcheckr_cmx_client.models.create_request_discount_data_request_model import CreateRequestDiscountDataRequestModel from cloudcheckr_cmx_client.models.create_request_general_account_request_model import CreateRequestGeneralAccountRequestModel from cloudcheckr_cmx_client.models.create_request_mav_request_model import CreateRequestMavRequestModel from cloudcheckr_cmx_client.models.create_request_permission_set_request_model import CreateRequestPermissionSetRequestModel @@ -94,35 +118,57 @@ from cloudcheckr_cmx_client.models.custom_theme_response_model import CustomThemeResponseModel from cloudcheckr_cmx_client.models.customer_account_basic_info import CustomerAccountBasicInfo from cloudcheckr_cmx_client.models.customer_account_modification import CustomerAccountModification +from cloudcheckr_cmx_client.models.customer_plan_request_model import CustomerPlanRequestModel from cloudcheckr_cmx_client.models.customer_plan_response_model import CustomerPlanResponseModel +from cloudcheckr_cmx_client.models.customer_request_model import CustomerRequestModel from cloudcheckr_cmx_client.models.customer_response_model import CustomerResponseModel +from cloudcheckr_cmx_client.models.customer_update_request_model import CustomerUpdateRequestModel +from cloudcheckr_cmx_client.models.dashboard_auth_info import DashboardAuthInfo +from cloudcheckr_cmx_client.models.dashboard_common_response_model import DashboardCommonResponseModel +from cloudcheckr_cmx_client.models.dashboard_panel_request_model import DashboardPanelRequestModel +from cloudcheckr_cmx_client.models.dashboard_panel_response_model import DashboardPanelResponseModel +from cloudcheckr_cmx_client.models.dashboard_request_model import DashboardRequestModel +from cloudcheckr_cmx_client.models.dashboard_response_model import DashboardResponseModel +from cloudcheckr_cmx_client.models.data_set_info import DataSetInfo +from cloudcheckr_cmx_client.models.datapoint import Datapoint from cloudcheckr_cmx_client.models.developer_info import DeveloperInfo +from cloudcheckr_cmx_client.models.dimension_value import DimensionValue +from cloudcheckr_cmx_client.models.discount_data_request_model import DiscountDataRequestModel +from cloudcheckr_cmx_client.models.discount_data_response_model import DiscountDataResponseModel from cloudcheckr_cmx_client.models.error import Error from cloudcheckr_cmx_client.models.error_response import ErrorResponse from cloudcheckr_cmx_client.models.general_account_request_model import GeneralAccountRequestModel from cloudcheckr_cmx_client.models.general_account_response_model import GeneralAccountResponseModel from cloudcheckr_cmx_client.models.google_credential_request_model import GoogleCredentialRequestModel +from cloudcheckr_cmx_client.models.grouping_option import GroupingOption +from cloudcheckr_cmx_client.models.landing_page_model import LandingPageModel from cloudcheckr_cmx_client.models.linked_aws_commercial_account_model import LinkedAwsCommercialAccountModel from cloudcheckr_cmx_client.models.list_modification_error import ListModificationError from cloudcheckr_cmx_client.models.list_modification_request_model import ListModificationRequestModel from cloudcheckr_cmx_client.models.list_modification_response_model import ListModificationResponseModel +from cloudcheckr_cmx_client.models.map_to_payer_credential_request_model import MapToPayerCredentialRequestModel from cloudcheckr_cmx_client.models.mapped_role_response_model import MappedRoleResponseModel from cloudcheckr_cmx_client.models.mav_request_model import MavRequestModel from cloudcheckr_cmx_client.models.mav_response_model import MavResponseModel from cloudcheckr_cmx_client.models.minimal_client_response_model import MinimalClientResponseModel from cloudcheckr_cmx_client.models.minimal_user_response_model import MinimalUserResponseModel from cloudcheckr_cmx_client.models.new_client_access_info import NewClientAccessInfo +from cloudcheckr_cmx_client.models.new_query_response_model import NewQueryResponseModel from cloudcheckr_cmx_client.models.pagination_info import PaginationInfo from cloudcheckr_cmx_client.models.pagination_response_account_attribute_response_model import PaginationResponseAccountAttributeResponseModel from cloudcheckr_cmx_client.models.pagination_response_azure_billing_account_response_model import PaginationResponseAzureBillingAccountResponseModel +from cloudcheckr_cmx_client.models.pagination_response_dashboard_common_response_model import PaginationResponseDashboardCommonResponseModel from cloudcheckr_cmx_client.models.pagination_response_permission_set_response_model import PaginationResponsePermissionSetResponseModel from cloudcheckr_cmx_client.models.pagination_response_role_response_model import PaginationResponseRoleResponseModel +from cloudcheckr_cmx_client.models.pagination_response_tag_key_response_model import PaginationResponseTagKeyResponseModel +from cloudcheckr_cmx_client.models.pagination_response_tag_value_response_model import PaginationResponseTagValueResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_account_group_hierarchy_response_model import PaginationWithCountResponseAccountGroupHierarchyResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_account_group_response_model import PaginationWithCountResponseAccountGroupResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_account_group_search_response_model import PaginationWithCountResponseAccountGroupSearchResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_client_access_key_response_model import PaginationWithCountResponseClientAccessKeyResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_client_response_model import PaginationWithCountResponseClientResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_customer_response_model import PaginationWithCountResponseCustomerResponseModel +from cloudcheckr_cmx_client.models.pagination_with_count_response_dimension_value import PaginationWithCountResponseDimensionValue from cloudcheckr_cmx_client.models.pagination_with_count_response_general_account_response_model import PaginationWithCountResponseGeneralAccountResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_mav_response_model import PaginationWithCountResponseMavResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_minimal_client_response_model import PaginationWithCountResponseMinimalClientResponseModel @@ -132,6 +178,7 @@ from cloudcheckr_cmx_client.models.pagination_with_count_response_referenced_account_response_model import PaginationWithCountResponseReferencedAccountResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_saml_provider_response_model import PaginationWithCountResponseSamlProviderResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_saml_provider_rule_response_model import PaginationWithCountResponseSamlProviderRuleResponseModel +from cloudcheckr_cmx_client.models.pagination_with_count_response_tag_key_response_model import PaginationWithCountResponseTagKeyResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_user_response_model import PaginationWithCountResponseUserResponseModel from cloudcheckr_cmx_client.models.parent_assignment import ParentAssignment from cloudcheckr_cmx_client.models.parent_assignment_response_model import ParentAssignmentResponseModel @@ -153,11 +200,16 @@ from cloudcheckr_cmx_client.models.saml_provider_response_model import SamlProviderResponseModel from cloudcheckr_cmx_client.models.saml_provider_rule_request_model import SamlProviderRuleRequestModel from cloudcheckr_cmx_client.models.saml_provider_rule_response_model import SamlProviderRuleResponseModel +from cloudcheckr_cmx_client.models.sized_grouping import SizedGrouping +from cloudcheckr_cmx_client.models.sorting_option import SortingOption +from cloudcheckr_cmx_client.models.tag_key import TagKey +from cloudcheckr_cmx_client.models.tag_key_response_model import TagKeyResponseModel +from cloudcheckr_cmx_client.models.tag_value_response_model import TagValueResponseModel +from cloudcheckr_cmx_client.models.time_period import TimePeriod from cloudcheckr_cmx_client.models.token_info_response import TokenInfoResponse from cloudcheckr_cmx_client.models.token_response import TokenResponse from cloudcheckr_cmx_client.models.update_request_account_attribute_request_model import UpdateRequestAccountAttributeRequestModel from cloudcheckr_cmx_client.models.update_request_account_group_request_model import UpdateRequestAccountGroupRequestModel -from cloudcheckr_cmx_client.models.update_request_aws_assume_role_credential_request_model import UpdateRequestAwsAssumeRoleCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_aws_credential_request_model import UpdateRequestAwsCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_azure_csp_authorization_request_model import UpdateRequestAzureCspAuthorizationRequestModel from cloudcheckr_cmx_client.models.update_request_azure_enterprise_agreement_credential_request_model import UpdateRequestAzureEnterpriseAgreementCredentialRequestModel @@ -165,8 +217,12 @@ from cloudcheckr_cmx_client.models.update_request_azure_token_credential_request_model import UpdateRequestAzureTokenCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_client_request_model import UpdateRequestClientRequestModel from cloudcheckr_cmx_client.models.update_request_custom_theme_request_model import UpdateRequestCustomThemeRequestModel +from cloudcheckr_cmx_client.models.update_request_customer_update_request_model import UpdateRequestCustomerUpdateRequestModel +from cloudcheckr_cmx_client.models.update_request_dashboard_panel_request_model import UpdateRequestDashboardPanelRequestModel +from cloudcheckr_cmx_client.models.update_request_dashboard_request_model import UpdateRequestDashboardRequestModel from cloudcheckr_cmx_client.models.update_request_general_account_request_model import UpdateRequestGeneralAccountRequestModel from cloudcheckr_cmx_client.models.update_request_google_credential_request_model import UpdateRequestGoogleCredentialRequestModel +from cloudcheckr_cmx_client.models.update_request_map_to_payer_credential_request_model import UpdateRequestMapToPayerCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_mav_request_model import UpdateRequestMavRequestModel from cloudcheckr_cmx_client.models.update_request_permission_set_request_model import UpdateRequestPermissionSetRequestModel from cloudcheckr_cmx_client.models.update_request_role_request_model import UpdateRequestRoleRequestModel diff --git a/cloudcheckr_cmx_client/api/__init__.py b/cloudcheckr_cmx_client/api/__init__.py index 7ba547d..7e79452 100644 --- a/cloudcheckr_cmx_client/api/__init__.py +++ b/cloudcheckr_cmx_client/api/__init__.py @@ -11,10 +11,15 @@ from cloudcheckr_cmx_client.api.azure_credentials_api import AzureCredentialsApi from cloudcheckr_cmx_client.api.client_access_keys_api import ClientAccessKeysApi from cloudcheckr_cmx_client.api.clients_api import ClientsApi +from cloudcheckr_cmx_client.api.cost_queries__beta_release_api import CostQueriesBetaReleaseApi from cloudcheckr_cmx_client.api.credentials_api import CredentialsApi from cloudcheckr_cmx_client.api.custom_theme_settings_api import CustomThemeSettingsApi from cloudcheckr_cmx_client.api.customers_api import CustomersApi +from cloudcheckr_cmx_client.api.dashboard_api import DashboardApi +from cloudcheckr_cmx_client.api.dashboard_data_api import DashboardDataApi +from cloudcheckr_cmx_client.api.dimensions__beta_release_api import DimensionsBetaReleaseApi from cloudcheckr_cmx_client.api.google_credentials_api import GoogleCredentialsApi +from cloudcheckr_cmx_client.api.map_to_payer_credentials_api import MapToPayerCredentialsApi from cloudcheckr_cmx_client.api.permission_sets_api import PermissionSetsApi from cloudcheckr_cmx_client.api.permissions_api import PermissionsApi from cloudcheckr_cmx_client.api.roles_api import RolesApi diff --git a/cloudcheckr_cmx_client/api/account_attributes_api.py b/cloudcheckr_cmx_client/api/account_attributes_api.py index d074de8..4bcc1f2 100644 --- a/cloudcheckr_cmx_client/api/account_attributes_api.py +++ b/cloudcheckr_cmx_client/api/account_attributes_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,10 +42,10 @@ def attach_account_attribute(self, customer_id, attribute_name, value, **kwargs) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str attribute_name: (required) - :param str value: (required) - :param BulkAccountAttributeAssignmentRequestModel body: + :param str customer_id: (required) + :param str attribute_name: (required) + :param str value: (required) + :param BulkAccountAttributeAssignmentRequestModel request: :return: BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel If the method is called asynchronously, returns the request thread. @@ -65,16 +66,16 @@ def attach_account_attribute_with_http_info(self, customer_id, attribute_name, v >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str attribute_name: (required) - :param str value: (required) - :param BulkAccountAttributeAssignmentRequestModel body: + :param str customer_id: (required) + :param str attribute_name: (required) + :param str value: (required) + :param BulkAccountAttributeAssignmentRequestModel request: :return: BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'attribute_name', 'value', 'body'] # noqa: E501 + all_params = ['customer_id', 'attribute_name', 'value', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -90,16 +91,16 @@ def attach_account_attribute_with_http_info(self, customer_id, attribute_name, v params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `attach_account_attribute`") # noqa: E501 # verify the required parameter 'attribute_name' is set - if ('attribute_name' not in params or - params['attribute_name'] is None): + if self.api_client.client_side_validation and ('attribute_name' not in params or + params['attribute_name'] is None): # noqa: E501 raise ValueError("Missing the required parameter `attribute_name` when calling `attach_account_attribute`") # noqa: E501 # verify the required parameter 'value' is set - if ('value' not in params or - params['value'] is None): + if self.api_client.client_side_validation and ('value' not in params or + params['value'] is None): # noqa: E501 raise ValueError("Missing the required parameter `value` when calling `attach_account_attribute`") # noqa: E501 collection_formats = {} @@ -120,8 +121,8 @@ def attach_account_attribute_with_http_info(self, customer_id, attribute_name, v local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -158,8 +159,8 @@ def delete_account_attribute(self, customer_id, attribute_name, **kwargs): # no >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str attribute_name: (required) + :param str customer_id: (required) + :param str attribute_name: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -180,8 +181,8 @@ def delete_account_attribute_with_http_info(self, customer_id, attribute_name, * >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str attribute_name: (required) + :param str customer_id: (required) + :param str attribute_name: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -203,12 +204,12 @@ def delete_account_attribute_with_http_info(self, customer_id, attribute_name, * params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_account_attribute`") # noqa: E501 # verify the required parameter 'attribute_name' is set - if ('attribute_name' not in params or - params['attribute_name'] is None): + if self.api_client.client_side_validation and ('attribute_name' not in params or + params['attribute_name'] is None): # noqa: E501 raise ValueError("Missing the required parameter `attribute_name` when calling `delete_account_attribute`") # noqa: E501 collection_formats = {} @@ -227,10 +228,6 @@ def delete_account_attribute_with_http_info(self, customer_id, attribute_name, * local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - # Authentication setting auth_settings = ['oauth'] # noqa: E501 @@ -259,8 +256,8 @@ def get_account_attribute(self, customer_id, attribute_name, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str attribute_name: (required) + :param str customer_id: (required) + :param str attribute_name: (required) :return: AccountAttributeResponseModel If the method is called asynchronously, returns the request thread. @@ -281,8 +278,8 @@ def get_account_attribute_with_http_info(self, customer_id, attribute_name, **kw >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str attribute_name: (required) + :param str customer_id: (required) + :param str attribute_name: (required) :return: AccountAttributeResponseModel If the method is called asynchronously, returns the request thread. @@ -304,12 +301,12 @@ def get_account_attribute_with_http_info(self, customer_id, attribute_name, **kw params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_account_attribute`") # noqa: E501 # verify the required parameter 'attribute_name' is set - if ('attribute_name' not in params or - params['attribute_name'] is None): + if self.api_client.client_side_validation and ('attribute_name' not in params or + params['attribute_name'] is None): # noqa: E501 raise ValueError("Missing the required parameter `attribute_name` when calling `get_account_attribute`") # noqa: E501 collection_formats = {} @@ -360,8 +357,8 @@ def list_account_attributes(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param bool include_values: + :param str customer_id: (required) + :param bool include_values: :param str search: finds all resources that match the specified value :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items @@ -386,8 +383,8 @@ def list_account_attributes_with_http_info(self, customer_id, **kwargs): # noqa >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param bool include_values: + :param str customer_id: (required) + :param bool include_values: :param str search: finds all resources that match the specified value :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items @@ -413,8 +410,8 @@ def list_account_attributes_with_http_info(self, customer_id, **kwargs): # noqa params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_account_attributes`") # noqa: E501 collection_formats = {} @@ -473,8 +470,8 @@ def update_account_attribute(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param UpdateRequestAccountAttributeRequestModel body: + :param str customer_id: (required) + :param UpdateRequestAccountAttributeRequestModel request: :return: AccountAttributeResponseModel If the method is called asynchronously, returns the request thread. @@ -495,14 +492,14 @@ def update_account_attribute_with_http_info(self, customer_id, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param UpdateRequestAccountAttributeRequestModel body: + :param str customer_id: (required) + :param UpdateRequestAccountAttributeRequestModel request: :return: AccountAttributeResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -518,8 +515,8 @@ def update_account_attribute_with_http_info(self, customer_id, **kwargs): # noq params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_account_attribute`") # noqa: E501 collection_formats = {} @@ -536,8 +533,8 @@ def update_account_attribute_with_http_info(self, customer_id, **kwargs): # noq local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/account_management_api.py b/cloudcheckr_cmx_client/api/account_management_api.py index 2004ea4..97cb400 100644 --- a/cloudcheckr_cmx_client/api/account_management_api.py +++ b/cloudcheckr_cmx_client/api/account_management_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,9 +42,9 @@ def attach_account_groups(self, customer_id, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str group_id: (required) - :param BulkAccountAssignmentRequestModel body: + :param str customer_id: (required) + :param str group_id: (required) + :param BulkAccountAssignmentRequestModel request: :return: BulkAccountAssignmentResponseModelAccountAssignmentResponseModel If the method is called asynchronously, returns the request thread. @@ -64,15 +65,15 @@ def attach_account_groups_with_http_info(self, customer_id, group_id, **kwargs): >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str group_id: (required) - :param BulkAccountAssignmentRequestModel body: + :param str customer_id: (required) + :param str group_id: (required) + :param BulkAccountAssignmentRequestModel request: :return: BulkAccountAssignmentResponseModelAccountAssignmentResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'group_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'group_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,12 +89,12 @@ def attach_account_groups_with_http_info(self, customer_id, group_id, **kwargs): params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `attach_account_groups`") # noqa: E501 # verify the required parameter 'group_id' is set - if ('group_id' not in params or - params['group_id'] is None): + if self.api_client.client_side_validation and ('group_id' not in params or + params['group_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `group_id` when calling `attach_account_groups`") # noqa: E501 collection_formats = {} @@ -112,8 +113,8 @@ def attach_account_groups_with_http_info(self, customer_id, group_id, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -150,8 +151,8 @@ def attach_account_groups_to_root(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param BulkAccountAssignmentRequestModel body: + :param str customer_id: (required) + :param BulkAccountAssignmentRequestModel request: :return: BulkAccountAssignmentResponseModelAccountAssignmentResponseModel If the method is called asynchronously, returns the request thread. @@ -172,14 +173,14 @@ def attach_account_groups_to_root_with_http_info(self, customer_id, **kwargs): >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param BulkAccountAssignmentRequestModel body: + :param str customer_id: (required) + :param BulkAccountAssignmentRequestModel request: :return: BulkAccountAssignmentResponseModelAccountAssignmentResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -195,8 +196,8 @@ def attach_account_groups_to_root_with_http_info(self, customer_id, **kwargs): params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `attach_account_groups_to_root`") # noqa: E501 collection_formats = {} @@ -213,8 +214,8 @@ def attach_account_groups_to_root_with_http_info(self, customer_id, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -251,8 +252,8 @@ def create_account(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestGeneralAccountRequestModel body: + :param str customer_id: (required) + :param CreateRequestGeneralAccountRequestModel request: :return: GeneralAccountResponseModel If the method is called asynchronously, returns the request thread. @@ -273,14 +274,14 @@ def create_account_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestGeneralAccountRequestModel body: + :param str customer_id: (required) + :param CreateRequestGeneralAccountRequestModel request: :return: GeneralAccountResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -296,8 +297,8 @@ def create_account_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_account`") # noqa: E501 collection_formats = {} @@ -314,8 +315,8 @@ def create_account_with_http_info(self, customer_id, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -352,8 +353,8 @@ def create_account_group(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestAccountGroupRequestModel body: + :param str customer_id: (required) + :param CreateRequestAccountGroupRequestModel request: :return: AccountGroupResponseModel If the method is called asynchronously, returns the request thread. @@ -374,14 +375,14 @@ def create_account_group_with_http_info(self, customer_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestAccountGroupRequestModel body: + :param str customer_id: (required) + :param CreateRequestAccountGroupRequestModel request: :return: AccountGroupResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -397,8 +398,8 @@ def create_account_group_with_http_info(self, customer_id, **kwargs): # noqa: E params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_account_group`") # noqa: E501 collection_formats = {} @@ -415,8 +416,8 @@ def create_account_group_with_http_info(self, customer_id, **kwargs): # noqa: E local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -453,8 +454,8 @@ def create_mav(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestMavRequestModel body: + :param str customer_id: (required) + :param CreateRequestMavRequestModel request: :return: MavResponseModel If the method is called asynchronously, returns the request thread. @@ -475,14 +476,14 @@ def create_mav_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestMavRequestModel body: + :param str customer_id: (required) + :param CreateRequestMavRequestModel request: :return: MavResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -498,8 +499,8 @@ def create_mav_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_mav`") # noqa: E501 collection_formats = {} @@ -516,8 +517,8 @@ def create_mav_with_http_info(self, customer_id, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -554,8 +555,8 @@ def delete_account(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -576,8 +577,8 @@ def delete_account_with_http_info(self, customer_id, account_id, **kwargs): # n >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -599,12 +600,12 @@ def delete_account_with_http_info(self, customer_id, account_id, **kwargs): # n params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_account`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `delete_account`") # noqa: E501 collection_formats = {} @@ -655,8 +656,8 @@ def delete_account_group(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -677,8 +678,8 @@ def delete_account_group_with_http_info(self, customer_id, account_id, **kwargs) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -700,12 +701,12 @@ def delete_account_group_with_http_info(self, customer_id, account_id, **kwargs) params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_account_group`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `delete_account_group`") # noqa: E501 collection_formats = {} @@ -724,10 +725,6 @@ def delete_account_group_with_http_info(self, customer_id, account_id, **kwargs) local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - # Authentication setting auth_settings = ['oauth'] # noqa: E501 @@ -756,8 +753,8 @@ def delete_mav(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -778,8 +775,8 @@ def delete_mav_with_http_info(self, customer_id, account_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -801,12 +798,12 @@ def delete_mav_with_http_info(self, customer_id, account_id, **kwargs): # noqa: params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_mav`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `delete_mav`") # noqa: E501 collection_formats = {} @@ -902,12 +899,12 @@ def get_account_with_http_info(self, customer_id, account_id, **kwargs): # noqa params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_account`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `get_account`") # noqa: E501 collection_formats = {} @@ -1003,12 +1000,12 @@ def get_account_group_parent_assignment_with_http_info(self, customer_id, parent params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_account_group_parent_assignment`") # noqa: E501 # verify the required parameter 'parent_assignment_id' is set - if ('parent_assignment_id' not in params or - params['parent_assignment_id'] is None): + if self.api_client.client_side_validation and ('parent_assignment_id' not in params or + params['parent_assignment_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `parent_assignment_id` when calling `get_account_group_parent_assignment`") # noqa: E501 collection_formats = {} @@ -1104,8 +1101,8 @@ def get_account_group_parent_assignments_with_http_info(self, customer_id, **kwa params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_account_group_parent_assignments`") # noqa: E501 collection_formats = {} @@ -1206,8 +1203,8 @@ def get_general_accounts_with_http_info(self, customer_id, **kwargs): # noqa: E params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_general_accounts`") # noqa: E501 collection_formats = {} @@ -1307,12 +1304,12 @@ def get_group_with_http_info(self, customer_id, group_id, **kwargs): # noqa: E5 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_group`") # noqa: E501 # verify the required parameter 'group_id' is set - if ('group_id' not in params or - params['group_id'] is None): + if self.api_client.client_side_validation and ('group_id' not in params or + params['group_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `group_id` when calling `get_group`") # noqa: E501 collection_formats = {} @@ -1414,12 +1411,12 @@ def get_group_children_with_http_info(self, customer_id, group_id, **kwargs): # params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_group_children`") # noqa: E501 # verify the required parameter 'group_id' is set - if ('group_id' not in params or - params['group_id'] is None): + if self.api_client.client_side_validation and ('group_id' not in params or + params['group_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `group_id` when calling `get_group_children`") # noqa: E501 collection_formats = {} @@ -1525,8 +1522,8 @@ def get_groups_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_groups`") # noqa: E501 collection_formats = {} @@ -1626,12 +1623,12 @@ def get_mav_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E5 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_mav`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `get_mav`") # noqa: E501 collection_formats = {} @@ -1731,8 +1728,8 @@ def get_mav_accounts_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_mav_accounts`") # noqa: E501 collection_formats = {} @@ -1838,12 +1835,12 @@ def get_mav_referenced_accounts_with_http_info(self, customer_id, account_id, ** params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_mav_referenced_accounts`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `get_mav_referenced_accounts`") # noqa: E501 collection_formats = {} @@ -1949,8 +1946,8 @@ def get_root_children_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_root_children`") # noqa: E501 collection_formats = {} @@ -2005,9 +2002,9 @@ def update_account(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestGeneralAccountRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestGeneralAccountRequestModel request: :return: GeneralAccountResponseModel If the method is called asynchronously, returns the request thread. @@ -2028,15 +2025,15 @@ def update_account_with_http_info(self, customer_id, account_id, **kwargs): # n >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestGeneralAccountRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestGeneralAccountRequestModel request: :return: GeneralAccountResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2052,12 +2049,12 @@ def update_account_with_http_info(self, customer_id, account_id, **kwargs): # n params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_account`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `update_account`") # noqa: E501 collection_formats = {} @@ -2076,8 +2073,8 @@ def update_account_with_http_info(self, customer_id, account_id, **kwargs): # n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -2114,9 +2111,9 @@ def update_account_group(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestAccountGroupRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestAccountGroupRequestModel request: :return: AccountGroupResponseModel If the method is called asynchronously, returns the request thread. @@ -2137,15 +2134,15 @@ def update_account_group_with_http_info(self, customer_id, account_id, **kwargs) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestAccountGroupRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestAccountGroupRequestModel request: :return: AccountGroupResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2161,12 +2158,12 @@ def update_account_group_with_http_info(self, customer_id, account_id, **kwargs) params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_account_group`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `update_account_group`") # noqa: E501 collection_formats = {} @@ -2185,8 +2182,8 @@ def update_account_group_with_http_info(self, customer_id, account_id, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -2223,9 +2220,9 @@ def update_mav(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestMavRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestMavRequestModel request: :return: MavResponseModel If the method is called asynchronously, returns the request thread. @@ -2246,15 +2243,15 @@ def update_mav_with_http_info(self, customer_id, account_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestMavRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestMavRequestModel request: :return: MavResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2270,12 +2267,12 @@ def update_mav_with_http_info(self, customer_id, account_id, **kwargs): # noqa: params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_mav`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `update_mav`") # noqa: E501 collection_formats = {} @@ -2294,8 +2291,8 @@ def update_mav_with_http_info(self, customer_id, account_id, **kwargs): # noqa: local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/accounts_api.py b/cloudcheckr_cmx_client/api/accounts_api.py index a5c057e..c1ccdd0 100644 --- a/cloudcheckr_cmx_client/api/accounts_api.py +++ b/cloudcheckr_cmx_client/api/accounts_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -86,12 +87,12 @@ def get_account_with_http_info(self, customer_id, account_id, **kwargs): # noqa params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_account`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `get_account`") # noqa: E501 collection_formats = {} @@ -142,8 +143,8 @@ def get_accounts(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param list[str] account_types: + :param str customer_id: (required) + :param list[str] account_types: :param list[str] account_ids: Specific account IDs to return. :param list[str] account_attributes: Account attributes to be searched. This will attempt to match name or name:value combinations. Matching is not case-sensitive. :param int page_size: number of items to include in the response @@ -171,8 +172,8 @@ def get_accounts_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param list[str] account_types: + :param str customer_id: (required) + :param list[str] account_types: :param list[str] account_ids: Specific account IDs to return. :param list[str] account_attributes: Account attributes to be searched. This will attempt to match name or name:value combinations. Matching is not case-sensitive. :param int page_size: number of items to include in the response @@ -201,8 +202,8 @@ def get_accounts_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_accounts`") # noqa: E501 collection_formats = {} @@ -270,8 +271,8 @@ def get_ancestors(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: AncestorsResponseModel If the method is called asynchronously, returns the request thread. @@ -292,8 +293,8 @@ def get_ancestors_with_http_info(self, customer_id, account_id, **kwargs): # no >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: AncestorsResponseModel If the method is called asynchronously, returns the request thread. @@ -315,12 +316,12 @@ def get_ancestors_with_http_info(self, customer_id, account_id, **kwargs): # no params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_ancestors`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `get_ancestors`") # noqa: E501 collection_formats = {} diff --git a/cloudcheckr_cmx_client/api/aws_credentials_api.py b/cloudcheckr_cmx_client/api/aws_credentials_api.py index 80cecae..27c1af8 100644 --- a/cloudcheckr_cmx_client/api/aws_credentials_api.py +++ b/cloudcheckr_cmx_client/api/aws_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -32,47 +33,45 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def get_aws_external_id(self, customer_id, account_id, aws_region_group, **kwargs): # noqa: E501 - """Get the external ID to use when creating an AWS cross-account role. # noqa: E501 + def delete_aws_external_id(self, customer_id, account_id, **kwargs): # noqa: E501 + """Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_aws_external_id(customer_id, account_id, aws_region_group, async_req=True) + >>> thread = api.delete_aws_external_id(customer_id, account_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param str aws_region_group: AWS region group where the cross-account role will be created. (required) - :return: AwsCrossAccountRoleSetupResponseModel + :param str customer_id: (required) + :param str account_id: (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_aws_external_id_with_http_info(customer_id, account_id, aws_region_group, **kwargs) # noqa: E501 + return self.delete_aws_external_id_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 else: - (data) = self.get_aws_external_id_with_http_info(customer_id, account_id, aws_region_group, **kwargs) # noqa: E501 + (data) = self.delete_aws_external_id_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 return data - def get_aws_external_id_with_http_info(self, customer_id, account_id, aws_region_group, **kwargs): # noqa: E501 - """Get the external ID to use when creating an AWS cross-account role. # noqa: E501 + def delete_aws_external_id_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_aws_external_id_with_http_info(customer_id, account_id, aws_region_group, async_req=True) + >>> thread = api.delete_aws_external_id_with_http_info(customer_id, account_id, async_req=True) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param str aws_region_group: AWS region group where the cross-account role will be created. (required) - :return: AwsCrossAccountRoleSetupResponseModel + :param str customer_id: (required) + :param str account_id: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'aws_region_group'] # noqa: E501 + all_params = ['customer_id', 'account_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -83,22 +82,18 @@ def get_aws_external_id_with_http_info(self, customer_id, account_id, aws_region if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_aws_external_id" % key + " to method delete_aws_external_id" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): - raise ValueError("Missing the required parameter `customer_id` when calling `get_aws_external_id`") # noqa: E501 + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `delete_aws_external_id`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): - raise ValueError("Missing the required parameter `account_id` when calling `get_aws_external_id`") # noqa: E501 - # verify the required parameter 'aws_region_group' is set - if ('aws_region_group' not in params or - params['aws_region_group'] is None): - raise ValueError("Missing the required parameter `aws_region_group` when calling `get_aws_external_id`") # noqa: E501 + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `delete_aws_external_id`") # noqa: E501 collection_formats = {} @@ -107,8 +102,6 @@ def get_aws_external_id_with_http_info(self, customer_id, account_id, aws_region path_params['customerId'] = params['customer_id'] # noqa: E501 if 'account_id' in params: path_params['accountId'] = params['account_id'] # noqa: E501 - if 'aws_region_group' in params: - path_params['awsRegionGroup'] = params['aws_region_group'] # noqa: E501 query_params = [] @@ -126,14 +119,14 @@ def get_aws_external_id_with_http_info(self, customer_id, account_id, aws_region auth_settings = ['oauth'] # noqa: E501 return self.api_client.call_api( - '/credential/v1/customers/{customerId}/accounts/{accountId}/external-id/aws/{awsRegionGroup}', 'GET', + '/credential/v1/customers/{customerId}/accounts/{accountId}/external-id/aws', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AwsCrossAccountRoleSetupResponseModel', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -141,49 +134,47 @@ def get_aws_external_id_with_http_info(self, customer_id, account_id, aws_region _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def modify_credential(self, customer_id, account_id, purpose, **kwargs): # noqa: E501 - """Modify the credential on the account. # noqa: E501 + def get_aws_external_id(self, customer_id, account_id, aws_region_group, **kwargs): # noqa: E501 + """Get the external ID to use when creating an AWS cross-account role. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.modify_credential(customer_id, account_id, purpose, async_req=True) + >>> thread = api.get_aws_external_id(customer_id, account_id, aws_region_group, async_req=True) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param str purpose: How the credential will be used. (required) - :param UpdateRequestAwsCredentialRequestModel body: - :return: CredentialResponseModel + :param str customer_id: (required) + :param str account_id: (required) + :param str aws_region_group: AWS region group where the cross-account role will be created. (required) + :return: AwsCrossAccountRoleSetupResponseModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.modify_credential_with_http_info(customer_id, account_id, purpose, **kwargs) # noqa: E501 + return self.get_aws_external_id_with_http_info(customer_id, account_id, aws_region_group, **kwargs) # noqa: E501 else: - (data) = self.modify_credential_with_http_info(customer_id, account_id, purpose, **kwargs) # noqa: E501 + (data) = self.get_aws_external_id_with_http_info(customer_id, account_id, aws_region_group, **kwargs) # noqa: E501 return data - def modify_credential_with_http_info(self, customer_id, account_id, purpose, **kwargs): # noqa: E501 - """Modify the credential on the account. # noqa: E501 + def get_aws_external_id_with_http_info(self, customer_id, account_id, aws_region_group, **kwargs): # noqa: E501 + """Get the external ID to use when creating an AWS cross-account role. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.modify_credential_with_http_info(customer_id, account_id, purpose, async_req=True) + >>> thread = api.get_aws_external_id_with_http_info(customer_id, account_id, aws_region_group, async_req=True) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param str purpose: How the credential will be used. (required) - :param UpdateRequestAwsCredentialRequestModel body: - :return: CredentialResponseModel + :param str customer_id: (required) + :param str account_id: (required) + :param str aws_region_group: AWS region group where the cross-account role will be created. (required) + :return: AwsCrossAccountRoleSetupResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'purpose', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'aws_region_group'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -194,22 +185,22 @@ def modify_credential_with_http_info(self, customer_id, account_id, purpose, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method modify_credential" % key + " to method get_aws_external_id" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): - raise ValueError("Missing the required parameter `customer_id` when calling `modify_credential`") # noqa: E501 + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_aws_external_id`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): - raise ValueError("Missing the required parameter `account_id` when calling `modify_credential`") # noqa: E501 - # verify the required parameter 'purpose' is set - if ('purpose' not in params or - params['purpose'] is None): - raise ValueError("Missing the required parameter `purpose` when calling `modify_credential`") # noqa: E501 + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_aws_external_id`") # noqa: E501 + # verify the required parameter 'aws_region_group' is set + if self.api_client.client_side_validation and ('aws_region_group' not in params or + params['aws_region_group'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `aws_region_group` when calling `get_aws_external_id`") # noqa: E501 collection_formats = {} @@ -218,8 +209,8 @@ def modify_credential_with_http_info(self, customer_id, account_id, purpose, **k path_params['customerId'] = params['customer_id'] # noqa: E501 if 'account_id' in params: path_params['accountId'] = params['account_id'] # noqa: E501 - if 'purpose' in params: - path_params['purpose'] = params['purpose'] # noqa: E501 + if 'aws_region_group' in params: + path_params['awsRegionGroup'] = params['aws_region_group'] # noqa: E501 query_params = [] @@ -229,28 +220,22 @@ def modify_credential_with_http_info(self, customer_id, account_id, purpose, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 - # Authentication setting auth_settings = ['oauth'] # noqa: E501 return self.api_client.call_api( - '/credential/v1/customers/{customerId}/accounts/{accountId}/credentials/aws/{purpose}', 'PUT', + '/credential/v1/customers/{customerId}/accounts/{accountId}/external-id/aws/{awsRegionGroup}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CredentialResponseModel', # noqa: E501 + response_type='AwsCrossAccountRoleSetupResponseModel', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -258,47 +243,49 @@ def modify_credential_with_http_info(self, customer_id, account_id, purpose, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def modify_customer_aws_assume_role_credential(self, customer_id, aws_region_group, **kwargs): # noqa: E501 - """Set the credential to use when assuming a cross-acount role. # noqa: E501 + def modify_credential(self, customer_id, account_id, purpose, **kwargs): # noqa: E501 + """Modify the credential on the account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.modify_customer_aws_assume_role_credential(customer_id, aws_region_group, async_req=True) + >>> thread = api.modify_credential(customer_id, account_id, purpose, async_req=True) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str aws_region_group: (required) - :param UpdateRequestAwsAssumeRoleCredentialRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param str purpose: How the credential will be used. (required) + :param UpdateRequestAwsCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.modify_customer_aws_assume_role_credential_with_http_info(customer_id, aws_region_group, **kwargs) # noqa: E501 + return self.modify_credential_with_http_info(customer_id, account_id, purpose, **kwargs) # noqa: E501 else: - (data) = self.modify_customer_aws_assume_role_credential_with_http_info(customer_id, aws_region_group, **kwargs) # noqa: E501 + (data) = self.modify_credential_with_http_info(customer_id, account_id, purpose, **kwargs) # noqa: E501 return data - def modify_customer_aws_assume_role_credential_with_http_info(self, customer_id, aws_region_group, **kwargs): # noqa: E501 - """Set the credential to use when assuming a cross-acount role. # noqa: E501 + def modify_credential_with_http_info(self, customer_id, account_id, purpose, **kwargs): # noqa: E501 + """Modify the credential on the account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.modify_customer_aws_assume_role_credential_with_http_info(customer_id, aws_region_group, async_req=True) + >>> thread = api.modify_credential_with_http_info(customer_id, account_id, purpose, async_req=True) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str aws_region_group: (required) - :param UpdateRequestAwsAssumeRoleCredentialRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param str purpose: How the credential will be used. (required) + :param UpdateRequestAwsCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'aws_region_group', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'purpose', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -309,26 +296,32 @@ def modify_customer_aws_assume_role_credential_with_http_info(self, customer_id, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method modify_customer_aws_assume_role_credential" % key + " to method modify_credential" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): - raise ValueError("Missing the required parameter `customer_id` when calling `modify_customer_aws_assume_role_credential`") # noqa: E501 - # verify the required parameter 'aws_region_group' is set - if ('aws_region_group' not in params or - params['aws_region_group'] is None): - raise ValueError("Missing the required parameter `aws_region_group` when calling `modify_customer_aws_assume_role_credential`") # noqa: E501 + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `modify_credential`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `modify_credential`") # noqa: E501 + # verify the required parameter 'purpose' is set + if self.api_client.client_side_validation and ('purpose' not in params or + params['purpose'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `purpose` when calling `modify_credential`") # noqa: E501 collection_formats = {} path_params = {} if 'customer_id' in params: path_params['customerId'] = params['customer_id'] # noqa: E501 - if 'aws_region_group' in params: - path_params['awsRegionGroup'] = params['aws_region_group'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + if 'purpose' in params: + path_params['purpose'] = params['purpose'] # noqa: E501 query_params = [] @@ -338,8 +331,8 @@ def modify_customer_aws_assume_role_credential_with_http_info(self, customer_id, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -352,7 +345,7 @@ def modify_customer_aws_assume_role_credential_with_http_info(self, customer_id, auth_settings = ['oauth'] # noqa: E501 return self.api_client.call_api( - '/credential/v1/customers/{customerId}/credentials/aws/assume-role/{awsRegionGroup}', 'PUT', + '/credential/v1/customers/{customerId}/accounts/{accountId}/credentials/aws/{purpose}', 'PUT', path_params, query_params, header_params, @@ -376,9 +369,9 @@ def modify_default_credential(self, customer_id, account_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestAwsCredentialRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestAwsCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. @@ -399,15 +392,15 @@ def modify_default_credential_with_http_info(self, customer_id, account_id, **kw >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestAwsCredentialRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestAwsCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -423,12 +416,12 @@ def modify_default_credential_with_http_info(self, customer_id, account_id, **kw params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `modify_default_credential`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `modify_default_credential`") # noqa: E501 collection_formats = {} @@ -447,8 +440,8 @@ def modify_default_credential_with_http_info(self, customer_id, account_id, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/azure_common_credentials_api.py b/cloudcheckr_cmx_client/api/azure_common_credentials_api.py index 6afda86..0852f52 100644 --- a/cloudcheckr_cmx_client/api/azure_common_credentials_api.py +++ b/cloudcheckr_cmx_client/api/azure_common_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,9 +42,9 @@ def assign_billing_account(self, customer_id, account_id, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param CreateRequestAzureBillingAccountSelectionRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestAzureBillingAccountSelectionRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. @@ -64,15 +65,15 @@ def assign_billing_account_with_http_info(self, customer_id, account_id, **kwarg >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param CreateRequestAzureBillingAccountSelectionRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestAzureBillingAccountSelectionRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,12 +89,12 @@ def assign_billing_account_with_http_info(self, customer_id, account_id, **kwarg params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `assign_billing_account`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `assign_billing_account`") # noqa: E501 collection_formats = {} @@ -112,8 +113,8 @@ def assign_billing_account_with_http_info(self, customer_id, account_id, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -126,7 +127,7 @@ def assign_billing_account_with_http_info(self, customer_id, account_id, **kwarg auth_settings = ['oauth'] # noqa: E501 return self.api_client.call_api( - '/credential/v1/customers/{customerId}/accounts/{accountId}/credential/azure/billing-accounts', 'PUT', + '/credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/billing-accounts', 'PUT', path_params, query_params, header_params, @@ -150,8 +151,8 @@ def get_billing_accounts(self, customer_id, account_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :param str pagination_key: key used to fetch the next page of items :return: PaginationResponseAzureBillingAccountResponseModel If the method is called asynchronously, @@ -173,8 +174,8 @@ def get_billing_accounts_with_http_info(self, customer_id, account_id, **kwargs) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :param str pagination_key: key used to fetch the next page of items :return: PaginationResponseAzureBillingAccountResponseModel If the method is called asynchronously, @@ -197,12 +198,12 @@ def get_billing_accounts_with_http_info(self, customer_id, account_id, **kwargs) params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_billing_accounts`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `get_billing_accounts`") # noqa: E501 collection_formats = {} @@ -231,7 +232,7 @@ def get_billing_accounts_with_http_info(self, customer_id, account_id, **kwargs) auth_settings = ['oauth'] # noqa: E501 return self.api_client.call_api( - '/credential/v1/customers/{customerId}/accounts/{accountId}/credential/azure/billing-accounts', 'GET', + '/credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/billing-accounts', 'GET', path_params, query_params, header_params, @@ -257,7 +258,7 @@ def request_authorization(self, customer_id, account_id, **kwargs): # noqa: E50 :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureTokenCredentialRequestModel body: + :param UpdateRequestAzureTokenCredentialRequestModel request: :return: AzureAuthorizationResponseModel If the method is called asynchronously, returns the request thread. @@ -280,13 +281,13 @@ def request_authorization_with_http_info(self, customer_id, account_id, **kwargs :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureTokenCredentialRequestModel body: + :param UpdateRequestAzureTokenCredentialRequestModel request: :return: AzureAuthorizationResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -302,12 +303,12 @@ def request_authorization_with_http_info(self, customer_id, account_id, **kwargs params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `request_authorization`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `request_authorization`") # noqa: E501 collection_formats = {} @@ -326,8 +327,8 @@ def request_authorization_with_http_info(self, customer_id, account_id, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/azure_credentials_api.py b/cloudcheckr_cmx_client/api/azure_credentials_api.py index 278d74f..667184c 100644 --- a/cloudcheckr_cmx_client/api/azure_credentials_api.py +++ b/cloudcheckr_cmx_client/api/azure_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -43,7 +44,7 @@ def modify_azure_enterprise_agreement_credentials(self, customer_id, account_id, :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureEnterpriseAgreementCredentialRequestModel body: + :param UpdateRequestAzureEnterpriseAgreementCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. @@ -66,13 +67,13 @@ def modify_azure_enterprise_agreement_credentials_with_http_info(self, customer_ :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureEnterpriseAgreementCredentialRequestModel body: + :param UpdateRequestAzureEnterpriseAgreementCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,12 +89,12 @@ def modify_azure_enterprise_agreement_credentials_with_http_info(self, customer_ params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `modify_azure_enterprise_agreement_credentials`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `modify_azure_enterprise_agreement_credentials`") # noqa: E501 collection_formats = {} @@ -112,8 +113,8 @@ def modify_azure_enterprise_agreement_credentials_with_http_info(self, customer_ local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -152,7 +153,7 @@ def modify_azure_subscription_credentials(self, customer_id, account_id, **kwarg :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureSubscriptionCredentialRequestModel body: + :param UpdateRequestAzureSubscriptionCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. @@ -175,13 +176,13 @@ def modify_azure_subscription_credentials_with_http_info(self, customer_id, acco :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureSubscriptionCredentialRequestModel body: + :param UpdateRequestAzureSubscriptionCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -197,12 +198,12 @@ def modify_azure_subscription_credentials_with_http_info(self, customer_id, acco params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `modify_azure_subscription_credentials`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `modify_azure_subscription_credentials`") # noqa: E501 collection_formats = {} @@ -221,8 +222,8 @@ def modify_azure_subscription_credentials_with_http_info(self, customer_id, acco local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -261,7 +262,7 @@ def request_csp_authorization(self, customer_id, account_id, **kwargs): # noqa: :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureCspAuthorizationRequestModel body: + :param UpdateRequestAzureCspAuthorizationRequestModel request: :return: AzureAuthorizationResponseModel If the method is called asynchronously, returns the request thread. @@ -284,13 +285,13 @@ def request_csp_authorization_with_http_info(self, customer_id, account_id, **kw :param async_req bool :param str customer_id: (required) :param str account_id: (required) - :param UpdateRequestAzureCspAuthorizationRequestModel body: + :param UpdateRequestAzureCspAuthorizationRequestModel request: :return: AzureAuthorizationResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -306,12 +307,12 @@ def request_csp_authorization_with_http_info(self, customer_id, account_id, **kw params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `request_csp_authorization`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `request_csp_authorization`") # noqa: E501 collection_formats = {} @@ -330,8 +331,8 @@ def request_csp_authorization_with_http_info(self, customer_id, account_id, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/client_access_keys_api.py b/cloudcheckr_cmx_client/api/client_access_keys_api.py index 319758e..0c4ebd1 100644 --- a/cloudcheckr_cmx_client/api/client_access_keys_api.py +++ b/cloudcheckr_cmx_client/api/client_access_keys_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,9 +42,9 @@ def create_client_access_key(self, customer_id, client_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) - :param CreateRequestClientAccessKeyRequestModel body: This includes the settings to create the new client Access Key. + :param str customer_id: (required) + :param str client_id: (required) + :param CreateRequestClientAccessKeyRequestModel request: This includes the settings to create the new client Access Key. :return: NewClientAccessInfo If the method is called asynchronously, returns the request thread. @@ -64,15 +65,15 @@ def create_client_access_key_with_http_info(self, customer_id, client_id, **kwar >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) - :param CreateRequestClientAccessKeyRequestModel body: This includes the settings to create the new client Access Key. + :param str customer_id: (required) + :param str client_id: (required) + :param CreateRequestClientAccessKeyRequestModel request: This includes the settings to create the new client Access Key. :return: NewClientAccessInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'client_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'client_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,12 +89,12 @@ def create_client_access_key_with_http_info(self, customer_id, client_id, **kwar params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_client_access_key`") # noqa: E501 # verify the required parameter 'client_id' is set - if ('client_id' not in params or - params['client_id'] is None): + if self.api_client.client_side_validation and ('client_id' not in params or + params['client_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `client_id` when calling `create_client_access_key`") # noqa: E501 collection_formats = {} @@ -112,8 +113,8 @@ def create_client_access_key_with_http_info(self, customer_id, client_id, **kwar local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -150,9 +151,9 @@ def delete_client_access_key(self, customer_id, client_id, access_key_id, **kwar >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) - :param str access_key_id: (required) + :param str customer_id: (required) + :param str client_id: (required) + :param str access_key_id: (required) :return: ClientAccessKeyResponseModel If the method is called asynchronously, returns the request thread. @@ -173,9 +174,9 @@ def delete_client_access_key_with_http_info(self, customer_id, client_id, access >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) - :param str access_key_id: (required) + :param str customer_id: (required) + :param str client_id: (required) + :param str access_key_id: (required) :return: ClientAccessKeyResponseModel If the method is called asynchronously, returns the request thread. @@ -197,16 +198,16 @@ def delete_client_access_key_with_http_info(self, customer_id, client_id, access params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_client_access_key`") # noqa: E501 # verify the required parameter 'client_id' is set - if ('client_id' not in params or - params['client_id'] is None): + if self.api_client.client_side_validation and ('client_id' not in params or + params['client_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `client_id` when calling `delete_client_access_key`") # noqa: E501 # verify the required parameter 'access_key_id' is set - if ('access_key_id' not in params or - params['access_key_id'] is None): + if self.api_client.client_side_validation and ('access_key_id' not in params or + params['access_key_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `access_key_id` when calling `delete_client_access_key`") # noqa: E501 collection_formats = {} @@ -259,8 +260,8 @@ def list_client_access_keys(self, customer_id, client_id, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) + :param str customer_id: (required) + :param str client_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -285,8 +286,8 @@ def list_client_access_keys_with_http_info(self, customer_id, client_id, **kwarg >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) + :param str customer_id: (required) + :param str client_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -312,12 +313,12 @@ def list_client_access_keys_with_http_info(self, customer_id, client_id, **kwarg params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_client_access_keys`") # noqa: E501 # verify the required parameter 'client_id' is set - if ('client_id' not in params or - params['client_id'] is None): + if self.api_client.client_side_validation and ('client_id' not in params or + params['client_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `client_id` when calling `list_client_access_keys`") # noqa: E501 collection_formats = {} diff --git a/cloudcheckr_cmx_client/api/clients_api.py b/cloudcheckr_cmx_client/api/clients_api.py index bcc212e..20d767e 100644 --- a/cloudcheckr_cmx_client/api/clients_api.py +++ b/cloudcheckr_cmx_client/api/clients_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ def create_client(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestClientCreateRequestModel body: This includes the settings to create the new client. + :param str customer_id: (required) + :param CreateRequestClientCreateRequestModel request: This includes the settings to create the new client. :return: ClientResponseModel If the method is called asynchronously, returns the request thread. @@ -63,14 +64,14 @@ def create_client_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestClientCreateRequestModel body: This includes the settings to create the new client. + :param str customer_id: (required) + :param CreateRequestClientCreateRequestModel request: This includes the settings to create the new client. :return: ClientResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -86,8 +87,8 @@ def create_client_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_client`") # noqa: E501 collection_formats = {} @@ -104,8 +105,8 @@ def create_client_with_http_info(self, customer_id, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -142,8 +143,8 @@ def delete_client(self, customer_id, client_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) + :param str customer_id: (required) + :param str client_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -164,8 +165,8 @@ def delete_client_with_http_info(self, customer_id, client_id, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) + :param str customer_id: (required) + :param str client_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -187,12 +188,12 @@ def delete_client_with_http_info(self, customer_id, client_id, **kwargs): # noq params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_client`") # noqa: E501 # verify the required parameter 'client_id' is set - if ('client_id' not in params or - params['client_id'] is None): + if self.api_client.client_side_validation and ('client_id' not in params or + params['client_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `client_id` when calling `delete_client`") # noqa: E501 collection_formats = {} @@ -211,10 +212,6 @@ def delete_client_with_http_info(self, customer_id, client_id, **kwargs): # noq local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - # Authentication setting auth_settings = ['oauth'] # noqa: E501 @@ -243,8 +240,8 @@ def get_client(self, customer_id, client_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) + :param str customer_id: (required) + :param str client_id: (required) :return: ClientResponseModel If the method is called asynchronously, returns the request thread. @@ -265,8 +262,8 @@ def get_client_with_http_info(self, customer_id, client_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) + :param str customer_id: (required) + :param str client_id: (required) :return: ClientResponseModel If the method is called asynchronously, returns the request thread. @@ -288,12 +285,12 @@ def get_client_with_http_info(self, customer_id, client_id, **kwargs): # noqa: params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_client`") # noqa: E501 # verify the required parameter 'client_id' is set - if ('client_id' not in params or - params['client_id'] is None): + if self.api_client.client_side_validation and ('client_id' not in params or + params['client_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `client_id` when calling `get_client`") # noqa: E501 collection_formats = {} @@ -344,7 +341,7 @@ def list_clients(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -370,7 +367,7 @@ def list_clients_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -397,8 +394,8 @@ def list_clients_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_clients`") # noqa: E501 collection_formats = {} @@ -457,9 +454,9 @@ def update_client(self, customer_id, client_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) - :param UpdateRequestClientRequestModel body: + :param str customer_id: (required) + :param str client_id: (required) + :param UpdateRequestClientRequestModel request: :return: ClientResponseModel If the method is called asynchronously, returns the request thread. @@ -480,15 +477,15 @@ def update_client_with_http_info(self, customer_id, client_id, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str client_id: (required) - :param UpdateRequestClientRequestModel body: + :param str customer_id: (required) + :param str client_id: (required) + :param UpdateRequestClientRequestModel request: :return: ClientResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'client_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'client_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -504,12 +501,12 @@ def update_client_with_http_info(self, customer_id, client_id, **kwargs): # noq params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_client`") # noqa: E501 # verify the required parameter 'client_id' is set - if ('client_id' not in params or - params['client_id'] is None): + if self.api_client.client_side_validation and ('client_id' not in params or + params['client_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `client_id` when calling `update_client`") # noqa: E501 collection_formats = {} @@ -528,8 +525,8 @@ def update_client_with_http_info(self, customer_id, client_id, **kwargs): # noq local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/credentials_api.py b/cloudcheckr_cmx_client/api/credentials_api.py index 5e3d509..647f3f1 100644 --- a/cloudcheckr_cmx_client/api/credentials_api.py +++ b/cloudcheckr_cmx_client/api/credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ def get_account_credentials(self, customer_id, account_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: CredentialsResponseModel If the method is called asynchronously, returns the request thread. @@ -63,8 +64,8 @@ def get_account_credentials_with_http_info(self, customer_id, account_id, **kwar >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) + :param str customer_id: (required) + :param str account_id: (required) :return: CredentialsResponseModel If the method is called asynchronously, returns the request thread. @@ -86,12 +87,12 @@ def get_account_credentials_with_http_info(self, customer_id, account_id, **kwar params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_account_credentials`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `get_account_credentials`") # noqa: E501 collection_formats = {} @@ -132,96 +133,3 @@ def get_account_credentials_with_http_info(self, customer_id, account_id, **kwar _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def get_customer_credentials(self, customer_id, **kwargs): # noqa: E501 - """Get all credentials configured on the customer. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_customer_credentials(customer_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str customer_id: (required) - :return: CredentialsResponseModel - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_customer_credentials_with_http_info(customer_id, **kwargs) # noqa: E501 - else: - (data) = self.get_customer_credentials_with_http_info(customer_id, **kwargs) # noqa: E501 - return data - - def get_customer_credentials_with_http_info(self, customer_id, **kwargs): # noqa: E501 - """Get all credentials configured on the customer. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_customer_credentials_with_http_info(customer_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str customer_id: (required) - :return: CredentialsResponseModel - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['customer_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_customer_credentials" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): - raise ValueError("Missing the required parameter `customer_id` when calling `get_customer_credentials`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'customer_id' in params: - path_params['customerId'] = params['customer_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['oauth'] # noqa: E501 - - return self.api_client.call_api( - '/credential/v1/customers/{customerId}/credentials', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='CredentialsResponseModel', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/cloudcheckr_cmx_client/api/custom_theme_settings_api.py b/cloudcheckr_cmx_client/api/custom_theme_settings_api.py index 50c6330..772e797 100644 --- a/cloudcheckr_cmx_client/api/custom_theme_settings_api.py +++ b/cloudcheckr_cmx_client/api/custom_theme_settings_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -126,8 +127,8 @@ def update_custom_theme_settings(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param UpdateRequestCustomThemeRequestModel body: + :param str customer_id: (required) + :param UpdateRequestCustomThemeRequestModel request: :return: CustomThemeResponseModel If the method is called asynchronously, returns the request thread. @@ -148,14 +149,14 @@ def update_custom_theme_settings_with_http_info(self, customer_id, **kwargs): # >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param UpdateRequestCustomThemeRequestModel body: + :param str customer_id: (required) + :param UpdateRequestCustomThemeRequestModel request: :return: CustomThemeResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -171,8 +172,8 @@ def update_custom_theme_settings_with_http_info(self, customer_id, **kwargs): # params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_custom_theme_settings`") # noqa: E501 collection_formats = {} @@ -189,8 +190,8 @@ def update_custom_theme_settings_with_http_info(self, customer_id, **kwargs): # local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/customers_api.py b/cloudcheckr_cmx_client/api/customers_api.py index f9ec4fe..894645b 100644 --- a/cloudcheckr_cmx_client/api/customers_api.py +++ b/cloudcheckr_cmx_client/api/customers_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -32,6 +33,192 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def create_customer(self, **kwargs): # noqa: E501 + """Create a customer. Customer is not available for immediate use. Customer will be available once necessary back-end processing has been completed. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_customer(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateRequestCustomerRequestModel request: + :return: CustomerResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_customer_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.create_customer_with_http_info(**kwargs) # noqa: E501 + return data + + def create_customer_with_http_info(self, **kwargs): # noqa: E501 + """Create a customer. Customer is not available for immediate use. Customer will be available once necessary back-end processing has been completed. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_customer_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateRequestCustomerRequestModel request: + :return: CustomerResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_customer" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'text/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/customer/v1/customers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CustomerResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_customer(self, customer_id, **kwargs): # noqa: E501 + """Delete a customer. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_customer(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :return: CustomerResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_customer_with_http_info(customer_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_customer_with_http_info(customer_id, **kwargs) # noqa: E501 + return data + + def delete_customer_with_http_info(self, customer_id, **kwargs): # noqa: E501 + """Delete a customer. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_customer_with_http_info(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :return: CustomerResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_customer" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `delete_customer`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'text/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/customer/v1/customers/{customerId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CustomerResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_customer(self, customer_id, **kwargs): # noqa: E501 """Get an individual customer. # noqa: E501 @@ -84,8 +271,8 @@ def get_customer_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_customer`") # noqa: E501 collection_formats = {} @@ -229,3 +416,104 @@ def list_customers_with_http_info(self, **kwargs): # noqa: E501 _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def update_customer(self, customer_id, **kwargs): # noqa: E501 + """Update a customer. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_customer(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param UpdateRequestCustomerUpdateRequestModel request: + :return: CustomerResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_customer_with_http_info(customer_id, **kwargs) # noqa: E501 + else: + (data) = self.update_customer_with_http_info(customer_id, **kwargs) # noqa: E501 + return data + + def update_customer_with_http_info(self, customer_id, **kwargs): # noqa: E501 + """Update a customer. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_customer_with_http_info(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param UpdateRequestCustomerUpdateRequestModel request: + :return: CustomerResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_customer" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `update_customer`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'text/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/customer/v1/customers/{customerId}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CustomerResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudcheckr_cmx_client/api/google_credentials_api.py b/cloudcheckr_cmx_client/api/google_credentials_api.py index 6a9933a..2db7556 100644 --- a/cloudcheckr_cmx_client/api/google_credentials_api.py +++ b/cloudcheckr_cmx_client/api/google_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,9 +42,9 @@ def modify_google_credential(self, customer_id, account_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestGoogleCredentialRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestGoogleCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. @@ -64,15 +65,15 @@ def modify_google_credential_with_http_info(self, customer_id, account_id, **kwa >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str account_id: (required) - :param UpdateRequestGoogleCredentialRequestModel body: + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestGoogleCredentialRequestModel request: :return: CredentialResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'account_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,12 +89,12 @@ def modify_google_credential_with_http_info(self, customer_id, account_id, **kwa params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `modify_google_credential`") # noqa: E501 # verify the required parameter 'account_id' is set - if ('account_id' not in params or - params['account_id'] is None): + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_id` when calling `modify_google_credential`") # noqa: E501 collection_formats = {} @@ -112,8 +113,8 @@ def modify_google_credential_with_http_info(self, customer_id, account_id, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/permission_sets_api.py b/cloudcheckr_cmx_client/api/permission_sets_api.py index dd9f62b..2bc159f 100644 --- a/cloudcheckr_cmx_client/api/permission_sets_api.py +++ b/cloudcheckr_cmx_client/api/permission_sets_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ def create_permission_set(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestPermissionSetRequestModel body: + :param str customer_id: (required) + :param CreateRequestPermissionSetRequestModel request: :return: PermissionSetResponseModel If the method is called asynchronously, returns the request thread. @@ -63,14 +64,14 @@ def create_permission_set_with_http_info(self, customer_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestPermissionSetRequestModel body: + :param str customer_id: (required) + :param CreateRequestPermissionSetRequestModel request: :return: PermissionSetResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -86,8 +87,8 @@ def create_permission_set_with_http_info(self, customer_id, **kwargs): # noqa: params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_permission_set`") # noqa: E501 collection_formats = {} @@ -104,8 +105,8 @@ def create_permission_set_with_http_info(self, customer_id, **kwargs): # noqa: local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -142,8 +143,8 @@ def delete_permission_set(self, customer_id, permission_set_id, **kwargs): # no >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str permission_set_id: (required) + :param str customer_id: (required) + :param str permission_set_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -164,8 +165,8 @@ def delete_permission_set_with_http_info(self, customer_id, permission_set_id, * >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str permission_set_id: (required) + :param str customer_id: (required) + :param str permission_set_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -187,12 +188,12 @@ def delete_permission_set_with_http_info(self, customer_id, permission_set_id, * params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_permission_set`") # noqa: E501 # verify the required parameter 'permission_set_id' is set - if ('permission_set_id' not in params or - params['permission_set_id'] is None): + if self.api_client.client_side_validation and ('permission_set_id' not in params or + params['permission_set_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `permission_set_id` when calling `delete_permission_set`") # noqa: E501 collection_formats = {} @@ -298,8 +299,8 @@ def get_all_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_all`") # noqa: E501 collection_formats = {} @@ -360,8 +361,8 @@ def get_permission_set(self, customer_id, permission_set_id, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str permission_set_id: (required) + :param str customer_id: (required) + :param str permission_set_id: (required) :return: PermissionSetResponseModel If the method is called asynchronously, returns the request thread. @@ -382,8 +383,8 @@ def get_permission_set_with_http_info(self, customer_id, permission_set_id, **kw >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str permission_set_id: (required) + :param str customer_id: (required) + :param str permission_set_id: (required) :return: PermissionSetResponseModel If the method is called asynchronously, returns the request thread. @@ -405,12 +406,12 @@ def get_permission_set_with_http_info(self, customer_id, permission_set_id, **kw params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_permission_set`") # noqa: E501 # verify the required parameter 'permission_set_id' is set - if ('permission_set_id' not in params or - params['permission_set_id'] is None): + if self.api_client.client_side_validation and ('permission_set_id' not in params or + params['permission_set_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `permission_set_id` when calling `get_permission_set`") # noqa: E501 collection_formats = {} @@ -461,9 +462,9 @@ def update_permission_set(self, customer_id, permission_set_id, **kwargs): # no >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str permission_set_id: (required) - :param UpdateRequestPermissionSetRequestModel body: + :param str customer_id: (required) + :param str permission_set_id: (required) + :param UpdateRequestPermissionSetRequestModel request: :return: PermissionSetResponseModel If the method is called asynchronously, returns the request thread. @@ -484,15 +485,15 @@ def update_permission_set_with_http_info(self, customer_id, permission_set_id, * >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str permission_set_id: (required) - :param UpdateRequestPermissionSetRequestModel body: + :param str customer_id: (required) + :param str permission_set_id: (required) + :param UpdateRequestPermissionSetRequestModel request: :return: PermissionSetResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'permission_set_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'permission_set_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -508,12 +509,12 @@ def update_permission_set_with_http_info(self, customer_id, permission_set_id, * params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_permission_set`") # noqa: E501 # verify the required parameter 'permission_set_id' is set - if ('permission_set_id' not in params or - params['permission_set_id'] is None): + if self.api_client.client_side_validation and ('permission_set_id' not in params or + params['permission_set_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `permission_set_id` when calling `update_permission_set`") # noqa: E501 collection_formats = {} @@ -532,8 +533,8 @@ def update_permission_set_with_http_info(self, customer_id, permission_set_id, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/permissions_api.py b/cloudcheckr_cmx_client/api/permissions_api.py index 8f2d560..609bd1a 100644 --- a/cloudcheckr_cmx_client/api/permissions_api.py +++ b/cloudcheckr_cmx_client/api/permissions_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -90,8 +91,8 @@ def get_all_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_all`") # noqa: E501 collection_formats = {} diff --git a/cloudcheckr_cmx_client/api/roles_api.py b/cloudcheckr_cmx_client/api/roles_api.py index 7d7aca6..82bfcfa 100644 --- a/cloudcheckr_cmx_client/api/roles_api.py +++ b/cloudcheckr_cmx_client/api/roles_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ def create_role(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestRoleRequestModel body: + :param str customer_id: (required) + :param CreateRequestRoleRequestModel request: :return: RoleResponseModel If the method is called asynchronously, returns the request thread. @@ -63,14 +64,14 @@ def create_role_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestRoleRequestModel body: + :param str customer_id: (required) + :param CreateRequestRoleRequestModel request: :return: RoleResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -86,8 +87,8 @@ def create_role_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_role`") # noqa: E501 collection_formats = {} @@ -104,8 +105,8 @@ def create_role_with_http_info(self, customer_id, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -142,8 +143,8 @@ def delete_role(self, customer_id, role_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -164,8 +165,8 @@ def delete_role_with_http_info(self, customer_id, role_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -187,12 +188,12 @@ def delete_role_with_http_info(self, customer_id, role_id, **kwargs): # noqa: E params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_role`") # noqa: E501 # verify the required parameter 'role_id' is set - if ('role_id' not in params or - params['role_id'] is None): + if self.api_client.client_side_validation and ('role_id' not in params or + params['role_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `role_id` when calling `delete_role`") # noqa: E501 collection_formats = {} @@ -243,8 +244,8 @@ def get_all(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param list[str] role_ids: + :param str customer_id: (required) + :param list[str] role_ids: :param str search: finds all resources that match the specified value :param str owned_by: finds all resources owned by the specified entity. :param str action_type: determines which action is taken on a resource. @@ -271,8 +272,8 @@ def get_all_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param list[str] role_ids: + :param str customer_id: (required) + :param list[str] role_ids: :param str search: finds all resources that match the specified value :param str owned_by: finds all resources owned by the specified entity. :param str action_type: determines which action is taken on a resource. @@ -300,8 +301,8 @@ def get_all_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_all`") # noqa: E501 collection_formats = {} @@ -365,8 +366,8 @@ def get_role(self, customer_id, role_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :return: RoleResponseModel If the method is called asynchronously, returns the request thread. @@ -387,8 +388,8 @@ def get_role_with_http_info(self, customer_id, role_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :return: RoleResponseModel If the method is called asynchronously, returns the request thread. @@ -410,12 +411,12 @@ def get_role_with_http_info(self, customer_id, role_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_role`") # noqa: E501 # verify the required parameter 'role_id' is set - if ('role_id' not in params or - params['role_id'] is None): + if self.api_client.client_side_validation and ('role_id' not in params or + params['role_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `role_id` when calling `get_role`") # noqa: E501 collection_formats = {} @@ -466,8 +467,8 @@ def list_clients_with_role_id(self, customer_id, role_id, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -491,8 +492,8 @@ def list_clients_with_role_id_with_http_info(self, customer_id, role_id, **kwarg >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -517,12 +518,12 @@ def list_clients_with_role_id_with_http_info(self, customer_id, role_id, **kwarg params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_clients_with_role_id`") # noqa: E501 # verify the required parameter 'role_id' is set - if ('role_id' not in params or - params['role_id'] is None): + if self.api_client.client_side_validation and ('role_id' not in params or + params['role_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `role_id` when calling `list_clients_with_role_id`") # noqa: E501 collection_formats = {} @@ -579,8 +580,8 @@ def list_users_with_role_id(self, customer_id, role_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -604,8 +605,8 @@ def list_users_with_role_id_with_http_info(self, customer_id, role_id, **kwargs) >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) + :param str customer_id: (required) + :param str role_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -630,12 +631,12 @@ def list_users_with_role_id_with_http_info(self, customer_id, role_id, **kwargs) params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_users_with_role_id`") # noqa: E501 # verify the required parameter 'role_id' is set - if ('role_id' not in params or - params['role_id'] is None): + if self.api_client.client_side_validation and ('role_id' not in params or + params['role_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `role_id` when calling `list_users_with_role_id`") # noqa: E501 collection_formats = {} @@ -692,9 +693,9 @@ def modify_client_roles(self, customer_id, role_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) - :param ListModificationRequestModel body: + :param str customer_id: (required) + :param str role_id: (required) + :param ListModificationRequestModel request: :return: ListModificationResponseModel If the method is called asynchronously, returns the request thread. @@ -715,15 +716,15 @@ def modify_client_roles_with_http_info(self, customer_id, role_id, **kwargs): # >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) - :param ListModificationRequestModel body: + :param str customer_id: (required) + :param str role_id: (required) + :param ListModificationRequestModel request: :return: ListModificationResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'role_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'role_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -739,12 +740,12 @@ def modify_client_roles_with_http_info(self, customer_id, role_id, **kwargs): # params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `modify_client_roles`") # noqa: E501 # verify the required parameter 'role_id' is set - if ('role_id' not in params or - params['role_id'] is None): + if self.api_client.client_side_validation and ('role_id' not in params or + params['role_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `role_id` when calling `modify_client_roles`") # noqa: E501 collection_formats = {} @@ -763,8 +764,8 @@ def modify_client_roles_with_http_info(self, customer_id, role_id, **kwargs): # local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -801,9 +802,9 @@ def modify_user_roles(self, customer_id, role_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) - :param ListModificationRequestModel body: + :param str customer_id: (required) + :param str role_id: (required) + :param ListModificationRequestModel request: :return: ListModificationResponseModel If the method is called asynchronously, returns the request thread. @@ -824,15 +825,15 @@ def modify_user_roles_with_http_info(self, customer_id, role_id, **kwargs): # n >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) - :param ListModificationRequestModel body: + :param str customer_id: (required) + :param str role_id: (required) + :param ListModificationRequestModel request: :return: ListModificationResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'role_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'role_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -848,12 +849,12 @@ def modify_user_roles_with_http_info(self, customer_id, role_id, **kwargs): # n params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `modify_user_roles`") # noqa: E501 # verify the required parameter 'role_id' is set - if ('role_id' not in params or - params['role_id'] is None): + if self.api_client.client_side_validation and ('role_id' not in params or + params['role_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `role_id` when calling `modify_user_roles`") # noqa: E501 collection_formats = {} @@ -872,8 +873,8 @@ def modify_user_roles_with_http_info(self, customer_id, role_id, **kwargs): # n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -910,9 +911,9 @@ def update_role(self, customer_id, role_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) - :param UpdateRequestRoleRequestModel body: + :param str customer_id: (required) + :param str role_id: (required) + :param UpdateRequestRoleRequestModel request: :return: RoleResponseModel If the method is called asynchronously, returns the request thread. @@ -933,15 +934,15 @@ def update_role_with_http_info(self, customer_id, role_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str role_id: (required) - :param UpdateRequestRoleRequestModel body: + :param str customer_id: (required) + :param str role_id: (required) + :param UpdateRequestRoleRequestModel request: :return: RoleResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'role_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'role_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -957,12 +958,12 @@ def update_role_with_http_info(self, customer_id, role_id, **kwargs): # noqa: E params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_role`") # noqa: E501 # verify the required parameter 'role_id' is set - if ('role_id' not in params or - params['role_id'] is None): + if self.api_client.client_side_validation and ('role_id' not in params or + params['role_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `role_id` when calling `update_role`") # noqa: E501 collection_formats = {} @@ -981,8 +982,8 @@ def update_role_with_http_info(self, customer_id, role_id, **kwargs): # noqa: E local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/saml_provider_rules_api.py b/cloudcheckr_cmx_client/api/saml_provider_rules_api.py index 97fa5cc..19d2a50 100644 --- a/cloudcheckr_cmx_client/api/saml_provider_rules_api.py +++ b/cloudcheckr_cmx_client/api/saml_provider_rules_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,9 +42,9 @@ def create_saml_provider_rule(self, customer_id, saml_provider_id, **kwargs): # >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param CreateRequestSamlProviderRuleRequestModel body: + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param CreateRequestSamlProviderRuleRequestModel request: :return: SamlProviderRuleResponseModel If the method is called asynchronously, returns the request thread. @@ -64,15 +65,15 @@ def create_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param CreateRequestSamlProviderRuleRequestModel body: + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param CreateRequestSamlProviderRuleRequestModel request: :return: SamlProviderRuleResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'saml_provider_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'saml_provider_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -88,12 +89,12 @@ def create_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_saml_provider_rule`") # noqa: E501 # verify the required parameter 'saml_provider_id' is set - if ('saml_provider_id' not in params or - params['saml_provider_id'] is None): + if self.api_client.client_side_validation and ('saml_provider_id' not in params or + params['saml_provider_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `saml_provider_id` when calling `create_saml_provider_rule`") # noqa: E501 collection_formats = {} @@ -112,8 +113,8 @@ def create_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -150,9 +151,9 @@ def delete_saml_provider_rule(self, customer_id, saml_provider_id, rule_id, **kw >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param str rule_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param str rule_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -173,9 +174,9 @@ def delete_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param str rule_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param str rule_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -197,16 +198,16 @@ def delete_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_saml_provider_rule`") # noqa: E501 # verify the required parameter 'saml_provider_id' is set - if ('saml_provider_id' not in params or - params['saml_provider_id'] is None): + if self.api_client.client_side_validation and ('saml_provider_id' not in params or + params['saml_provider_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `saml_provider_id` when calling `delete_saml_provider_rule`") # noqa: E501 # verify the required parameter 'rule_id' is set - if ('rule_id' not in params or - params['rule_id'] is None): + if self.api_client.client_side_validation and ('rule_id' not in params or + params['rule_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `rule_id` when calling `delete_saml_provider_rule`") # noqa: E501 collection_formats = {} @@ -227,10 +228,6 @@ def delete_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - # Authentication setting auth_settings = ['oauth'] # noqa: E501 @@ -259,8 +256,8 @@ def list_saml_provider_rules(self, customer_id, saml_provider_id, **kwargs): # >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :return: PaginationWithCountResponseSamlProviderRuleResponseModel @@ -283,8 +280,8 @@ def list_saml_provider_rules_with_http_info(self, customer_id, saml_provider_id, >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :return: PaginationWithCountResponseSamlProviderRuleResponseModel @@ -308,12 +305,12 @@ def list_saml_provider_rules_with_http_info(self, customer_id, saml_provider_id, params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_saml_provider_rules`") # noqa: E501 # verify the required parameter 'saml_provider_id' is set - if ('saml_provider_id' not in params or - params['saml_provider_id'] is None): + if self.api_client.client_side_validation and ('saml_provider_id' not in params or + params['saml_provider_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `saml_provider_id` when calling `list_saml_provider_rules`") # noqa: E501 collection_formats = {} @@ -368,10 +365,10 @@ def update_saml_provider_rule(self, customer_id, saml_provider_id, rule_id, **kw >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param str rule_id: (required) - :param UpdateRequestSamlProviderRuleRequestModel body: + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param str rule_id: (required) + :param UpdateRequestSamlProviderRuleRequestModel request: :return: SamlProviderRuleResponseModel If the method is called asynchronously, returns the request thread. @@ -392,16 +389,16 @@ def update_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param str rule_id: (required) - :param UpdateRequestSamlProviderRuleRequestModel body: + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param str rule_id: (required) + :param UpdateRequestSamlProviderRuleRequestModel request: :return: SamlProviderRuleResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'saml_provider_id', 'rule_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'saml_provider_id', 'rule_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -417,16 +414,16 @@ def update_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_saml_provider_rule`") # noqa: E501 # verify the required parameter 'saml_provider_id' is set - if ('saml_provider_id' not in params or - params['saml_provider_id'] is None): + if self.api_client.client_side_validation and ('saml_provider_id' not in params or + params['saml_provider_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `saml_provider_id` when calling `update_saml_provider_rule`") # noqa: E501 # verify the required parameter 'rule_id' is set - if ('rule_id' not in params or - params['rule_id'] is None): + if self.api_client.client_side_validation and ('rule_id' not in params or + params['rule_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `rule_id` when calling `update_saml_provider_rule`") # noqa: E501 collection_formats = {} @@ -447,8 +444,8 @@ def update_saml_provider_rule_with_http_info(self, customer_id, saml_provider_id local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/saml_providers_api.py b/cloudcheckr_cmx_client/api/saml_providers_api.py index 4edd2ea..97d4d01 100644 --- a/cloudcheckr_cmx_client/api/saml_providers_api.py +++ b/cloudcheckr_cmx_client/api/saml_providers_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ def create_saml_provider(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestSamlProviderRequestModel body: + :param str customer_id: (required) + :param CreateRequestSamlProviderRequestModel request: :return: SamlProviderResponseDetailModel If the method is called asynchronously, returns the request thread. @@ -63,14 +64,14 @@ def create_saml_provider_with_http_info(self, customer_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestSamlProviderRequestModel body: + :param str customer_id: (required) + :param CreateRequestSamlProviderRequestModel request: :return: SamlProviderResponseDetailModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -86,8 +87,8 @@ def create_saml_provider_with_http_info(self, customer_id, **kwargs): # noqa: E params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_saml_provider`") # noqa: E501 collection_formats = {} @@ -104,8 +105,8 @@ def create_saml_provider_with_http_info(self, customer_id, **kwargs): # noqa: E local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -142,8 +143,8 @@ def delete_saml_provider(self, customer_id, saml_provider_id, **kwargs): # noqa >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -164,8 +165,8 @@ def delete_saml_provider_with_http_info(self, customer_id, saml_provider_id, **k >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -187,12 +188,12 @@ def delete_saml_provider_with_http_info(self, customer_id, saml_provider_id, **k params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_saml_provider`") # noqa: E501 # verify the required parameter 'saml_provider_id' is set - if ('saml_provider_id' not in params or - params['saml_provider_id'] is None): + if self.api_client.client_side_validation and ('saml_provider_id' not in params or + params['saml_provider_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `saml_provider_id` when calling `delete_saml_provider`") # noqa: E501 collection_formats = {} @@ -211,10 +212,6 @@ def delete_saml_provider_with_http_info(self, customer_id, saml_provider_id, **k local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - # Authentication setting auth_settings = ['oauth'] # noqa: E501 @@ -243,8 +240,8 @@ def get_saml_provider(self, customer_id, saml_provider_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) :return: SamlProviderResponseDetailModel If the method is called asynchronously, returns the request thread. @@ -265,8 +262,8 @@ def get_saml_provider_with_http_info(self, customer_id, saml_provider_id, **kwar >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) + :param str customer_id: (required) + :param str saml_provider_id: (required) :return: SamlProviderResponseDetailModel If the method is called asynchronously, returns the request thread. @@ -288,12 +285,12 @@ def get_saml_provider_with_http_info(self, customer_id, saml_provider_id, **kwar params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_saml_provider`") # noqa: E501 # verify the required parameter 'saml_provider_id' is set - if ('saml_provider_id' not in params or - params['saml_provider_id'] is None): + if self.api_client.client_side_validation and ('saml_provider_id' not in params or + params['saml_provider_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `saml_provider_id` when calling `get_saml_provider`") # noqa: E501 collection_formats = {} @@ -344,7 +341,7 @@ def list_saml_providers(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -369,7 +366,7 @@ def list_saml_providers_with_http_info(self, customer_id, **kwargs): # noqa: E5 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -395,8 +392,8 @@ def list_saml_providers_with_http_info(self, customer_id, **kwargs): # noqa: E5 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_saml_providers`") # noqa: E501 collection_formats = {} @@ -453,9 +450,9 @@ def update_saml_provider(self, customer_id, saml_provider_id, **kwargs): # noqa >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param UpdateRequestSamlProviderRequestModel body: + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param UpdateRequestSamlProviderRequestModel request: :return: SamlProviderResponseDetailModel If the method is called asynchronously, returns the request thread. @@ -476,15 +473,15 @@ def update_saml_provider_with_http_info(self, customer_id, saml_provider_id, **k >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str saml_provider_id: (required) - :param UpdateRequestSamlProviderRequestModel body: + :param str customer_id: (required) + :param str saml_provider_id: (required) + :param UpdateRequestSamlProviderRequestModel request: :return: SamlProviderResponseDetailModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'saml_provider_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'saml_provider_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -500,12 +497,12 @@ def update_saml_provider_with_http_info(self, customer_id, saml_provider_id, **k params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_saml_provider`") # noqa: E501 # verify the required parameter 'saml_provider_id' is set - if ('saml_provider_id' not in params or - params['saml_provider_id'] is None): + if self.api_client.client_side_validation and ('saml_provider_id' not in params or + params['saml_provider_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `saml_provider_id` when calling `update_saml_provider`") # noqa: E501 collection_formats = {} @@ -524,8 +521,8 @@ def update_saml_provider_with_http_info(self, customer_id, saml_provider_id, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/token_management_api.py b/cloudcheckr_cmx_client/api/token_management_api.py index f77cdea..d0bb670 100644 --- a/cloudcheckr_cmx_client/api/token_management_api.py +++ b/cloudcheckr_cmx_client/api/token_management_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,7 +42,7 @@ def exchange_token_for_delegate_access_token(self, customer_id, **kwargs): # no >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :return: TokenResponse If the method is called asynchronously, returns the request thread. @@ -62,7 +63,7 @@ def exchange_token_for_delegate_access_token_with_http_info(self, customer_id, * >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :return: TokenResponse If the method is called asynchronously, returns the request thread. @@ -84,8 +85,8 @@ def exchange_token_for_delegate_access_token_with_http_info(self, customer_id, * params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `exchange_token_for_delegate_access_token`") # noqa: E501 collection_formats = {} diff --git a/cloudcheckr_cmx_client/api/user_level_access_api.py b/cloudcheckr_cmx_client/api/user_level_access_api.py index eba3dc9..05c15ce 100644 --- a/cloudcheckr_cmx_client/api/user_level_access_api.py +++ b/cloudcheckr_cmx_client/api/user_level_access_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ def get_user_level_access(self, customer_id, user_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: UserLevelAccessResponseModel If the method is called asynchronously, returns the request thread. @@ -63,8 +64,8 @@ def get_user_level_access_with_http_info(self, customer_id, user_id, **kwargs): >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: UserLevelAccessResponseModel If the method is called asynchronously, returns the request thread. @@ -86,12 +87,12 @@ def get_user_level_access_with_http_info(self, customer_id, user_id, **kwargs): params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_user_level_access`") # noqa: E501 # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): + if self.api_client.client_side_validation and ('user_id' not in params or + params['user_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `user_id` when calling `get_user_level_access`") # noqa: E501 collection_formats = {} @@ -142,9 +143,9 @@ def update_user_level_access(self, customer_id, user_id, **kwargs): # noqa: E50 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) - :param UpdateRequestUserLevelAccessRequestModel body: + :param str customer_id: (required) + :param str user_id: (required) + :param UpdateRequestUserLevelAccessRequestModel request: :return: UserLevelAccessResponseModel If the method is called asynchronously, returns the request thread. @@ -165,15 +166,15 @@ def update_user_level_access_with_http_info(self, customer_id, user_id, **kwargs >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) - :param UpdateRequestUserLevelAccessRequestModel body: + :param str customer_id: (required) + :param str user_id: (required) + :param UpdateRequestUserLevelAccessRequestModel request: :return: UserLevelAccessResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'user_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'user_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -189,12 +190,12 @@ def update_user_level_access_with_http_info(self, customer_id, user_id, **kwargs params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_user_level_access`") # noqa: E501 # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): + if self.api_client.client_side_validation and ('user_id' not in params or + params['user_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `user_id` when calling `update_user_level_access`") # noqa: E501 collection_formats = {} @@ -213,8 +214,8 @@ def update_user_level_access_with_http_info(self, customer_id, user_id, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api/users_api.py b/cloudcheckr_cmx_client/api/users_api.py index f6b6e94..f16df11 100644 --- a/cloudcheckr_cmx_client/api/users_api.py +++ b/cloudcheckr_cmx_client/api/users_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ def create_user(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestUserRequestModel body: + :param str customer_id: (required) + :param CreateRequestUserRequestModel request: :return: UserResponseModel If the method is called asynchronously, returns the request thread. @@ -63,14 +64,14 @@ def create_user_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param CreateRequestUserRequestModel body: + :param str customer_id: (required) + :param CreateRequestUserRequestModel request: :return: UserResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -86,8 +87,8 @@ def create_user_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `create_user`") # noqa: E501 collection_formats = {} @@ -104,8 +105,8 @@ def create_user_with_http_info(self, customer_id, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 @@ -142,8 +143,8 @@ def delete_user(self, customer_id, user_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -164,8 +165,8 @@ def delete_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -187,12 +188,12 @@ def delete_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `delete_user`") # noqa: E501 # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): + if self.api_client.client_side_validation and ('user_id' not in params or + params['user_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `user_id` when calling `delete_user`") # noqa: E501 collection_formats = {} @@ -211,10 +212,6 @@ def delete_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - # Authentication setting auth_settings = ['oauth'] # noqa: E501 @@ -243,8 +240,8 @@ def get_user(self, customer_id, user_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: UserResponseModel If the method is called asynchronously, returns the request thread. @@ -265,8 +262,8 @@ def get_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: UserResponseModel If the method is called asynchronously, returns the request thread. @@ -288,12 +285,12 @@ def get_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `get_user`") # noqa: E501 # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): + if self.api_client.client_side_validation and ('user_id' not in params or + params['user_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `user_id` when calling `get_user`") # noqa: E501 collection_formats = {} @@ -344,7 +341,7 @@ def list_users(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -370,7 +367,7 @@ def list_users_with_http_info(self, customer_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) + :param str customer_id: (required) :param int page_size: number of items to include in the response :param str pagination_key: key used to fetch the next page of items :param str order_by: orders a given property @@ -397,8 +394,8 @@ def list_users_with_http_info(self, customer_id, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `list_users`") # noqa: E501 collection_formats = {} @@ -457,8 +454,8 @@ def send_activation(self, customer_id, user_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -479,8 +476,8 @@ def send_activation_with_http_info(self, customer_id, user_id, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) + :param str customer_id: (required) + :param str user_id: (required) :return: None If the method is called asynchronously, returns the request thread. @@ -502,12 +499,12 @@ def send_activation_with_http_info(self, customer_id, user_id, **kwargs): # noq params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `send_activation`") # noqa: E501 # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): + if self.api_client.client_side_validation and ('user_id' not in params or + params['user_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `user_id` when calling `send_activation`") # noqa: E501 collection_formats = {} @@ -558,9 +555,9 @@ def update_user(self, customer_id, user_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) - :param UpdateRequestUserRequestModel body: + :param str customer_id: (required) + :param str user_id: (required) + :param UpdateRequestUserRequestModel request: :return: UserResponseModel If the method is called asynchronously, returns the request thread. @@ -581,15 +578,15 @@ def update_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E >>> result = thread.get() :param async_req bool - :param str customer_id: (required) - :param str user_id: (required) - :param UpdateRequestUserRequestModel body: + :param str customer_id: (required) + :param str user_id: (required) + :param UpdateRequestUserRequestModel request: :return: UserResponseModel If the method is called asynchronously, returns the request thread. """ - all_params = ['customer_id', 'user_id', 'body'] # noqa: E501 + all_params = ['customer_id', 'user_id', 'request'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -605,12 +602,12 @@ def update_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E params[key] = val del params['kwargs'] # verify the required parameter 'customer_id' is set - if ('customer_id' not in params or - params['customer_id'] is None): + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `customer_id` when calling `update_user`") # noqa: E501 # verify the required parameter 'user_id' is set - if ('user_id' not in params or - params['user_id'] is None): + if self.api_client.client_side_validation and ('user_id' not in params or + params['user_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `user_id` when calling `update_user`") # noqa: E501 collection_formats = {} @@ -629,8 +626,8 @@ def update_user_with_http_info(self, customer_id, user_id, **kwargs): # noqa: E local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'request' in params: + body_params = params['request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 diff --git a/cloudcheckr_cmx_client/api_client.py b/cloudcheckr_cmx_client/api_client.py index e95968f..d2e44e1 100644 --- a/cloudcheckr_cmx_client/api_client.py +++ b/cloudcheckr_cmx_client/api_client.py @@ -8,6 +8,7 @@ Contact: support@cloudcheckr.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import datetime @@ -65,18 +66,27 @@ def __init__(self, configuration=None, header_name=None, header_value=None, configuration = Configuration() self.configuration = configuration - self.pool = ThreadPool() + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' + self.user_agent = 'Swagger-Codegen/1.0.2/python' + self.client_side_validation = configuration.client_side_validation def __del__(self): - self.pool.close() - self.pool.join() + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool @property def user_agent(self): @@ -524,7 +534,7 @@ def __deserialize_file(self, response): content_disposition).group(1) path = os.path.join(os.path.dirname(path), filename) - with open(path, "wb") as f: + with open(path, "w") as f: f.write(response.data) return path @@ -591,7 +601,7 @@ def __deserialize_datatime(self, string): ) def __hasattr(self, object, name): - return name in object.__class__.__dict__ + return name in object.__class__.__dict__ def __deserialize_model(self, data, klass): """Deserializes list or dict to model. @@ -601,7 +611,8 @@ def __deserialize_model(self, data, klass): :return: model object. """ - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): return data kwargs = {} diff --git a/cloudcheckr_cmx_client/configuration.py b/cloudcheckr_cmx_client/configuration.py index 75f7d97..6662299 100644 --- a/cloudcheckr_cmx_client/configuration.py +++ b/cloudcheckr_cmx_client/configuration.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import copy @@ -22,29 +23,22 @@ from six.moves import http_client as httplib -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): +class Configuration(object): """NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ + _default = None + def __init__(self): """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + # Default Base url self.host = "https://api-us.cloudcheckr.com" # Temp file folder for downloading files @@ -61,8 +55,10 @@ def __init__(self): self.username = "" # Password for HTTP basic authentication self.password = "" + # access token for OAuth self.access_token = "" + # Logging Settings self.logger = {} self.logger["package_logger"] = logging.getLogger("cloudcheckr_cmx_client") @@ -103,6 +99,13 @@ def __init__(self): # Safe chars for path_param self.safe_chars_for_path_param = '' + # Disable client side validation + self.client_side_validation = True + + @classmethod + def set_default(cls, default): + cls._default = default + @property def logger_file(self): """The logger file. @@ -205,6 +208,7 @@ def get_api_key_with_prefix(self, identifier): :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ + if self.refresh_api_key_hook: self.refresh_api_key_hook(self) @@ -221,9 +225,12 @@ def get_basic_auth_token(self): :return: The token for basic HTTP authentication. """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') + token = "" + if self.username or self.password: + token = urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + return token def auth_settings(self): """Gets Auth Settings dict for api client. @@ -231,6 +238,7 @@ def auth_settings(self): :return: The Auth Settings information dict. """ return { + 'oauth': { 'type': 'oauth2', @@ -238,6 +246,7 @@ def auth_settings(self): 'key': 'Authorization', 'value': 'Bearer ' + self.access_token }, + } def to_debug_report(self): @@ -249,5 +258,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 1.0.0".\ + "SDK Package Version: 1.0.2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/cloudcheckr_cmx_client/models/__init__.py b/cloudcheckr_cmx_client/models/__init__.py index 7114196..287fec4 100644 --- a/cloudcheckr_cmx_client/models/__init__.py +++ b/cloudcheckr_cmx_client/models/__init__.py @@ -11,6 +11,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import # import models into model package @@ -27,9 +28,10 @@ from cloudcheckr_cmx_client.models.account_group_search_response_model import AccountGroupSearchResponseModel from cloudcheckr_cmx_client.models.ancestor_model import AncestorModel from cloudcheckr_cmx_client.models.ancestors_response_model import AncestorsResponseModel +from cloudcheckr_cmx_client.models.applicable_account_info import ApplicableAccountInfo from cloudcheckr_cmx_client.models.application_model import ApplicationModel +from cloudcheckr_cmx_client.models.available_query_options_response_model import AvailableQueryOptionsResponseModel from cloudcheckr_cmx_client.models.aws_access_key_model import AwsAccessKeyModel -from cloudcheckr_cmx_client.models.aws_assume_role_credential_request_model import AwsAssumeRoleCredentialRequestModel from cloudcheckr_cmx_client.models.aws_credential_request_model import AwsCredentialRequestModel from cloudcheckr_cmx_client.models.aws_cross_account_role_model import AwsCrossAccountRoleModel from cloudcheckr_cmx_client.models.aws_cross_account_role_setup_response_model import AwsCrossAccountRoleSetupResponseModel @@ -42,6 +44,7 @@ from cloudcheckr_cmx_client.models.azure_token_credential_request_model import AzureTokenCredentialRequestModel from cloudcheckr_cmx_client.models.base_account_info import BaseAccountInfo from cloudcheckr_cmx_client.models.basic_request_list_modification import BasicRequestListModification +from cloudcheckr_cmx_client.models.basic_request_list_modification_provider import BasicRequestListModificationProvider from cloudcheckr_cmx_client.models.bulk_account_assignment_request_model import BulkAccountAssignmentRequestModel from cloudcheckr_cmx_client.models.bulk_account_assignment_response_model_account_assignment_response_model import BulkAccountAssignmentResponseModelAccountAssignmentResponseModel from cloudcheckr_cmx_client.models.bulk_account_assignment_response_model_account_attribute_assignment_response_model import BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel @@ -51,10 +54,25 @@ from cloudcheckr_cmx_client.models.client_create_request_model import ClientCreateRequestModel from cloudcheckr_cmx_client.models.client_request_model import ClientRequestModel from cloudcheckr_cmx_client.models.client_response_model import ClientResponseModel +from cloudcheckr_cmx_client.models.cost_aggregation_data_point import CostAggregationDataPoint +from cloudcheckr_cmx_client.models.cost_aggregation_download_response_model import CostAggregationDownloadResponseModel +from cloudcheckr_cmx_client.models.cost_aggregation_response_model import CostAggregationResponseModel +from cloudcheckr_cmx_client.models.cost_aggregation_summary_response_model import CostAggregationSummaryResponseModel +from cloudcheckr_cmx_client.models.cost_data_request_model import CostDataRequestModel +from cloudcheckr_cmx_client.models.cost_data_response_model import CostDataResponseModel +from cloudcheckr_cmx_client.models.cost_query_summary_response_model import CostQuerySummaryResponseModel +from cloudcheckr_cmx_client.models.costs import Costs +from cloudcheckr_cmx_client.models.create_cost_query_request_model import CreateCostQueryRequestModel from cloudcheckr_cmx_client.models.create_request_account_group_request_model import CreateRequestAccountGroupRequestModel from cloudcheckr_cmx_client.models.create_request_azure_billing_account_selection_request_model import CreateRequestAzureBillingAccountSelectionRequestModel from cloudcheckr_cmx_client.models.create_request_client_access_key_request_model import CreateRequestClientAccessKeyRequestModel from cloudcheckr_cmx_client.models.create_request_client_create_request_model import CreateRequestClientCreateRequestModel +from cloudcheckr_cmx_client.models.create_request_cost_data_request_model import CreateRequestCostDataRequestModel +from cloudcheckr_cmx_client.models.create_request_create_cost_query_request_model import CreateRequestCreateCostQueryRequestModel +from cloudcheckr_cmx_client.models.create_request_customer_request_model import CreateRequestCustomerRequestModel +from cloudcheckr_cmx_client.models.create_request_dashboard_panel_request_model import CreateRequestDashboardPanelRequestModel +from cloudcheckr_cmx_client.models.create_request_dashboard_request_model import CreateRequestDashboardRequestModel +from cloudcheckr_cmx_client.models.create_request_discount_data_request_model import CreateRequestDiscountDataRequestModel from cloudcheckr_cmx_client.models.create_request_general_account_request_model import CreateRequestGeneralAccountRequestModel from cloudcheckr_cmx_client.models.create_request_mav_request_model import CreateRequestMavRequestModel from cloudcheckr_cmx_client.models.create_request_permission_set_request_model import CreateRequestPermissionSetRequestModel @@ -69,35 +87,57 @@ from cloudcheckr_cmx_client.models.custom_theme_response_model import CustomThemeResponseModel from cloudcheckr_cmx_client.models.customer_account_basic_info import CustomerAccountBasicInfo from cloudcheckr_cmx_client.models.customer_account_modification import CustomerAccountModification +from cloudcheckr_cmx_client.models.customer_plan_request_model import CustomerPlanRequestModel from cloudcheckr_cmx_client.models.customer_plan_response_model import CustomerPlanResponseModel +from cloudcheckr_cmx_client.models.customer_request_model import CustomerRequestModel from cloudcheckr_cmx_client.models.customer_response_model import CustomerResponseModel +from cloudcheckr_cmx_client.models.customer_update_request_model import CustomerUpdateRequestModel +from cloudcheckr_cmx_client.models.dashboard_auth_info import DashboardAuthInfo +from cloudcheckr_cmx_client.models.dashboard_common_response_model import DashboardCommonResponseModel +from cloudcheckr_cmx_client.models.dashboard_panel_request_model import DashboardPanelRequestModel +from cloudcheckr_cmx_client.models.dashboard_panel_response_model import DashboardPanelResponseModel +from cloudcheckr_cmx_client.models.dashboard_request_model import DashboardRequestModel +from cloudcheckr_cmx_client.models.dashboard_response_model import DashboardResponseModel +from cloudcheckr_cmx_client.models.data_set_info import DataSetInfo +from cloudcheckr_cmx_client.models.datapoint import Datapoint from cloudcheckr_cmx_client.models.developer_info import DeveloperInfo +from cloudcheckr_cmx_client.models.dimension_value import DimensionValue +from cloudcheckr_cmx_client.models.discount_data_request_model import DiscountDataRequestModel +from cloudcheckr_cmx_client.models.discount_data_response_model import DiscountDataResponseModel from cloudcheckr_cmx_client.models.error import Error from cloudcheckr_cmx_client.models.error_response import ErrorResponse from cloudcheckr_cmx_client.models.general_account_request_model import GeneralAccountRequestModel from cloudcheckr_cmx_client.models.general_account_response_model import GeneralAccountResponseModel from cloudcheckr_cmx_client.models.google_credential_request_model import GoogleCredentialRequestModel +from cloudcheckr_cmx_client.models.grouping_option import GroupingOption +from cloudcheckr_cmx_client.models.landing_page_model import LandingPageModel from cloudcheckr_cmx_client.models.linked_aws_commercial_account_model import LinkedAwsCommercialAccountModel from cloudcheckr_cmx_client.models.list_modification_error import ListModificationError from cloudcheckr_cmx_client.models.list_modification_request_model import ListModificationRequestModel from cloudcheckr_cmx_client.models.list_modification_response_model import ListModificationResponseModel +from cloudcheckr_cmx_client.models.map_to_payer_credential_request_model import MapToPayerCredentialRequestModel from cloudcheckr_cmx_client.models.mapped_role_response_model import MappedRoleResponseModel from cloudcheckr_cmx_client.models.mav_request_model import MavRequestModel from cloudcheckr_cmx_client.models.mav_response_model import MavResponseModel from cloudcheckr_cmx_client.models.minimal_client_response_model import MinimalClientResponseModel from cloudcheckr_cmx_client.models.minimal_user_response_model import MinimalUserResponseModel from cloudcheckr_cmx_client.models.new_client_access_info import NewClientAccessInfo +from cloudcheckr_cmx_client.models.new_query_response_model import NewQueryResponseModel from cloudcheckr_cmx_client.models.pagination_info import PaginationInfo from cloudcheckr_cmx_client.models.pagination_response_account_attribute_response_model import PaginationResponseAccountAttributeResponseModel from cloudcheckr_cmx_client.models.pagination_response_azure_billing_account_response_model import PaginationResponseAzureBillingAccountResponseModel +from cloudcheckr_cmx_client.models.pagination_response_dashboard_common_response_model import PaginationResponseDashboardCommonResponseModel from cloudcheckr_cmx_client.models.pagination_response_permission_set_response_model import PaginationResponsePermissionSetResponseModel from cloudcheckr_cmx_client.models.pagination_response_role_response_model import PaginationResponseRoleResponseModel +from cloudcheckr_cmx_client.models.pagination_response_tag_key_response_model import PaginationResponseTagKeyResponseModel +from cloudcheckr_cmx_client.models.pagination_response_tag_value_response_model import PaginationResponseTagValueResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_account_group_hierarchy_response_model import PaginationWithCountResponseAccountGroupHierarchyResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_account_group_response_model import PaginationWithCountResponseAccountGroupResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_account_group_search_response_model import PaginationWithCountResponseAccountGroupSearchResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_client_access_key_response_model import PaginationWithCountResponseClientAccessKeyResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_client_response_model import PaginationWithCountResponseClientResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_customer_response_model import PaginationWithCountResponseCustomerResponseModel +from cloudcheckr_cmx_client.models.pagination_with_count_response_dimension_value import PaginationWithCountResponseDimensionValue from cloudcheckr_cmx_client.models.pagination_with_count_response_general_account_response_model import PaginationWithCountResponseGeneralAccountResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_mav_response_model import PaginationWithCountResponseMavResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_minimal_client_response_model import PaginationWithCountResponseMinimalClientResponseModel @@ -107,6 +147,7 @@ from cloudcheckr_cmx_client.models.pagination_with_count_response_referenced_account_response_model import PaginationWithCountResponseReferencedAccountResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_saml_provider_response_model import PaginationWithCountResponseSamlProviderResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_saml_provider_rule_response_model import PaginationWithCountResponseSamlProviderRuleResponseModel +from cloudcheckr_cmx_client.models.pagination_with_count_response_tag_key_response_model import PaginationWithCountResponseTagKeyResponseModel from cloudcheckr_cmx_client.models.pagination_with_count_response_user_response_model import PaginationWithCountResponseUserResponseModel from cloudcheckr_cmx_client.models.parent_assignment import ParentAssignment from cloudcheckr_cmx_client.models.parent_assignment_response_model import ParentAssignmentResponseModel @@ -128,11 +169,16 @@ from cloudcheckr_cmx_client.models.saml_provider_response_model import SamlProviderResponseModel from cloudcheckr_cmx_client.models.saml_provider_rule_request_model import SamlProviderRuleRequestModel from cloudcheckr_cmx_client.models.saml_provider_rule_response_model import SamlProviderRuleResponseModel +from cloudcheckr_cmx_client.models.sized_grouping import SizedGrouping +from cloudcheckr_cmx_client.models.sorting_option import SortingOption +from cloudcheckr_cmx_client.models.tag_key import TagKey +from cloudcheckr_cmx_client.models.tag_key_response_model import TagKeyResponseModel +from cloudcheckr_cmx_client.models.tag_value_response_model import TagValueResponseModel +from cloudcheckr_cmx_client.models.time_period import TimePeriod from cloudcheckr_cmx_client.models.token_info_response import TokenInfoResponse from cloudcheckr_cmx_client.models.token_response import TokenResponse from cloudcheckr_cmx_client.models.update_request_account_attribute_request_model import UpdateRequestAccountAttributeRequestModel from cloudcheckr_cmx_client.models.update_request_account_group_request_model import UpdateRequestAccountGroupRequestModel -from cloudcheckr_cmx_client.models.update_request_aws_assume_role_credential_request_model import UpdateRequestAwsAssumeRoleCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_aws_credential_request_model import UpdateRequestAwsCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_azure_csp_authorization_request_model import UpdateRequestAzureCspAuthorizationRequestModel from cloudcheckr_cmx_client.models.update_request_azure_enterprise_agreement_credential_request_model import UpdateRequestAzureEnterpriseAgreementCredentialRequestModel @@ -140,8 +186,12 @@ from cloudcheckr_cmx_client.models.update_request_azure_token_credential_request_model import UpdateRequestAzureTokenCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_client_request_model import UpdateRequestClientRequestModel from cloudcheckr_cmx_client.models.update_request_custom_theme_request_model import UpdateRequestCustomThemeRequestModel +from cloudcheckr_cmx_client.models.update_request_customer_update_request_model import UpdateRequestCustomerUpdateRequestModel +from cloudcheckr_cmx_client.models.update_request_dashboard_panel_request_model import UpdateRequestDashboardPanelRequestModel +from cloudcheckr_cmx_client.models.update_request_dashboard_request_model import UpdateRequestDashboardRequestModel from cloudcheckr_cmx_client.models.update_request_general_account_request_model import UpdateRequestGeneralAccountRequestModel from cloudcheckr_cmx_client.models.update_request_google_credential_request_model import UpdateRequestGoogleCredentialRequestModel +from cloudcheckr_cmx_client.models.update_request_map_to_payer_credential_request_model import UpdateRequestMapToPayerCredentialRequestModel from cloudcheckr_cmx_client.models.update_request_mav_request_model import UpdateRequestMavRequestModel from cloudcheckr_cmx_client.models.update_request_permission_set_request_model import UpdateRequestPermissionSetRequestModel from cloudcheckr_cmx_client.models.update_request_role_request_model import UpdateRequestRoleRequestModel diff --git a/cloudcheckr_cmx_client/models/account_assignment_response_model.py b/cloudcheckr_cmx_client/models/account_assignment_response_model.py index 2adb2a4..27f9e6f 100644 --- a/cloudcheckr_cmx_client/models/account_assignment_response_model.py +++ b/cloudcheckr_cmx_client/models/account_assignment_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountAssignmentResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class AccountAssignmentResponseModel(object): 'error': 'error' } - def __init__(self, new_parent_assignment=None, id=None, error=None): # noqa: E501 + def __init__(self, new_parent_assignment=None, id=None, error=None, _configuration=None): # noqa: E501 """AccountAssignmentResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._new_parent_assignment = None self._id = None self._error = None self.discriminator = None + if new_parent_assignment is not None: self.new_parent_assignment = new_parent_assignment if id is not None: @@ -56,6 +66,7 @@ def __init__(self, new_parent_assignment=None, id=None, error=None): # noqa: E5 def new_parent_assignment(self): """Gets the new_parent_assignment of this AccountAssignmentResponseModel. # noqa: E501 + The account's parent assignment. # noqa: E501 :return: The new_parent_assignment of this AccountAssignmentResponseModel. # noqa: E501 :rtype: ParentAssignment @@ -66,6 +77,7 @@ def new_parent_assignment(self): def new_parent_assignment(self, new_parent_assignment): """Sets the new_parent_assignment of this AccountAssignmentResponseModel. + The account's parent assignment. # noqa: E501 :param new_parent_assignment: The new_parent_assignment of this AccountAssignmentResponseModel. # noqa: E501 :type: ParentAssignment @@ -100,6 +112,7 @@ def id(self, id): def error(self): """Gets the error of this AccountAssignmentResponseModel. # noqa: E501 + The errors that occurred during account assignment. # noqa: E501 :return: The error of this AccountAssignmentResponseModel. # noqa: E501 :rtype: Error @@ -110,6 +123,7 @@ def error(self): def error(self, error): """Sets the error of this AccountAssignmentResponseModel. + The errors that occurred during account assignment. # noqa: E501 :param error: The error of this AccountAssignmentResponseModel. # noqa: E501 :type: Error @@ -157,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, AccountAssignmentResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountAssignmentResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_attribute_assignment_response_model.py b/cloudcheckr_cmx_client/models/account_attribute_assignment_response_model.py index adc50dd..a786420 100644 --- a/cloudcheckr_cmx_client/models/account_attribute_assignment_response_model.py +++ b/cloudcheckr_cmx_client/models/account_attribute_assignment_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountAttributeAssignmentResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class AccountAttributeAssignmentResponseModel(object): 'error': 'error' } - def __init__(self, action=None, id=None, error=None): # noqa: E501 + def __init__(self, action=None, id=None, error=None, _configuration=None): # noqa: E501 """AccountAttributeAssignmentResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._action = None self._id = None self._error = None self.discriminator = None + if action is not None: self.action = action if id is not None: @@ -73,7 +83,8 @@ def action(self, action): :type: str """ allowed_values = ["Add", "Remove"] # noqa: E501 - if action not in allowed_values: + if (self._configuration.client_side_validation and + action not in allowed_values): raise ValueError( "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501 .format(action, allowed_values) @@ -108,6 +119,7 @@ def id(self, id): def error(self): """Gets the error of this AccountAttributeAssignmentResponseModel. # noqa: E501 + The errors that occurred during account assignment. # noqa: E501 :return: The error of this AccountAttributeAssignmentResponseModel. # noqa: E501 :rtype: Error @@ -118,6 +130,7 @@ def error(self): def error(self, error): """Sets the error of this AccountAttributeAssignmentResponseModel. + The errors that occurred during account assignment. # noqa: E501 :param error: The error of this AccountAttributeAssignmentResponseModel. # noqa: E501 :type: Error @@ -165,8 +178,11 @@ def __eq__(self, other): if not isinstance(other, AccountAttributeAssignmentResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountAttributeAssignmentResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_attribute_basic_info.py b/cloudcheckr_cmx_client/models/account_attribute_basic_info.py index 97136e1..760b248 100644 --- a/cloudcheckr_cmx_client/models/account_attribute_basic_info.py +++ b/cloudcheckr_cmx_client/models/account_attribute_basic_info.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountAttributeBasicInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AccountAttributeBasicInfo(object): 'value': 'value' } - def __init__(self, name=None, value=None): # noqa: E501 + def __init__(self, name=None, value=None, _configuration=None): # noqa: E501 """AccountAttributeBasicInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._value = None self.discriminator = None + if name is not None: self.name = name if value is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, AccountAttributeBasicInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountAttributeBasicInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_attribute_modification.py b/cloudcheckr_cmx_client/models/account_attribute_modification.py index b883fd9..98509a6 100644 --- a/cloudcheckr_cmx_client/models/account_attribute_modification.py +++ b/cloudcheckr_cmx_client/models/account_attribute_modification.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountAttributeModification(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class AccountAttributeModification(object): 'action': 'action' } - def __init__(self, name=None, value=None, action=None): # noqa: E501 + def __init__(self, name=None, value=None, action=None, _configuration=None): # noqa: E501 """AccountAttributeModification - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._value = None self._action = None self.discriminator = None + if name is not None: self.name = name if value is not None: @@ -119,7 +129,8 @@ def action(self, action): :type: str """ allowed_values = ["Add", "Remove"] # noqa: E501 - if action not in allowed_values: + if (self._configuration.client_side_validation and + action not in allowed_values): raise ValueError( "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501 .format(action, allowed_values) @@ -167,8 +178,11 @@ def __eq__(self, other): if not isinstance(other, AccountAttributeModification): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountAttributeModification): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_attribute_request_model.py b/cloudcheckr_cmx_client/models/account_attribute_request_model.py index 2af16e8..376e51b 100644 --- a/cloudcheckr_cmx_client/models/account_attribute_request_model.py +++ b/cloudcheckr_cmx_client/models/account_attribute_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountAttributeRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AccountAttributeRequestModel(object): 'values': 'values' } - def __init__(self, name=None, values=None): # noqa: E501 + def __init__(self, name=None, values=None, _configuration=None): # noqa: E501 """AccountAttributeRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._values = None self.discriminator = None + if name is not None: self.name = name if values is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, AccountAttributeRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountAttributeRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_attribute_response_model.py b/cloudcheckr_cmx_client/models/account_attribute_response_model.py index 79331a1..d473971 100644 --- a/cloudcheckr_cmx_client/models/account_attribute_response_model.py +++ b/cloudcheckr_cmx_client/models/account_attribute_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountAttributeResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -45,8 +50,12 @@ class AccountAttributeResponseModel(object): 'updated_date': 'updatedDate' } - def __init__(self, customer_id=None, name=None, values=None, value_count=None, created_date=None, updated_date=None): # noqa: E501 + def __init__(self, customer_id=None, name=None, values=None, value_count=None, created_date=None, updated_date=None, _configuration=None): # noqa: E501 """AccountAttributeResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._customer_id = None self._name = None self._values = None @@ -54,6 +63,7 @@ def __init__(self, customer_id=None, name=None, values=None, value_count=None, c self._created_date = None self._updated_date = None self.discriminator = None + if customer_id is not None: self.customer_id = customer_id if name is not None: @@ -245,8 +255,11 @@ def __eq__(self, other): if not isinstance(other, AccountAttributeResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountAttributeResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_cost.py b/cloudcheckr_cmx_client/models/account_cost.py index 9443a81..f965469 100644 --- a/cloudcheckr_cmx_client/models/account_cost.py +++ b/cloudcheckr_cmx_client/models/account_cost.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountCost(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AccountCost(object): 'total': 'total' } - def __init__(self, currency_code=None, total=None): # noqa: E501 + def __init__(self, currency_code=None, total=None, _configuration=None): # noqa: E501 """AccountCost - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._currency_code = None self._total = None self.discriminator = None + if currency_code is not None: self.currency_code = currency_code if total is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, AccountCost): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountCost): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_group_hierarchy_response_model.py b/cloudcheckr_cmx_client/models/account_group_hierarchy_response_model.py index 5765f3f..1d6da3f 100644 --- a/cloudcheckr_cmx_client/models/account_group_hierarchy_response_model.py +++ b/cloudcheckr_cmx_client/models/account_group_hierarchy_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountGroupHierarchyResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -69,8 +74,12 @@ class AccountGroupHierarchyResponseModel(object): 'name': 'name' } - def __init__(self, legacy_account_id=None, parent_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, include_all_accounts=None, associated_account_attributes=None, has_children=None, costs=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None): # noqa: E501 + def __init__(self, legacy_account_id=None, parent_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, include_all_accounts=None, associated_account_attributes=None, has_children=None, costs=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None, _configuration=None): # noqa: E501 """AccountGroupHierarchyResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._legacy_account_id = None self._parent_id = None self._provider_identifier = None @@ -90,6 +99,7 @@ def __init__(self, legacy_account_id=None, parent_id=None, provider_identifier=N self._id = None self._name = None self.discriminator = None + if legacy_account_id is not None: self.legacy_account_id = legacy_account_id if parent_id is not None: @@ -240,7 +250,8 @@ def provider_payment_type(self, provider_payment_type): :type: str """ allowed_values = ["Payer", "Payee"] # noqa: E501 - if provider_payment_type not in allowed_values: + if (self._configuration.client_side_validation and + provider_payment_type not in allowed_values): raise ValueError( "Invalid value for `provider_payment_type` ({0}), must be one of {1}" # noqa: E501 .format(provider_payment_type, allowed_values) @@ -384,7 +395,8 @@ def type(self, type): :type: str """ allowed_values = ["Group", "General", "MAV"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -505,7 +517,8 @@ def credential_verification_status(self, credential_verification_status): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Empty", "NotConfigured"] # noqa: E501 - if credential_verification_status not in allowed_values: + if (self._configuration.client_side_validation and + credential_verification_status not in allowed_values): raise ValueError( "Invalid value for `credential_verification_status` ({0}), must be one of {1}" # noqa: E501 .format(credential_verification_status, allowed_values) @@ -599,8 +612,11 @@ def __eq__(self, other): if not isinstance(other, AccountGroupHierarchyResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountGroupHierarchyResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_group_request_model.py b/cloudcheckr_cmx_client/models/account_group_request_model.py index 9c25a13..1d69611 100644 --- a/cloudcheckr_cmx_client/models/account_group_request_model.py +++ b/cloudcheckr_cmx_client/models/account_group_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountGroupRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AccountGroupRequestModel(object): 'parent_id': 'parentId' } - def __init__(self, name=None, parent_id=None): # noqa: E501 + def __init__(self, name=None, parent_id=None, _configuration=None): # noqa: E501 """AccountGroupRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._parent_id = None self.discriminator = None + self.name = name if parent_id is not None: self.parent_id = parent_id @@ -66,7 +76,7 @@ def name(self, name): :param name: The name of this AccountGroupRequestModel. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -134,8 +144,11 @@ def __eq__(self, other): if not isinstance(other, AccountGroupRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountGroupRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_group_response_model.py b/cloudcheckr_cmx_client/models/account_group_response_model.py index dc82617..51c4905 100644 --- a/cloudcheckr_cmx_client/models/account_group_response_model.py +++ b/cloudcheckr_cmx_client/models/account_group_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountGroupResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -69,8 +74,12 @@ class AccountGroupResponseModel(object): 'name': 'name' } - def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, parent_id=None, new_parent_assignment=None, include_all_accounts=None, associated_account_attributes=None, has_children=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None): # noqa: E501 + def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, parent_id=None, new_parent_assignment=None, include_all_accounts=None, associated_account_attributes=None, has_children=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None, _configuration=None): # noqa: E501 """AccountGroupResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._legacy_account_id = None self._provider_identifier = None self._provider_sub_type = None @@ -90,6 +99,7 @@ def __init__(self, legacy_account_id=None, provider_identifier=None, provider_su self._id = None self._name = None self.discriminator = None + if legacy_account_id is not None: self.legacy_account_id = legacy_account_id if provider_identifier is not None: @@ -217,7 +227,8 @@ def provider_payment_type(self, provider_payment_type): :type: str """ allowed_values = ["Payer", "Payee"] # noqa: E501 - if provider_payment_type not in allowed_values: + if (self._configuration.client_side_validation and + provider_payment_type not in allowed_values): raise ValueError( "Invalid value for `provider_payment_type` ({0}), must be one of {1}" # noqa: E501 .format(provider_payment_type, allowed_values) @@ -275,6 +286,7 @@ def parent_id(self, parent_id): def new_parent_assignment(self): """Gets the new_parent_assignment of this AccountGroupResponseModel. # noqa: E501 + The account group's parent assignment results. # noqa: E501 :return: The new_parent_assignment of this AccountGroupResponseModel. # noqa: E501 :rtype: ParentAssignment @@ -285,6 +297,7 @@ def new_parent_assignment(self): def new_parent_assignment(self, new_parent_assignment): """Sets the new_parent_assignment of this AccountGroupResponseModel. + The account group's parent assignment results. # noqa: E501 :param new_parent_assignment: The new_parent_assignment of this AccountGroupResponseModel. # noqa: E501 :type: ParentAssignment @@ -382,7 +395,8 @@ def type(self, type): :type: str """ allowed_values = ["Group", "General", "MAV"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -503,7 +517,8 @@ def credential_verification_status(self, credential_verification_status): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Empty", "NotConfigured"] # noqa: E501 - if credential_verification_status not in allowed_values: + if (self._configuration.client_side_validation and + credential_verification_status not in allowed_values): raise ValueError( "Invalid value for `credential_verification_status` ({0}), must be one of {1}" # noqa: E501 .format(credential_verification_status, allowed_values) @@ -597,8 +612,11 @@ def __eq__(self, other): if not isinstance(other, AccountGroupResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountGroupResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/account_group_search_response_model.py b/cloudcheckr_cmx_client/models/account_group_search_response_model.py index 3f9266c..dce4cb3 100644 --- a/cloudcheckr_cmx_client/models/account_group_search_response_model.py +++ b/cloudcheckr_cmx_client/models/account_group_search_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AccountGroupSearchResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -71,8 +76,12 @@ class AccountGroupSearchResponseModel(object): 'name': 'name' } - def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, parent_id=None, parent=None, grandparent=None, include_all_accounts=None, associated_account_attributes=None, has_children=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None): # noqa: E501 + def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, parent_id=None, parent=None, grandparent=None, include_all_accounts=None, associated_account_attributes=None, has_children=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None, _configuration=None): # noqa: E501 """AccountGroupSearchResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._legacy_account_id = None self._provider_identifier = None self._provider_sub_type = None @@ -93,6 +102,7 @@ def __init__(self, legacy_account_id=None, provider_identifier=None, provider_su self._id = None self._name = None self.discriminator = None + if legacy_account_id is not None: self.legacy_account_id = legacy_account_id if provider_identifier is not None: @@ -222,7 +232,8 @@ def provider_payment_type(self, provider_payment_type): :type: str """ allowed_values = ["Payer", "Payee"] # noqa: E501 - if provider_payment_type not in allowed_values: + if (self._configuration.client_side_validation and + provider_payment_type not in allowed_values): raise ValueError( "Invalid value for `provider_payment_type` ({0}), must be one of {1}" # noqa: E501 .format(provider_payment_type, allowed_values) @@ -280,6 +291,7 @@ def parent_id(self, parent_id): def parent(self): """Gets the parent of this AccountGroupSearchResponseModel. # noqa: E501 + The account group's parent. # noqa: E501 :return: The parent of this AccountGroupSearchResponseModel. # noqa: E501 :rtype: BaseAccountInfo @@ -290,6 +302,7 @@ def parent(self): def parent(self, parent): """Sets the parent of this AccountGroupSearchResponseModel. + The account group's parent. # noqa: E501 :param parent: The parent of this AccountGroupSearchResponseModel. # noqa: E501 :type: BaseAccountInfo @@ -301,6 +314,7 @@ def parent(self, parent): def grandparent(self): """Gets the grandparent of this AccountGroupSearchResponseModel. # noqa: E501 + The account group's grandparent. # noqa: E501 :return: The grandparent of this AccountGroupSearchResponseModel. # noqa: E501 :rtype: BaseAccountInfo @@ -311,6 +325,7 @@ def grandparent(self): def grandparent(self, grandparent): """Sets the grandparent of this AccountGroupSearchResponseModel. + The account group's grandparent. # noqa: E501 :param grandparent: The grandparent of this AccountGroupSearchResponseModel. # noqa: E501 :type: BaseAccountInfo @@ -408,7 +423,8 @@ def type(self, type): :type: str """ allowed_values = ["Group", "General", "MAV"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -529,7 +545,8 @@ def credential_verification_status(self, credential_verification_status): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Empty", "NotConfigured"] # noqa: E501 - if credential_verification_status not in allowed_values: + if (self._configuration.client_side_validation and + credential_verification_status not in allowed_values): raise ValueError( "Invalid value for `credential_verification_status` ({0}), must be one of {1}" # noqa: E501 .format(credential_verification_status, allowed_values) @@ -623,8 +640,11 @@ def __eq__(self, other): if not isinstance(other, AccountGroupSearchResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AccountGroupSearchResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/ancestor_model.py b/cloudcheckr_cmx_client/models/ancestor_model.py index 19866d8..a3237e4 100644 --- a/cloudcheckr_cmx_client/models/ancestor_model.py +++ b/cloudcheckr_cmx_client/models/ancestor_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AncestorModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -61,8 +66,12 @@ class AncestorModel(object): 'name': 'name' } - def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, has_children=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None): # noqa: E501 + def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, has_children=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None, _configuration=None): # noqa: E501 """AncestorModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._legacy_account_id = None self._provider_identifier = None self._provider_sub_type = None @@ -78,6 +87,7 @@ def __init__(self, legacy_account_id=None, provider_identifier=None, provider_su self._id = None self._name = None self.discriminator = None + if legacy_account_id is not None: self.legacy_account_id = legacy_account_id if provider_identifier is not None: @@ -197,7 +207,8 @@ def provider_payment_type(self, provider_payment_type): :type: str """ allowed_values = ["Payer", "Payee"] # noqa: E501 - if provider_payment_type not in allowed_values: + if (self._configuration.client_side_validation and + provider_payment_type not in allowed_values): raise ValueError( "Invalid value for `provider_payment_type` ({0}), must be one of {1}" # noqa: E501 .format(provider_payment_type, allowed_values) @@ -272,7 +283,8 @@ def type(self, type): :type: str """ allowed_values = ["Group", "General", "MAV"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -393,7 +405,8 @@ def credential_verification_status(self, credential_verification_status): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Empty", "NotConfigured"] # noqa: E501 - if credential_verification_status not in allowed_values: + if (self._configuration.client_side_validation and + credential_verification_status not in allowed_values): raise ValueError( "Invalid value for `credential_verification_status` ({0}), must be one of {1}" # noqa: E501 .format(credential_verification_status, allowed_values) @@ -487,8 +500,11 @@ def __eq__(self, other): if not isinstance(other, AncestorModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AncestorModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/ancestors_response_model.py b/cloudcheckr_cmx_client/models/ancestors_response_model.py index 0495d68..0b70fa6 100644 --- a/cloudcheckr_cmx_client/models/ancestors_response_model.py +++ b/cloudcheckr_cmx_client/models/ancestors_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AncestorsResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class AncestorsResponseModel(object): 'ancestors': 'ancestors' } - def __init__(self, ancestors=None): # noqa: E501 + def __init__(self, ancestors=None, _configuration=None): # noqa: E501 """AncestorsResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._ancestors = None self.discriminator = None + if ancestors is not None: self.ancestors = ancestors @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, AncestorsResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AncestorsResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/application_model.py b/cloudcheckr_cmx_client/models/application_model.py index b9a27ae..d7cb41c 100644 --- a/cloudcheckr_cmx_client/models/application_model.py +++ b/cloudcheckr_cmx_client/models/application_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ApplicationModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class ApplicationModel(object): 'application_secret': 'applicationSecret' } - def __init__(self, application_id=None, application_secret=None): # noqa: E501 + def __init__(self, application_id=None, application_secret=None, _configuration=None): # noqa: E501 """ApplicationModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._application_id = None self._application_secret = None self.discriminator = None + if application_id is not None: self.application_id = application_id if application_secret is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, ApplicationModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApplicationModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/aws_access_key_model.py b/cloudcheckr_cmx_client/models/aws_access_key_model.py index 89904fc..adecdea 100644 --- a/cloudcheckr_cmx_client/models/aws_access_key_model.py +++ b/cloudcheckr_cmx_client/models/aws_access_key_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AwsAccessKeyModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AwsAccessKeyModel(object): 'secret_access_key': 'secretAccessKey' } - def __init__(self, access_key_id=None, secret_access_key=None): # noqa: E501 + def __init__(self, access_key_id=None, secret_access_key=None, _configuration=None): # noqa: E501 """AwsAccessKeyModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._access_key_id = None self._secret_access_key = None self.discriminator = None + if access_key_id is not None: self.access_key_id = access_key_id if secret_access_key is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, AwsAccessKeyModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AwsAccessKeyModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/aws_assume_role_credential_request_model.py b/cloudcheckr_cmx_client/models/aws_assume_role_credential_request_model.py deleted file mode 100644 index 0ee1c29..0000000 --- a/cloudcheckr_cmx_client/models/aws_assume_role_credential_request_model.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - CloudCheckr API - - CloudCheckr API # noqa: E501 - - OpenAPI spec version: v1 - Contact: support@cloudcheckr.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class AwsAssumeRoleCredentialRequestModel(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'access_key': 'AwsAccessKeyModel' - } - - attribute_map = { - 'access_key': 'accessKey' - } - - def __init__(self, access_key=None): # noqa: E501 - """AwsAssumeRoleCredentialRequestModel - a model defined in Swagger""" # noqa: E501 - self._access_key = None - self.discriminator = None - if access_key is not None: - self.access_key = access_key - - @property - def access_key(self): - """Gets the access_key of this AwsAssumeRoleCredentialRequestModel. # noqa: E501 - - - :return: The access_key of this AwsAssumeRoleCredentialRequestModel. # noqa: E501 - :rtype: AwsAccessKeyModel - """ - return self._access_key - - @access_key.setter - def access_key(self, access_key): - """Sets the access_key of this AwsAssumeRoleCredentialRequestModel. - - - :param access_key: The access_key of this AwsAssumeRoleCredentialRequestModel. # noqa: E501 - :type: AwsAccessKeyModel - """ - - self._access_key = access_key - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AwsAssumeRoleCredentialRequestModel, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AwsAssumeRoleCredentialRequestModel): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/cloudcheckr_cmx_client/models/aws_credential_request_model.py b/cloudcheckr_cmx_client/models/aws_credential_request_model.py index 1390f01..53aa510 100644 --- a/cloudcheckr_cmx_client/models/aws_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/aws_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AwsCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class AwsCredentialRequestModel(object): 'linked_aws_commercial_account': 'linkedAwsCommercialAccount' } - def __init__(self, region_group=None, access_key=None, cross_account_role=None, linked_aws_commercial_account=None): # noqa: E501 + def __init__(self, region_group=None, access_key=None, cross_account_role=None, linked_aws_commercial_account=None, _configuration=None): # noqa: E501 """AwsCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._region_group = None self._access_key = None self._cross_account_role = None self._linked_aws_commercial_account = None self.discriminator = None + if region_group is not None: self.region_group = region_group if access_key is not None: @@ -78,7 +88,8 @@ def region_group(self, region_group): :type: str """ allowed_values = ["Commercial", "GovUs"] # noqa: E501 - if region_group not in allowed_values: + if (self._configuration.client_side_validation and + region_group not in allowed_values): raise ValueError( "Invalid value for `region_group` ({0}), must be one of {1}" # noqa: E501 .format(region_group, allowed_values) @@ -90,6 +101,7 @@ def region_group(self, region_group): def access_key(self): """Gets the access_key of this AwsCredentialRequestModel. # noqa: E501 + AWS access key credential. This property supports: resetting. # noqa: E501 :return: The access_key of this AwsCredentialRequestModel. # noqa: E501 :rtype: AwsAccessKeyModel @@ -100,6 +112,7 @@ def access_key(self): def access_key(self, access_key): """Sets the access_key of this AwsCredentialRequestModel. + AWS access key credential. This property supports: resetting. # noqa: E501 :param access_key: The access_key of this AwsCredentialRequestModel. # noqa: E501 :type: AwsAccessKeyModel @@ -111,6 +124,7 @@ def access_key(self, access_key): def cross_account_role(self): """Gets the cross_account_role of this AwsCredentialRequestModel. # noqa: E501 + AWS cross-account role credential. This property supports: resetting. # noqa: E501 :return: The cross_account_role of this AwsCredentialRequestModel. # noqa: E501 :rtype: AwsCrossAccountRoleModel @@ -121,6 +135,7 @@ def cross_account_role(self): def cross_account_role(self, cross_account_role): """Sets the cross_account_role of this AwsCredentialRequestModel. + AWS cross-account role credential. This property supports: resetting. # noqa: E501 :param cross_account_role: The cross_account_role of this AwsCredentialRequestModel. # noqa: E501 :type: AwsCrossAccountRoleModel @@ -132,6 +147,7 @@ def cross_account_role(self, cross_account_role): def linked_aws_commercial_account(self): """Gets the linked_aws_commercial_account of this AwsCredentialRequestModel. # noqa: E501 + Linked AWS commercial account information. This is the billing account for an AWS GovCloud (US) account. This property supports: resetting. # noqa: E501 :return: The linked_aws_commercial_account of this AwsCredentialRequestModel. # noqa: E501 :rtype: LinkedAwsCommercialAccountModel @@ -142,6 +158,7 @@ def linked_aws_commercial_account(self): def linked_aws_commercial_account(self, linked_aws_commercial_account): """Sets the linked_aws_commercial_account of this AwsCredentialRequestModel. + Linked AWS commercial account information. This is the billing account for an AWS GovCloud (US) account. This property supports: resetting. # noqa: E501 :param linked_aws_commercial_account: The linked_aws_commercial_account of this AwsCredentialRequestModel. # noqa: E501 :type: LinkedAwsCommercialAccountModel @@ -189,8 +206,11 @@ def __eq__(self, other): if not isinstance(other, AwsCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AwsCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/aws_cross_account_role_model.py b/cloudcheckr_cmx_client/models/aws_cross_account_role_model.py index b9d4844..41c8e77 100644 --- a/cloudcheckr_cmx_client/models/aws_cross_account_role_model.py +++ b/cloudcheckr_cmx_client/models/aws_cross_account_role_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AwsCrossAccountRoleModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class AwsCrossAccountRoleModel(object): 'role_arn': 'roleArn' } - def __init__(self, role_arn=None): # noqa: E501 + def __init__(self, role_arn=None, _configuration=None): # noqa: E501 """AwsCrossAccountRoleModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._role_arn = None self.discriminator = None + if role_arn is not None: self.role_arn = role_arn @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, AwsCrossAccountRoleModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AwsCrossAccountRoleModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/aws_cross_account_role_setup_response_model.py b/cloudcheckr_cmx_client/models/aws_cross_account_role_setup_response_model.py index 5f9c67f..aa9999a 100644 --- a/cloudcheckr_cmx_client/models/aws_cross_account_role_setup_response_model.py +++ b/cloudcheckr_cmx_client/models/aws_cross_account_role_setup_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AwsCrossAccountRoleSetupResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AwsCrossAccountRoleSetupResponseModel(object): 'external_id_value': 'externalIdValue' } - def __init__(self, aws_account_id=None, external_id_value=None): # noqa: E501 + def __init__(self, aws_account_id=None, external_id_value=None, _configuration=None): # noqa: E501 """AwsCrossAccountRoleSetupResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._aws_account_id = None self._external_id_value = None self.discriminator = None + if aws_account_id is not None: self.aws_account_id = aws_account_id if external_id_value is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, AwsCrossAccountRoleSetupResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AwsCrossAccountRoleSetupResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/azure_authorization_response_model.py b/cloudcheckr_cmx_client/models/azure_authorization_response_model.py index 8470e98..c594b04 100644 --- a/cloudcheckr_cmx_client/models/azure_authorization_response_model.py +++ b/cloudcheckr_cmx_client/models/azure_authorization_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AzureAuthorizationResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class AzureAuthorizationResponseModel(object): 'authorization_request_url': 'authorizationRequestUrl' } - def __init__(self, authorization_request_url=None): # noqa: E501 + def __init__(self, authorization_request_url=None, _configuration=None): # noqa: E501 """AzureAuthorizationResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._authorization_request_url = None self.discriminator = None + if authorization_request_url is not None: self.authorization_request_url = authorization_request_url @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, AzureAuthorizationResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureAuthorizationResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/azure_billing_account_response_model.py b/cloudcheckr_cmx_client/models/azure_billing_account_response_model.py index b1fdc89..4688bc8 100644 --- a/cloudcheckr_cmx_client/models/azure_billing_account_response_model.py +++ b/cloudcheckr_cmx_client/models/azure_billing_account_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AzureBillingAccountResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class AzureBillingAccountResponseModel(object): 'display_name': 'displayName' } - def __init__(self, billing_account_id=None, billing_account_type=None, display_id=None, display_name=None): # noqa: E501 + def __init__(self, billing_account_id=None, billing_account_type=None, display_id=None, display_name=None, _configuration=None): # noqa: E501 """AzureBillingAccountResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._billing_account_id = None self._billing_account_type = None self._display_id = None self._display_name = None self.discriminator = None + if billing_account_id is not None: self.billing_account_id = billing_account_id if billing_account_type is not None: @@ -189,8 +199,11 @@ def __eq__(self, other): if not isinstance(other, AzureBillingAccountResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureBillingAccountResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/azure_billing_account_selection_request_model.py b/cloudcheckr_cmx_client/models/azure_billing_account_selection_request_model.py index c777d82..6259a4f 100644 --- a/cloudcheckr_cmx_client/models/azure_billing_account_selection_request_model.py +++ b/cloudcheckr_cmx_client/models/azure_billing_account_selection_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AzureBillingAccountSelectionRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class AzureBillingAccountSelectionRequestModel(object): 'billing_account_id': 'billingAccountId' } - def __init__(self, billing_account_id=None): # noqa: E501 + def __init__(self, billing_account_id=None, _configuration=None): # noqa: E501 """AzureBillingAccountSelectionRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._billing_account_id = None self.discriminator = None + if billing_account_id is not None: self.billing_account_id = billing_account_id @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, AzureBillingAccountSelectionRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureBillingAccountSelectionRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/azure_csp_authorization_request_model.py b/cloudcheckr_cmx_client/models/azure_csp_authorization_request_model.py index e76c907..a6cdc02 100644 --- a/cloudcheckr_cmx_client/models/azure_csp_authorization_request_model.py +++ b/cloudcheckr_cmx_client/models/azure_csp_authorization_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AzureCspAuthorizationRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AzureCspAuthorizationRequestModel(object): 'region_group': 'regionGroup' } - def __init__(self, purchase_model=None, region_group=None): # noqa: E501 + def __init__(self, purchase_model=None, region_group=None, _configuration=None): # noqa: E501 """AzureCspAuthorizationRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._purchase_model = None self._region_group = None self.discriminator = None + if purchase_model is not None: self.purchase_model = purchase_model if region_group is not None: @@ -68,7 +78,8 @@ def purchase_model(self, purchase_model): :type: str """ allowed_values = ["AzurePlan", "Classic"] # noqa: E501 - if purchase_model not in allowed_values: + if (self._configuration.client_side_validation and + purchase_model not in allowed_values): raise ValueError( "Invalid value for `purchase_model` ({0}), must be one of {1}" # noqa: E501 .format(purchase_model, allowed_values) @@ -97,7 +108,8 @@ def region_group(self, region_group): :type: str """ allowed_values = ["Commercial", "UsGov", "Germany"] # noqa: E501 - if region_group not in allowed_values: + if (self._configuration.client_side_validation and + region_group not in allowed_values): raise ValueError( "Invalid value for `region_group` ({0}), must be one of {1}" # noqa: E501 .format(region_group, allowed_values) @@ -145,8 +157,11 @@ def __eq__(self, other): if not isinstance(other, AzureCspAuthorizationRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureCspAuthorizationRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/azure_enterprise_agreement_credential_request_model.py b/cloudcheckr_cmx_client/models/azure_enterprise_agreement_credential_request_model.py index 502fb21..756e80a 100644 --- a/cloudcheckr_cmx_client/models/azure_enterprise_agreement_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/azure_enterprise_agreement_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AzureEnterpriseAgreementCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class AzureEnterpriseAgreementCredentialRequestModel(object): 'access_token': 'accessToken' } - def __init__(self, access_token=None): # noqa: E501 + def __init__(self, access_token=None, _configuration=None): # noqa: E501 """AzureEnterpriseAgreementCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._access_token = None self.discriminator = None + if access_token is not None: self.access_token = access_token @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, AzureEnterpriseAgreementCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureEnterpriseAgreementCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/azure_subscription_credential_request_model.py b/cloudcheckr_cmx_client/models/azure_subscription_credential_request_model.py index 7375511..85770f6 100644 --- a/cloudcheckr_cmx_client/models/azure_subscription_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/azure_subscription_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AzureSubscriptionCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class AzureSubscriptionCredentialRequestModel(object): 'region_group': 'regionGroup' } - def __init__(self, active_directory_id=None, subscription_id=None, application=None, region_group=None): # noqa: E501 + def __init__(self, active_directory_id=None, subscription_id=None, application=None, region_group=None, _configuration=None): # noqa: E501 """AzureSubscriptionCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._active_directory_id = None self._subscription_id = None self._application = None self._region_group = None self.discriminator = None + if active_directory_id is not None: self.active_directory_id = active_directory_id if subscription_id is not None: @@ -107,6 +117,7 @@ def subscription_id(self, subscription_id): def application(self): """Gets the application of this AzureSubscriptionCredentialRequestModel. # noqa: E501 + Azure application to use for subscription access. This property supports: resetting. # noqa: E501 :return: The application of this AzureSubscriptionCredentialRequestModel. # noqa: E501 :rtype: ApplicationModel @@ -117,6 +128,7 @@ def application(self): def application(self, application): """Sets the application of this AzureSubscriptionCredentialRequestModel. + Azure application to use for subscription access. This property supports: resetting. # noqa: E501 :param application: The application of this AzureSubscriptionCredentialRequestModel. # noqa: E501 :type: ApplicationModel @@ -145,7 +157,8 @@ def region_group(self, region_group): :type: str """ allowed_values = ["Commercial", "UsGov", "Germany"] # noqa: E501 - if region_group not in allowed_values: + if (self._configuration.client_side_validation and + region_group not in allowed_values): raise ValueError( "Invalid value for `region_group` ({0}), must be one of {1}" # noqa: E501 .format(region_group, allowed_values) @@ -193,8 +206,11 @@ def __eq__(self, other): if not isinstance(other, AzureSubscriptionCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureSubscriptionCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/azure_token_credential_request_model.py b/cloudcheckr_cmx_client/models/azure_token_credential_request_model.py index 3004289..27052c7 100644 --- a/cloudcheckr_cmx_client/models/azure_token_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/azure_token_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class AzureTokenCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class AzureTokenCredentialRequestModel(object): 'region_group': 'regionGroup' } - def __init__(self, region_group=None): # noqa: E501 + def __init__(self, region_group=None, _configuration=None): # noqa: E501 """AzureTokenCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._region_group = None self.discriminator = None + if region_group is not None: self.region_group = region_group @@ -63,7 +73,8 @@ def region_group(self, region_group): :type: str """ allowed_values = ["Commercial", "UsGov", "Germany"] # noqa: E501 - if region_group not in allowed_values: + if (self._configuration.client_side_validation and + region_group not in allowed_values): raise ValueError( "Invalid value for `region_group` ({0}), must be one of {1}" # noqa: E501 .format(region_group, allowed_values) @@ -111,8 +122,11 @@ def __eq__(self, other): if not isinstance(other, AzureTokenCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AzureTokenCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/base_account_info.py b/cloudcheckr_cmx_client/models/base_account_info.py index de20cd4..52b0bfb 100644 --- a/cloudcheckr_cmx_client/models/base_account_info.py +++ b/cloudcheckr_cmx_client/models/base_account_info.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class BaseAccountInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class BaseAccountInfo(object): 'name': 'name' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, id=None, name=None, _configuration=None): # noqa: E501 """BaseAccountInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, BaseAccountInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BaseAccountInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/basic_request_list_modification.py b/cloudcheckr_cmx_client/models/basic_request_list_modification.py index 0f0864d..6681e6d 100644 --- a/cloudcheckr_cmx_client/models/basic_request_list_modification.py +++ b/cloudcheckr_cmx_client/models/basic_request_list_modification.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class BasicRequestListModification(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class BasicRequestListModification(object): 'action': 'action' } - def __init__(self, id=None, action=None): # noqa: E501 + def __init__(self, id=None, action=None, _configuration=None): # noqa: E501 """BasicRequestListModification - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._action = None self.discriminator = None + if id is not None: self.id = id if action is not None: @@ -91,7 +101,8 @@ def action(self, action): :type: str """ allowed_values = ["Add", "Remove"] # noqa: E501 - if action not in allowed_values: + if (self._configuration.client_side_validation and + action not in allowed_values): raise ValueError( "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501 .format(action, allowed_values) @@ -139,8 +150,11 @@ def __eq__(self, other): if not isinstance(other, BasicRequestListModification): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BasicRequestListModification): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/bulk_account_assignment_request_model.py b/cloudcheckr_cmx_client/models/bulk_account_assignment_request_model.py index ec87a0e..4242dae 100644 --- a/cloudcheckr_cmx_client/models/bulk_account_assignment_request_model.py +++ b/cloudcheckr_cmx_client/models/bulk_account_assignment_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class BulkAccountAssignmentRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class BulkAccountAssignmentRequestModel(object): 'account_ids': 'accountIds' } - def __init__(self, account_ids=None): # noqa: E501 + def __init__(self, account_ids=None, _configuration=None): # noqa: E501 """BulkAccountAssignmentRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._account_ids = None self.discriminator = None + if account_ids is not None: self.account_ids = account_ids @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, BulkAccountAssignmentRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkAccountAssignmentRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_assignment_response_model.py b/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_assignment_response_model.py index 8ace191..a10b3f6 100644 --- a/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_assignment_response_model.py +++ b/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_assignment_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class BulkAccountAssignmentResponseModelAccountAssignmentResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class BulkAccountAssignmentResponseModelAccountAssignmentResponseModel(object): 'results': 'results' } - def __init__(self, results=None): # noqa: E501 + def __init__(self, results=None, _configuration=None): # noqa: E501 """BulkAccountAssignmentResponseModelAccountAssignmentResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._results = None self.discriminator = None + if results is not None: self.results = results @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, BulkAccountAssignmentResponseModelAccountAssignmentResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkAccountAssignmentResponseModelAccountAssignmentResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_attribute_assignment_response_model.py b/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_attribute_assignment_response_model.py index b93ea9a..1733317 100644 --- a/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_attribute_assignment_response_model.py +++ b/cloudcheckr_cmx_client/models/bulk_account_assignment_response_model_account_attribute_assignment_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel( 'results': 'results' } - def __init__(self, results=None): # noqa: E501 + def __init__(self, results=None, _configuration=None): # noqa: E501 """BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._results = None self.discriminator = None + if results is not None: self.results = results @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/bulk_account_attribute_assignment_request_model.py b/cloudcheckr_cmx_client/models/bulk_account_attribute_assignment_request_model.py index d2a7692..1b2e02e 100644 --- a/cloudcheckr_cmx_client/models/bulk_account_attribute_assignment_request_model.py +++ b/cloudcheckr_cmx_client/models/bulk_account_attribute_assignment_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class BulkAccountAttributeAssignmentRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class BulkAccountAttributeAssignmentRequestModel(object): 'accounts': 'accounts' } - def __init__(self, accounts=None): # noqa: E501 + def __init__(self, accounts=None, _configuration=None): # noqa: E501 """BulkAccountAttributeAssignmentRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._accounts = None self.discriminator = None + if accounts is not None: self.accounts = accounts @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, BulkAccountAttributeAssignmentRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, BulkAccountAttributeAssignmentRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/client_access_key_request_model.py b/cloudcheckr_cmx_client/models/client_access_key_request_model.py index ecb9642..12a49f8 100644 --- a/cloudcheckr_cmx_client/models/client_access_key_request_model.py +++ b/cloudcheckr_cmx_client/models/client_access_key_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ClientAccessKeyRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class ClientAccessKeyRequestModel(object): 'access_key_valid_days': 'accessKeyValidDays' } - def __init__(self, name=None, access_key_valid_days=None): # noqa: E501 + def __init__(self, name=None, access_key_valid_days=None, _configuration=None): # noqa: E501 """ClientAccessKeyRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._access_key_valid_days = None self.discriminator = None + self.name = name if access_key_valid_days is not None: self.access_key_valid_days = access_key_valid_days @@ -66,7 +76,7 @@ def name(self, name): :param name: The name of this ClientAccessKeyRequestModel. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -134,8 +144,11 @@ def __eq__(self, other): if not isinstance(other, ClientAccessKeyRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ClientAccessKeyRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/client_access_key_response_model.py b/cloudcheckr_cmx_client/models/client_access_key_response_model.py index d1b4269..cc6b15a 100644 --- a/cloudcheckr_cmx_client/models/client_access_key_response_model.py +++ b/cloudcheckr_cmx_client/models/client_access_key_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ClientAccessKeyResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class ClientAccessKeyResponseModel(object): 'expiry_date': 'expiryDate' } - def __init__(self, id=None, client_id=None, name=None, expiry_date=None): # noqa: E501 + def __init__(self, id=None, client_id=None, name=None, expiry_date=None, _configuration=None): # noqa: E501 """ClientAccessKeyResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._client_id = None self._name = None self._expiry_date = None self.discriminator = None + if id is not None: self.id = id if client_id is not None: @@ -189,8 +199,11 @@ def __eq__(self, other): if not isinstance(other, ClientAccessKeyResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ClientAccessKeyResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/client_create_request_model.py b/cloudcheckr_cmx_client/models/client_create_request_model.py index f4ecf6a..88a6aff 100644 --- a/cloudcheckr_cmx_client/models/client_create_request_model.py +++ b/cloudcheckr_cmx_client/models/client_create_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ClientCreateRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -47,8 +52,12 @@ class ClientCreateRequestModel(object): 'roles': 'roles' } - def __init__(self, create_access_key=None, access_key_name=None, access_key_valid_days=None, name=None, description=None, type=None, roles=None): # noqa: E501 + def __init__(self, create_access_key=None, access_key_name=None, access_key_valid_days=None, name=None, description=None, type=None, roles=None, _configuration=None): # noqa: E501 """ClientCreateRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._create_access_key = None self._access_key_name = None self._access_key_valid_days = None @@ -57,6 +66,7 @@ def __init__(self, create_access_key=None, access_key_name=None, access_key_vali self._type = None self._roles = None self.discriminator = None + if create_access_key is not None: self.create_access_key = create_access_key if access_key_name is not None: @@ -159,7 +169,7 @@ def name(self, name): :param name: The name of this ClientCreateRequestModel. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -207,10 +217,11 @@ def type(self, type): :param type: The type of this ClientCreateRequestModel. # noqa: E501 :type: str """ - if type is None: + if self._configuration.client_side_validation and type is None: raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 allowed_values = ["Service"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -281,8 +292,11 @@ def __eq__(self, other): if not isinstance(other, ClientCreateRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ClientCreateRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/client_request_model.py b/cloudcheckr_cmx_client/models/client_request_model.py index 3c2867c..89925ca 100644 --- a/cloudcheckr_cmx_client/models/client_request_model.py +++ b/cloudcheckr_cmx_client/models/client_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ClientRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class ClientRequestModel(object): 'roles': 'roles' } - def __init__(self, name=None, description=None, type=None, roles=None): # noqa: E501 + def __init__(self, name=None, description=None, type=None, roles=None, _configuration=None): # noqa: E501 """ClientRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._description = None self._type = None self._roles = None self.discriminator = None + self.name = name if description is not None: self.description = description @@ -75,7 +85,7 @@ def name(self, name): :param name: The name of this ClientRequestModel. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -123,10 +133,11 @@ def type(self, type): :param type: The type of this ClientRequestModel. # noqa: E501 :type: str """ - if type is None: + if self._configuration.client_side_validation and type is None: raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 allowed_values = ["Service"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -197,8 +208,11 @@ def __eq__(self, other): if not isinstance(other, ClientRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ClientRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/client_response_model.py b/cloudcheckr_cmx_client/models/client_response_model.py index 64c5c93..00d5b31 100644 --- a/cloudcheckr_cmx_client/models/client_response_model.py +++ b/cloudcheckr_cmx_client/models/client_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ClientResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -47,8 +52,12 @@ class ClientResponseModel(object): 'created_date': 'createdDate' } - def __init__(self, id=None, name=None, description=None, type=None, roles=None, access_key_count=None, created_date=None): # noqa: E501 + def __init__(self, id=None, name=None, description=None, type=None, roles=None, access_key_count=None, created_date=None, _configuration=None): # noqa: E501 """ClientResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._description = None @@ -57,6 +66,7 @@ def __init__(self, id=None, name=None, description=None, type=None, roles=None, self._access_key_count = None self._created_date = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -162,7 +172,8 @@ def type(self, type): :type: str """ allowed_values = ["Service"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -279,8 +290,11 @@ def __eq__(self, other): if not isinstance(other, ClientResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ClientResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_account_group_request_model.py b/cloudcheckr_cmx_client/models/create_request_account_group_request_model.py index a2c560f..7700f0b 100644 --- a/cloudcheckr_cmx_client/models/create_request_account_group_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_account_group_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestAccountGroupRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestAccountGroupRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestAccountGroupRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestAccountGroupRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestAccountGroupRequestModel. # noqa: E501 :rtype: AccountGroupRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestAccountGroupRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestAccountGroupRequestModel. # noqa: E501 :type: AccountGroupRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestAccountGroupRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestAccountGroupRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_azure_billing_account_selection_request_model.py b/cloudcheckr_cmx_client/models/create_request_azure_billing_account_selection_request_model.py index 2ceb85e..b0b6cd3 100644 --- a/cloudcheckr_cmx_client/models/create_request_azure_billing_account_selection_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_azure_billing_account_selection_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestAzureBillingAccountSelectionRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestAzureBillingAccountSelectionRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestAzureBillingAccountSelectionRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestAzureBillingAccountSelectionRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestAzureBillingAccountSelectionRequestModel. # noqa: E501 :rtype: AzureBillingAccountSelectionRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestAzureBillingAccountSelectionRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestAzureBillingAccountSelectionRequestModel. # noqa: E501 :type: AzureBillingAccountSelectionRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestAzureBillingAccountSelectionRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestAzureBillingAccountSelectionRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_client_access_key_request_model.py b/cloudcheckr_cmx_client/models/create_request_client_access_key_request_model.py index 0c8d9bd..2e8274b 100644 --- a/cloudcheckr_cmx_client/models/create_request_client_access_key_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_client_access_key_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestClientAccessKeyRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestClientAccessKeyRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestClientAccessKeyRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestClientAccessKeyRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestClientAccessKeyRequestModel. # noqa: E501 :rtype: ClientAccessKeyRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestClientAccessKeyRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestClientAccessKeyRequestModel. # noqa: E501 :type: ClientAccessKeyRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestClientAccessKeyRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestClientAccessKeyRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_client_create_request_model.py b/cloudcheckr_cmx_client/models/create_request_client_create_request_model.py index 516b110..ba0645c 100644 --- a/cloudcheckr_cmx_client/models/create_request_client_create_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_client_create_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestClientCreateRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestClientCreateRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestClientCreateRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestClientCreateRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestClientCreateRequestModel. # noqa: E501 :rtype: ClientCreateRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestClientCreateRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestClientCreateRequestModel. # noqa: E501 :type: ClientCreateRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestClientCreateRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestClientCreateRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_general_account_request_model.py b/cloudcheckr_cmx_client/models/create_request_general_account_request_model.py index 85eb001..6241424 100644 --- a/cloudcheckr_cmx_client/models/create_request_general_account_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_general_account_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestGeneralAccountRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestGeneralAccountRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestGeneralAccountRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestGeneralAccountRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestGeneralAccountRequestModel. # noqa: E501 :rtype: GeneralAccountRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestGeneralAccountRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestGeneralAccountRequestModel. # noqa: E501 :type: GeneralAccountRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestGeneralAccountRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestGeneralAccountRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_mav_request_model.py b/cloudcheckr_cmx_client/models/create_request_mav_request_model.py index d55d055..0555d20 100644 --- a/cloudcheckr_cmx_client/models/create_request_mav_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_mav_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestMavRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestMavRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestMavRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestMavRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestMavRequestModel. # noqa: E501 :rtype: MavRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestMavRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestMavRequestModel. # noqa: E501 :type: MavRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestMavRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestMavRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_permission_set_request_model.py b/cloudcheckr_cmx_client/models/create_request_permission_set_request_model.py index 7950cb9..2470bff 100644 --- a/cloudcheckr_cmx_client/models/create_request_permission_set_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_permission_set_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestPermissionSetRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestPermissionSetRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestPermissionSetRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestPermissionSetRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestPermissionSetRequestModel. # noqa: E501 :rtype: PermissionSetRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestPermissionSetRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestPermissionSetRequestModel. # noqa: E501 :type: PermissionSetRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestPermissionSetRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestPermissionSetRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_role_request_model.py b/cloudcheckr_cmx_client/models/create_request_role_request_model.py index ed5663c..4a1b480 100644 --- a/cloudcheckr_cmx_client/models/create_request_role_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_role_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestRoleRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestRoleRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestRoleRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestRoleRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestRoleRequestModel. # noqa: E501 :rtype: RoleRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestRoleRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestRoleRequestModel. # noqa: E501 :type: RoleRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestRoleRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestRoleRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_saml_provider_request_model.py b/cloudcheckr_cmx_client/models/create_request_saml_provider_request_model.py index 6c44454..e704201 100644 --- a/cloudcheckr_cmx_client/models/create_request_saml_provider_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_saml_provider_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestSamlProviderRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestSamlProviderRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestSamlProviderRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestSamlProviderRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestSamlProviderRequestModel. # noqa: E501 :rtype: SamlProviderRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestSamlProviderRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestSamlProviderRequestModel. # noqa: E501 :type: SamlProviderRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestSamlProviderRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestSamlProviderRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_saml_provider_rule_request_model.py b/cloudcheckr_cmx_client/models/create_request_saml_provider_rule_request_model.py index 7da37ae..29c1e56 100644 --- a/cloudcheckr_cmx_client/models/create_request_saml_provider_rule_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_saml_provider_rule_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestSamlProviderRuleRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestSamlProviderRuleRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestSamlProviderRuleRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestSamlProviderRuleRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestSamlProviderRuleRequestModel. # noqa: E501 :rtype: SamlProviderRuleRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestSamlProviderRuleRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestSamlProviderRuleRequestModel. # noqa: E501 :type: SamlProviderRuleRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestSamlProviderRuleRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestSamlProviderRuleRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_user_request_model.py b/cloudcheckr_cmx_client/models/create_request_user_request_model.py index 80e85a2..3b806d3 100644 --- a/cloudcheckr_cmx_client/models/create_request_user_request_model.py +++ b/cloudcheckr_cmx_client/models/create_request_user_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CreateRequestUserRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CreateRequestUserRequestModel(object): 'item': 'item' } - def __init__(self, item=None): # noqa: E501 + def __init__(self, item=None, _configuration=None): # noqa: E501 """CreateRequestUserRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self.discriminator = None + if item is not None: self.item = item @@ -46,6 +56,7 @@ def __init__(self, item=None): # noqa: E501 def item(self): """Gets the item of this CreateRequestUserRequestModel. # noqa: E501 + Item to create # noqa: E501 :return: The item of this CreateRequestUserRequestModel. # noqa: E501 :rtype: UserRequestModel @@ -56,6 +67,7 @@ def item(self): def item(self, item): """Sets the item of this CreateRequestUserRequestModel. + Item to create # noqa: E501 :param item: The item of this CreateRequestUserRequestModel. # noqa: E501 :type: UserRequestModel @@ -103,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CreateRequestUserRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CreateRequestUserRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/credential_metadata_model.py b/cloudcheckr_cmx_client/models/credential_metadata_model.py index 081b63f..74cfb26 100644 --- a/cloudcheckr_cmx_client/models/credential_metadata_model.py +++ b/cloudcheckr_cmx_client/models/credential_metadata_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CredentialMetadataModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class CredentialMetadataModel(object): 'value': 'value' } - def __init__(self, id=None, description=None, value=None): # noqa: E501 + def __init__(self, id=None, description=None, value=None, _configuration=None): # noqa: E501 """CredentialMetadataModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._description = None self._value = None self.discriminator = None + if id is not None: self.id = id if description is not None: @@ -161,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, CredentialMetadataModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CredentialMetadataModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/credential_response_model.py b/cloudcheckr_cmx_client/models/credential_response_model.py index 165e87c..6d958cf 100644 --- a/cloudcheckr_cmx_client/models/credential_response_model.py +++ b/cloudcheckr_cmx_client/models/credential_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CredentialResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -59,8 +64,12 @@ class CredentialResponseModel(object): 'verification_results': 'verificationResults' } - def __init__(self, provider=None, provider_sub_type=None, provider_identifier=None, provider_billing_identifier=None, region_group=None, purpose=None, credential_metadata=None, created_date=None, updated_date=None, last_verified_date=None, last_refreshed_date=None, verification_summary=None, verification_results=None): # noqa: E501 + def __init__(self, provider=None, provider_sub_type=None, provider_identifier=None, provider_billing_identifier=None, region_group=None, purpose=None, credential_metadata=None, created_date=None, updated_date=None, last_verified_date=None, last_refreshed_date=None, verification_summary=None, verification_results=None, _configuration=None): # noqa: E501 """CredentialResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._provider = None self._provider_sub_type = None self._provider_identifier = None @@ -75,6 +84,7 @@ def __init__(self, provider=None, provider_sub_type=None, provider_identifier=No self._verification_summary = None self._verification_results = None self.discriminator = None + if provider is not None: self.provider = provider if provider_sub_type is not None: @@ -123,7 +133,8 @@ def provider(self, provider): :type: str """ allowed_values = ["NotApplicable", "AWS", "Azure", "Google", "VMware", "Oracle"] # noqa: E501 - if provider not in allowed_values: + if (self._configuration.client_side_validation and + provider not in allowed_values): raise ValueError( "Invalid value for `provider` ({0}), must be one of {1}" # noqa: E501 .format(provider, allowed_values) @@ -382,7 +393,8 @@ def verification_summary(self, verification_summary): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Skipped", "Empty", "RequestingAccess", "RequiresAccountSelection"] # noqa: E501 - if verification_summary not in allowed_values: + if (self._configuration.client_side_validation and + verification_summary not in allowed_values): raise ValueError( "Invalid value for `verification_summary` ({0}), must be one of {1}" # noqa: E501 .format(verification_summary, allowed_values) @@ -453,8 +465,11 @@ def __eq__(self, other): if not isinstance(other, CredentialResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CredentialResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/credentials_response_model.py b/cloudcheckr_cmx_client/models/credentials_response_model.py index f8cabde..ff16eca 100644 --- a/cloudcheckr_cmx_client/models/credentials_response_model.py +++ b/cloudcheckr_cmx_client/models/credentials_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CredentialsResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class CredentialsResponseModel(object): 'credentials': 'credentials' } - def __init__(self, credentials=None): # noqa: E501 + def __init__(self, credentials=None, _configuration=None): # noqa: E501 """CredentialsResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._credentials = None self.discriminator = None + if credentials is not None: self.credentials = credentials @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, CredentialsResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CredentialsResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/custom_theme_request_model.py b/cloudcheckr_cmx_client/models/custom_theme_request_model.py index d161128..70a5ecb 100644 --- a/cloudcheckr_cmx_client/models/custom_theme_request_model.py +++ b/cloudcheckr_cmx_client/models/custom_theme_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CustomThemeRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,7 +40,8 @@ class CustomThemeRequestModel(object): 'colors_accent': 'str', 'colors_dark_nav_icons': 'bool', 'support_info_support_link': 'str', - 'support_info_support_link_text': 'str' + 'support_info_support_link_text': 'str', + 'landing_page': 'LandingPageModel' } attribute_map = { @@ -46,11 +52,16 @@ class CustomThemeRequestModel(object): 'colors_accent': 'colorsAccent', 'colors_dark_nav_icons': 'colorsDarkNavIcons', 'support_info_support_link': 'supportInfoSupportLink', - 'support_info_support_link_text': 'supportInfoSupportLinkText' + 'support_info_support_link_text': 'supportInfoSupportLinkText', + 'landing_page': 'landingPage' } - def __init__(self, logo=None, browser_tab_title=None, browser_tab_icon=None, colors_nav=None, colors_accent=None, colors_dark_nav_icons=None, support_info_support_link=None, support_info_support_link_text=None): # noqa: E501 + def __init__(self, logo=None, browser_tab_title=None, browser_tab_icon=None, colors_nav=None, colors_accent=None, colors_dark_nav_icons=None, support_info_support_link=None, support_info_support_link_text=None, landing_page=None, _configuration=None): # noqa: E501 """CustomThemeRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._logo = None self._browser_tab_title = None self._browser_tab_icon = None @@ -59,7 +70,9 @@ def __init__(self, logo=None, browser_tab_title=None, browser_tab_icon=None, col self._colors_dark_nav_icons = None self._support_info_support_link = None self._support_info_support_link_text = None + self._landing_page = None self.discriminator = None + if logo is not None: self.logo = logo if browser_tab_title is not None: @@ -76,6 +89,8 @@ def __init__(self, logo=None, browser_tab_title=None, browser_tab_icon=None, col self.support_info_support_link = support_info_support_link if support_info_support_link_text is not None: self.support_info_support_link_text = support_info_support_link_text + if landing_page is not None: + self.landing_page = landing_page @property def logo(self): @@ -261,6 +276,29 @@ def support_info_support_link_text(self, support_info_support_link_text): self._support_info_support_link_text = support_info_support_link_text + @property + def landing_page(self): + """Gets the landing_page of this CustomThemeRequestModel. # noqa: E501 + + Landing page configuration. Default landing page when a user first logs in. This property supports: resetting. # noqa: E501 + + :return: The landing_page of this CustomThemeRequestModel. # noqa: E501 + :rtype: LandingPageModel + """ + return self._landing_page + + @landing_page.setter + def landing_page(self, landing_page): + """Sets the landing_page of this CustomThemeRequestModel. + + Landing page configuration. Default landing page when a user first logs in. This property supports: resetting. # noqa: E501 + + :param landing_page: The landing_page of this CustomThemeRequestModel. # noqa: E501 + :type: LandingPageModel + """ + + self._landing_page = landing_page + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -301,8 +339,11 @@ def __eq__(self, other): if not isinstance(other, CustomThemeRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomThemeRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/custom_theme_response_model.py b/cloudcheckr_cmx_client/models/custom_theme_response_model.py index c511941..1741ac7 100644 --- a/cloudcheckr_cmx_client/models/custom_theme_response_model.py +++ b/cloudcheckr_cmx_client/models/custom_theme_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CustomThemeResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,7 +42,8 @@ class CustomThemeResponseModel(object): 'colors_accent': 'str', 'colors_dark_nav_icons': 'bool', 'support_info_support_link': 'str', - 'support_info_support_link_text': 'str' + 'support_info_support_link_text': 'str', + 'landing_page': 'LandingPageModel' } attribute_map = { @@ -50,11 +56,16 @@ class CustomThemeResponseModel(object): 'colors_accent': 'colorsAccent', 'colors_dark_nav_icons': 'colorsDarkNavIcons', 'support_info_support_link': 'supportInfoSupportLink', - 'support_info_support_link_text': 'supportInfoSupportLinkText' + 'support_info_support_link_text': 'supportInfoSupportLinkText', + 'landing_page': 'landingPage' } - def __init__(self, customer_id=None, customer_name=None, logo=None, browser_tab_title=None, browser_tab_icon=None, colors_nav=None, colors_accent=None, colors_dark_nav_icons=None, support_info_support_link=None, support_info_support_link_text=None): # noqa: E501 + def __init__(self, customer_id=None, customer_name=None, logo=None, browser_tab_title=None, browser_tab_icon=None, colors_nav=None, colors_accent=None, colors_dark_nav_icons=None, support_info_support_link=None, support_info_support_link_text=None, landing_page=None, _configuration=None): # noqa: E501 """CustomThemeResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._customer_id = None self._customer_name = None self._logo = None @@ -65,7 +76,9 @@ def __init__(self, customer_id=None, customer_name=None, logo=None, browser_tab_ self._colors_dark_nav_icons = None self._support_info_support_link = None self._support_info_support_link_text = None + self._landing_page = None self.discriminator = None + if customer_id is not None: self.customer_id = customer_id if customer_name is not None: @@ -86,6 +99,8 @@ def __init__(self, customer_id=None, customer_name=None, logo=None, browser_tab_ self.support_info_support_link = support_info_support_link if support_info_support_link_text is not None: self.support_info_support_link_text = support_info_support_link_text + if landing_page is not None: + self.landing_page = landing_page @property def customer_id(self): @@ -317,6 +332,29 @@ def support_info_support_link_text(self, support_info_support_link_text): self._support_info_support_link_text = support_info_support_link_text + @property + def landing_page(self): + """Gets the landing_page of this CustomThemeResponseModel. # noqa: E501 + + Landing page configuration. Default landing page when a user first logs in. # noqa: E501 + + :return: The landing_page of this CustomThemeResponseModel. # noqa: E501 + :rtype: LandingPageModel + """ + return self._landing_page + + @landing_page.setter + def landing_page(self, landing_page): + """Sets the landing_page of this CustomThemeResponseModel. + + Landing page configuration. Default landing page when a user first logs in. # noqa: E501 + + :param landing_page: The landing_page of this CustomThemeResponseModel. # noqa: E501 + :type: LandingPageModel + """ + + self._landing_page = landing_page + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -357,8 +395,11 @@ def __eq__(self, other): if not isinstance(other, CustomThemeResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomThemeResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/customer_account_basic_info.py b/cloudcheckr_cmx_client/models/customer_account_basic_info.py index c9f390f..8c2c7b3 100644 --- a/cloudcheckr_cmx_client/models/customer_account_basic_info.py +++ b/cloudcheckr_cmx_client/models/customer_account_basic_info.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CustomerAccountBasicInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class CustomerAccountBasicInfo(object): 'account_id': 'accountId' } - def __init__(self, customer_id=None, account_id=None): # noqa: E501 + def __init__(self, customer_id=None, account_id=None, _configuration=None): # noqa: E501 """CustomerAccountBasicInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._customer_id = None self._account_id = None self.discriminator = None + if customer_id is not None: self.customer_id = customer_id if account_id is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, CustomerAccountBasicInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomerAccountBasicInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/customer_account_modification.py b/cloudcheckr_cmx_client/models/customer_account_modification.py index 0d4bdca..57e5abb 100644 --- a/cloudcheckr_cmx_client/models/customer_account_modification.py +++ b/cloudcheckr_cmx_client/models/customer_account_modification.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CustomerAccountModification(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class CustomerAccountModification(object): 'action': 'action' } - def __init__(self, customer_id=None, account_id=None, action=None): # noqa: E501 + def __init__(self, customer_id=None, account_id=None, action=None, _configuration=None): # noqa: E501 """CustomerAccountModification - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._customer_id = None self._account_id = None self._action = None self.discriminator = None + if customer_id is not None: self.customer_id = customer_id if account_id is not None: @@ -119,7 +129,8 @@ def action(self, action): :type: str """ allowed_values = ["Add", "Remove"] # noqa: E501 - if action not in allowed_values: + if (self._configuration.client_side_validation and + action not in allowed_values): raise ValueError( "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501 .format(action, allowed_values) @@ -167,8 +178,11 @@ def __eq__(self, other): if not isinstance(other, CustomerAccountModification): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomerAccountModification): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/customer_plan_response_model.py b/cloudcheckr_cmx_client/models/customer_plan_response_model.py index 1124a8c..0ee7334 100644 --- a/cloudcheckr_cmx_client/models/customer_plan_response_model.py +++ b/cloudcheckr_cmx_client/models/customer_plan_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CustomerPlanResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class CustomerPlanResponseModel(object): 'plan_type': 'planType' } - def __init__(self, end_date=None, plan_type=None): # noqa: E501 + def __init__(self, end_date=None, plan_type=None, _configuration=None): # noqa: E501 """CustomerPlanResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._end_date = None self._plan_type = None self.discriminator = None + if end_date is not None: self.end_date = end_date if plan_type is not None: @@ -91,7 +101,8 @@ def plan_type(self, plan_type): :type: str """ allowed_values = ["Evaluation", "Paid", "Enterprise"] # noqa: E501 - if plan_type not in allowed_values: + if (self._configuration.client_side_validation and + plan_type not in allowed_values): raise ValueError( "Invalid value for `plan_type` ({0}), must be one of {1}" # noqa: E501 .format(plan_type, allowed_values) @@ -139,8 +150,11 @@ def __eq__(self, other): if not isinstance(other, CustomerPlanResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomerPlanResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/customer_response_model.py b/cloudcheckr_cmx_client/models/customer_response_model.py index eb26863..dc58e18 100644 --- a/cloudcheckr_cmx_client/models/customer_response_model.py +++ b/cloudcheckr_cmx_client/models/customer_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class CustomerResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -49,8 +54,12 @@ class CustomerResponseModel(object): 'plan': 'plan' } - def __init__(self, id=None, name=None, parent_id=None, state=None, signup_type=None, disabled_date=None, saas_customer_id=None, plan=None): # noqa: E501 + def __init__(self, id=None, name=None, parent_id=None, state=None, signup_type=None, disabled_date=None, saas_customer_id=None, plan=None, _configuration=None): # noqa: E501 """CustomerResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._parent_id = None @@ -60,6 +69,7 @@ def __init__(self, id=None, name=None, parent_id=None, state=None, signup_type=N self._saas_customer_id = None self._plan = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -167,7 +177,8 @@ def state(self, state): :type: str """ allowed_values = ["Pending", "Active", "Disabled"] # noqa: E501 - if state not in allowed_values: + if (self._configuration.client_side_validation and + state not in allowed_values): raise ValueError( "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 .format(state, allowed_values) @@ -196,7 +207,8 @@ def signup_type(self, signup_type): :type: str """ allowed_values = ["Standard", "AwsMarketplace", "TackleAws", "TackleAzure"] # noqa: E501 - if signup_type not in allowed_values: + if (self._configuration.client_side_validation and + signup_type not in allowed_values): raise ValueError( "Invalid value for `signup_type` ({0}), must be one of {1}" # noqa: E501 .format(signup_type, allowed_values) @@ -254,6 +266,7 @@ def saas_customer_id(self, saas_customer_id): def plan(self): """Gets the plan of this CustomerResponseModel. # noqa: E501 + The plan type selected for this customer. # noqa: E501 :return: The plan of this CustomerResponseModel. # noqa: E501 :rtype: CustomerPlanResponseModel @@ -264,6 +277,7 @@ def plan(self): def plan(self, plan): """Sets the plan of this CustomerResponseModel. + The plan type selected for this customer. # noqa: E501 :param plan: The plan of this CustomerResponseModel. # noqa: E501 :type: CustomerPlanResponseModel @@ -311,8 +325,11 @@ def __eq__(self, other): if not isinstance(other, CustomerResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, CustomerResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/developer_info.py b/cloudcheckr_cmx_client/models/developer_info.py index 77b59d9..8683ef4 100644 --- a/cloudcheckr_cmx_client/models/developer_info.py +++ b/cloudcheckr_cmx_client/models/developer_info.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class DeveloperInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class DeveloperInfo(object): 'exception_full_stack': 'exceptionFullStack' } - def __init__(self, exception_type=None, exception_message=None, exception_full_stack=None): # noqa: E501 + def __init__(self, exception_type=None, exception_message=None, exception_full_stack=None, _configuration=None): # noqa: E501 """DeveloperInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._exception_type = None self._exception_message = None self._exception_full_stack = None self.discriminator = None + if exception_type is not None: self.exception_type = exception_type if exception_message is not None: @@ -155,8 +165,11 @@ def __eq__(self, other): if not isinstance(other, DeveloperInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, DeveloperInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/error.py b/cloudcheckr_cmx_client/models/error.py index 6e35191..88a4a13 100644 --- a/cloudcheckr_cmx_client/models/error.py +++ b/cloudcheckr_cmx_client/models/error.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class Error(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -49,8 +54,12 @@ class Error(object): 'developer_info': 'developerInfo' } - def __init__(self, http_status_code=None, code=None, message=None, target=None, details=None, inner_error=None, correlation_id=None, developer_info=None): # noqa: E501 + def __init__(self, http_status_code=None, code=None, message=None, target=None, details=None, inner_error=None, correlation_id=None, developer_info=None, _configuration=None): # noqa: E501 """Error - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._http_status_code = None self._code = None self._message = None @@ -60,6 +69,7 @@ def __init__(self, http_status_code=None, code=None, message=None, target=None, self._correlation_id = None self._developer_info = None self.discriminator = None + if http_status_code is not None: self.http_status_code = http_status_code if code is not None: @@ -285,8 +295,11 @@ def __eq__(self, other): if not isinstance(other, Error): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Error): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/error_response.py b/cloudcheckr_cmx_client/models/error_response.py index 93c3e66..c0ba03c 100644 --- a/cloudcheckr_cmx_client/models/error_response.py +++ b/cloudcheckr_cmx_client/models/error_response.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ErrorResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class ErrorResponse(object): 'error': 'error' } - def __init__(self, error=None): # noqa: E501 + def __init__(self, error=None, _configuration=None): # noqa: E501 """ErrorResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._error = None self.discriminator = None + if error is not None: self.error = error @@ -103,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, ErrorResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ErrorResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/general_account_request_model.py b/cloudcheckr_cmx_client/models/general_account_request_model.py index 3add7cd..b8aebdb 100644 --- a/cloudcheckr_cmx_client/models/general_account_request_model.py +++ b/cloudcheckr_cmx_client/models/general_account_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class GeneralAccountRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -43,14 +48,19 @@ class GeneralAccountRequestModel(object): 'associated_account_attributes': 'associatedAccountAttributes' } - def __init__(self, name=None, provider=None, parent_id=None, payee_configuration=None, associated_account_attributes=None): # noqa: E501 + def __init__(self, name=None, provider=None, parent_id=None, payee_configuration=None, associated_account_attributes=None, _configuration=None): # noqa: E501 """GeneralAccountRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._provider = None self._parent_id = None self._payee_configuration = None self._associated_account_attributes = None self.discriminator = None + if name is not None: self.name = name if provider is not None: @@ -106,7 +116,8 @@ def provider(self, provider): :type: str """ allowed_values = ["NotApplicable", "AWS", "Azure", "Google", "VMware", "Oracle"] # noqa: E501 - if provider not in allowed_values: + if (self._configuration.client_side_validation and + provider not in allowed_values): raise ValueError( "Invalid value for `provider` ({0}), must be one of {1}" # noqa: E501 .format(provider, allowed_values) @@ -141,6 +152,7 @@ def parent_id(self, parent_id): def payee_configuration(self): """Gets the payee_configuration of this GeneralAccountRequestModel. # noqa: E501 + Configuration for payees. # noqa: E501 :return: The payee_configuration of this GeneralAccountRequestModel. # noqa: E501 :rtype: PayeeConfigurationModel @@ -151,6 +163,7 @@ def payee_configuration(self): def payee_configuration(self, payee_configuration): """Sets the payee_configuration of this GeneralAccountRequestModel. + Configuration for payees. # noqa: E501 :param payee_configuration: The payee_configuration of this GeneralAccountRequestModel. # noqa: E501 :type: PayeeConfigurationModel @@ -221,8 +234,11 @@ def __eq__(self, other): if not isinstance(other, GeneralAccountRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, GeneralAccountRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/general_account_response_model.py b/cloudcheckr_cmx_client/models/general_account_response_model.py index 6b9bb6b..b07373b 100644 --- a/cloudcheckr_cmx_client/models/general_account_response_model.py +++ b/cloudcheckr_cmx_client/models/general_account_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class GeneralAccountResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -69,8 +74,12 @@ class GeneralAccountResponseModel(object): 'name': 'name' } - def __init__(self, legacy_account_id=None, parent_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, friendly_name=None, new_parent_assignment=None, associated_account_attributes=None, payee_configuration=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None): # noqa: E501 + def __init__(self, legacy_account_id=None, parent_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, friendly_name=None, new_parent_assignment=None, associated_account_attributes=None, payee_configuration=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None, _configuration=None): # noqa: E501 """GeneralAccountResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._legacy_account_id = None self._parent_id = None self._provider_identifier = None @@ -90,6 +99,7 @@ def __init__(self, legacy_account_id=None, parent_id=None, provider_identifier=N self._id = None self._name = None self.discriminator = None + if legacy_account_id is not None: self.legacy_account_id = legacy_account_id if parent_id is not None: @@ -240,7 +250,8 @@ def provider_payment_type(self, provider_payment_type): :type: str """ allowed_values = ["Payer", "Payee"] # noqa: E501 - if provider_payment_type not in allowed_values: + if (self._configuration.client_side_validation and + provider_payment_type not in allowed_values): raise ValueError( "Invalid value for `provider_payment_type` ({0}), must be one of {1}" # noqa: E501 .format(provider_payment_type, allowed_values) @@ -298,6 +309,7 @@ def friendly_name(self, friendly_name): def new_parent_assignment(self): """Gets the new_parent_assignment of this GeneralAccountResponseModel. # noqa: E501 + The account group's parent assignment results. # noqa: E501 :return: The new_parent_assignment of this GeneralAccountResponseModel. # noqa: E501 :rtype: ParentAssignment @@ -308,6 +320,7 @@ def new_parent_assignment(self): def new_parent_assignment(self, new_parent_assignment): """Sets the new_parent_assignment of this GeneralAccountResponseModel. + The account group's parent assignment results. # noqa: E501 :param new_parent_assignment: The new_parent_assignment of this GeneralAccountResponseModel. # noqa: E501 :type: ParentAssignment @@ -342,6 +355,7 @@ def associated_account_attributes(self, associated_account_attributes): def payee_configuration(self): """Gets the payee_configuration of this GeneralAccountResponseModel. # noqa: E501 + Configuration for payees. # noqa: E501 :return: The payee_configuration of this GeneralAccountResponseModel. # noqa: E501 :rtype: PayeeConfigurationModel @@ -352,6 +366,7 @@ def payee_configuration(self): def payee_configuration(self, payee_configuration): """Sets the payee_configuration of this GeneralAccountResponseModel. + Configuration for payees. # noqa: E501 :param payee_configuration: The payee_configuration of this GeneralAccountResponseModel. # noqa: E501 :type: PayeeConfigurationModel @@ -380,7 +395,8 @@ def type(self, type): :type: str """ allowed_values = ["Group", "General", "MAV"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -501,7 +517,8 @@ def credential_verification_status(self, credential_verification_status): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Empty", "NotConfigured"] # noqa: E501 - if credential_verification_status not in allowed_values: + if (self._configuration.client_side_validation and + credential_verification_status not in allowed_values): raise ValueError( "Invalid value for `credential_verification_status` ({0}), must be one of {1}" # noqa: E501 .format(credential_verification_status, allowed_values) @@ -595,8 +612,11 @@ def __eq__(self, other): if not isinstance(other, GeneralAccountResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, GeneralAccountResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/google_credential_request_model.py b/cloudcheckr_cmx_client/models/google_credential_request_model.py index af35978..a26bb8f 100644 --- a/cloudcheckr_cmx_client/models/google_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/google_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class GoogleCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class GoogleCredentialRequestModel(object): 'json_key': 'jsonKey' } - def __init__(self, json_key=None): # noqa: E501 + def __init__(self, json_key=None, _configuration=None): # noqa: E501 """GoogleCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._json_key = None self.discriminator = None + if json_key is not None: self.json_key = json_key @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, GoogleCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, GoogleCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/linked_aws_commercial_account_model.py b/cloudcheckr_cmx_client/models/linked_aws_commercial_account_model.py index 3294406..d6e908d 100644 --- a/cloudcheckr_cmx_client/models/linked_aws_commercial_account_model.py +++ b/cloudcheckr_cmx_client/models/linked_aws_commercial_account_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class LinkedAwsCommercialAccountModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class LinkedAwsCommercialAccountModel(object): 'aws_account_id': 'awsAccountId' } - def __init__(self, aws_account_id=None): # noqa: E501 + def __init__(self, aws_account_id=None, _configuration=None): # noqa: E501 """LinkedAwsCommercialAccountModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._aws_account_id = None self.discriminator = None + if aws_account_id is not None: self.aws_account_id = aws_account_id @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, LinkedAwsCommercialAccountModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, LinkedAwsCommercialAccountModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/list_modification_error.py b/cloudcheckr_cmx_client/models/list_modification_error.py index b44848f..c5b3f91 100644 --- a/cloudcheckr_cmx_client/models/list_modification_error.py +++ b/cloudcheckr_cmx_client/models/list_modification_error.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ListModificationError(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class ListModificationError(object): 'error': 'error' } - def __init__(self, id=None, error=None): # noqa: E501 + def __init__(self, id=None, error=None, _configuration=None): # noqa: E501 """ListModificationError - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._error = None self.discriminator = None + if id is not None: self.id = id if error is not None: @@ -74,6 +84,7 @@ def id(self, id): def error(self): """Gets the error of this ListModificationError. # noqa: E501 + The error associated with the modification's failure. # noqa: E501 :return: The error of this ListModificationError. # noqa: E501 :rtype: Error @@ -84,6 +95,7 @@ def error(self): def error(self, error): """Sets the error of this ListModificationError. + The error associated with the modification's failure. # noqa: E501 :param error: The error of this ListModificationError. # noqa: E501 :type: Error @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, ListModificationError): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ListModificationError): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/list_modification_request_model.py b/cloudcheckr_cmx_client/models/list_modification_request_model.py index e1bf823..68c1094 100644 --- a/cloudcheckr_cmx_client/models/list_modification_request_model.py +++ b/cloudcheckr_cmx_client/models/list_modification_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ListModificationRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class ListModificationRequestModel(object): 'modifications': 'modifications' } - def __init__(self, modifications=None): # noqa: E501 + def __init__(self, modifications=None, _configuration=None): # noqa: E501 """ListModificationRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._modifications = None self.discriminator = None + if modifications is not None: self.modifications = modifications @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, ListModificationRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ListModificationRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/list_modification_response_model.py b/cloudcheckr_cmx_client/models/list_modification_response_model.py index d9eadab..4cb2f90 100644 --- a/cloudcheckr_cmx_client/models/list_modification_response_model.py +++ b/cloudcheckr_cmx_client/models/list_modification_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ListModificationResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class ListModificationResponseModel(object): 'errors': 'errors' } - def __init__(self, errors=None): # noqa: E501 + def __init__(self, errors=None, _configuration=None): # noqa: E501 """ListModificationResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._errors = None self.discriminator = None + if errors is not None: self.errors = errors @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, ListModificationResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ListModificationResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/mapped_role_response_model.py b/cloudcheckr_cmx_client/models/mapped_role_response_model.py index fbb1914..a18a46b 100644 --- a/cloudcheckr_cmx_client/models/mapped_role_response_model.py +++ b/cloudcheckr_cmx_client/models/mapped_role_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class MappedRoleResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class MappedRoleResponseModel(object): 'name': 'name' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, id=None, name=None, _configuration=None): # noqa: E501 """MappedRoleResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, MappedRoleResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MappedRoleResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/mav_request_model.py b/cloudcheckr_cmx_client/models/mav_request_model.py index aeebba0..84ec2a5 100644 --- a/cloudcheckr_cmx_client/models/mav_request_model.py +++ b/cloudcheckr_cmx_client/models/mav_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class MavRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class MavRequestModel(object): 'associated_account_attributes': 'associatedAccountAttributes' } - def __init__(self, name=None, include_all_accounts=None, provider=None, associated_account_attributes=None): # noqa: E501 + def __init__(self, name=None, include_all_accounts=None, provider=None, associated_account_attributes=None, _configuration=None): # noqa: E501 """MavRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._include_all_accounts = None self._provider = None self._associated_account_attributes = None self.discriminator = None + if name is not None: self.name = name if include_all_accounts is not None: @@ -124,7 +134,8 @@ def provider(self, provider): :type: str """ allowed_values = ["NotApplicable", "AWS", "Azure", "Google", "VMware", "Oracle"] # noqa: E501 - if provider not in allowed_values: + if (self._configuration.client_side_validation and + provider not in allowed_values): raise ValueError( "Invalid value for `provider` ({0}), must be one of {1}" # noqa: E501 .format(provider, allowed_values) @@ -195,8 +206,11 @@ def __eq__(self, other): if not isinstance(other, MavRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MavRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/mav_response_model.py b/cloudcheckr_cmx_client/models/mav_response_model.py index 9592b79..29123ee 100644 --- a/cloudcheckr_cmx_client/models/mav_response_model.py +++ b/cloudcheckr_cmx_client/models/mav_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class MavResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -63,8 +68,12 @@ class MavResponseModel(object): 'name': 'name' } - def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, include_all_accounts=None, associated_account_attributes=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None): # noqa: E501 + def __init__(self, legacy_account_id=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, include_all_accounts=None, associated_account_attributes=None, type=None, provider=None, created_date=None, has_pending_change=None, is_system_managed=None, credential_verification_status=None, id=None, name=None, _configuration=None): # noqa: E501 """MavResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._legacy_account_id = None self._provider_identifier = None self._provider_sub_type = None @@ -81,6 +90,7 @@ def __init__(self, legacy_account_id=None, provider_identifier=None, provider_su self._id = None self._name = None self.discriminator = None + if legacy_account_id is not None: self.legacy_account_id = legacy_account_id if provider_identifier is not None: @@ -202,7 +212,8 @@ def provider_payment_type(self, provider_payment_type): :type: str """ allowed_values = ["Payer", "Payee"] # noqa: E501 - if provider_payment_type not in allowed_values: + if (self._configuration.client_side_validation and + provider_payment_type not in allowed_values): raise ValueError( "Invalid value for `provider_payment_type` ({0}), must be one of {1}" # noqa: E501 .format(provider_payment_type, allowed_values) @@ -300,7 +311,8 @@ def type(self, type): :type: str """ allowed_values = ["Group", "General", "MAV"] # noqa: E501 - if type not in allowed_values: + if (self._configuration.client_side_validation and + type not in allowed_values): raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 .format(type, allowed_values) @@ -421,7 +433,8 @@ def credential_verification_status(self, credential_verification_status): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Empty", "NotConfigured"] # noqa: E501 - if credential_verification_status not in allowed_values: + if (self._configuration.client_side_validation and + credential_verification_status not in allowed_values): raise ValueError( "Invalid value for `credential_verification_status` ({0}), must be one of {1}" # noqa: E501 .format(credential_verification_status, allowed_values) @@ -515,8 +528,11 @@ def __eq__(self, other): if not isinstance(other, MavResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MavResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/minimal_client_response_model.py b/cloudcheckr_cmx_client/models/minimal_client_response_model.py index b15d966..a3e1c99 100644 --- a/cloudcheckr_cmx_client/models/minimal_client_response_model.py +++ b/cloudcheckr_cmx_client/models/minimal_client_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class MinimalClientResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class MinimalClientResponseModel(object): 'name': 'name' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, id=None, name=None, _configuration=None): # noqa: E501 """MinimalClientResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, MinimalClientResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MinimalClientResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/minimal_user_response_model.py b/cloudcheckr_cmx_client/models/minimal_user_response_model.py index 39e8369..b0ea743 100644 --- a/cloudcheckr_cmx_client/models/minimal_user_response_model.py +++ b/cloudcheckr_cmx_client/models/minimal_user_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class MinimalUserResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class MinimalUserResponseModel(object): 'email': 'email' } - def __init__(self, id=None, email=None): # noqa: E501 + def __init__(self, id=None, email=None, _configuration=None): # noqa: E501 """MinimalUserResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._email = None self.discriminator = None + if id is not None: self.id = id if email is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, MinimalUserResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MinimalUserResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/new_client_access_info.py b/cloudcheckr_cmx_client/models/new_client_access_info.py index 934d21d..6ca1141 100644 --- a/cloudcheckr_cmx_client/models/new_client_access_info.py +++ b/cloudcheckr_cmx_client/models/new_client_access_info.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class NewClientAccessInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class NewClientAccessInfo(object): 'expiry_date': 'expiryDate' } - def __init__(self, id=None, name=None, access_key=None, expiry_date=None): # noqa: E501 + def __init__(self, id=None, name=None, access_key=None, expiry_date=None, _configuration=None): # noqa: E501 """NewClientAccessInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._access_key = None self._expiry_date = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -189,8 +199,11 @@ def __eq__(self, other): if not isinstance(other, NewClientAccessInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NewClientAccessInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_info.py b/cloudcheckr_cmx_client/models/pagination_info.py index 2b71aa1..36d9e3f 100644 --- a/cloudcheckr_cmx_client/models/pagination_info.py +++ b/cloudcheckr_cmx_client/models/pagination_info.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class PaginationInfo(object): 'next_key': 'nextKey' } - def __init__(self, previous_key=None, next_key=None): # noqa: E501 + def __init__(self, previous_key=None, next_key=None, _configuration=None): # noqa: E501 """PaginationInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._previous_key = None self._next_key = None self.discriminator = None + if previous_key is not None: self.previous_key = previous_key if next_key is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, PaginationInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_response_account_attribute_response_model.py b/cloudcheckr_cmx_client/models/pagination_response_account_attribute_response_model.py index 6fc8f12..cde2c60 100644 --- a/cloudcheckr_cmx_client/models/pagination_response_account_attribute_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_response_account_attribute_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationResponseAccountAttributeResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class PaginationResponseAccountAttributeResponseModel(object): 'pagination': 'pagination' } - def __init__(self, items=None, pagination=None): # noqa: E501 + def __init__(self, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationResponseAccountAttributeResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._items = None self._pagination = None self.discriminator = None + if items is not None: self.items = items if pagination is not None: @@ -74,6 +84,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationResponseAccountAttributeResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationResponseAccountAttributeResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -84,6 +95,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationResponseAccountAttributeResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationResponseAccountAttributeResponseModel. # noqa: E501 :type: PaginationInfo @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, PaginationResponseAccountAttributeResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationResponseAccountAttributeResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_response_azure_billing_account_response_model.py b/cloudcheckr_cmx_client/models/pagination_response_azure_billing_account_response_model.py index 26852f1..7aa49d8 100644 --- a/cloudcheckr_cmx_client/models/pagination_response_azure_billing_account_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_response_azure_billing_account_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationResponseAzureBillingAccountResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class PaginationResponseAzureBillingAccountResponseModel(object): 'pagination': 'pagination' } - def __init__(self, items=None, pagination=None): # noqa: E501 + def __init__(self, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationResponseAzureBillingAccountResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._items = None self._pagination = None self.discriminator = None + if items is not None: self.items = items if pagination is not None: @@ -74,6 +84,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationResponseAzureBillingAccountResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationResponseAzureBillingAccountResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -84,6 +95,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationResponseAzureBillingAccountResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationResponseAzureBillingAccountResponseModel. # noqa: E501 :type: PaginationInfo @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, PaginationResponseAzureBillingAccountResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationResponseAzureBillingAccountResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_response_permission_set_response_model.py b/cloudcheckr_cmx_client/models/pagination_response_permission_set_response_model.py index 81eaf48..697433e 100644 --- a/cloudcheckr_cmx_client/models/pagination_response_permission_set_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_response_permission_set_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationResponsePermissionSetResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class PaginationResponsePermissionSetResponseModel(object): 'pagination': 'pagination' } - def __init__(self, items=None, pagination=None): # noqa: E501 + def __init__(self, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationResponsePermissionSetResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._items = None self._pagination = None self.discriminator = None + if items is not None: self.items = items if pagination is not None: @@ -74,6 +84,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationResponsePermissionSetResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationResponsePermissionSetResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -84,6 +95,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationResponsePermissionSetResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationResponsePermissionSetResponseModel. # noqa: E501 :type: PaginationInfo @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, PaginationResponsePermissionSetResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationResponsePermissionSetResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_response_role_response_model.py b/cloudcheckr_cmx_client/models/pagination_response_role_response_model.py index c7d2391..02c6685 100644 --- a/cloudcheckr_cmx_client/models/pagination_response_role_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_response_role_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationResponseRoleResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class PaginationResponseRoleResponseModel(object): 'pagination': 'pagination' } - def __init__(self, items=None, pagination=None): # noqa: E501 + def __init__(self, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationResponseRoleResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._items = None self._pagination = None self.discriminator = None + if items is not None: self.items = items if pagination is not None: @@ -74,6 +84,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationResponseRoleResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationResponseRoleResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -84,6 +95,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationResponseRoleResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationResponseRoleResponseModel. # noqa: E501 :type: PaginationInfo @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, PaginationResponseRoleResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationResponseRoleResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_hierarchy_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_hierarchy_response_model.py index be81f37..e0bc65b 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_hierarchy_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_hierarchy_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseAccountGroupHierarchyResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseAccountGroupHierarchyResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseAccountGroupHierarchyResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseAccountGroupHierarchyResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseAccountGroupHierarchyResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseAccountGroupHierarchyResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseAccountGroupHierarchyResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseAccountGroupHierarchyResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseAccountGroupHierarchyResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_response_model.py index 09bd2bd..3277bdf 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseAccountGroupResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseAccountGroupResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseAccountGroupResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseAccountGroupResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseAccountGroupResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseAccountGroupResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseAccountGroupResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseAccountGroupResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseAccountGroupResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_search_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_search_response_model.py index 8f6b09e..9894b4a 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_search_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_account_group_search_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseAccountGroupSearchResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseAccountGroupSearchResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseAccountGroupSearchResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseAccountGroupSearchResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseAccountGroupSearchResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseAccountGroupSearchResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseAccountGroupSearchResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseAccountGroupSearchResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseAccountGroupSearchResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_client_access_key_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_client_access_key_response_model.py index 67b8867..e211161 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_client_access_key_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_client_access_key_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseClientAccessKeyResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseClientAccessKeyResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseClientAccessKeyResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseClientAccessKeyResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseClientAccessKeyResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseClientAccessKeyResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseClientAccessKeyResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseClientAccessKeyResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseClientAccessKeyResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_client_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_client_response_model.py index 1f88c69..5689fd2 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_client_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_client_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseClientResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseClientResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseClientResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseClientResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseClientResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseClientResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseClientResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseClientResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseClientResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_customer_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_customer_response_model.py index 7caa2b0..4bdab46 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_customer_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_customer_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseCustomerResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseCustomerResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseCustomerResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseCustomerResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseCustomerResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseCustomerResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseCustomerResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseCustomerResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseCustomerResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_general_account_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_general_account_response_model.py index b3aea3a..52ed275 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_general_account_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_general_account_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseGeneralAccountResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseGeneralAccountResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseGeneralAccountResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseGeneralAccountResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseGeneralAccountResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseGeneralAccountResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseGeneralAccountResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseGeneralAccountResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseGeneralAccountResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_mav_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_mav_response_model.py index 15ab3fe..bc35a64 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_mav_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_mav_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseMavResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseMavResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseMavResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseMavResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseMavResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseMavResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseMavResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseMavResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseMavResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_client_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_client_response_model.py index 4604584..45e2a64 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_client_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_client_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseMinimalClientResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseMinimalClientResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseMinimalClientResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseMinimalClientResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseMinimalClientResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseMinimalClientResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseMinimalClientResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseMinimalClientResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseMinimalClientResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_user_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_user_response_model.py index e8091eb..a5b5090 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_user_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_minimal_user_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseMinimalUserResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseMinimalUserResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseMinimalUserResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseMinimalUserResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseMinimalUserResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseMinimalUserResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseMinimalUserResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseMinimalUserResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseMinimalUserResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_parent_assignment_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_parent_assignment_response_model.py index d956495..a769845 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_parent_assignment_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_parent_assignment_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseParentAssignmentResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseParentAssignmentResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseParentAssignmentResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseParentAssignmentResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseParentAssignmentResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseParentAssignmentResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseParentAssignmentResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseParentAssignmentResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseParentAssignmentResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_permission_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_permission_response_model.py index 3da672b..1166ebf 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_permission_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_permission_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponsePermissionResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponsePermissionResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponsePermissionResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponsePermissionResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponsePermissionResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponsePermissionResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponsePermissionResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponsePermissionResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponsePermissionResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_referenced_account_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_referenced_account_response_model.py index ae4fd9f..3db74a4 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_referenced_account_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_referenced_account_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseReferencedAccountResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseReferencedAccountResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseReferencedAccountResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseReferencedAccountResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseReferencedAccountResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseReferencedAccountResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseReferencedAccountResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseReferencedAccountResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseReferencedAccountResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_response_model.py index c1d82d7..b624ffb 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseSamlProviderResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseSamlProviderResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseSamlProviderResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseSamlProviderResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseSamlProviderResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseSamlProviderResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseSamlProviderResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseSamlProviderResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseSamlProviderResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_rule_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_rule_response_model.py index a5bb267..3cde7f8 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_rule_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_saml_provider_rule_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseSamlProviderRuleResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseSamlProviderRuleResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseSamlProviderRuleResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseSamlProviderRuleResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseSamlProviderRuleResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseSamlProviderRuleResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseSamlProviderRuleResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseSamlProviderRuleResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseSamlProviderRuleResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_user_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_user_response_model.py index 3341eef..88bd633 100644 --- a/cloudcheckr_cmx_client/models/pagination_with_count_response_user_response_model.py +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_user_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PaginationWithCountResponseUserResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PaginationWithCountResponseUserResponseModel(object): 'pagination': 'pagination' } - def __init__(self, total_count=None, items=None, pagination=None): # noqa: E501 + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 """PaginationWithCountResponseUserResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._total_count = None self._items = None self._pagination = None self.discriminator = None + if total_count is not None: self.total_count = total_count if items is not None: @@ -102,6 +112,7 @@ def items(self, items): def pagination(self): """Gets the pagination of this PaginationWithCountResponseUserResponseModel. # noqa: E501 + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :return: The pagination of this PaginationWithCountResponseUserResponseModel. # noqa: E501 :rtype: PaginationInfo @@ -112,6 +123,7 @@ def pagination(self): def pagination(self, pagination): """Sets the pagination of this PaginationWithCountResponseUserResponseModel. + Key information required to request other pages of data. Will be null / absent if there is only one page. # noqa: E501 :param pagination: The pagination of this PaginationWithCountResponseUserResponseModel. # noqa: E501 :type: PaginationInfo @@ -159,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PaginationWithCountResponseUserResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PaginationWithCountResponseUserResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/parent_assignment.py b/cloudcheckr_cmx_client/models/parent_assignment.py index fbf7b96..ecf8250 100644 --- a/cloudcheckr_cmx_client/models/parent_assignment.py +++ b/cloudcheckr_cmx_client/models/parent_assignment.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ParentAssignment(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class ParentAssignment(object): 'new_parent': 'newParent' } - def __init__(self, id=None, state=None, new_parent=None): # noqa: E501 + def __init__(self, id=None, state=None, new_parent=None, _configuration=None): # noqa: E501 """ParentAssignment - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._state = None self._new_parent = None self.discriminator = None + if id is not None: self.id = id if state is not None: @@ -96,7 +106,8 @@ def state(self, state): :type: str """ allowed_values = ["Pending", "InProgress", "Completed"] # noqa: E501 - if state not in allowed_values: + if (self._configuration.client_side_validation and + state not in allowed_values): raise ValueError( "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 .format(state, allowed_values) @@ -167,8 +178,11 @@ def __eq__(self, other): if not isinstance(other, ParentAssignment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ParentAssignment): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/parent_assignment_response_model.py b/cloudcheckr_cmx_client/models/parent_assignment_response_model.py index 0f3f4de..6d16f6c 100644 --- a/cloudcheckr_cmx_client/models/parent_assignment_response_model.py +++ b/cloudcheckr_cmx_client/models/parent_assignment_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ParentAssignmentResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -55,8 +60,12 @@ class ParentAssignmentResponseModel(object): 'target_expected_parent': 'targetExpectedParent' } - def __init__(self, id=None, state=None, new_parent=None, date_started=None, date_requested=None, date_last_activity=None, date_completed=None, error_message=None, correlation_id=None, target_account_group_id=None, target_expected_parent=None): # noqa: E501 + def __init__(self, id=None, state=None, new_parent=None, date_started=None, date_requested=None, date_last_activity=None, date_completed=None, error_message=None, correlation_id=None, target_account_group_id=None, target_expected_parent=None, _configuration=None): # noqa: E501 """ParentAssignmentResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._state = None self._new_parent = None @@ -69,6 +78,7 @@ def __init__(self, id=None, state=None, new_parent=None, date_started=None, date self._target_account_group_id = None self._target_expected_parent = None self.discriminator = None + if id is not None: self.id = id if state is not None: @@ -136,7 +146,8 @@ def state(self, state): :type: str """ allowed_values = ["Pending", "InProgress", "Completed"] # noqa: E501 - if state not in allowed_values: + if (self._configuration.client_side_validation and + state not in allowed_values): raise ValueError( "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 .format(state, allowed_values) @@ -391,8 +402,11 @@ def __eq__(self, other): if not isinstance(other, ParentAssignmentResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ParentAssignmentResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/payee_configuration_model.py b/cloudcheckr_cmx_client/models/payee_configuration_model.py index 7ac91c9..34a21c2 100644 --- a/cloudcheckr_cmx_client/models/payee_configuration_model.py +++ b/cloudcheckr_cmx_client/models/payee_configuration_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PayeeConfigurationModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class PayeeConfigurationModel(object): 'payee_location_group_id': 'payeeLocationGroupId' } - def __init__(self, default_payee_location=None, payee_location_group_id=None): # noqa: E501 + def __init__(self, default_payee_location=None, payee_location_group_id=None, _configuration=None): # noqa: E501 """PayeeConfigurationModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._default_payee_location = None self._payee_location_group_id = None self.discriminator = None + if default_payee_location is not None: self.default_payee_location = default_payee_location if payee_location_group_id is not None: @@ -68,7 +78,8 @@ def default_payee_location(self, default_payee_location): :type: str """ allowed_values = ["Default", "SameAsPayer", "SpecificAccountGroup"] # noqa: E501 - if default_payee_location not in allowed_values: + if (self._configuration.client_side_validation and + default_payee_location not in allowed_values): raise ValueError( "Invalid value for `default_payee_location` ({0}), must be one of {1}" # noqa: E501 .format(default_payee_location, allowed_values) @@ -139,8 +150,11 @@ def __eq__(self, other): if not isinstance(other, PayeeConfigurationModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PayeeConfigurationModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/permission_group_model.py b/cloudcheckr_cmx_client/models/permission_group_model.py index a70e70c..a789a25 100644 --- a/cloudcheckr_cmx_client/models/permission_group_model.py +++ b/cloudcheckr_cmx_client/models/permission_group_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PermissionGroupModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PermissionGroupModel(object): 'full_path': 'fullPath' } - def __init__(self, id=None, name=None, full_path=None): # noqa: E501 + def __init__(self, id=None, name=None, full_path=None, _configuration=None): # noqa: E501 """PermissionGroupModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._full_path = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -161,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PermissionGroupModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionGroupModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/permission_response_model.py b/cloudcheckr_cmx_client/models/permission_response_model.py index 81e03d2..5a13281 100644 --- a/cloudcheckr_cmx_client/models/permission_response_model.py +++ b/cloudcheckr_cmx_client/models/permission_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PermissionResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -43,14 +48,19 @@ class PermissionResponseModel(object): 'related_permissions': 'relatedPermissions' } - def __init__(self, id=None, name=None, description=None, display_grouping=None, related_permissions=None): # noqa: E501 + def __init__(self, id=None, name=None, description=None, display_grouping=None, related_permissions=None, _configuration=None): # noqa: E501 """PermissionResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._description = None self._display_grouping = None self._related_permissions = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -135,6 +145,7 @@ def description(self, description): def display_grouping(self): """Gets the display_grouping of this PermissionResponseModel. # noqa: E501 + The full path of the the permission's grouping. Example: /Administration/User Management. This property supports: sorting and filtering. # noqa: E501 :return: The display_grouping of this PermissionResponseModel. # noqa: E501 :rtype: PermissionGroupModel @@ -145,6 +156,7 @@ def display_grouping(self): def display_grouping(self, display_grouping): """Sets the display_grouping of this PermissionResponseModel. + The full path of the the permission's grouping. Example: /Administration/User Management. This property supports: sorting and filtering. # noqa: E501 :param display_grouping: The display_grouping of this PermissionResponseModel. # noqa: E501 :type: PermissionGroupModel @@ -215,8 +227,11 @@ def __eq__(self, other): if not isinstance(other, PermissionResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/permission_set_basic_info.py b/cloudcheckr_cmx_client/models/permission_set_basic_info.py index 5a135c7..96ce233 100644 --- a/cloudcheckr_cmx_client/models/permission_set_basic_info.py +++ b/cloudcheckr_cmx_client/models/permission_set_basic_info.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PermissionSetBasicInfo(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PermissionSetBasicInfo(object): 'is_missing': 'isMissing' } - def __init__(self, id=None, name=None, is_missing=None): # noqa: E501 + def __init__(self, id=None, name=None, is_missing=None, _configuration=None): # noqa: E501 """PermissionSetBasicInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._is_missing = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -161,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, PermissionSetBasicInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionSetBasicInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/permission_set_permission_model.py b/cloudcheckr_cmx_client/models/permission_set_permission_model.py index b0da50b..9513761 100644 --- a/cloudcheckr_cmx_client/models/permission_set_permission_model.py +++ b/cloudcheckr_cmx_client/models/permission_set_permission_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PermissionSetPermissionModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class PermissionSetPermissionModel(object): 'name': 'name' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, id=None, name=None, _configuration=None): # noqa: E501 """PermissionSetPermissionModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, PermissionSetPermissionModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionSetPermissionModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/permission_set_request_model.py b/cloudcheckr_cmx_client/models/permission_set_request_model.py index de9125a..cc87e03 100644 --- a/cloudcheckr_cmx_client/models/permission_set_request_model.py +++ b/cloudcheckr_cmx_client/models/permission_set_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PermissionSetRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class PermissionSetRequestModel(object): 'permissions': 'permissions' } - def __init__(self, name=None, description=None, permissions=None): # noqa: E501 + def __init__(self, name=None, description=None, permissions=None, _configuration=None): # noqa: E501 """PermissionSetRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._description = None self._permissions = None self.discriminator = None + self.name = name if description is not None: self.description = description @@ -71,7 +81,7 @@ def name(self, name): :param name: The name of this PermissionSetRequestModel. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -162,8 +172,11 @@ def __eq__(self, other): if not isinstance(other, PermissionSetRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionSetRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/permission_set_response_model.py b/cloudcheckr_cmx_client/models/permission_set_response_model.py index 515455a..4ebab50 100644 --- a/cloudcheckr_cmx_client/models/permission_set_response_model.py +++ b/cloudcheckr_cmx_client/models/permission_set_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PermissionSetResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -49,8 +54,12 @@ class PermissionSetResponseModel(object): 'updated_date': 'updatedDate' } - def __init__(self, id=None, name=None, friendly_name=None, owned_by=None, description=None, permissions=None, created_date=None, updated_date=None): # noqa: E501 + def __init__(self, id=None, name=None, friendly_name=None, owned_by=None, description=None, permissions=None, created_date=None, updated_date=None, _configuration=None): # noqa: E501 """PermissionSetResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._friendly_name = None @@ -60,6 +69,7 @@ def __init__(self, id=None, name=None, friendly_name=None, owned_by=None, descri self._created_date = None self._updated_date = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -167,7 +177,8 @@ def owned_by(self, owned_by): :type: str """ allowed_values = ["All", "System", "Customer"] # noqa: E501 - if owned_by not in allowed_values: + if (self._configuration.client_side_validation and + owned_by not in allowed_values): raise ValueError( "Invalid value for `owned_by` ({0}), must be one of {1}" # noqa: E501 .format(owned_by, allowed_values) @@ -307,8 +318,11 @@ def __eq__(self, other): if not isinstance(other, PermissionSetResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermissionSetResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/permitted_child_customer_model.py b/cloudcheckr_cmx_client/models/permitted_child_customer_model.py index be81685..0fd2cae 100644 --- a/cloudcheckr_cmx_client/models/permitted_child_customer_model.py +++ b/cloudcheckr_cmx_client/models/permitted_child_customer_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class PermittedChildCustomerModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class PermittedChildCustomerModel(object): 'id': 'id' } - def __init__(self, id=None): # noqa: E501 + def __init__(self, id=None, _configuration=None): # noqa: E501 """PermittedChildCustomerModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self.discriminator = None + if id is not None: self.id = id @@ -105,8 +115,11 @@ def __eq__(self, other): if not isinstance(other, PermittedChildCustomerModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PermittedChildCustomerModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/referenced_account_response_model.py b/cloudcheckr_cmx_client/models/referenced_account_response_model.py index 98dacd5..154330b 100644 --- a/cloudcheckr_cmx_client/models/referenced_account_response_model.py +++ b/cloudcheckr_cmx_client/models/referenced_account_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class ReferencedAccountResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -47,8 +52,12 @@ class ReferencedAccountResponseModel(object): 'id': 'id' } - def __init__(self, name=None, provider=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, id=None): # noqa: E501 + def __init__(self, name=None, provider=None, provider_identifier=None, provider_sub_type=None, provider_payment_type=None, payer_identifier=None, id=None, _configuration=None): # noqa: E501 """ReferencedAccountResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._provider = None self._provider_identifier = None @@ -57,6 +66,7 @@ def __init__(self, name=None, provider=None, provider_identifier=None, provider_ self._payer_identifier = None self._id = None self.discriminator = None + if name is not None: self.name = name if provider is not None: @@ -185,7 +195,8 @@ def provider_payment_type(self, provider_payment_type): :type: str """ allowed_values = ["Payer", "Payee"] # noqa: E501 - if provider_payment_type not in allowed_values: + if (self._configuration.client_side_validation and + provider_payment_type not in allowed_values): raise ValueError( "Invalid value for `provider_payment_type` ({0}), must be one of {1}" # noqa: E501 .format(provider_payment_type, allowed_values) @@ -279,8 +290,11 @@ def __eq__(self, other): if not isinstance(other, ReferencedAccountResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ReferencedAccountResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/related_permission_model.py b/cloudcheckr_cmx_client/models/related_permission_model.py index 5a4a51c..0f21904 100644 --- a/cloudcheckr_cmx_client/models/related_permission_model.py +++ b/cloudcheckr_cmx_client/models/related_permission_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class RelatedPermissionModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class RelatedPermissionModel(object): 'notify_user': 'notifyUser' } - def __init__(self, id=None, impact=None, notify_user=None): # noqa: E501 + def __init__(self, id=None, impact=None, notify_user=None, _configuration=None): # noqa: E501 """RelatedPermissionModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._impact = None self._notify_user = None self.discriminator = None + if id is not None: self.id = id if impact is not None: @@ -161,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, RelatedPermissionModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RelatedPermissionModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/role_request_model.py b/cloudcheckr_cmx_client/models/role_request_model.py index 9395c85..cc677ed 100644 --- a/cloudcheckr_cmx_client/models/role_request_model.py +++ b/cloudcheckr_cmx_client/models/role_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class RoleRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -43,14 +48,19 @@ class RoleRequestModel(object): 'customer_accounts': 'customerAccounts' } - def __init__(self, name=None, description=None, permission_sets=None, customer_account_access_rule=None, customer_accounts=None): # noqa: E501 + def __init__(self, name=None, description=None, permission_sets=None, customer_account_access_rule=None, customer_accounts=None, _configuration=None): # noqa: E501 """RoleRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._description = None self._permission_sets = None self._customer_account_access_rule = None self._customer_accounts = None self.discriminator = None + self.name = name if description is not None: self.description = description @@ -81,7 +91,7 @@ def name(self, name): :param name: The name of this RoleRequestModel. # noqa: E501 :type: str """ - if name is None: + if self._configuration.client_side_validation and name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -153,7 +163,8 @@ def customer_account_access_rule(self, customer_account_access_rule): :type: str """ allowed_values = ["SpecifiedCustomersAndAccountsOnly", "OwnCustomerAndAllAccounts"] # noqa: E501 - if customer_account_access_rule not in allowed_values: + if (self._configuration.client_side_validation and + customer_account_access_rule not in allowed_values): raise ValueError( "Invalid value for `customer_account_access_rule` ({0}), must be one of {1}" # noqa: E501 .format(customer_account_access_rule, allowed_values) @@ -224,8 +235,11 @@ def __eq__(self, other): if not isinstance(other, RoleRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RoleRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/role_response_model.py b/cloudcheckr_cmx_client/models/role_response_model.py index b209e13..39092be 100644 --- a/cloudcheckr_cmx_client/models/role_response_model.py +++ b/cloudcheckr_cmx_client/models/role_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class RoleResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -51,8 +56,12 @@ class RoleResponseModel(object): 'owned_by': 'ownedBy' } - def __init__(self, id=None, name=None, description=None, customer_account_access_rule=None, permission_sets=None, customer_accounts=None, created_date=None, updated_date=None, owned_by=None): # noqa: E501 + def __init__(self, id=None, name=None, description=None, customer_account_access_rule=None, permission_sets=None, customer_accounts=None, created_date=None, updated_date=None, owned_by=None, _configuration=None): # noqa: E501 """RoleResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._description = None @@ -63,6 +72,7 @@ def __init__(self, id=None, name=None, description=None, customer_account_access self._updated_date = None self._owned_by = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -172,7 +182,8 @@ def customer_account_access_rule(self, customer_account_access_rule): :type: str """ allowed_values = ["SpecifiedCustomersAndAccountsOnly", "OwnCustomerAndAllAccounts"] # noqa: E501 - if customer_account_access_rule not in allowed_values: + if (self._configuration.client_side_validation and + customer_account_access_rule not in allowed_values): raise ValueError( "Invalid value for `customer_account_access_rule` ({0}), must be one of {1}" # noqa: E501 .format(customer_account_access_rule, allowed_values) @@ -293,7 +304,8 @@ def owned_by(self, owned_by): :type: str """ allowed_values = ["All", "System", "Customer"] # noqa: E501 - if owned_by not in allowed_values: + if (self._configuration.client_side_validation and + owned_by not in allowed_values): raise ValueError( "Invalid value for `owned_by` ({0}), must be one of {1}" # noqa: E501 .format(owned_by, allowed_values) @@ -341,8 +353,11 @@ def __eq__(self, other): if not isinstance(other, RoleResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, RoleResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/saml_claim_model.py b/cloudcheckr_cmx_client/models/saml_claim_model.py index 1ec531c..7076210 100644 --- a/cloudcheckr_cmx_client/models/saml_claim_model.py +++ b/cloudcheckr_cmx_client/models/saml_claim_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class SamlClaimModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class SamlClaimModel(object): 'case_sensitive_value': 'caseSensitiveValue' } - def __init__(self, attribute_name=None, attribute_value=None, case_sensitive_value=None): # noqa: E501 + def __init__(self, attribute_name=None, attribute_value=None, case_sensitive_value=None, _configuration=None): # noqa: E501 """SamlClaimModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._attribute_name = None self._attribute_value = None self._case_sensitive_value = None self.discriminator = None + if attribute_name is not None: self.attribute_name = attribute_name if attribute_value is not None: @@ -161,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, SamlClaimModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SamlClaimModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/saml_provider_request_model.py b/cloudcheckr_cmx_client/models/saml_provider_request_model.py index 2f12df3..3dfa671 100644 --- a/cloudcheckr_cmx_client/models/saml_provider_request_model.py +++ b/cloudcheckr_cmx_client/models/saml_provider_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class SamlProviderRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class SamlProviderRequestModel(object): 'permitted_child_customers': 'permittedChildCustomers' } - def __init__(self, name=None, idp_metadata=None, permitted_child_customers=None): # noqa: E501 + def __init__(self, name=None, idp_metadata=None, permitted_child_customers=None, _configuration=None): # noqa: E501 """SamlProviderRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._name = None self._idp_metadata = None self._permitted_child_customers = None self.discriminator = None + if name is not None: self.name = name if idp_metadata is not None: @@ -161,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, SamlProviderRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SamlProviderRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/saml_provider_response_detail_model.py b/cloudcheckr_cmx_client/models/saml_provider_response_detail_model.py index ca1fde0..4b4d631 100644 --- a/cloudcheckr_cmx_client/models/saml_provider_response_detail_model.py +++ b/cloudcheckr_cmx_client/models/saml_provider_response_detail_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class SamlProviderResponseDetailModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -47,8 +52,12 @@ class SamlProviderResponseDetailModel(object): 'permitted_child_customers': 'permittedChildCustomers' } - def __init__(self, metadata=None, metadata_state=None, id=None, name=None, default_role=None, saml_issuer=None, permitted_child_customers=None): # noqa: E501 + def __init__(self, metadata=None, metadata_state=None, id=None, name=None, default_role=None, saml_issuer=None, permitted_child_customers=None, _configuration=None): # noqa: E501 """SamlProviderResponseDetailModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._metadata = None self._metadata_state = None self._id = None @@ -57,6 +66,7 @@ def __init__(self, metadata=None, metadata_state=None, id=None, name=None, defau self._saml_issuer = None self._permitted_child_customers = None self.discriminator = None + if metadata is not None: self.metadata = metadata if metadata_state is not None: @@ -116,7 +126,8 @@ def metadata_state(self, metadata_state): :type: str """ allowed_values = ["Valid", "Invalid", "Missing", "Inherited"] # noqa: E501 - if metadata_state not in allowed_values: + if (self._configuration.client_side_validation and + metadata_state not in allowed_values): raise ValueError( "Invalid value for `metadata_state` ({0}), must be one of {1}" # noqa: E501 .format(metadata_state, allowed_values) @@ -279,8 +290,11 @@ def __eq__(self, other): if not isinstance(other, SamlProviderResponseDetailModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SamlProviderResponseDetailModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/saml_provider_response_model.py b/cloudcheckr_cmx_client/models/saml_provider_response_model.py index 4da9c83..7a0755b 100644 --- a/cloudcheckr_cmx_client/models/saml_provider_response_model.py +++ b/cloudcheckr_cmx_client/models/saml_provider_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class SamlProviderResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -43,14 +48,19 @@ class SamlProviderResponseModel(object): 'permitted_child_customers': 'permittedChildCustomers' } - def __init__(self, id=None, name=None, default_role=None, saml_issuer=None, permitted_child_customers=None): # noqa: E501 + def __init__(self, id=None, name=None, default_role=None, saml_issuer=None, permitted_child_customers=None, _configuration=None): # noqa: E501 """SamlProviderResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._name = None self._default_role = None self._saml_issuer = None self._permitted_child_customers = None self.discriminator = None + if id is not None: self.id = id if name is not None: @@ -217,8 +227,11 @@ def __eq__(self, other): if not isinstance(other, SamlProviderResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SamlProviderResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/saml_provider_rule_request_model.py b/cloudcheckr_cmx_client/models/saml_provider_rule_request_model.py index 9cbdf08..6a010d1 100644 --- a/cloudcheckr_cmx_client/models/saml_provider_rule_request_model.py +++ b/cloudcheckr_cmx_client/models/saml_provider_rule_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class SamlProviderRuleRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class SamlProviderRuleRequestModel(object): 'mapped_role_id': 'mappedRoleId' } - def __init__(self, saml_claim=None, mapped_role_id=None): # noqa: E501 + def __init__(self, saml_claim=None, mapped_role_id=None, _configuration=None): # noqa: E501 """SamlProviderRuleRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._saml_claim = None self._mapped_role_id = None self.discriminator = None + if saml_claim is not None: self.saml_claim = saml_claim if mapped_role_id is not None: @@ -51,6 +61,7 @@ def __init__(self, saml_claim=None, mapped_role_id=None): # noqa: E501 def saml_claim(self): """Gets the saml_claim of this SamlProviderRuleRequestModel. # noqa: E501 + SAML attribute info used for matching. # noqa: E501 :return: The saml_claim of this SamlProviderRuleRequestModel. # noqa: E501 :rtype: SamlClaimModel @@ -61,6 +72,7 @@ def saml_claim(self): def saml_claim(self, saml_claim): """Sets the saml_claim of this SamlProviderRuleRequestModel. + SAML attribute info used for matching. # noqa: E501 :param saml_claim: The saml_claim of this SamlProviderRuleRequestModel. # noqa: E501 :type: SamlClaimModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, SamlProviderRuleRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SamlProviderRuleRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/saml_provider_rule_response_model.py b/cloudcheckr_cmx_client/models/saml_provider_rule_response_model.py index ecd6888..47d39b5 100644 --- a/cloudcheckr_cmx_client/models/saml_provider_rule_response_model.py +++ b/cloudcheckr_cmx_client/models/saml_provider_rule_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class SamlProviderRuleResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class SamlProviderRuleResponseModel(object): 'mapped_role': 'mappedRole' } - def __init__(self, id=None, saml_claim=None, mapped_role=None): # noqa: E501 + def __init__(self, id=None, saml_claim=None, mapped_role=None, _configuration=None): # noqa: E501 """SamlProviderRuleResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._saml_claim = None self._mapped_role = None self.discriminator = None + if id is not None: self.id = id if saml_claim is not None: @@ -79,6 +89,7 @@ def id(self, id): def saml_claim(self): """Gets the saml_claim of this SamlProviderRuleResponseModel. # noqa: E501 + SAML attribute info used for matching. # noqa: E501 :return: The saml_claim of this SamlProviderRuleResponseModel. # noqa: E501 :rtype: SamlClaimModel @@ -89,6 +100,7 @@ def saml_claim(self): def saml_claim(self, saml_claim): """Sets the saml_claim of this SamlProviderRuleResponseModel. + SAML attribute info used for matching. # noqa: E501 :param saml_claim: The saml_claim of this SamlProviderRuleResponseModel. # noqa: E501 :type: SamlClaimModel @@ -100,6 +112,7 @@ def saml_claim(self, saml_claim): def mapped_role(self): """Gets the mapped_role of this SamlProviderRuleResponseModel. # noqa: E501 + The target role. # noqa: E501 :return: The mapped_role of this SamlProviderRuleResponseModel. # noqa: E501 :rtype: MappedRoleResponseModel @@ -110,6 +123,7 @@ def mapped_role(self): def mapped_role(self, mapped_role): """Sets the mapped_role of this SamlProviderRuleResponseModel. + The target role. # noqa: E501 :param mapped_role: The mapped_role of this SamlProviderRuleResponseModel. # noqa: E501 :type: MappedRoleResponseModel @@ -157,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, SamlProviderRuleResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SamlProviderRuleResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/token_info_response.py b/cloudcheckr_cmx_client/models/token_info_response.py index 06c19aa..060a766 100644 --- a/cloudcheckr_cmx_client/models/token_info_response.py +++ b/cloudcheckr_cmx_client/models/token_info_response.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class TokenInfoResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -49,8 +54,12 @@ class TokenInfoResponse(object): 'has_user_level_access': 'hasUserLevelAccess' } - def __init__(self, type=None, client_id=None, user_id=None, roles=None, version1_roles=None, customer_id=None, expiration=None, has_user_level_access=None): # noqa: E501 + def __init__(self, type=None, client_id=None, user_id=None, roles=None, version1_roles=None, customer_id=None, expiration=None, has_user_level_access=None, _configuration=None): # noqa: E501 """TokenInfoResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._type = None self._client_id = None self._user_id = None @@ -60,6 +69,7 @@ def __init__(self, type=None, client_id=None, user_id=None, roles=None, version1 self._expiration = None self._has_user_level_access = None self.discriminator = None + if type is not None: self.type = type if client_id is not None: @@ -301,8 +311,11 @@ def __eq__(self, other): if not isinstance(other, TokenInfoResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TokenInfoResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/token_response.py b/cloudcheckr_cmx_client/models/token_response.py index e789e26..fb6f0a3 100644 --- a/cloudcheckr_cmx_client/models/token_response.py +++ b/cloudcheckr_cmx_client/models/token_response.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class TokenResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class TokenResponse(object): 'token_type': 'token_type' } - def __init__(self, access_token=None, expires_in=None, token_type=None): # noqa: E501 + def __init__(self, access_token=None, expires_in=None, token_type=None, _configuration=None): # noqa: E501 """TokenResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._access_token = None self._expires_in = None self._token_type = None self.discriminator = None + if access_token is not None: self.access_token = access_token if expires_in is not None: @@ -161,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, TokenResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, TokenResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_account_attribute_request_model.py b/cloudcheckr_cmx_client/models/update_request_account_attribute_request_model.py index d54c7d3..8b1da8f 100644 --- a/cloudcheckr_cmx_client/models/update_request_account_attribute_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_account_attribute_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestAccountAttributeRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestAccountAttributeRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestAccountAttributeRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestAccountAttributeRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestAccountAttributeRequestModel. # noqa: E501 :rtype: AccountAttributeRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestAccountAttributeRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestAccountAttributeRequestModel. # noqa: E501 :type: AccountAttributeRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestAccountAttributeRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestAccountAttributeRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_account_group_request_model.py b/cloudcheckr_cmx_client/models/update_request_account_group_request_model.py index 994c7b9..7d8d217 100644 --- a/cloudcheckr_cmx_client/models/update_request_account_group_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_account_group_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestAccountGroupRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestAccountGroupRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestAccountGroupRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestAccountGroupRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestAccountGroupRequestModel. # noqa: E501 :rtype: AccountGroupRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestAccountGroupRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestAccountGroupRequestModel. # noqa: E501 :type: AccountGroupRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestAccountGroupRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestAccountGroupRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_aws_assume_role_credential_request_model.py b/cloudcheckr_cmx_client/models/update_request_aws_assume_role_credential_request_model.py deleted file mode 100644 index 7d56f05..0000000 --- a/cloudcheckr_cmx_client/models/update_request_aws_assume_role_credential_request_model.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - CloudCheckr API - - CloudCheckr API # noqa: E501 - - OpenAPI spec version: v1 - Contact: support@cloudcheckr.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UpdateRequestAwsAssumeRoleCredentialRequestModel(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'item': 'AwsAssumeRoleCredentialRequestModel', - 'reset_properties': 'list[str]' - } - - attribute_map = { - 'item': 'item', - 'reset_properties': 'resetProperties' - } - - def __init__(self, item=None, reset_properties=None): # noqa: E501 - """UpdateRequestAwsAssumeRoleCredentialRequestModel - a model defined in Swagger""" # noqa: E501 - self._item = None - self._reset_properties = None - self.discriminator = None - if item is not None: - self.item = item - if reset_properties is not None: - self.reset_properties = reset_properties - - @property - def item(self): - """Gets the item of this UpdateRequestAwsAssumeRoleCredentialRequestModel. # noqa: E501 - - - :return: The item of this UpdateRequestAwsAssumeRoleCredentialRequestModel. # noqa: E501 - :rtype: AwsAssumeRoleCredentialRequestModel - """ - return self._item - - @item.setter - def item(self, item): - """Sets the item of this UpdateRequestAwsAssumeRoleCredentialRequestModel. - - - :param item: The item of this UpdateRequestAwsAssumeRoleCredentialRequestModel. # noqa: E501 - :type: AwsAssumeRoleCredentialRequestModel - """ - - self._item = item - - @property - def reset_properties(self): - """Gets the reset_properties of this UpdateRequestAwsAssumeRoleCredentialRequestModel. # noqa: E501 - - If a property name is included in this list, then its value will be forced to its default value (default value may be null). # noqa: E501 - - :return: The reset_properties of this UpdateRequestAwsAssumeRoleCredentialRequestModel. # noqa: E501 - :rtype: list[str] - """ - return self._reset_properties - - @reset_properties.setter - def reset_properties(self, reset_properties): - """Sets the reset_properties of this UpdateRequestAwsAssumeRoleCredentialRequestModel. - - If a property name is included in this list, then its value will be forced to its default value (default value may be null). # noqa: E501 - - :param reset_properties: The reset_properties of this UpdateRequestAwsAssumeRoleCredentialRequestModel. # noqa: E501 - :type: list[str] - """ - - self._reset_properties = reset_properties - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UpdateRequestAwsAssumeRoleCredentialRequestModel, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UpdateRequestAwsAssumeRoleCredentialRequestModel): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/cloudcheckr_cmx_client/models/update_request_aws_credential_request_model.py b/cloudcheckr_cmx_client/models/update_request_aws_credential_request_model.py index 11c0dbe..f18e3be 100644 --- a/cloudcheckr_cmx_client/models/update_request_aws_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_aws_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestAwsCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestAwsCredentialRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestAwsCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestAwsCredentialRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestAwsCredentialRequestModel. # noqa: E501 :rtype: AwsCredentialRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestAwsCredentialRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestAwsCredentialRequestModel. # noqa: E501 :type: AwsCredentialRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestAwsCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestAwsCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_azure_csp_authorization_request_model.py b/cloudcheckr_cmx_client/models/update_request_azure_csp_authorization_request_model.py index 355a107..5ca5f7c 100644 --- a/cloudcheckr_cmx_client/models/update_request_azure_csp_authorization_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_azure_csp_authorization_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestAzureCspAuthorizationRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestAzureCspAuthorizationRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestAzureCspAuthorizationRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestAzureCspAuthorizationRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestAzureCspAuthorizationRequestModel. # noqa: E501 :rtype: AzureCspAuthorizationRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestAzureCspAuthorizationRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestAzureCspAuthorizationRequestModel. # noqa: E501 :type: AzureCspAuthorizationRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestAzureCspAuthorizationRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestAzureCspAuthorizationRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_azure_enterprise_agreement_credential_request_model.py b/cloudcheckr_cmx_client/models/update_request_azure_enterprise_agreement_credential_request_model.py index 5ba01fa..fc7a2f0 100644 --- a/cloudcheckr_cmx_client/models/update_request_azure_enterprise_agreement_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_azure_enterprise_agreement_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestAzureEnterpriseAgreementCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestAzureEnterpriseAgreementCredentialRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestAzureEnterpriseAgreementCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestAzureEnterpriseAgreementCredentialRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestAzureEnterpriseAgreementCredentialRequestModel. # noqa: E501 :rtype: AzureEnterpriseAgreementCredentialRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestAzureEnterpriseAgreementCredentialRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestAzureEnterpriseAgreementCredentialRequestModel. # noqa: E501 :type: AzureEnterpriseAgreementCredentialRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestAzureEnterpriseAgreementCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestAzureEnterpriseAgreementCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_azure_subscription_credential_request_model.py b/cloudcheckr_cmx_client/models/update_request_azure_subscription_credential_request_model.py index 01b597d..e7caaca 100644 --- a/cloudcheckr_cmx_client/models/update_request_azure_subscription_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_azure_subscription_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestAzureSubscriptionCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestAzureSubscriptionCredentialRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestAzureSubscriptionCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestAzureSubscriptionCredentialRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestAzureSubscriptionCredentialRequestModel. # noqa: E501 :rtype: AzureSubscriptionCredentialRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestAzureSubscriptionCredentialRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestAzureSubscriptionCredentialRequestModel. # noqa: E501 :type: AzureSubscriptionCredentialRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestAzureSubscriptionCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestAzureSubscriptionCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_azure_token_credential_request_model.py b/cloudcheckr_cmx_client/models/update_request_azure_token_credential_request_model.py index 5fc6037..fc08eb8 100644 --- a/cloudcheckr_cmx_client/models/update_request_azure_token_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_azure_token_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestAzureTokenCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestAzureTokenCredentialRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestAzureTokenCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestAzureTokenCredentialRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestAzureTokenCredentialRequestModel. # noqa: E501 :rtype: AzureTokenCredentialRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestAzureTokenCredentialRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestAzureTokenCredentialRequestModel. # noqa: E501 :type: AzureTokenCredentialRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestAzureTokenCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestAzureTokenCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_client_request_model.py b/cloudcheckr_cmx_client/models/update_request_client_request_model.py index 6df609f..afeb92e 100644 --- a/cloudcheckr_cmx_client/models/update_request_client_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_client_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestClientRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestClientRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestClientRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestClientRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestClientRequestModel. # noqa: E501 :rtype: ClientRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestClientRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestClientRequestModel. # noqa: E501 :type: ClientRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestClientRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestClientRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_custom_theme_request_model.py b/cloudcheckr_cmx_client/models/update_request_custom_theme_request_model.py index e74cd72..30c9c60 100644 --- a/cloudcheckr_cmx_client/models/update_request_custom_theme_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_custom_theme_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestCustomThemeRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestCustomThemeRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestCustomThemeRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestCustomThemeRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestCustomThemeRequestModel. # noqa: E501 :rtype: CustomThemeRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestCustomThemeRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestCustomThemeRequestModel. # noqa: E501 :type: CustomThemeRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestCustomThemeRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestCustomThemeRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_general_account_request_model.py b/cloudcheckr_cmx_client/models/update_request_general_account_request_model.py index 3f95253..60f3d41 100644 --- a/cloudcheckr_cmx_client/models/update_request_general_account_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_general_account_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestGeneralAccountRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestGeneralAccountRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestGeneralAccountRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestGeneralAccountRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestGeneralAccountRequestModel. # noqa: E501 :rtype: GeneralAccountRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestGeneralAccountRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestGeneralAccountRequestModel. # noqa: E501 :type: GeneralAccountRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestGeneralAccountRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestGeneralAccountRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_google_credential_request_model.py b/cloudcheckr_cmx_client/models/update_request_google_credential_request_model.py index dd87030..e9de99d 100644 --- a/cloudcheckr_cmx_client/models/update_request_google_credential_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_google_credential_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestGoogleCredentialRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestGoogleCredentialRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestGoogleCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestGoogleCredentialRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestGoogleCredentialRequestModel. # noqa: E501 :rtype: GoogleCredentialRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestGoogleCredentialRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestGoogleCredentialRequestModel. # noqa: E501 :type: GoogleCredentialRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestGoogleCredentialRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestGoogleCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_mav_request_model.py b/cloudcheckr_cmx_client/models/update_request_mav_request_model.py index bd15e94..1f5b2b1 100644 --- a/cloudcheckr_cmx_client/models/update_request_mav_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_mav_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestMavRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestMavRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestMavRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestMavRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestMavRequestModel. # noqa: E501 :rtype: MavRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestMavRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestMavRequestModel. # noqa: E501 :type: MavRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestMavRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestMavRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_permission_set_request_model.py b/cloudcheckr_cmx_client/models/update_request_permission_set_request_model.py index 310869b..593c7b1 100644 --- a/cloudcheckr_cmx_client/models/update_request_permission_set_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_permission_set_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestPermissionSetRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestPermissionSetRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestPermissionSetRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestPermissionSetRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestPermissionSetRequestModel. # noqa: E501 :rtype: PermissionSetRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestPermissionSetRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestPermissionSetRequestModel. # noqa: E501 :type: PermissionSetRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestPermissionSetRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestPermissionSetRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_role_request_model.py b/cloudcheckr_cmx_client/models/update_request_role_request_model.py index 9f95710..d67746d 100644 --- a/cloudcheckr_cmx_client/models/update_request_role_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_role_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestRoleRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestRoleRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestRoleRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestRoleRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestRoleRequestModel. # noqa: E501 :rtype: RoleRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestRoleRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestRoleRequestModel. # noqa: E501 :type: RoleRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestRoleRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestRoleRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_saml_provider_request_model.py b/cloudcheckr_cmx_client/models/update_request_saml_provider_request_model.py index a1a3467..d88e3b7 100644 --- a/cloudcheckr_cmx_client/models/update_request_saml_provider_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_saml_provider_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestSamlProviderRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestSamlProviderRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestSamlProviderRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestSamlProviderRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestSamlProviderRequestModel. # noqa: E501 :rtype: SamlProviderRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestSamlProviderRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestSamlProviderRequestModel. # noqa: E501 :type: SamlProviderRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestSamlProviderRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestSamlProviderRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_saml_provider_rule_request_model.py b/cloudcheckr_cmx_client/models/update_request_saml_provider_rule_request_model.py index 13bb27a..87c2107 100644 --- a/cloudcheckr_cmx_client/models/update_request_saml_provider_rule_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_saml_provider_rule_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestSamlProviderRuleRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestSamlProviderRuleRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestSamlProviderRuleRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestSamlProviderRuleRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestSamlProviderRuleRequestModel. # noqa: E501 :rtype: SamlProviderRuleRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestSamlProviderRuleRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestSamlProviderRuleRequestModel. # noqa: E501 :type: SamlProviderRuleRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestSamlProviderRuleRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestSamlProviderRuleRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_user_level_access_request_model.py b/cloudcheckr_cmx_client/models/update_request_user_level_access_request_model.py index 1c2673d..d08de94 100644 --- a/cloudcheckr_cmx_client/models/update_request_user_level_access_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_user_level_access_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestUserLevelAccessRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestUserLevelAccessRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestUserLevelAccessRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestUserLevelAccessRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestUserLevelAccessRequestModel. # noqa: E501 :rtype: UserLevelAccessRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestUserLevelAccessRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestUserLevelAccessRequestModel. # noqa: E501 :type: UserLevelAccessRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestUserLevelAccessRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestUserLevelAccessRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_user_request_model.py b/cloudcheckr_cmx_client/models/update_request_user_request_model.py index 8520b82..adcd1e7 100644 --- a/cloudcheckr_cmx_client/models/update_request_user_request_model.py +++ b/cloudcheckr_cmx_client/models/update_request_user_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UpdateRequestUserRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UpdateRequestUserRequestModel(object): 'reset_properties': 'resetProperties' } - def __init__(self, item=None, reset_properties=None): # noqa: E501 + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 """UpdateRequestUserRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._item = None self._reset_properties = None self.discriminator = None + if item is not None: self.item = item if reset_properties is not None: @@ -51,6 +61,7 @@ def __init__(self, item=None, reset_properties=None): # noqa: E501 def item(self): """Gets the item of this UpdateRequestUserRequestModel. # noqa: E501 + Item to update # noqa: E501 :return: The item of this UpdateRequestUserRequestModel. # noqa: E501 :rtype: UserRequestModel @@ -61,6 +72,7 @@ def item(self): def item(self, item): """Sets the item of this UpdateRequestUserRequestModel. + Item to update # noqa: E501 :param item: The item of this UpdateRequestUserRequestModel. # noqa: E501 :type: UserRequestModel @@ -131,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UpdateRequestUserRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UpdateRequestUserRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/user_level_access_request_model.py b/cloudcheckr_cmx_client/models/user_level_access_request_model.py index 99916c8..3763e1d 100644 --- a/cloudcheckr_cmx_client/models/user_level_access_request_model.py +++ b/cloudcheckr_cmx_client/models/user_level_access_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UserLevelAccessRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class UserLevelAccessRequestModel(object): 'customer_accounts': 'customerAccounts' } - def __init__(self, permission_sets=None, customer_account_access_rule=None, customer_accounts=None): # noqa: E501 + def __init__(self, permission_sets=None, customer_account_access_rule=None, customer_accounts=None, _configuration=None): # noqa: E501 """UserLevelAccessRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._permission_sets = None self._customer_account_access_rule = None self._customer_accounts = None self.discriminator = None + if permission_sets is not None: self.permission_sets = permission_sets if customer_account_access_rule is not None: @@ -96,7 +106,8 @@ def customer_account_access_rule(self, customer_account_access_rule): :type: str """ allowed_values = ["SpecifiedCustomersAndAccountsOnly", "OwnCustomerAndAllAccounts"] # noqa: E501 - if customer_account_access_rule not in allowed_values: + if (self._configuration.client_side_validation and + customer_account_access_rule not in allowed_values): raise ValueError( "Invalid value for `customer_account_access_rule` ({0}), must be one of {1}" # noqa: E501 .format(customer_account_access_rule, allowed_values) @@ -167,8 +178,11 @@ def __eq__(self, other): if not isinstance(other, UserLevelAccessRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserLevelAccessRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/user_level_access_response_model.py b/cloudcheckr_cmx_client/models/user_level_access_response_model.py index e1bd056..172d06e 100644 --- a/cloudcheckr_cmx_client/models/user_level_access_response_model.py +++ b/cloudcheckr_cmx_client/models/user_level_access_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UserLevelAccessResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -43,14 +48,19 @@ class UserLevelAccessResponseModel(object): 'updated_date': 'updatedDate' } - def __init__(self, customer_account_access_rule=None, permission_sets=None, customer_accounts=None, created_date=None, updated_date=None): # noqa: E501 + def __init__(self, customer_account_access_rule=None, permission_sets=None, customer_accounts=None, created_date=None, updated_date=None, _configuration=None): # noqa: E501 """UserLevelAccessResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._customer_account_access_rule = None self._permission_sets = None self._customer_accounts = None self._created_date = None self._updated_date = None self.discriminator = None + if customer_account_access_rule is not None: self.customer_account_access_rule = customer_account_access_rule if permission_sets is not None: @@ -83,7 +93,8 @@ def customer_account_access_rule(self, customer_account_access_rule): :type: str """ allowed_values = ["SpecifiedCustomersAndAccountsOnly", "OwnCustomerAndAllAccounts"] # noqa: E501 - if customer_account_access_rule not in allowed_values: + if (self._configuration.client_side_validation and + customer_account_access_rule not in allowed_values): raise ValueError( "Invalid value for `customer_account_access_rule` ({0}), must be one of {1}" # noqa: E501 .format(customer_account_access_rule, allowed_values) @@ -223,8 +234,11 @@ def __eq__(self, other): if not isinstance(other, UserLevelAccessResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserLevelAccessResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/user_request_model.py b/cloudcheckr_cmx_client/models/user_request_model.py index 2536bb2..cab2485 100644 --- a/cloudcheckr_cmx_client/models/user_request_model.py +++ b/cloudcheckr_cmx_client/models/user_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UserRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -33,6 +38,7 @@ class UserRequestModel(object): 'allowed_auth_types': 'list[str]', 'organization_note': 'str', 'personal_note': 'str', + 'alternate_saml_providers': 'list[BasicRequestListModification]', 'roles': 'list[BasicRequestListModification]' } @@ -42,18 +48,25 @@ class UserRequestModel(object): 'allowed_auth_types': 'allowedAuthTypes', 'organization_note': 'organizationNote', 'personal_note': 'personalNote', + 'alternate_saml_providers': 'alternateSamlProviders', 'roles': 'roles' } - def __init__(self, email=None, saml_provider=None, allowed_auth_types=None, organization_note=None, personal_note=None, roles=None): # noqa: E501 + def __init__(self, email=None, saml_provider=None, allowed_auth_types=None, organization_note=None, personal_note=None, alternate_saml_providers=None, roles=None, _configuration=None): # noqa: E501 """UserRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._email = None self._saml_provider = None self._allowed_auth_types = None self._organization_note = None self._personal_note = None + self._alternate_saml_providers = None self._roles = None self.discriminator = None + self.email = email if saml_provider is not None: self.saml_provider = saml_provider @@ -62,6 +75,8 @@ def __init__(self, email=None, saml_provider=None, allowed_auth_types=None, orga self.organization_note = organization_note if personal_note is not None: self.personal_note = personal_note + if alternate_saml_providers is not None: + self.alternate_saml_providers = alternate_saml_providers if roles is not None: self.roles = roles @@ -85,7 +100,7 @@ def email(self, email): :param email: The email of this UserRequestModel. # noqa: E501 :type: str """ - if email is None: + if self._configuration.client_side_validation and email is None: raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 self._email = email @@ -94,6 +109,7 @@ def email(self, email): def saml_provider(self): """Gets the saml_provider of this UserRequestModel. # noqa: E501 + The user's SAML provider. This property supports: resetting. # noqa: E501 :return: The saml_provider of this UserRequestModel. # noqa: E501 :rtype: UserSamlProviderRequestModel @@ -104,6 +120,7 @@ def saml_provider(self): def saml_provider(self, saml_provider): """Sets the saml_provider of this UserRequestModel. + The user's SAML provider. This property supports: resetting. # noqa: E501 :param saml_provider: The saml_provider of this UserRequestModel. # noqa: E501 :type: UserSamlProviderRequestModel @@ -131,10 +148,11 @@ def allowed_auth_types(self, allowed_auth_types): :param allowed_auth_types: The allowed_auth_types of this UserRequestModel. # noqa: E501 :type: list[str] """ - if allowed_auth_types is None: + if self._configuration.client_side_validation and allowed_auth_types is None: raise ValueError("Invalid value for `allowed_auth_types`, must not be `None`") # noqa: E501 allowed_values = ["UsernamePassword", "Saml"] # noqa: E501 - if not set(allowed_auth_types).issubset(set(allowed_values)): + if (self._configuration.client_side_validation and + not set(allowed_auth_types).issubset(set(allowed_values))): # noqa: E501 raise ValueError( "Invalid values for `allowed_auth_types` [{0}], must be a subset of [{1}]" # noqa: E501 .format(", ".join(map(str, set(allowed_auth_types) - set(allowed_values))), # noqa: E501 @@ -189,6 +207,29 @@ def personal_note(self, personal_note): self._personal_note = personal_note + @property + def alternate_saml_providers(self): + """Gets the alternate_saml_providers of this UserRequestModel. # noqa: E501 + + List of alternate SAML provider IDs to assign to the user. This property supports: resetting. # noqa: E501 + + :return: The alternate_saml_providers of this UserRequestModel. # noqa: E501 + :rtype: list[BasicRequestListModification] + """ + return self._alternate_saml_providers + + @alternate_saml_providers.setter + def alternate_saml_providers(self, alternate_saml_providers): + """Sets the alternate_saml_providers of this UserRequestModel. + + List of alternate SAML provider IDs to assign to the user. This property supports: resetting. # noqa: E501 + + :param alternate_saml_providers: The alternate_saml_providers of this UserRequestModel. # noqa: E501 + :type: list[BasicRequestListModification] + """ + + self._alternate_saml_providers = alternate_saml_providers + @property def roles(self): """Gets the roles of this UserRequestModel. # noqa: E501 @@ -252,8 +293,11 @@ def __eq__(self, other): if not isinstance(other, UserRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/user_response_model.py b/cloudcheckr_cmx_client/models/user_response_model.py index aaa0a7f..5969274 100644 --- a/cloudcheckr_cmx_client/models/user_response_model.py +++ b/cloudcheckr_cmx_client/models/user_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UserResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,7 +46,8 @@ class UserResponseModel(object): 'is_activated': 'bool', 'organization_note': 'str', 'personal_note': 'str', - 'has_user_level_access': 'bool' + 'has_user_level_access': 'bool', + 'alternate_saml_providers': 'list[UserSamlProviderResponseModel]' } attribute_map = { @@ -58,11 +64,16 @@ class UserResponseModel(object): 'is_activated': 'isActivated', 'organization_note': 'organizationNote', 'personal_note': 'personalNote', - 'has_user_level_access': 'hasUserLevelAccess' + 'has_user_level_access': 'hasUserLevelAccess', + 'alternate_saml_providers': 'alternateSamlProviders' } - def __init__(self, id=None, customer_id=None, roles=None, email=None, saml_provider=None, allowed_auth_types=None, created_date=None, last_login_date=None, is_locked_out=None, last_lockout_date=None, is_activated=None, organization_note=None, personal_note=None, has_user_level_access=None): # noqa: E501 + def __init__(self, id=None, customer_id=None, roles=None, email=None, saml_provider=None, allowed_auth_types=None, created_date=None, last_login_date=None, is_locked_out=None, last_lockout_date=None, is_activated=None, organization_note=None, personal_note=None, has_user_level_access=None, alternate_saml_providers=None, _configuration=None): # noqa: E501 """UserResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._customer_id = None self._roles = None @@ -77,7 +88,9 @@ def __init__(self, id=None, customer_id=None, roles=None, email=None, saml_provi self._organization_note = None self._personal_note = None self._has_user_level_access = None + self._alternate_saml_providers = None self.discriminator = None + if id is not None: self.id = id if customer_id is not None: @@ -106,6 +119,8 @@ def __init__(self, id=None, customer_id=None, roles=None, email=None, saml_provi self.personal_note = personal_note if has_user_level_access is not None: self.has_user_level_access = has_user_level_access + if alternate_saml_providers is not None: + self.alternate_saml_providers = alternate_saml_providers @property def id(self): @@ -203,6 +218,7 @@ def email(self, email): def saml_provider(self): """Gets the saml_provider of this UserResponseModel. # noqa: E501 + The user's SAML provider. # noqa: E501 :return: The saml_provider of this UserResponseModel. # noqa: E501 :rtype: UserSamlProviderResponseModel @@ -213,6 +229,7 @@ def saml_provider(self): def saml_provider(self, saml_provider): """Sets the saml_provider of this UserResponseModel. + The user's SAML provider. # noqa: E501 :param saml_provider: The saml_provider of this UserResponseModel. # noqa: E501 :type: UserSamlProviderResponseModel @@ -241,7 +258,8 @@ def allowed_auth_types(self, allowed_auth_types): :type: list[str] """ allowed_values = ["UsernamePassword", "Saml"] # noqa: E501 - if not set(allowed_auth_types).issubset(set(allowed_values)): + if (self._configuration.client_side_validation and + not set(allowed_auth_types).issubset(set(allowed_values))): # noqa: E501 raise ValueError( "Invalid values for `allowed_auth_types` [{0}], must be a subset of [{1}]" # noqa: E501 .format(", ".join(map(str, set(allowed_auth_types) - set(allowed_values))), # noqa: E501 @@ -434,6 +452,29 @@ def has_user_level_access(self, has_user_level_access): self._has_user_level_access = has_user_level_access + @property + def alternate_saml_providers(self): + """Gets the alternate_saml_providers of this UserResponseModel. # noqa: E501 + + The user's alternate SAML providers (i.e. other SAML providers that the user is permitted to use). # noqa: E501 + + :return: The alternate_saml_providers of this UserResponseModel. # noqa: E501 + :rtype: list[UserSamlProviderResponseModel] + """ + return self._alternate_saml_providers + + @alternate_saml_providers.setter + def alternate_saml_providers(self, alternate_saml_providers): + """Sets the alternate_saml_providers of this UserResponseModel. + + The user's alternate SAML providers (i.e. other SAML providers that the user is permitted to use). # noqa: E501 + + :param alternate_saml_providers: The alternate_saml_providers of this UserResponseModel. # noqa: E501 + :type: list[UserSamlProviderResponseModel] + """ + + self._alternate_saml_providers = alternate_saml_providers + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -474,8 +515,11 @@ def __eq__(self, other): if not isinstance(other, UserResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/user_saml_provider_request_model.py b/cloudcheckr_cmx_client/models/user_saml_provider_request_model.py index 9a2345f..ec776d2 100644 --- a/cloudcheckr_cmx_client/models/user_saml_provider_request_model.py +++ b/cloudcheckr_cmx_client/models/user_saml_provider_request_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UserSamlProviderRequestModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class UserSamlProviderRequestModel(object): 'id': 'id' } - def __init__(self, id=None): # noqa: E501 + def __init__(self, id=None, _configuration=None): # noqa: E501 """UserSamlProviderRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self.discriminator = None + self.id = id @property @@ -61,7 +71,7 @@ def id(self, id): :param id: The id of this UserSamlProviderRequestModel. # noqa: E501 :type: str """ - if id is None: + if self._configuration.client_side_validation and id is None: raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 self._id = id @@ -106,8 +116,11 @@ def __eq__(self, other): if not isinstance(other, UserSamlProviderRequestModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSamlProviderRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/user_saml_provider_response_model.py b/cloudcheckr_cmx_client/models/user_saml_provider_response_model.py index 0fd5a99..a3c76bc 100644 --- a/cloudcheckr_cmx_client/models/user_saml_provider_response_model.py +++ b/cloudcheckr_cmx_client/models/user_saml_provider_response_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class UserSamlProviderResponseModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class UserSamlProviderResponseModel(object): 'custom_name': 'customName' } - def __init__(self, id=None, custom_name=None): # noqa: E501 + def __init__(self, id=None, custom_name=None, _configuration=None): # noqa: E501 """UserSamlProviderResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._custom_name = None self.discriminator = None + if id is not None: self.id = id if custom_name is not None: @@ -133,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, UserSamlProviderResponseModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, UserSamlProviderResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/verification_action_model.py b/cloudcheckr_cmx_client/models/verification_action_model.py index 8e6a184..e6656d9 100644 --- a/cloudcheckr_cmx_client/models/verification_action_model.py +++ b/cloudcheckr_cmx_client/models/verification_action_model.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from cloudcheckr_cmx_client.configuration import Configuration + + class VerificationActionModel(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class VerificationActionModel(object): 'outcome': 'outcome' } - def __init__(self, id=None, description=None, additional_info=None, outcome=None): # noqa: E501 + def __init__(self, id=None, description=None, additional_info=None, outcome=None, _configuration=None): # noqa: E501 """VerificationActionModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._description = None self._additional_info = None self._outcome = None self.discriminator = None + if id is not None: self.id = id if description is not None: @@ -147,7 +157,8 @@ def outcome(self, outcome): :type: str """ allowed_values = ["Unknown", "Passed", "Failed", "Warning", "Skipped", "Empty", "RequestingAccess", "RequiresAccountSelection"] # noqa: E501 - if outcome not in allowed_values: + if (self._configuration.client_side_validation and + outcome not in allowed_values): raise ValueError( "Invalid value for `outcome` ({0}), must be one of {1}" # noqa: E501 .format(outcome, allowed_values) @@ -195,8 +206,11 @@ def __eq__(self, other): if not isinstance(other, VerificationActionModel): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, VerificationActionModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/rest.py b/cloudcheckr_cmx_client/rest.py index 24c0653..dbcb0de 100644 --- a/cloudcheckr_cmx_client/rest.py +++ b/cloudcheckr_cmx_client/rest.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import io @@ -42,11 +43,11 @@ def __init__(self, resp): def getheaders(self): """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() + return self.urllib3_response.headers def getheader(self, name, default=None): """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) + return self.urllib3_response.headers.get(name, default) class RESTClientObject(object): diff --git a/docs/AWSCredentialsApi.md b/docs/AWSCredentialsApi.md index 3d71e6d..6e056b9 100644 --- a/docs/AWSCredentialsApi.md +++ b/docs/AWSCredentialsApi.md @@ -1,18 +1,19 @@ # cloudcheckr_cmx_client.AWSCredentialsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**delete_aws_external_id**](AWSCredentialsApi.md#delete_aws_external_id) | **DELETE** /credential/v1/customers/{customerId}/accounts/{accountId}/external-id/aws | Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. [**get_aws_external_id**](AWSCredentialsApi.md#get_aws_external_id) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/external-id/aws/{awsRegionGroup} | Get the external ID to use when creating an AWS cross-account role. [**modify_credential**](AWSCredentialsApi.md#modify_credential) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/aws/{purpose} | Modify the credential on the account. -[**modify_customer_aws_assume_role_credential**](AWSCredentialsApi.md#modify_customer_aws_assume_role_credential) | **PUT** /credential/v1/customers/{customerId}/credentials/aws/assume-role/{awsRegionGroup} | Set the credential to use when assuming a cross-acount role. [**modify_default_credential**](AWSCredentialsApi.md#modify_default_credential) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/aws | Modify the default credential on the account. -# **get_aws_external_id** -> AwsCrossAccountRoleSetupResponseModel get_aws_external_id(customer_id, account_id, aws_region_group) -Get the external ID to use when creating an AWS cross-account role. +# **delete_aws_external_id** +> delete_aws_external_id(customer_id, account_id) + +Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. ### Example ```python @@ -30,14 +31,12 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -aws_region_group = 'aws_region_group_example' # str | AWS region group where the cross-account role will be created. try: - # Get the external ID to use when creating an AWS cross-account role. - api_response = api_instance.get_aws_external_id(customer_id, account_id, aws_region_group) - pprint(api_response) + # Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. + api_instance.delete_aws_external_id(customer_id, account_id) except ApiException as e: - print("Exception when calling AWSCredentialsApi->get_aws_external_id: %s\n" % e) + print("Exception when calling AWSCredentialsApi->delete_aws_external_id: %s\n" % e) ``` ### Parameters @@ -46,11 +45,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **aws_region_group** | **str**| AWS region group where the cross-account role will be created. | ### Return type -[**AwsCrossAccountRoleSetupResponseModel**](AwsCrossAccountRoleSetupResponseModel.md) +void (empty response body) ### Authorization @@ -63,10 +61,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **modify_credential** -> CredentialResponseModel modify_credential(customer_id, account_id, purpose, body=body) +# **get_aws_external_id** +> AwsCrossAccountRoleSetupResponseModel get_aws_external_id(customer_id, account_id, aws_region_group) -Modify the credential on the account. +Get the external ID to use when creating an AWS cross-account role. ### Example ```python @@ -84,15 +82,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -purpose = 'purpose_example' # str | How the credential will be used. -body = cloudcheckr_cmx_client.UpdateRequestAwsCredentialRequestModel() # UpdateRequestAwsCredentialRequestModel | (optional) +aws_region_group = 'aws_region_group_example' # str | AWS region group where the cross-account role will be created. try: - # Modify the credential on the account. - api_response = api_instance.modify_credential(customer_id, account_id, purpose, body=body) + # Get the external ID to use when creating an AWS cross-account role. + api_response = api_instance.get_aws_external_id(customer_id, account_id, aws_region_group) pprint(api_response) except ApiException as e: - print("Exception when calling AWSCredentialsApi->modify_credential: %s\n" % e) + print("Exception when calling AWSCredentialsApi->get_aws_external_id: %s\n" % e) ``` ### Parameters @@ -101,12 +98,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **purpose** | **str**| How the credential will be used. | - **body** | [**UpdateRequestAwsCredentialRequestModel**](UpdateRequestAwsCredentialRequestModel.md)| | [optional] + **aws_region_group** | **str**| AWS region group where the cross-account role will be created. | ### Return type -[**CredentialResponseModel**](CredentialResponseModel.md) +[**AwsCrossAccountRoleSetupResponseModel**](AwsCrossAccountRoleSetupResponseModel.md) ### Authorization @@ -114,15 +110,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **modify_customer_aws_assume_role_credential** -> CredentialResponseModel modify_customer_aws_assume_role_credential(customer_id, aws_region_group, body=body) +# **modify_credential** +> CredentialResponseModel modify_credential(customer_id, account_id, purpose, request=request) -Set the credential to use when assuming a cross-acount role. +Modify the credential on the account. ### Example ```python @@ -139,15 +135,16 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -aws_region_group = 'aws_region_group_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAwsAssumeRoleCredentialRequestModel() # UpdateRequestAwsAssumeRoleCredentialRequestModel | (optional) +account_id = 'account_id_example' # str | +purpose = 'purpose_example' # str | How the credential will be used. +request = cloudcheckr_cmx_client.UpdateRequestAwsCredentialRequestModel() # UpdateRequestAwsCredentialRequestModel | (optional) try: - # Set the credential to use when assuming a cross-acount role. - api_response = api_instance.modify_customer_aws_assume_role_credential(customer_id, aws_region_group, body=body) + # Modify the credential on the account. + api_response = api_instance.modify_credential(customer_id, account_id, purpose, request=request) pprint(api_response) except ApiException as e: - print("Exception when calling AWSCredentialsApi->modify_customer_aws_assume_role_credential: %s\n" % e) + print("Exception when calling AWSCredentialsApi->modify_credential: %s\n" % e) ``` ### Parameters @@ -155,8 +152,9 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **aws_region_group** | **str**| | - **body** | [**UpdateRequestAwsAssumeRoleCredentialRequestModel**](UpdateRequestAwsAssumeRoleCredentialRequestModel.md)| | [optional] + **account_id** | **str**| | + **purpose** | **str**| How the credential will be used. | + **request** | [**UpdateRequestAwsCredentialRequestModel**](UpdateRequestAwsCredentialRequestModel.md)| | [optional] ### Return type @@ -174,7 +172,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **modify_default_credential** -> CredentialResponseModel modify_default_credential(customer_id, account_id, body=body) +> CredentialResponseModel modify_default_credential(customer_id, account_id, request=request) Modify the default credential on the account. @@ -194,11 +192,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AWSCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAwsCredentialRequestModel() # UpdateRequestAwsCredentialRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestAwsCredentialRequestModel() # UpdateRequestAwsCredentialRequestModel | (optional) try: # Modify the default credential on the account. - api_response = api_instance.modify_default_credential(customer_id, account_id, body=body) + api_response = api_instance.modify_default_credential(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AWSCredentialsApi->modify_default_credential: %s\n" % e) @@ -210,7 +208,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestAwsCredentialRequestModel**](UpdateRequestAwsCredentialRequestModel.md)| | [optional] + **request** | [**UpdateRequestAwsCredentialRequestModel**](UpdateRequestAwsCredentialRequestModel.md)| | [optional] ### Return type diff --git a/docs/AccountAssignmentResponseModel.md b/docs/AccountAssignmentResponseModel.md index 03ab77e..72904d3 100644 --- a/docs/AccountAssignmentResponseModel.md +++ b/docs/AccountAssignmentResponseModel.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**new_parent_assignment** | [**ParentAssignment**](ParentAssignment.md) | | [optional] +**new_parent_assignment** | [**ParentAssignment**](ParentAssignment.md) | The account's parent assignment. | [optional] **id** | **str** | Assigned Id. | [optional] -**error** | [**Error**](Error.md) | | [optional] +**error** | [**Error**](Error.md) | The errors that occurred during account assignment. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountAttributeAssignmentResponseModel.md b/docs/AccountAttributeAssignmentResponseModel.md index caee5be..66316a6 100644 --- a/docs/AccountAttributeAssignmentResponseModel.md +++ b/docs/AccountAttributeAssignmentResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str** | Action applied. | [optional] **id** | **str** | Assigned Id. | [optional] -**error** | [**Error**](Error.md) | | [optional] +**error** | [**Error**](Error.md) | The errors that occurred during account assignment. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountAttributeBasicInfo.md b/docs/AccountAttributeBasicInfo.md index 0605e95..7469eba 100644 --- a/docs/AccountAttributeBasicInfo.md +++ b/docs/AccountAttributeBasicInfo.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Attribute's name. This property supports: filtering. | [optional] -**value** | **str** | Attribute's value. This property supports: filtering. | [optional] +**name** | **str** | Attribute's name. This property supports: filtering. | [optional] +**value** | **str** | Attribute's value. This property supports: filtering. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountAttributeModification.md b/docs/AccountAttributeModification.md index cd8364a..e2d48d9 100644 --- a/docs/AccountAttributeModification.md +++ b/docs/AccountAttributeModification.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Attribute's name. | [optional] -**value** | **str** | Attribute's value. | [optional] +**name** | **str** | Attribute's name. | [optional] +**value** | **str** | Attribute's value. | [optional] **action** | **str** | Request list modification (e.g. add to the list). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountAttributeRequestModel.md b/docs/AccountAttributeRequestModel.md index 9c65df0..d54c740 100644 --- a/docs/AccountAttributeRequestModel.md +++ b/docs/AccountAttributeRequestModel.md @@ -8,3 +8,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountAttributeResponseModel.md b/docs/AccountAttributeResponseModel.md index 6ff0c8a..e4b4b5e 100644 --- a/docs/AccountAttributeResponseModel.md +++ b/docs/AccountAttributeResponseModel.md @@ -3,12 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customer_id** | **str** | The customer's ID. | [optional] +**customer_id** | **str** | The customer's ID. | [optional] **name** | **str** | The attribute name. This property supports: sorting and searching. | [optional] **values** | **list[str]** | The attribute values. This property supports: searching. | [optional] **value_count** | **int** | The total number of values within the attribute. | [optional] -**created_date** | **datetime** | The attribute's creation date. | [optional] -**updated_date** | **datetime** | The attribute's last updated date. | [optional] +**created_date** | **datetime** | The attribute's creation date. | [optional] +**updated_date** | **datetime** | The attribute's last updated date. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountAttributesApi.md b/docs/AccountAttributesApi.md index 542acc9..9d8f13d 100644 --- a/docs/AccountAttributesApi.md +++ b/docs/AccountAttributesApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.AccountAttributesApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -10,8 +10,9 @@ Method | HTTP request | Description [**list_account_attributes**](AccountAttributesApi.md#list_account_attributes) | **GET** /customer/v1/customers/{customerId}/account-attributes | Get all account attributes. [**update_account_attribute**](AccountAttributesApi.md#update_account_attribute) | **PUT** /customer/v1/customers/{customerId}/account-attributes | Create/Update an account attribute. + # **attach_account_attribute** -> BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel attach_account_attribute(customer_id, attribute_name, value, body=body) +> BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel attach_account_attribute(customer_id, attribute_name, value, request=request) Bulk associate account attribute name-value to list of general accounts. @@ -32,11 +33,11 @@ api_instance = cloudcheckr_cmx_client.AccountAttributesApi(cloudcheckr_cmx_clien customer_id = 'customer_id_example' # str | attribute_name = 'attribute_name_example' # str | value = 'value_example' # str | -body = cloudcheckr_cmx_client.BulkAccountAttributeAssignmentRequestModel() # BulkAccountAttributeAssignmentRequestModel | (optional) +request = cloudcheckr_cmx_client.BulkAccountAttributeAssignmentRequestModel() # BulkAccountAttributeAssignmentRequestModel | (optional) try: # Bulk associate account attribute name-value to list of general accounts. - api_response = api_instance.attach_account_attribute(customer_id, attribute_name, value, body=body) + api_response = api_instance.attach_account_attribute(customer_id, attribute_name, value, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountAttributesApi->attach_account_attribute: %s\n" % e) @@ -49,7 +50,7 @@ Name | Type | Description | Notes **customer_id** | **str**| | **attribute_name** | **str**| | **value** | **str**| | - **body** | [**BulkAccountAttributeAssignmentRequestModel**](BulkAccountAttributeAssignmentRequestModel.md)| | [optional] + **request** | [**BulkAccountAttributeAssignmentRequestModel**](BulkAccountAttributeAssignmentRequestModel.md)| | [optional] ### Return type @@ -113,7 +114,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -230,7 +231,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_account_attribute** -> AccountAttributeResponseModel update_account_attribute(customer_id, body=body) +> AccountAttributeResponseModel update_account_attribute(customer_id, request=request) Create/Update an account attribute. @@ -249,11 +250,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.AccountAttributesApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAccountAttributeRequestModel() # UpdateRequestAccountAttributeRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestAccountAttributeRequestModel() # UpdateRequestAccountAttributeRequestModel | (optional) try: # Create/Update an account attribute. - api_response = api_instance.update_account_attribute(customer_id, body=body) + api_response = api_instance.update_account_attribute(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountAttributesApi->update_account_attribute: %s\n" % e) @@ -264,7 +265,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**UpdateRequestAccountAttributeRequestModel**](UpdateRequestAccountAttributeRequestModel.md)| | [optional] + **request** | [**UpdateRequestAccountAttributeRequestModel**](UpdateRequestAccountAttributeRequestModel.md)| | [optional] ### Return type diff --git a/docs/AccountCost.md b/docs/AccountCost.md index 57e0ef5..28663ec 100644 --- a/docs/AccountCost.md +++ b/docs/AccountCost.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currency_code** | **str** | The total cost's currency code. | [optional] -**total** | **float** | The account's total cost. | [optional] +**currency_code** | **str** | The total cost's currency code. | [optional] +**total** | **float** | The account's total cost. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountGroupHierarchyResponseModel.md b/docs/AccountGroupHierarchyResponseModel.md index 241e428..eb55611 100644 --- a/docs/AccountGroupHierarchyResponseModel.md +++ b/docs/AccountGroupHierarchyResponseModel.md @@ -3,24 +3,25 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**legacy_account_id** | **str** | The legacy account's ID. | [optional] -**parent_id** | **str** | The account group's parent. | [optional] -**provider_identifier** | **str** | The account's cloud provider identifier. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] -**provider_payment_type** | **str** | The account's payment model. | [optional] -**payer_identifier** | **str** | The account's payer identifier. | [optional] +**legacy_account_id** | **str** | The legacy account's ID. | [optional] +**parent_id** | **str** | The account group's parent. | [optional] +**provider_identifier** | **str** | The account's cloud provider identifier. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] +**provider_payment_type** | **str** | The account's payment model. | [optional] +**payer_identifier** | **str** | The account's payer identifier. | [optional] **include_all_accounts** | **bool** | Includes all accounts. | [optional] **associated_account_attributes** | [**list[AccountAttributeBasicInfo]**](AccountAttributeBasicInfo.md) | List of associated account attributes. | [optional] **has_children** | **bool** | Determines if the account group has children. | [optional] **costs** | [**list[AccountCost]**](AccountCost.md) | The total cost of all accounts in the account group and any of its descendents. | [optional] -**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] -**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] -**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] +**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] +**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] +**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] **has_pending_change** | **bool** | True if the account has a pending change. | [optional] **is_system_managed** | **bool** | Setting to indicate whether an account is managed automatically. | [optional] -**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountGroupRequestModel.md b/docs/AccountGroupRequestModel.md index 3d26dfb..bfe7cdd 100644 --- a/docs/AccountGroupRequestModel.md +++ b/docs/AccountGroupRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The account group's name. | -**parent_id** | **str** | The account's parent. This property supports: resetting. | [optional] +**name** | **str** | The account group's name. | +**parent_id** | **str** | The account's parent. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountGroupResponseModel.md b/docs/AccountGroupResponseModel.md index 0553bd0..d250f7e 100644 --- a/docs/AccountGroupResponseModel.md +++ b/docs/AccountGroupResponseModel.md @@ -3,24 +3,25 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**legacy_account_id** | **str** | The legacy account's ID. This property supports: searching. | [optional] -**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: searching. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: searching. | [optional] -**provider_payment_type** | **str** | The account's payment model. | [optional] -**payer_identifier** | **str** | The account's payer identifier. This property supports: searching. | [optional] -**parent_id** | **str** | The account group's parent. | [optional] -**new_parent_assignment** | [**ParentAssignment**](ParentAssignment.md) | | [optional] +**legacy_account_id** | **str** | The legacy account's ID. This property supports: searching. | [optional] +**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: searching. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: searching. | [optional] +**provider_payment_type** | **str** | The account's payment model. | [optional] +**payer_identifier** | **str** | The account's payer identifier. This property supports: searching. | [optional] +**parent_id** | **str** | The account group's parent. | [optional] +**new_parent_assignment** | [**ParentAssignment**](ParentAssignment.md) | The account group's parent assignment results. | [optional] **include_all_accounts** | **bool** | Includes all accounts. | [optional] **associated_account_attributes** | [**list[AccountAttributeBasicInfo]**](AccountAttributeBasicInfo.md) | List of associated Account Attributes. | [optional] **has_children** | **bool** | Determines if the account group has children. | [optional] -**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] -**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] -**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] +**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] +**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] +**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] **has_pending_change** | **bool** | True if the account has a pending change. | [optional] **is_system_managed** | **bool** | Setting to indicate whether an account is managed automatically. | [optional] -**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountGroupSearchResponseModel.md b/docs/AccountGroupSearchResponseModel.md index 1335c05..dd3ddf8 100644 --- a/docs/AccountGroupSearchResponseModel.md +++ b/docs/AccountGroupSearchResponseModel.md @@ -3,25 +3,26 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**legacy_account_id** | **str** | The legacy account's ID. This property supports: sorting, filtering and searching. | [optional] -**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: sorting, filtering and searching. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: sorting, filtering and searching. | [optional] -**provider_payment_type** | **str** | The account's payment model. This property supports: sorting and filtering. | [optional] -**payer_identifier** | **str** | The account's payer identifier. This property supports: sorting, filtering and searching. | [optional] -**parent_id** | **str** | The account group's parent (ID only). This property supports: filtering. | [optional] -**parent** | [**BaseAccountInfo**](BaseAccountInfo.md) | | [optional] -**grandparent** | [**BaseAccountInfo**](BaseAccountInfo.md) | | [optional] +**legacy_account_id** | **str** | The legacy account's ID. This property supports: sorting, filtering and searching. | [optional] +**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: sorting, filtering and searching. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: sorting, filtering and searching. | [optional] +**provider_payment_type** | **str** | The account's payment model. This property supports: sorting and filtering. | [optional] +**payer_identifier** | **str** | The account's payer identifier. This property supports: sorting, filtering and searching. | [optional] +**parent_id** | **str** | The account group's parent (ID only). This property supports: filtering. | [optional] +**parent** | [**BaseAccountInfo**](BaseAccountInfo.md) | The account group's parent. | [optional] +**grandparent** | [**BaseAccountInfo**](BaseAccountInfo.md) | The account group's grandparent. | [optional] **include_all_accounts** | **bool** | True if all accounts are included. Only applicable to MAVs. This property supports: filtering. | [optional] **associated_account_attributes** | [**list[AccountAttributeBasicInfo]**](AccountAttributeBasicInfo.md) | List of associated account attributes. This property supports: filtering. | [optional] **has_children** | **bool** | Determines if the account group has children. | [optional] -**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] -**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] -**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] +**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] +**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] +**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] **has_pending_change** | **bool** | True if the account has a pending change. | [optional] **is_system_managed** | **bool** | Setting to indicate whether an account is managed automatically. | [optional] -**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AccountManagementApi.md b/docs/AccountManagementApi.md index 80716be..929cda8 100644 --- a/docs/AccountManagementApi.md +++ b/docs/AccountManagementApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.AccountManagementApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -27,8 +27,9 @@ Method | HTTP request | Description [**update_account_group**](AccountManagementApi.md#update_account_group) | **PUT** /customer/v1/customers/{customerId}/account-management/account-groups/{accountId} | Update an account group. [**update_mav**](AccountManagementApi.md#update_mav) | **PUT** /customer/v1/customers/{customerId}/account-management/mavs/{accountId} | Update a MAV. + # **attach_account_groups** -> BulkAccountAssignmentResponseModelAccountAssignmentResponseModel attach_account_groups(customer_id, group_id, body=body) +> BulkAccountAssignmentResponseModelAccountAssignmentResponseModel attach_account_groups(customer_id, group_id, request=request) Bulk move account groups into a parent account group. @@ -48,11 +49,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | group_id = 'group_id_example' # str | -body = cloudcheckr_cmx_client.BulkAccountAssignmentRequestModel() # BulkAccountAssignmentRequestModel | (optional) +request = cloudcheckr_cmx_client.BulkAccountAssignmentRequestModel() # BulkAccountAssignmentRequestModel | (optional) try: # Bulk move account groups into a parent account group. - api_response = api_instance.attach_account_groups(customer_id, group_id, body=body) + api_response = api_instance.attach_account_groups(customer_id, group_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->attach_account_groups: %s\n" % e) @@ -64,7 +65,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **group_id** | **str**| | - **body** | [**BulkAccountAssignmentRequestModel**](BulkAccountAssignmentRequestModel.md)| | [optional] + **request** | [**BulkAccountAssignmentRequestModel**](BulkAccountAssignmentRequestModel.md)| | [optional] ### Return type @@ -82,7 +83,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **attach_account_groups_to_root** -> BulkAccountAssignmentResponseModelAccountAssignmentResponseModel attach_account_groups_to_root(customer_id, body=body) +> BulkAccountAssignmentResponseModelAccountAssignmentResponseModel attach_account_groups_to_root(customer_id, request=request) Bulk move account groups into the root path. @@ -101,11 +102,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.BulkAccountAssignmentRequestModel() # BulkAccountAssignmentRequestModel | (optional) +request = cloudcheckr_cmx_client.BulkAccountAssignmentRequestModel() # BulkAccountAssignmentRequestModel | (optional) try: # Bulk move account groups into the root path. - api_response = api_instance.attach_account_groups_to_root(customer_id, body=body) + api_response = api_instance.attach_account_groups_to_root(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->attach_account_groups_to_root: %s\n" % e) @@ -116,7 +117,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**BulkAccountAssignmentRequestModel**](BulkAccountAssignmentRequestModel.md)| | [optional] + **request** | [**BulkAccountAssignmentRequestModel**](BulkAccountAssignmentRequestModel.md)| | [optional] ### Return type @@ -134,7 +135,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_account** -> GeneralAccountResponseModel create_account(customer_id, body=body) +> GeneralAccountResponseModel create_account(customer_id, request=request) Create a General Account. @@ -153,11 +154,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestGeneralAccountRequestModel() # CreateRequestGeneralAccountRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestGeneralAccountRequestModel() # CreateRequestGeneralAccountRequestModel | (optional) try: # Create a General Account. - api_response = api_instance.create_account(customer_id, body=body) + api_response = api_instance.create_account(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->create_account: %s\n" % e) @@ -168,7 +169,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestGeneralAccountRequestModel**](CreateRequestGeneralAccountRequestModel.md)| | [optional] + **request** | [**CreateRequestGeneralAccountRequestModel**](CreateRequestGeneralAccountRequestModel.md)| | [optional] ### Return type @@ -186,7 +187,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_account_group** -> AccountGroupResponseModel create_account_group(customer_id, body=body) +> AccountGroupResponseModel create_account_group(customer_id, request=request) Create a new account group. @@ -205,11 +206,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestAccountGroupRequestModel() # CreateRequestAccountGroupRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestAccountGroupRequestModel() # CreateRequestAccountGroupRequestModel | (optional) try: # Create a new account group. - api_response = api_instance.create_account_group(customer_id, body=body) + api_response = api_instance.create_account_group(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->create_account_group: %s\n" % e) @@ -220,7 +221,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestAccountGroupRequestModel**](CreateRequestAccountGroupRequestModel.md)| | [optional] + **request** | [**CreateRequestAccountGroupRequestModel**](CreateRequestAccountGroupRequestModel.md)| | [optional] ### Return type @@ -238,7 +239,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_mav** -> MavResponseModel create_mav(customer_id, body=body) +> MavResponseModel create_mav(customer_id, request=request) Create a MAV. @@ -257,11 +258,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestMavRequestModel() # CreateRequestMavRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestMavRequestModel() # CreateRequestMavRequestModel | (optional) try: # Create a MAV. - api_response = api_instance.create_mav(customer_id, body=body) + api_response = api_instance.create_mav(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->create_mav: %s\n" % e) @@ -272,7 +273,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestMavRequestModel**](CreateRequestMavRequestModel.md)| | [optional] + **request** | [**CreateRequestMavRequestModel**](CreateRequestMavRequestModel.md)| | [optional] ### Return type @@ -387,7 +388,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1043,7 +1044,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_account** -> GeneralAccountResponseModel update_account(customer_id, account_id, body=body) +> GeneralAccountResponseModel update_account(customer_id, account_id, request=request) Update a General Account. @@ -1063,11 +1064,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestGeneralAccountRequestModel() # UpdateRequestGeneralAccountRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestGeneralAccountRequestModel() # UpdateRequestGeneralAccountRequestModel | (optional) try: # Update a General Account. - api_response = api_instance.update_account(customer_id, account_id, body=body) + api_response = api_instance.update_account(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->update_account: %s\n" % e) @@ -1079,7 +1080,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestGeneralAccountRequestModel**](UpdateRequestGeneralAccountRequestModel.md)| | [optional] + **request** | [**UpdateRequestGeneralAccountRequestModel**](UpdateRequestGeneralAccountRequestModel.md)| | [optional] ### Return type @@ -1097,7 +1098,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_account_group** -> AccountGroupResponseModel update_account_group(customer_id, account_id, body=body) +> AccountGroupResponseModel update_account_group(customer_id, account_id, request=request) Update an account group. @@ -1117,11 +1118,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAccountGroupRequestModel() # UpdateRequestAccountGroupRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestAccountGroupRequestModel() # UpdateRequestAccountGroupRequestModel | (optional) try: # Update an account group. - api_response = api_instance.update_account_group(customer_id, account_id, body=body) + api_response = api_instance.update_account_group(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->update_account_group: %s\n" % e) @@ -1133,7 +1134,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestAccountGroupRequestModel**](UpdateRequestAccountGroupRequestModel.md)| | [optional] + **request** | [**UpdateRequestAccountGroupRequestModel**](UpdateRequestAccountGroupRequestModel.md)| | [optional] ### Return type @@ -1151,7 +1152,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_mav** -> MavResponseModel update_mav(customer_id, account_id, body=body) +> MavResponseModel update_mav(customer_id, account_id, request=request) Update a MAV. @@ -1171,11 +1172,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AccountManagementApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestMavRequestModel() # UpdateRequestMavRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestMavRequestModel() # UpdateRequestMavRequestModel | (optional) try: # Update a MAV. - api_response = api_instance.update_mav(customer_id, account_id, body=body) + api_response = api_instance.update_mav(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AccountManagementApi->update_mav: %s\n" % e) @@ -1187,7 +1188,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestMavRequestModel**](UpdateRequestMavRequestModel.md)| | [optional] + **request** | [**UpdateRequestMavRequestModel**](UpdateRequestMavRequestModel.md)| | [optional] ### Return type diff --git a/docs/AccountsApi.md b/docs/AccountsApi.md index 6428e2e..32ab708 100644 --- a/docs/AccountsApi.md +++ b/docs/AccountsApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.AccountsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -8,6 +8,7 @@ Method | HTTP request | Description [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /customer/v1/customers/{customerId}/accounts | Get all accounts, account groups, and MAVs. [**get_ancestors**](AccountsApi.md#get_ancestors) | **GET** /customer/v1/customers/{customerId}/accounts/{accountId}/ancestors | Get all ancestors of an account. + # **get_account** > AccountGroupResponseModel get_account(customer_id, account_id) diff --git a/docs/AncestorModel.md b/docs/AncestorModel.md index 94ed115..e5692f9 100644 --- a/docs/AncestorModel.md +++ b/docs/AncestorModel.md @@ -3,20 +3,21 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**legacy_account_id** | **str** | The legacy account's ID. | [optional] -**provider_identifier** | **str** | The account's cloud provider identifier. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] -**provider_payment_type** | **str** | The account's payment model. | [optional] -**payer_identifier** | **str** | The account's payer identifier. | [optional] +**legacy_account_id** | **str** | The legacy account's ID. | [optional] +**provider_identifier** | **str** | The account's cloud provider identifier. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] +**provider_payment_type** | **str** | The account's payment model. | [optional] +**payer_identifier** | **str** | The account's payer identifier. | [optional] **has_children** | **bool** | Determines if the account group has children. | [optional] -**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] -**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] -**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] +**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] +**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] +**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] **has_pending_change** | **bool** | True if the account has a pending change. | [optional] **is_system_managed** | **bool** | Setting to indicate whether an account is managed automatically. | [optional] -**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AncestorsResponseModel.md b/docs/AncestorsResponseModel.md index 2172e21..894f754 100644 --- a/docs/AncestorsResponseModel.md +++ b/docs/AncestorsResponseModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ancestors** | [**list[AncestorModel]**](AncestorModel.md) | The account's ancestors (in order, with immediate parent first). | [optional] +**ancestors** | [**list[AncestorModel]**](AncestorModel.md) | The account's ancestors (in order, with immediate parent first). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ApplicationModel.md b/docs/ApplicationModel.md index bf98dc0..95f2f87 100644 --- a/docs/ApplicationModel.md +++ b/docs/ApplicationModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**application_id** | **str** | Application's unique ID. | [optional] -**application_secret** | **str** | Application's secret / password. | [optional] +**application_id** | **str** | Application's unique ID. | [optional] +**application_secret** | **str** | Application's secret / password. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AwsAccessKeyModel.md b/docs/AwsAccessKeyModel.md index 06f0c3f..82adcec 100644 --- a/docs/AwsAccessKeyModel.md +++ b/docs/AwsAccessKeyModel.md @@ -8,3 +8,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AwsAssumeRoleCredentialRequestModel.md b/docs/AwsAssumeRoleCredentialRequestModel.md deleted file mode 100644 index 1e22592..0000000 --- a/docs/AwsAssumeRoleCredentialRequestModel.md +++ /dev/null @@ -1,9 +0,0 @@ -# AwsAssumeRoleCredentialRequestModel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_key** | [**AwsAccessKeyModel**](AwsAccessKeyModel.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/AwsCredentialRequestModel.md b/docs/AwsCredentialRequestModel.md index 04e1ea1..95b2513 100644 --- a/docs/AwsCredentialRequestModel.md +++ b/docs/AwsCredentialRequestModel.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, GovCloud, etc). | [optional] -**access_key** | [**AwsAccessKeyModel**](AwsAccessKeyModel.md) | | [optional] -**cross_account_role** | [**AwsCrossAccountRoleModel**](AwsCrossAccountRoleModel.md) | | [optional] -**linked_aws_commercial_account** | [**LinkedAwsCommercialAccountModel**](LinkedAwsCommercialAccountModel.md) | | [optional] +**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, GovCloud, etc). | [optional] +**access_key** | [**AwsAccessKeyModel**](AwsAccessKeyModel.md) | AWS access key credential. This property supports: resetting. | [optional] +**cross_account_role** | [**AwsCrossAccountRoleModel**](AwsCrossAccountRoleModel.md) | AWS cross-account role credential. This property supports: resetting. | [optional] +**linked_aws_commercial_account** | [**LinkedAwsCommercialAccountModel**](LinkedAwsCommercialAccountModel.md) | Linked AWS commercial account information. This is the billing account for an AWS GovCloud (US) account. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AwsCrossAccountRoleModel.md b/docs/AwsCrossAccountRoleModel.md index c6bc328..71ddf7b 100644 --- a/docs/AwsCrossAccountRoleModel.md +++ b/docs/AwsCrossAccountRoleModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AwsCrossAccountRoleSetupResponseModel.md b/docs/AwsCrossAccountRoleSetupResponseModel.md index 6b03bee..8baf76b 100644 --- a/docs/AwsCrossAccountRoleSetupResponseModel.md +++ b/docs/AwsCrossAccountRoleSetupResponseModel.md @@ -8,3 +8,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AzureAuthorizationResponseModel.md b/docs/AzureAuthorizationResponseModel.md index a01f7dd..6bdeef3 100644 --- a/docs/AzureAuthorizationResponseModel.md +++ b/docs/AzureAuthorizationResponseModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AzureBillingAccountResponseModel.md b/docs/AzureBillingAccountResponseModel.md index d9305c7..3c202f6 100644 --- a/docs/AzureBillingAccountResponseModel.md +++ b/docs/AzureBillingAccountResponseModel.md @@ -10,3 +10,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AzureBillingAccountSelectionRequestModel.md b/docs/AzureBillingAccountSelectionRequestModel.md index 8b53266..93f6149 100644 --- a/docs/AzureBillingAccountSelectionRequestModel.md +++ b/docs/AzureBillingAccountSelectionRequestModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AzureCommonCredentialsApi.md b/docs/AzureCommonCredentialsApi.md index 46f1cb6..30ddc0e 100644 --- a/docs/AzureCommonCredentialsApi.md +++ b/docs/AzureCommonCredentialsApi.md @@ -1,15 +1,16 @@ # cloudcheckr_cmx_client.AzureCommonCredentialsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**assign_billing_account**](AzureCommonCredentialsApi.md#assign_billing_account) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credential/azure/billing-accounts | Assigns a billing account ID to an Azure credential. -[**get_billing_accounts**](AzureCommonCredentialsApi.md#get_billing_accounts) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/credential/azure/billing-accounts | Retrieve billing accounts associated with credential. +[**assign_billing_account**](AzureCommonCredentialsApi.md#assign_billing_account) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/billing-accounts | Assigns a billing account ID to an Azure credential. +[**get_billing_accounts**](AzureCommonCredentialsApi.md#get_billing_accounts) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/billing-accounts | Retrieve billing accounts associated with credential. [**request_authorization**](AzureCommonCredentialsApi.md#request_authorization) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/request-authorization | Start the Azure authorization consent flow. + # **assign_billing_account** -> CredentialResponseModel assign_billing_account(customer_id, account_id, body=body) +> CredentialResponseModel assign_billing_account(customer_id, account_id, request=request) Assigns a billing account ID to an Azure credential. @@ -29,11 +30,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AzureCommonCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestAzureBillingAccountSelectionRequestModel() # CreateRequestAzureBillingAccountSelectionRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestAzureBillingAccountSelectionRequestModel() # CreateRequestAzureBillingAccountSelectionRequestModel | (optional) try: # Assigns a billing account ID to an Azure credential. - api_response = api_instance.assign_billing_account(customer_id, account_id, body=body) + api_response = api_instance.assign_billing_account(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AzureCommonCredentialsApi->assign_billing_account: %s\n" % e) @@ -45,7 +46,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**CreateRequestAzureBillingAccountSelectionRequestModel**](CreateRequestAzureBillingAccountSelectionRequestModel.md)| | [optional] + **request** | [**CreateRequestAzureBillingAccountSelectionRequestModel**](CreateRequestAzureBillingAccountSelectionRequestModel.md)| | [optional] ### Return type @@ -117,7 +118,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **request_authorization** -> AzureAuthorizationResponseModel request_authorization(customer_id, account_id, body=body) +> AzureAuthorizationResponseModel request_authorization(customer_id, account_id, request=request) Start the Azure authorization consent flow. @@ -137,11 +138,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AzureCommonCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAzureTokenCredentialRequestModel() # UpdateRequestAzureTokenCredentialRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestAzureTokenCredentialRequestModel() # UpdateRequestAzureTokenCredentialRequestModel | (optional) try: # Start the Azure authorization consent flow. - api_response = api_instance.request_authorization(customer_id, account_id, body=body) + api_response = api_instance.request_authorization(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AzureCommonCredentialsApi->request_authorization: %s\n" % e) @@ -153,7 +154,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestAzureTokenCredentialRequestModel**](UpdateRequestAzureTokenCredentialRequestModel.md)| | [optional] + **request** | [**UpdateRequestAzureTokenCredentialRequestModel**](UpdateRequestAzureTokenCredentialRequestModel.md)| | [optional] ### Return type diff --git a/docs/AzureCredentialsApi.md b/docs/AzureCredentialsApi.md index a5d7787..0d0c252 100644 --- a/docs/AzureCredentialsApi.md +++ b/docs/AzureCredentialsApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.AzureCredentialsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -8,8 +8,9 @@ Method | HTTP request | Description [**modify_azure_subscription_credentials**](AzureCredentialsApi.md#modify_azure_subscription_credentials) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/subscription | Modify the credentials on the account. [**request_csp_authorization**](AzureCredentialsApi.md#request_csp_authorization) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/azure/csp/request-authorization | Start the Azure CSP authorization consent flow. + # **modify_azure_enterprise_agreement_credentials** -> CredentialResponseModel modify_azure_enterprise_agreement_credentials(customer_id, account_id, body=body) +> CredentialResponseModel modify_azure_enterprise_agreement_credentials(customer_id, account_id, request=request) Modify the credentials on the account. @@ -29,11 +30,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AzureCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAzureEnterpriseAgreementCredentialRequestModel() # UpdateRequestAzureEnterpriseAgreementCredentialRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestAzureEnterpriseAgreementCredentialRequestModel() # UpdateRequestAzureEnterpriseAgreementCredentialRequestModel | (optional) try: # Modify the credentials on the account. - api_response = api_instance.modify_azure_enterprise_agreement_credentials(customer_id, account_id, body=body) + api_response = api_instance.modify_azure_enterprise_agreement_credentials(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AzureCredentialsApi->modify_azure_enterprise_agreement_credentials: %s\n" % e) @@ -45,7 +46,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestAzureEnterpriseAgreementCredentialRequestModel**](UpdateRequestAzureEnterpriseAgreementCredentialRequestModel.md)| | [optional] + **request** | [**UpdateRequestAzureEnterpriseAgreementCredentialRequestModel**](UpdateRequestAzureEnterpriseAgreementCredentialRequestModel.md)| | [optional] ### Return type @@ -63,7 +64,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **modify_azure_subscription_credentials** -> CredentialResponseModel modify_azure_subscription_credentials(customer_id, account_id, body=body) +> CredentialResponseModel modify_azure_subscription_credentials(customer_id, account_id, request=request) Modify the credentials on the account. @@ -83,11 +84,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AzureCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAzureSubscriptionCredentialRequestModel() # UpdateRequestAzureSubscriptionCredentialRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestAzureSubscriptionCredentialRequestModel() # UpdateRequestAzureSubscriptionCredentialRequestModel | (optional) try: # Modify the credentials on the account. - api_response = api_instance.modify_azure_subscription_credentials(customer_id, account_id, body=body) + api_response = api_instance.modify_azure_subscription_credentials(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AzureCredentialsApi->modify_azure_subscription_credentials: %s\n" % e) @@ -99,7 +100,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestAzureSubscriptionCredentialRequestModel**](UpdateRequestAzureSubscriptionCredentialRequestModel.md)| | [optional] + **request** | [**UpdateRequestAzureSubscriptionCredentialRequestModel**](UpdateRequestAzureSubscriptionCredentialRequestModel.md)| | [optional] ### Return type @@ -117,7 +118,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **request_csp_authorization** -> AzureAuthorizationResponseModel request_csp_authorization(customer_id, account_id, body=body) +> AzureAuthorizationResponseModel request_csp_authorization(customer_id, account_id, request=request) Start the Azure CSP authorization consent flow. @@ -137,11 +138,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.AzureCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestAzureCspAuthorizationRequestModel() # UpdateRequestAzureCspAuthorizationRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestAzureCspAuthorizationRequestModel() # UpdateRequestAzureCspAuthorizationRequestModel | (optional) try: # Start the Azure CSP authorization consent flow. - api_response = api_instance.request_csp_authorization(customer_id, account_id, body=body) + api_response = api_instance.request_csp_authorization(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling AzureCredentialsApi->request_csp_authorization: %s\n" % e) @@ -153,7 +154,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestAzureCspAuthorizationRequestModel**](UpdateRequestAzureCspAuthorizationRequestModel.md)| | [optional] + **request** | [**UpdateRequestAzureCspAuthorizationRequestModel**](UpdateRequestAzureCspAuthorizationRequestModel.md)| | [optional] ### Return type diff --git a/docs/AzureCspAuthorizationRequestModel.md b/docs/AzureCspAuthorizationRequestModel.md index c12ec83..7f6da01 100644 --- a/docs/AzureCspAuthorizationRequestModel.md +++ b/docs/AzureCspAuthorizationRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**purchase_model** | **str** | The account's purchase model. | [optional] -**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] +**purchase_model** | **str** | The account's purchase model. | [optional] +**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AzureEnterpriseAgreementCredentialRequestModel.md b/docs/AzureEnterpriseAgreementCredentialRequestModel.md index 46d036f..bef1fd2 100644 --- a/docs/AzureEnterpriseAgreementCredentialRequestModel.md +++ b/docs/AzureEnterpriseAgreementCredentialRequestModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AzureSubscriptionCredentialRequestModel.md b/docs/AzureSubscriptionCredentialRequestModel.md index 7c23677..57ef132 100644 --- a/docs/AzureSubscriptionCredentialRequestModel.md +++ b/docs/AzureSubscriptionCredentialRequestModel.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active_directory_id** | **str** | The Active Directory's unique identifier. | [optional] +**active_directory_id** | **str** | The Active Directory's unique identifier. | [optional] **subscription_id** | **str** | Azure subscription ID. | [optional] -**application** | [**ApplicationModel**](ApplicationModel.md) | | [optional] -**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] +**application** | [**ApplicationModel**](ApplicationModel.md) | Azure application to use for subscription access. This property supports: resetting. | [optional] +**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AzureTokenCredentialRequestModel.md b/docs/AzureTokenCredentialRequestModel.md index 4f71c84..7a0b5de 100644 --- a/docs/AzureTokenCredentialRequestModel.md +++ b/docs/AzureTokenCredentialRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] +**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BaseAccountInfo.md b/docs/BaseAccountInfo.md index b0c053b..ffd4393 100644 --- a/docs/BaseAccountInfo.md +++ b/docs/BaseAccountInfo.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BasicRequestListModification.md b/docs/BasicRequestListModification.md index cc19297..00e2ae7 100644 --- a/docs/BasicRequestListModification.md +++ b/docs/BasicRequestListModification.md @@ -8,3 +8,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BulkAccountAssignmentRequestModel.md b/docs/BulkAccountAssignmentRequestModel.md index 4a226f2..b8bcb7e 100644 --- a/docs/BulkAccountAssignmentRequestModel.md +++ b/docs/BulkAccountAssignmentRequestModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BulkAccountAssignmentResponseModelAccountAssignmentResponseModel.md b/docs/BulkAccountAssignmentResponseModelAccountAssignmentResponseModel.md index 07ddc10..6e9582d 100644 --- a/docs/BulkAccountAssignmentResponseModelAccountAssignmentResponseModel.md +++ b/docs/BulkAccountAssignmentResponseModelAccountAssignmentResponseModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel.md b/docs/BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel.md index 3aa2ad8..d54426b 100644 --- a/docs/BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel.md +++ b/docs/BulkAccountAssignmentResponseModelAccountAttributeAssignmentResponseModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BulkAccountAttributeAssignmentRequestModel.md b/docs/BulkAccountAttributeAssignmentRequestModel.md index 94046dc..5d1a1de 100644 --- a/docs/BulkAccountAttributeAssignmentRequestModel.md +++ b/docs/BulkAccountAttributeAssignmentRequestModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientAccessKeyRequestModel.md b/docs/ClientAccessKeyRequestModel.md index f168c95..7a389c7 100644 --- a/docs/ClientAccessKeyRequestModel.md +++ b/docs/ClientAccessKeyRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The access key's name. | +**name** | **str** | The access key's name. | **access_key_valid_days** | **int** | The number of days until the access key will expire. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientAccessKeyResponseModel.md b/docs/ClientAccessKeyResponseModel.md index b34062e..c7f0c3a 100644 --- a/docs/ClientAccessKeyResponseModel.md +++ b/docs/ClientAccessKeyResponseModel.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The access key's unique ID. | [optional] +**id** | **str** | The access key's unique ID. | [optional] **client_id** | **str** | The ID of the client associated with the access key. | [optional] -**name** | **str** | The access key's name. This property supports: sorting and filtering. | [optional] -**expiry_date** | **datetime** | The access key's expiration date. Excluded if there is no expiration date. This property supports: sorting and filtering. | [optional] +**name** | **str** | The access key's name. This property supports: sorting and filtering. | [optional] +**expiry_date** | **datetime** | The access key's expiration date. Excluded if there is no expiration date. This property supports: sorting and filtering. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientAccessKeysApi.md b/docs/ClientAccessKeysApi.md index 8df2df9..8362725 100644 --- a/docs/ClientAccessKeysApi.md +++ b/docs/ClientAccessKeysApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.ClientAccessKeysApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -8,8 +8,9 @@ Method | HTTP request | Description [**delete_client_access_key**](ClientAccessKeysApi.md#delete_client_access_key) | **DELETE** /auth/v1/customers/{customerId}/clients/{clientId}/access-keys/{accessKeyId} | Delete a client access key. [**list_client_access_keys**](ClientAccessKeysApi.md#list_client_access_keys) | **GET** /auth/v1/customers/{customerId}/clients/{clientId}/access-keys | Get all client access keys. + # **create_client_access_key** -> NewClientAccessInfo create_client_access_key(customer_id, client_id, body=body) +> NewClientAccessInfo create_client_access_key(customer_id, client_id, request=request) Create a new client access key. @@ -29,11 +30,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.ClientAccessKeysApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | client_id = 'client_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestClientAccessKeyRequestModel() # CreateRequestClientAccessKeyRequestModel | This includes the settings to create the new client Access Key. (optional) +request = cloudcheckr_cmx_client.CreateRequestClientAccessKeyRequestModel() # CreateRequestClientAccessKeyRequestModel | This includes the settings to create the new client Access Key. (optional) try: # Create a new client access key. - api_response = api_instance.create_client_access_key(customer_id, client_id, body=body) + api_response = api_instance.create_client_access_key(customer_id, client_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling ClientAccessKeysApi->create_client_access_key: %s\n" % e) @@ -45,7 +46,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **client_id** | **str**| | - **body** | [**CreateRequestClientAccessKeyRequestModel**](CreateRequestClientAccessKeyRequestModel.md)| This includes the settings to create the new client Access Key. | [optional] + **request** | [**CreateRequestClientAccessKeyRequestModel**](CreateRequestClientAccessKeyRequestModel.md)| This includes the settings to create the new client Access Key. | [optional] ### Return type diff --git a/docs/ClientCreateRequestModel.md b/docs/ClientCreateRequestModel.md index 5e85e08..37754cf 100644 --- a/docs/ClientCreateRequestModel.md +++ b/docs/ClientCreateRequestModel.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes **create_access_key** | **bool** | Controls whether or not to create an access key for the client. | [optional] **access_key_name** | **str** | The name that the access key will be assigned. | [optional] **access_key_valid_days** | **int** | The number of days until the access key will expire. | [optional] -**name** | **str** | The client's name. | -**description** | **str** | The client's description. This property supports: resetting. | [optional] +**name** | **str** | The client's name. | +**description** | **str** | The client's description. This property supports: resetting. | [optional] **type** | **str** | The type of client. | **roles** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | List of role ids to assign to the user. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientRequestModel.md b/docs/ClientRequestModel.md index 5aad8fd..cadce81 100644 --- a/docs/ClientRequestModel.md +++ b/docs/ClientRequestModel.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The client's name. | -**description** | **str** | The client's description. This property supports: resetting. | [optional] +**name** | **str** | The client's name. | +**description** | **str** | The client's description. This property supports: resetting. | [optional] **type** | **str** | The type of client. | **roles** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | List of role ids to assign to the user. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientResponseModel.md b/docs/ClientResponseModel.md index 70a7aee..9eb3a86 100644 --- a/docs/ClientResponseModel.md +++ b/docs/ClientResponseModel.md @@ -3,13 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The client's unique ID. This property supports: searching. | [optional] -**name** | **str** | The client's name. This property supports: sorting, filtering and searching. | [optional] -**description** | **str** | The client's description. This property supports: sorting, filtering and searching. | [optional] -**type** | **str** | The client's type. This property supports: sorting. | [optional] +**id** | **str** | The client's unique ID. This property supports: searching. | [optional] +**name** | **str** | The client's name. This property supports: sorting, filtering and searching. | [optional] +**description** | **str** | The client's description. This property supports: sorting, filtering and searching. | [optional] +**type** | **str** | The client's type. This property supports: sorting. | [optional] **roles** | [**list[MappedRoleResponseModel]**](MappedRoleResponseModel.md) | The roles that are assigned to the client. | [optional] **access_key_count** | **int** | The number of access keys belonging to the client. This property supports: sorting and filtering. | [optional] **created_date** | **datetime** | The date that the client was created. This property supports: sorting and filtering. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ClientsApi.md b/docs/ClientsApi.md index 592121a..52a45ab 100644 --- a/docs/ClientsApi.md +++ b/docs/ClientsApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.ClientsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -10,8 +10,9 @@ Method | HTTP request | Description [**list_clients**](ClientsApi.md#list_clients) | **GET** /auth/v1/customers/{customerId}/clients | Get all clients. [**update_client**](ClientsApi.md#update_client) | **PUT** /auth/v1/customers/{customerId}/clients/{clientId} | Update a client. + # **create_client** -> ClientResponseModel create_client(customer_id, body=body) +> ClientResponseModel create_client(customer_id, request=request) Create a new client. @@ -30,11 +31,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.ClientsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestClientCreateRequestModel() # CreateRequestClientCreateRequestModel | This includes the settings to create the new client. (optional) +request = cloudcheckr_cmx_client.CreateRequestClientCreateRequestModel() # CreateRequestClientCreateRequestModel | This includes the settings to create the new client. (optional) try: # Create a new client. - api_response = api_instance.create_client(customer_id, body=body) + api_response = api_instance.create_client(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling ClientsApi->create_client: %s\n" % e) @@ -45,7 +46,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestClientCreateRequestModel**](CreateRequestClientCreateRequestModel.md)| This includes the settings to create the new client. | [optional] + **request** | [**CreateRequestClientCreateRequestModel**](CreateRequestClientCreateRequestModel.md)| This includes the settings to create the new client. | [optional] ### Return type @@ -109,7 +110,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -226,7 +227,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_client** -> ClientResponseModel update_client(customer_id, client_id, body=body) +> ClientResponseModel update_client(customer_id, client_id, request=request) Update a client. @@ -246,11 +247,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.ClientsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | client_id = 'client_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestClientRequestModel() # UpdateRequestClientRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestClientRequestModel() # UpdateRequestClientRequestModel | (optional) try: # Update a client. - api_response = api_instance.update_client(customer_id, client_id, body=body) + api_response = api_instance.update_client(customer_id, client_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling ClientsApi->update_client: %s\n" % e) @@ -262,7 +263,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **client_id** | **str**| | - **body** | [**UpdateRequestClientRequestModel**](UpdateRequestClientRequestModel.md)| | [optional] + **request** | [**UpdateRequestClientRequestModel**](UpdateRequestClientRequestModel.md)| | [optional] ### Return type diff --git a/docs/CreateRequestAccountGroupRequestModel.md b/docs/CreateRequestAccountGroupRequestModel.md index 329779f..c7134ca 100644 --- a/docs/CreateRequestAccountGroupRequestModel.md +++ b/docs/CreateRequestAccountGroupRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AccountGroupRequestModel**](AccountGroupRequestModel.md) | | [optional] +**item** | [**AccountGroupRequestModel**](AccountGroupRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestAzureBillingAccountSelectionRequestModel.md b/docs/CreateRequestAzureBillingAccountSelectionRequestModel.md index 111543c..0e0033c 100644 --- a/docs/CreateRequestAzureBillingAccountSelectionRequestModel.md +++ b/docs/CreateRequestAzureBillingAccountSelectionRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AzureBillingAccountSelectionRequestModel**](AzureBillingAccountSelectionRequestModel.md) | | [optional] +**item** | [**AzureBillingAccountSelectionRequestModel**](AzureBillingAccountSelectionRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestClientAccessKeyRequestModel.md b/docs/CreateRequestClientAccessKeyRequestModel.md index 2a3ca71..78defea 100644 --- a/docs/CreateRequestClientAccessKeyRequestModel.md +++ b/docs/CreateRequestClientAccessKeyRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**ClientAccessKeyRequestModel**](ClientAccessKeyRequestModel.md) | | [optional] +**item** | [**ClientAccessKeyRequestModel**](ClientAccessKeyRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestClientCreateRequestModel.md b/docs/CreateRequestClientCreateRequestModel.md index b9ed101..84e0b20 100644 --- a/docs/CreateRequestClientCreateRequestModel.md +++ b/docs/CreateRequestClientCreateRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**ClientCreateRequestModel**](ClientCreateRequestModel.md) | | [optional] +**item** | [**ClientCreateRequestModel**](ClientCreateRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestGeneralAccountRequestModel.md b/docs/CreateRequestGeneralAccountRequestModel.md index e94ab63..fc6445c 100644 --- a/docs/CreateRequestGeneralAccountRequestModel.md +++ b/docs/CreateRequestGeneralAccountRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**GeneralAccountRequestModel**](GeneralAccountRequestModel.md) | | [optional] +**item** | [**GeneralAccountRequestModel**](GeneralAccountRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestMavRequestModel.md b/docs/CreateRequestMavRequestModel.md index a0b823f..6d1815e 100644 --- a/docs/CreateRequestMavRequestModel.md +++ b/docs/CreateRequestMavRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**MavRequestModel**](MavRequestModel.md) | | [optional] +**item** | [**MavRequestModel**](MavRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestPermissionSetRequestModel.md b/docs/CreateRequestPermissionSetRequestModel.md index 14790ea..a1e2d12 100644 --- a/docs/CreateRequestPermissionSetRequestModel.md +++ b/docs/CreateRequestPermissionSetRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**PermissionSetRequestModel**](PermissionSetRequestModel.md) | | [optional] +**item** | [**PermissionSetRequestModel**](PermissionSetRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestRoleRequestModel.md b/docs/CreateRequestRoleRequestModel.md index 3f712d0..771e6d0 100644 --- a/docs/CreateRequestRoleRequestModel.md +++ b/docs/CreateRequestRoleRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**RoleRequestModel**](RoleRequestModel.md) | | [optional] +**item** | [**RoleRequestModel**](RoleRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestSamlProviderRequestModel.md b/docs/CreateRequestSamlProviderRequestModel.md index 07d401c..78fdb93 100644 --- a/docs/CreateRequestSamlProviderRequestModel.md +++ b/docs/CreateRequestSamlProviderRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**SamlProviderRequestModel**](SamlProviderRequestModel.md) | | [optional] +**item** | [**SamlProviderRequestModel**](SamlProviderRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestSamlProviderRuleRequestModel.md b/docs/CreateRequestSamlProviderRuleRequestModel.md index a742e39..87eeff9 100644 --- a/docs/CreateRequestSamlProviderRuleRequestModel.md +++ b/docs/CreateRequestSamlProviderRuleRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**SamlProviderRuleRequestModel**](SamlProviderRuleRequestModel.md) | | [optional] +**item** | [**SamlProviderRuleRequestModel**](SamlProviderRuleRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CreateRequestUserRequestModel.md b/docs/CreateRequestUserRequestModel.md index 849b353..cef6977 100644 --- a/docs/CreateRequestUserRequestModel.md +++ b/docs/CreateRequestUserRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**UserRequestModel**](UserRequestModel.md) | | [optional] +**item** | [**UserRequestModel**](UserRequestModel.md) | Item to create | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CredentialMetadataModel.md b/docs/CredentialMetadataModel.md index a73dd2c..4b843bd 100644 --- a/docs/CredentialMetadataModel.md +++ b/docs/CredentialMetadataModel.md @@ -9,3 +9,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CredentialResponseModel.md b/docs/CredentialResponseModel.md index 935248f..27f8b57 100644 --- a/docs/CredentialResponseModel.md +++ b/docs/CredentialResponseModel.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**provider** | **str** | The account's cloud provider. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] -**provider_identifier** | **str** | The account group's cloud provider identifier. | [optional] -**provider_billing_identifier** | **str** | The account group's cloud provider billing identifier. If the billing account ID is the same as the credential account ID, this will have no value. This will have a value when billing is tracked under a different account ID from the account group's standard cloud provider identifier. Example: An AWS Gov account has a separate commercial account ID for billing. | [optional] -**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] +**provider** | **str** | The account's cloud provider. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] +**provider_identifier** | **str** | The account group's cloud provider identifier. | [optional] +**provider_billing_identifier** | **str** | The account group's cloud provider billing identifier. If the billing account ID is the same as the credential account ID, this will have no value. This will have a value when billing is tracked under a different account ID from the account group's standard cloud provider identifier. Example: An AWS Gov account has a separate commercial account ID for billing. | [optional] +**region_group** | **str** | The account's region group (i.e. the unique data center group that is being used, e.g. commercial, gov, etc). | [optional] **purpose** | **str** | The purpose of the account credential (i.e. what it will be used for). | [optional] **credential_metadata** | [**list[CredentialMetadataModel]**](CredentialMetadataModel.md) | Credential identification information. | [optional] **created_date** | **datetime** | The date when the credentials were created. | [optional] @@ -19,3 +19,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CredentialsApi.md b/docs/CredentialsApi.md index 96be7ee..52e8cff 100644 --- a/docs/CredentialsApi.md +++ b/docs/CredentialsApi.md @@ -1,11 +1,11 @@ # cloudcheckr_cmx_client.CredentialsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_account_credentials**](CredentialsApi.md#get_account_credentials) | **GET** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials | Get all credentials configured on the account. -[**get_customer_credentials**](CredentialsApi.md#get_customer_credentials) | **GET** /credential/v1/customers/{customerId}/credentials | Get all credentials configured on the customer. + # **get_account_credentials** > CredentialsResponseModel get_account_credentials(customer_id, account_id) @@ -59,53 +59,3 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_customer_credentials** -> CredentialsResponseModel get_customer_credentials(customer_id) - -Get all credentials configured on the customer. - -### Example -```python -from __future__ import print_function -import time -import cloudcheckr_cmx_client -from cloudcheckr_cmx_client.rest import ApiException -from pprint import pprint - -# Configure OAuth2 access token for authorization: oauth -configuration = cloudcheckr_cmx_client.Configuration() -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = cloudcheckr_cmx_client.CredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) -customer_id = 'customer_id_example' # str | - -try: - # Get all credentials configured on the customer. - api_response = api_instance.get_customer_credentials(customer_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling CredentialsApi->get_customer_credentials: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **customer_id** | **str**| | - -### Return type - -[**CredentialsResponseModel**](CredentialsResponseModel.md) - -### Authorization - -[oauth](../README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/CredentialsResponseModel.md b/docs/CredentialsResponseModel.md index aec6202..24a2825 100644 --- a/docs/CredentialsResponseModel.md +++ b/docs/CredentialsResponseModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomThemeRequestModel.md b/docs/CustomThemeRequestModel.md index 5311a80..e72eba5 100644 --- a/docs/CustomThemeRequestModel.md +++ b/docs/CustomThemeRequestModel.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **colors_dark_nav_icons** | **bool** | Determines if the navigation icons should be light or dark. This property supports: resetting. | [optional] **support_info_support_link** | **str** | The URL that the support link leads to. This property supports: resetting. | [optional] **support_info_support_link_text** | **str** | Display text for support information link. This property supports: resetting. | [optional] +**landing_page** | [**LandingPageModel**](LandingPageModel.md) | Landing page configuration. Default landing page when a user first logs in. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomThemeResponseModel.md b/docs/CustomThemeResponseModel.md index e3b0002..fb6210f 100644 --- a/docs/CustomThemeResponseModel.md +++ b/docs/CustomThemeResponseModel.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customer_id** | **str** | The customer's ID. | [optional] -**customer_name** | **str** | The customer's name. | [optional] +**customer_id** | **str** | The customer's ID. | [optional] +**customer_name** | **str** | The customer's name. | [optional] **logo** | **str** | Logo to display as the header in the user interface and exports. | [optional] **browser_tab_title** | **str** | Text to display on the browser tab. | [optional] **browser_tab_icon** | **str** | Icon to show on the browser tab. Base-64 encoded image. | [optional] @@ -13,6 +13,8 @@ Name | Type | Description | Notes **colors_dark_nav_icons** | **bool** | Determines if the navigation icons should be light or dark. | [optional] **support_info_support_link** | **str** | The URL that the support link leads to. | [optional] **support_info_support_link_text** | **str** | Display text for support information link. | [optional] +**landing_page** | [**LandingPageModel**](LandingPageModel.md) | Landing page configuration. Default landing page when a user first logs in. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomThemeSettingsApi.md b/docs/CustomThemeSettingsApi.md index 94dc856..7ef9878 100644 --- a/docs/CustomThemeSettingsApi.md +++ b/docs/CustomThemeSettingsApi.md @@ -1,12 +1,13 @@ # cloudcheckr_cmx_client.CustomThemeSettingsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_theme_settings**](CustomThemeSettingsApi.md#get_theme_settings) | **GET** /customer/v1/customers/theme | Retrieves the customer's theme settings. +[**get_theme_settings**](CustomThemeSettingsApi.md#get_theme_settings) | **GET** /customer/v1/customers/theme | Retrieves the customer's theme settings. [**update_custom_theme_settings**](CustomThemeSettingsApi.md#update_custom_theme_settings) | **PUT** /customer/v1/customers/{customerId}/theme | Update the custom theme settings such as logo, colors, etc. + # **get_theme_settings** > CustomThemeResponseModel get_theme_settings() @@ -54,7 +55,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_custom_theme_settings** -> CustomThemeResponseModel update_custom_theme_settings(customer_id, body=body) +> CustomThemeResponseModel update_custom_theme_settings(customer_id, request=request) Update the custom theme settings such as logo, colors, etc. @@ -73,11 +74,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.CustomThemeSettingsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestCustomThemeRequestModel() # UpdateRequestCustomThemeRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestCustomThemeRequestModel() # UpdateRequestCustomThemeRequestModel | (optional) try: # Update the custom theme settings such as logo, colors, etc. - api_response = api_instance.update_custom_theme_settings(customer_id, body=body) + api_response = api_instance.update_custom_theme_settings(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling CustomThemeSettingsApi->update_custom_theme_settings: %s\n" % e) @@ -88,7 +89,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**UpdateRequestCustomThemeRequestModel**](UpdateRequestCustomThemeRequestModel.md)| | [optional] + **request** | [**UpdateRequestCustomThemeRequestModel**](UpdateRequestCustomThemeRequestModel.md)| | [optional] ### Return type diff --git a/docs/CustomerAccountBasicInfo.md b/docs/CustomerAccountBasicInfo.md index 019bcc9..5e083c2 100644 --- a/docs/CustomerAccountBasicInfo.md +++ b/docs/CustomerAccountBasicInfo.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customer_id** | **str** | The customer's ID. | [optional] -**account_id** | **str** | The account's ID. | [optional] +**customer_id** | **str** | The customer's ID. | [optional] +**account_id** | **str** | The account's ID. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerAccountModification.md b/docs/CustomerAccountModification.md index 3b1e3e9..b3e2f82 100644 --- a/docs/CustomerAccountModification.md +++ b/docs/CustomerAccountModification.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customer_id** | **str** | The customer's ID. | [optional] -**account_id** | **str** | The account's ID. | [optional] +**customer_id** | **str** | The customer's ID. | [optional] +**account_id** | **str** | The account's ID. | [optional] **action** | **str** | The action to perform on the resource. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerPlanResponseModel.md b/docs/CustomerPlanResponseModel.md index cabdf91..4e3d85a 100644 --- a/docs/CustomerPlanResponseModel.md +++ b/docs/CustomerPlanResponseModel.md @@ -8,3 +8,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomerResponseModel.md b/docs/CustomerResponseModel.md index 2e1f3df..0f2b523 100644 --- a/docs/CustomerResponseModel.md +++ b/docs/CustomerResponseModel.md @@ -3,14 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The customer's ID. This property supports: filtering and searching. | [optional] -**name** | **str** | The customer's name. This property supports: sorting, filtering and searching. | [optional] -**parent_id** | **str** | The customer's parent ID if there is an L1/L2 relationship. This property supports: filtering. | [optional] -**state** | **str** | The customer's current state. | [optional] -**signup_type** | **str** | The customer's signup type. This property supports: sorting. | [optional] -**disabled_date** | **datetime** | The customer's disabled date. This property supports: filtering. | [optional] -**saas_customer_id** | **str** | The customer's external Saas ID. This property supports: sorting. | [optional] -**plan** | [**CustomerPlanResponseModel**](CustomerPlanResponseModel.md) | | [optional] +**id** | **str** | The customer's ID. This property supports: filtering and searching. | [optional] +**name** | **str** | The customer's name. This property supports: sorting, filtering and searching. | [optional] +**parent_id** | **str** | The customer's parent ID if there is an L1/L2 relationship. This property supports: filtering. | [optional] +**state** | **str** | The customer's current state. | [optional] +**signup_type** | **str** | The customer's signup type. This property supports: sorting. | [optional] +**disabled_date** | **datetime** | The customer's disabled date. This property supports: filtering. | [optional] +**saas_customer_id** | **str** | The customer's external Saas ID. This property supports: sorting. | [optional] +**plan** | [**CustomerPlanResponseModel**](CustomerPlanResponseModel.md) | The plan type selected for this customer. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md index 64d7c0e..0634287 100644 --- a/docs/CustomersApi.md +++ b/docs/CustomersApi.md @@ -1,11 +1,115 @@ # cloudcheckr_cmx_client.CustomersApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_customer**](CustomersApi.md#create_customer) | **POST** /customer/v1/customers | Create a customer. Customer is not available for immediate use. Customer will be available once necessary back-end processing has been completed. +[**delete_customer**](CustomersApi.md#delete_customer) | **DELETE** /customer/v1/customers/{customerId} | Delete a customer. [**get_customer**](CustomersApi.md#get_customer) | **GET** /customer/v1/customers/{customerId} | Get an individual customer. [**list_customers**](CustomersApi.md#list_customers) | **GET** /customer/v1/customers | Get all customers. +[**update_customer**](CustomersApi.md#update_customer) | **PUT** /customer/v1/customers/{customerId} | Update a customer. + + +# **create_customer** +> CustomerResponseModel create_customer(request=request) + +Create a customer. Customer is not available for immediate use. Customer will be available once necessary back-end processing has been completed. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CustomersApi(cloudcheckr_cmx_client.ApiClient(configuration)) +request = cloudcheckr_cmx_client.CreateRequestCustomerRequestModel() # CreateRequestCustomerRequestModel | (optional) + +try: + # Create a customer. Customer is not available for immediate use. Customer will be available once necessary back-end processing has been completed. + api_response = api_instance.create_customer(request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling CustomersApi->create_customer: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**CreateRequestCustomerRequestModel**](CreateRequestCustomerRequestModel.md)| | [optional] + +### Return type + +[**CustomerResponseModel**](CustomerResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_customer** +> CustomerResponseModel delete_customer(customer_id) + +Delete a customer. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CustomersApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | + +try: + # Delete a customer. + api_response = api_instance.delete_customer(customer_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling CustomersApi->delete_customer: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + +### Return type + +[**CustomerResponseModel**](CustomerResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_customer** > CustomerResponseModel get_customer(customer_id) @@ -115,3 +219,55 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **update_customer** +> CustomerResponseModel update_customer(customer_id, request=request) + +Update a customer. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CustomersApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +request = cloudcheckr_cmx_client.UpdateRequestCustomerUpdateRequestModel() # UpdateRequestCustomerUpdateRequestModel | (optional) + +try: + # Update a customer. + api_response = api_instance.update_customer(customer_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling CustomersApi->update_customer: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **request** | [**UpdateRequestCustomerUpdateRequestModel**](UpdateRequestCustomerUpdateRequestModel.md)| | [optional] + +### Return type + +[**CustomerResponseModel**](CustomerResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DeveloperInfo.md b/docs/DeveloperInfo.md index fb389d6..f8fcf65 100644 --- a/docs/DeveloperInfo.md +++ b/docs/DeveloperInfo.md @@ -9,3 +9,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Error.md b/docs/Error.md index 49e6562..760141b 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -14,3 +14,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ErrorResponse.md b/docs/ErrorResponse.md index 776c3e8..d7dbbd3 100644 --- a/docs/ErrorResponse.md +++ b/docs/ErrorResponse.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GeneralAccountRequestModel.md b/docs/GeneralAccountRequestModel.md index 53be7ff..b3e1f3f 100644 --- a/docs/GeneralAccountRequestModel.md +++ b/docs/GeneralAccountRequestModel.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The account's name. | [optional] +**name** | **str** | The account's name. | [optional] **provider** | **str** | The cloud provider associated with the cloud account. This property cannot be updated. | [optional] -**parent_id** | **str** | The account's parent. This property supports: resetting. | [optional] -**payee_configuration** | [**PayeeConfigurationModel**](PayeeConfigurationModel.md) | | [optional] +**parent_id** | **str** | The account's parent. This property supports: resetting. | [optional] +**payee_configuration** | [**PayeeConfigurationModel**](PayeeConfigurationModel.md) | Configuration for payees. | [optional] **associated_account_attributes** | [**list[AccountAttributeModification]**](AccountAttributeModification.md) | Associated account attributes. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GeneralAccountResponseModel.md b/docs/GeneralAccountResponseModel.md index d035c68..9379acf 100644 --- a/docs/GeneralAccountResponseModel.md +++ b/docs/GeneralAccountResponseModel.md @@ -3,24 +3,25 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**legacy_account_id** | **str** | The legacy account's ID. This property supports: searching. | [optional] -**parent_id** | **str** | The account's parent. | [optional] -**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: searching. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: searching. | [optional] -**provider_payment_type** | **str** | The account's payment model. | [optional] -**payer_identifier** | **str** | The account's payer identifier. This property supports: searching. | [optional] -**friendly_name** | **str** | The account's friendly name. This property supports: searching. | [optional] -**new_parent_assignment** | [**ParentAssignment**](ParentAssignment.md) | | [optional] +**legacy_account_id** | **str** | The legacy account's ID. This property supports: searching. | [optional] +**parent_id** | **str** | The account's parent. | [optional] +**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: searching. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: searching. | [optional] +**provider_payment_type** | **str** | The account's payment model. | [optional] +**payer_identifier** | **str** | The account's payer identifier. This property supports: searching. | [optional] +**friendly_name** | **str** | The account's friendly name. This property supports: searching. | [optional] +**new_parent_assignment** | [**ParentAssignment**](ParentAssignment.md) | The account group's parent assignment results. | [optional] **associated_account_attributes** | [**list[AccountAttributeBasicInfo]**](AccountAttributeBasicInfo.md) | Associated account attributes. | [optional] -**payee_configuration** | [**PayeeConfigurationModel**](PayeeConfigurationModel.md) | | [optional] -**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] -**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] -**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] +**payee_configuration** | [**PayeeConfigurationModel**](PayeeConfigurationModel.md) | Configuration for payees. | [optional] +**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] +**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] +**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] **has_pending_change** | **bool** | True if the account has a pending change. | [optional] **is_system_managed** | **bool** | Setting to indicate whether an account is managed automatically. | [optional] -**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleCredentialRequestModel.md b/docs/GoogleCredentialRequestModel.md index a33de27..428a9b5 100644 --- a/docs/GoogleCredentialRequestModel.md +++ b/docs/GoogleCredentialRequestModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GoogleCredentialsApi.md b/docs/GoogleCredentialsApi.md index 67f3746..db7a558 100644 --- a/docs/GoogleCredentialsApi.md +++ b/docs/GoogleCredentialsApi.md @@ -1,13 +1,14 @@ # cloudcheckr_cmx_client.GoogleCredentialsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**modify_google_credential**](GoogleCredentialsApi.md#modify_google_credential) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/google | Modify the default credential on the account. + # **modify_google_credential** -> CredentialResponseModel modify_google_credential(customer_id, account_id, body=body) +> CredentialResponseModel modify_google_credential(customer_id, account_id, request=request) Modify the default credential on the account. @@ -27,11 +28,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.GoogleCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | account_id = 'account_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestGoogleCredentialRequestModel() # UpdateRequestGoogleCredentialRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestGoogleCredentialRequestModel() # UpdateRequestGoogleCredentialRequestModel | (optional) try: # Modify the default credential on the account. - api_response = api_instance.modify_google_credential(customer_id, account_id, body=body) + api_response = api_instance.modify_google_credential(customer_id, account_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling GoogleCredentialsApi->modify_google_credential: %s\n" % e) @@ -43,7 +44,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **account_id** | **str**| | - **body** | [**UpdateRequestGoogleCredentialRequestModel**](UpdateRequestGoogleCredentialRequestModel.md)| | [optional] + **request** | [**UpdateRequestGoogleCredentialRequestModel**](UpdateRequestGoogleCredentialRequestModel.md)| | [optional] ### Return type diff --git a/docs/LinkedAwsCommercialAccountModel.md b/docs/LinkedAwsCommercialAccountModel.md index 6f75129..7d5f5a2 100644 --- a/docs/LinkedAwsCommercialAccountModel.md +++ b/docs/LinkedAwsCommercialAccountModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ListModificationError.md b/docs/ListModificationError.md index e883f65..d446d84 100644 --- a/docs/ListModificationError.md +++ b/docs/ListModificationError.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | The ID of the entity that failed. | [optional] -**error** | [**Error**](Error.md) | | [optional] +**error** | [**Error**](Error.md) | The error associated with the modification's failure. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ListModificationRequestModel.md b/docs/ListModificationRequestModel.md index 0e1842e..b4782ee 100644 --- a/docs/ListModificationRequestModel.md +++ b/docs/ListModificationRequestModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ListModificationResponseModel.md b/docs/ListModificationResponseModel.md index 4caafa0..3d82e18 100644 --- a/docs/ListModificationResponseModel.md +++ b/docs/ListModificationResponseModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MappedRoleResponseModel.md b/docs/MappedRoleResponseModel.md index 0b77fbe..ee389a8 100644 --- a/docs/MappedRoleResponseModel.md +++ b/docs/MappedRoleResponseModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The role's unique ID. | [optional] -**name** | **str** | The role's name. This property supports: searching. | [optional] +**id** | **str** | The role's unique ID. | [optional] +**name** | **str** | The role's name. This property supports: searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MavRequestModel.md b/docs/MavRequestModel.md index 3ffecb0..25de6c4 100644 --- a/docs/MavRequestModel.md +++ b/docs/MavRequestModel.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The account's name. | [optional] +**name** | **str** | The account's name. | [optional] **include_all_accounts** | **bool** | If true, the MAV includes all accounts. | [optional] **provider** | **str** | The cloud provider associated with the cloud account. This property cannot be updated. | [optional] **associated_account_attributes** | [**list[AccountAttributeModification]**](AccountAttributeModification.md) | Associated account attributes. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MavResponseModel.md b/docs/MavResponseModel.md index 1176ead..7e8a78f 100644 --- a/docs/MavResponseModel.md +++ b/docs/MavResponseModel.md @@ -3,21 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**legacy_account_id** | **str** | The legacy account's ID. This property supports: searching. | [optional] -**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: searching. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: searching. | [optional] -**provider_payment_type** | **str** | The account's payment model. | [optional] -**payer_identifier** | **str** | The account's payer identifier. This property supports: searching. | [optional] +**legacy_account_id** | **str** | The legacy account's ID. This property supports: searching. | [optional] +**provider_identifier** | **str** | The account's cloud provider identifier. This property supports: searching. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. This property supports: searching. | [optional] +**provider_payment_type** | **str** | The account's payment model. | [optional] +**payer_identifier** | **str** | The account's payer identifier. This property supports: searching. | [optional] **include_all_accounts** | **bool** | If true, the MAV includes all accounts. | [optional] **associated_account_attributes** | [**list[AccountAttributeBasicInfo]**](AccountAttributeBasicInfo.md) | List of associated account attributes. | [optional] -**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] -**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] -**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] +**type** | **str** | The account group's type. Valid types are General, Group, and MAV. This property supports: filtering and sorting. | [optional] +**provider** | **str** | The account's cloud provider. This property supports: sorting, filtering and searching. | [optional] +**created_date** | **datetime** | The account's creation date. This property supports: sorting and filtering. | [optional] **has_pending_change** | **bool** | True if the account has a pending change. | [optional] **is_system_managed** | **bool** | Setting to indicate whether an account is managed automatically. | [optional] -**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**credential_verification_status** | **str** | Indicates the account's credential verification status. This property supports: sorting and filtering. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MinimalClientResponseModel.md b/docs/MinimalClientResponseModel.md index 356fa9a..89a2d03 100644 --- a/docs/MinimalClientResponseModel.md +++ b/docs/MinimalClientResponseModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The client's unique ID. | [optional] -**name** | **str** | The client's name. This property supports: sorting. | [optional] +**id** | **str** | The client's unique ID. | [optional] +**name** | **str** | The client's name. This property supports: sorting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/MinimalUserResponseModel.md b/docs/MinimalUserResponseModel.md index 28bfb99..cae9db2 100644 --- a/docs/MinimalUserResponseModel.md +++ b/docs/MinimalUserResponseModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The user's unique ID. | [optional] -**email** | **str** | The user's email address. This property supports: sorting. | [optional] +**id** | **str** | The user's unique ID. | [optional] +**email** | **str** | The user's email address. This property supports: sorting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NewClientAccessInfo.md b/docs/NewClientAccessInfo.md index 4b15760..5a28082 100644 --- a/docs/NewClientAccessInfo.md +++ b/docs/NewClientAccessInfo.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The access key's ID. | [optional] -**name** | **str** | The access key's name. | [optional] -**access_key** | **str** | The access key's password. | [optional] +**id** | **str** | The access key's ID. | [optional] +**name** | **str** | The access key's name. | [optional] +**access_key** | **str** | The access key's password. | [optional] **expiry_date** | **datetime** | The number of days until the access key will expire. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationInfo.md b/docs/PaginationInfo.md index dc5e499..ed872b6 100644 --- a/docs/PaginationInfo.md +++ b/docs/PaginationInfo.md @@ -8,3 +8,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationResponseAccountAttributeResponseModel.md b/docs/PaginationResponseAccountAttributeResponseModel.md index 2919e7b..c1eb12f 100644 --- a/docs/PaginationResponseAccountAttributeResponseModel.md +++ b/docs/PaginationResponseAccountAttributeResponseModel.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**list[AccountAttributeResponseModel]**](AccountAttributeResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationResponseAzureBillingAccountResponseModel.md b/docs/PaginationResponseAzureBillingAccountResponseModel.md index 7d0b496..9d70569 100644 --- a/docs/PaginationResponseAzureBillingAccountResponseModel.md +++ b/docs/PaginationResponseAzureBillingAccountResponseModel.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**list[AzureBillingAccountResponseModel]**](AzureBillingAccountResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationResponsePermissionSetResponseModel.md b/docs/PaginationResponsePermissionSetResponseModel.md index de3a490..4d21ee8 100644 --- a/docs/PaginationResponsePermissionSetResponseModel.md +++ b/docs/PaginationResponsePermissionSetResponseModel.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**list[PermissionSetResponseModel]**](PermissionSetResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationResponseRoleResponseModel.md b/docs/PaginationResponseRoleResponseModel.md index 820af4c..9851083 100644 --- a/docs/PaginationResponseRoleResponseModel.md +++ b/docs/PaginationResponseRoleResponseModel.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**list[RoleResponseModel]**](RoleResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseAccountGroupHierarchyResponseModel.md b/docs/PaginationWithCountResponseAccountGroupHierarchyResponseModel.md index dd67934..5c6e687 100644 --- a/docs/PaginationWithCountResponseAccountGroupHierarchyResponseModel.md +++ b/docs/PaginationWithCountResponseAccountGroupHierarchyResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[AccountGroupHierarchyResponseModel]**](AccountGroupHierarchyResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseAccountGroupResponseModel.md b/docs/PaginationWithCountResponseAccountGroupResponseModel.md index be418c8..4b6dca4 100644 --- a/docs/PaginationWithCountResponseAccountGroupResponseModel.md +++ b/docs/PaginationWithCountResponseAccountGroupResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[AccountGroupResponseModel]**](AccountGroupResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseAccountGroupSearchResponseModel.md b/docs/PaginationWithCountResponseAccountGroupSearchResponseModel.md index e99e8c5..e45f868 100644 --- a/docs/PaginationWithCountResponseAccountGroupSearchResponseModel.md +++ b/docs/PaginationWithCountResponseAccountGroupSearchResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[AccountGroupSearchResponseModel]**](AccountGroupSearchResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseClientAccessKeyResponseModel.md b/docs/PaginationWithCountResponseClientAccessKeyResponseModel.md index c358dd6..908cf71 100644 --- a/docs/PaginationWithCountResponseClientAccessKeyResponseModel.md +++ b/docs/PaginationWithCountResponseClientAccessKeyResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[ClientAccessKeyResponseModel]**](ClientAccessKeyResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseClientResponseModel.md b/docs/PaginationWithCountResponseClientResponseModel.md index 42c8028..ae9f7aa 100644 --- a/docs/PaginationWithCountResponseClientResponseModel.md +++ b/docs/PaginationWithCountResponseClientResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[ClientResponseModel]**](ClientResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseCustomerResponseModel.md b/docs/PaginationWithCountResponseCustomerResponseModel.md index 436c886..b97e23b 100644 --- a/docs/PaginationWithCountResponseCustomerResponseModel.md +++ b/docs/PaginationWithCountResponseCustomerResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[CustomerResponseModel]**](CustomerResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseGeneralAccountResponseModel.md b/docs/PaginationWithCountResponseGeneralAccountResponseModel.md index a320141..ba0053d 100644 --- a/docs/PaginationWithCountResponseGeneralAccountResponseModel.md +++ b/docs/PaginationWithCountResponseGeneralAccountResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[GeneralAccountResponseModel]**](GeneralAccountResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseMavResponseModel.md b/docs/PaginationWithCountResponseMavResponseModel.md index d6d63bf..d6bbea0 100644 --- a/docs/PaginationWithCountResponseMavResponseModel.md +++ b/docs/PaginationWithCountResponseMavResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[MavResponseModel]**](MavResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseMinimalClientResponseModel.md b/docs/PaginationWithCountResponseMinimalClientResponseModel.md index 5069327..c203f2a 100644 --- a/docs/PaginationWithCountResponseMinimalClientResponseModel.md +++ b/docs/PaginationWithCountResponseMinimalClientResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[MinimalClientResponseModel]**](MinimalClientResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseMinimalUserResponseModel.md b/docs/PaginationWithCountResponseMinimalUserResponseModel.md index f6863e9..fd2f3ea 100644 --- a/docs/PaginationWithCountResponseMinimalUserResponseModel.md +++ b/docs/PaginationWithCountResponseMinimalUserResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[MinimalUserResponseModel]**](MinimalUserResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseParentAssignmentResponseModel.md b/docs/PaginationWithCountResponseParentAssignmentResponseModel.md index 9754f21..0030089 100644 --- a/docs/PaginationWithCountResponseParentAssignmentResponseModel.md +++ b/docs/PaginationWithCountResponseParentAssignmentResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[ParentAssignmentResponseModel]**](ParentAssignmentResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponsePermissionResponseModel.md b/docs/PaginationWithCountResponsePermissionResponseModel.md index 9f44dc2..cf1953c 100644 --- a/docs/PaginationWithCountResponsePermissionResponseModel.md +++ b/docs/PaginationWithCountResponsePermissionResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[PermissionResponseModel]**](PermissionResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseReferencedAccountResponseModel.md b/docs/PaginationWithCountResponseReferencedAccountResponseModel.md index 9fca5da..7b92d64 100644 --- a/docs/PaginationWithCountResponseReferencedAccountResponseModel.md +++ b/docs/PaginationWithCountResponseReferencedAccountResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[ReferencedAccountResponseModel]**](ReferencedAccountResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseSamlProviderResponseModel.md b/docs/PaginationWithCountResponseSamlProviderResponseModel.md index 9514cb4..f0e7446 100644 --- a/docs/PaginationWithCountResponseSamlProviderResponseModel.md +++ b/docs/PaginationWithCountResponseSamlProviderResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[SamlProviderResponseModel]**](SamlProviderResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseSamlProviderRuleResponseModel.md b/docs/PaginationWithCountResponseSamlProviderRuleResponseModel.md index e4d6fcd..ac6e23e 100644 --- a/docs/PaginationWithCountResponseSamlProviderRuleResponseModel.md +++ b/docs/PaginationWithCountResponseSamlProviderRuleResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[SamlProviderRuleResponseModel]**](SamlProviderRuleResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaginationWithCountResponseUserResponseModel.md b/docs/PaginationWithCountResponseUserResponseModel.md index 24b22e6..ccc995b 100644 --- a/docs/PaginationWithCountResponseUserResponseModel.md +++ b/docs/PaginationWithCountResponseUserResponseModel.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_count** | **int** | The total amount of results before pagination has occurred. | [optional] **items** | [**list[UserResponseModel]**](UserResponseModel.md) | Items for this page. | [optional] -**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Key information required to request other pages of data. Will be null / absent if there is only one page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ParentAssignment.md b/docs/ParentAssignment.md index 764fcd9..8c0187e 100644 --- a/docs/ParentAssignment.md +++ b/docs/ParentAssignment.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The parent assignment's ID. | [optional] -**state** | **str** | The parent assignment's state. | [optional] -**new_parent** | **str** | The new parent's ID. Excluded if there is no parent. | [optional] +**id** | **str** | The parent assignment's ID. | [optional] +**state** | **str** | The parent assignment's state. | [optional] +**new_parent** | **str** | The new parent's ID. Excluded if there is no parent. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ParentAssignmentResponseModel.md b/docs/ParentAssignmentResponseModel.md index f98ac40..3b317d4 100644 --- a/docs/ParentAssignmentResponseModel.md +++ b/docs/ParentAssignmentResponseModel.md @@ -3,17 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The parent assignment's ID. | [optional] -**state** | **str** | The parent assignment's state. | [optional] -**new_parent** | **str** | The new parent's ID. Excluded if there is no parent. | [optional] -**date_started** | **datetime** | The parent assignment's start date. | [optional] -**date_requested** | **datetime** | The parent assignment's request date. | [optional] -**date_last_activity** | **datetime** | The parent assignment's last updated date. | [optional] -**date_completed** | **datetime** | The parent assignment's completion date. | [optional] +**id** | **str** | The parent assignment's ID. | [optional] +**state** | **str** | The parent assignment's state. | [optional] +**new_parent** | **str** | The new parent's ID. Excluded if there is no parent. | [optional] +**date_started** | **datetime** | The parent assignment's start date. | [optional] +**date_requested** | **datetime** | The parent assignment's request date. | [optional] +**date_last_activity** | **datetime** | The parent assignment's last updated date. | [optional] +**date_completed** | **datetime** | The parent assignment's completion date. | [optional] **error_message** | **str** | The error message if parent movement was unsuccessful. | [optional] -**correlation_id** | **str** | The request's correlation ID. | [optional] -**target_account_group_id** | **str** | The parent assignment's target account group. | [optional] +**correlation_id** | **str** | The request's correlation ID. | [optional] +**target_account_group_id** | **str** | The parent assignment's target account group. | [optional] **target_expected_parent** | **str** | The expected parent ID when the assignment is completed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PayeeConfigurationModel.md b/docs/PayeeConfigurationModel.md index 958330f..88a3b5e 100644 --- a/docs/PayeeConfigurationModel.md +++ b/docs/PayeeConfigurationModel.md @@ -8,3 +8,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PermissionGroupModel.md b/docs/PermissionGroupModel.md index 2bcb863..ded1cd3 100644 --- a/docs/PermissionGroupModel.md +++ b/docs/PermissionGroupModel.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The permission group's ID. | [optional] -**name** | **str** | The permission group's name. This property supports: searching. | [optional] +**id** | **str** | The permission group's ID. | [optional] +**name** | **str** | The permission group's name. This property supports: searching. | [optional] **full_path** | **str** | The full path of the the permission grouping. Example: /Administration/User Management. This property supports: searching. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PermissionResponseModel.md b/docs/PermissionResponseModel.md index e039c17..0220fb9 100644 --- a/docs/PermissionResponseModel.md +++ b/docs/PermissionResponseModel.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The permission's ID. This property supports: filtering. | [optional] -**name** | **str** | The permission's name. This property supports: sorting, filtering and searching. | [optional] -**description** | **str** | The permission's description. This property supports: sorting, filtering and searching. | [optional] -**display_grouping** | [**PermissionGroupModel**](PermissionGroupModel.md) | | [optional] +**id** | **str** | The permission's ID. This property supports: filtering. | [optional] +**name** | **str** | The permission's name. This property supports: sorting, filtering and searching. | [optional] +**description** | **str** | The permission's description. This property supports: sorting, filtering and searching. | [optional] +**display_grouping** | [**PermissionGroupModel**](PermissionGroupModel.md) | The full path of the the permission's grouping. Example: /Administration/User Management. This property supports: sorting and filtering. | [optional] **related_permissions** | [**list[RelatedPermissionModel]**](RelatedPermissionModel.md) | The related permissions that are included or excluded by this permission. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PermissionSetBasicInfo.md b/docs/PermissionSetBasicInfo.md index fc4d64d..1d0ec88 100644 --- a/docs/PermissionSetBasicInfo.md +++ b/docs/PermissionSetBasicInfo.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The permission set's ID. | [optional] -**name** | **str** | The permission set's name. | [optional] +**id** | **str** | The permission set's ID. | [optional] +**name** | **str** | The permission set's name. | [optional] **is_missing** | **bool** | Determines if the permission set is missing. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PermissionSetPermissionModel.md b/docs/PermissionSetPermissionModel.md index 6f672b0..1164e7e 100644 --- a/docs/PermissionSetPermissionModel.md +++ b/docs/PermissionSetPermissionModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The permission set's ID. | [optional] -**name** | **str** | The permission set's name. | [optional] +**id** | **str** | The permission set's ID. | [optional] +**name** | **str** | The permission set's name. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PermissionSetRequestModel.md b/docs/PermissionSetRequestModel.md index a606efd..7c8c596 100644 --- a/docs/PermissionSetRequestModel.md +++ b/docs/PermissionSetRequestModel.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The permission set's name. | -**description** | **str** | The permission set's description. This property supports: resetting. | [optional] -**permissions** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | The permission set's permissions. This property supports: resetting. | [optional] +**name** | **str** | The permission set's name. | +**description** | **str** | The permission set's description. This property supports: resetting. | [optional] +**permissions** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | The permission set's permissions. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PermissionSetResponseModel.md b/docs/PermissionSetResponseModel.md index 7a02b51..74bbf10 100644 --- a/docs/PermissionSetResponseModel.md +++ b/docs/PermissionSetResponseModel.md @@ -3,14 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The permission set's ID. | [optional] -**name** | **str** | The permission set's name. This property supports: sorting and searching. | [optional] -**friendly_name** | **str** | The permission set's friendly name (obsolete). | [optional] +**id** | **str** | The permission set's ID. | [optional] +**name** | **str** | The permission set's name. This property supports: sorting and searching. | [optional] +**friendly_name** | **str** | The permission set's friendly name (obsolete). | [optional] **owned_by** | **str** | The owner of the permission set. | [optional] -**description** | **str** | The permission set's description. This property supports: searching. | [optional] -**permissions** | [**list[PermissionSetPermissionModel]**](PermissionSetPermissionModel.md) | The permission set's permissions. | [optional] -**created_date** | **datetime** | The permission set's creation date. | [optional] -**updated_date** | **datetime** | The permission set's last updated date. | [optional] +**description** | **str** | The permission set's description. This property supports: searching. | [optional] +**permissions** | [**list[PermissionSetPermissionModel]**](PermissionSetPermissionModel.md) | The permission set's permissions. | [optional] +**created_date** | **datetime** | The permission set's creation date. | [optional] +**updated_date** | **datetime** | The permission set's last updated date. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PermissionSetsApi.md b/docs/PermissionSetsApi.md index 4c96b63..9b8883b 100644 --- a/docs/PermissionSetsApi.md +++ b/docs/PermissionSetsApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.PermissionSetsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -10,8 +10,9 @@ Method | HTTP request | Description [**get_permission_set**](PermissionSetsApi.md#get_permission_set) | **GET** /policy/v1/customers/{customerId}/permission-sets/{permissionSetId} | Get an individual permission set. [**update_permission_set**](PermissionSetsApi.md#update_permission_set) | **PUT** /policy/v1/customers/{customerId}/permission-sets/{permissionSetId} | Update a permission set. + # **create_permission_set** -> PermissionSetResponseModel create_permission_set(customer_id, body=body) +> PermissionSetResponseModel create_permission_set(customer_id, request=request) Create a permission set. @@ -30,11 +31,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.PermissionSetsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestPermissionSetRequestModel() # CreateRequestPermissionSetRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestPermissionSetRequestModel() # CreateRequestPermissionSetRequestModel | (optional) try: # Create a permission set. - api_response = api_instance.create_permission_set(customer_id, body=body) + api_response = api_instance.create_permission_set(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling PermissionSetsApi->create_permission_set: %s\n" % e) @@ -45,7 +46,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestPermissionSetRequestModel**](CreateRequestPermissionSetRequestModel.md)| | [optional] + **request** | [**CreateRequestPermissionSetRequestModel**](CreateRequestPermissionSetRequestModel.md)| | [optional] ### Return type @@ -228,7 +229,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_permission_set** -> PermissionSetResponseModel update_permission_set(customer_id, permission_set_id, body=body) +> PermissionSetResponseModel update_permission_set(customer_id, permission_set_id, request=request) Update a permission set. @@ -248,11 +249,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.PermissionSetsApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | permission_set_id = 'permission_set_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestPermissionSetRequestModel() # UpdateRequestPermissionSetRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestPermissionSetRequestModel() # UpdateRequestPermissionSetRequestModel | (optional) try: # Update a permission set. - api_response = api_instance.update_permission_set(customer_id, permission_set_id, body=body) + api_response = api_instance.update_permission_set(customer_id, permission_set_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling PermissionSetsApi->update_permission_set: %s\n" % e) @@ -264,7 +265,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **permission_set_id** | **str**| | - **body** | [**UpdateRequestPermissionSetRequestModel**](UpdateRequestPermissionSetRequestModel.md)| | [optional] + **request** | [**UpdateRequestPermissionSetRequestModel**](UpdateRequestPermissionSetRequestModel.md)| | [optional] ### Return type diff --git a/docs/PermissionsApi.md b/docs/PermissionsApi.md index a3fa073..49dfa87 100644 --- a/docs/PermissionsApi.md +++ b/docs/PermissionsApi.md @@ -1,11 +1,12 @@ # cloudcheckr_cmx_client.PermissionsApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_all**](PermissionsApi.md#get_all) | **GET** /policy/v1/customers/{customerId}/permissions | Get all permissions. + # **get_all** > PaginationWithCountResponsePermissionResponseModel get_all(customer_id, order_by=order_by, filter=filter, search=search) diff --git a/docs/PermittedChildCustomerModel.md b/docs/PermittedChildCustomerModel.md index 2a7407e..0778f4b 100644 --- a/docs/PermittedChildCustomerModel.md +++ b/docs/PermittedChildCustomerModel.md @@ -7,3 +7,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReferencedAccountResponseModel.md b/docs/ReferencedAccountResponseModel.md index 28b729a..4ff86f9 100644 --- a/docs/ReferencedAccountResponseModel.md +++ b/docs/ReferencedAccountResponseModel.md @@ -3,13 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] -**provider** | **str** | The account's cloud provider. | [optional] -**provider_identifier** | **str** | The account's cloud provider identifier. | [optional] -**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] -**provider_payment_type** | **str** | The account's payment model. | [optional] -**payer_identifier** | **str** | The account's payer identifier. | [optional] -**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] +**name** | **str** | The account's name. This property supports: sorting, filtering and searching. | [optional] +**provider** | **str** | The account's cloud provider. | [optional] +**provider_identifier** | **str** | The account's cloud provider identifier. | [optional] +**provider_sub_type** | **str** | The account's cloud provider sub-type. | [optional] +**provider_payment_type** | **str** | The account's payment model. | [optional] +**payer_identifier** | **str** | The account's payer identifier. | [optional] +**id** | **str** | The account's ID. This property supports: sorting and filtering. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RelatedPermissionModel.md b/docs/RelatedPermissionModel.md index 4087064..86582bf 100644 --- a/docs/RelatedPermissionModel.md +++ b/docs/RelatedPermissionModel.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The related permission's ID. | [optional] +**id** | **str** | The related permission's ID. | [optional] **impact** | **str** | The impact of the relationship. Example: The related Permission is included. | [optional] **notify_user** | **bool** | Controls whether or not the user should be notified that this related permission is impacted. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RoleRequestModel.md b/docs/RoleRequestModel.md index 670ad4d..3983dcd 100644 --- a/docs/RoleRequestModel.md +++ b/docs/RoleRequestModel.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The role's name. | -**description** | **str** | The role's description. This property supports: resetting. | [optional] -**permission_sets** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | The role's permission sets. This property supports: resetting. | [optional] -**customer_account_access_rule** | **str** | The role's access rule. This controls how customer and account access is determined. | [optional] +**name** | **str** | The role's name. | +**description** | **str** | The role's description. This property supports: resetting. | [optional] +**permission_sets** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | The role's permission sets. This property supports: resetting. | [optional] +**customer_account_access_rule** | **str** | The role's access rule. This controls how customer and account access is determined. | [optional] **customer_accounts** | [**list[CustomerAccountModification]**](CustomerAccountModification.md) | The customers and/or accounts to which the role grants access. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RoleResponseModel.md b/docs/RoleResponseModel.md index 11ccbba..1690bee 100644 --- a/docs/RoleResponseModel.md +++ b/docs/RoleResponseModel.md @@ -3,15 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The role's ID. | [optional] -**name** | **str** | The role's name. This property supports: sorting and searching. | [optional] -**description** | **str** | The role's description. This property supports: searching. | [optional] -**customer_account_access_rule** | **str** | The role's access rule. This controls how customer and account access is determined. | [optional] -**permission_sets** | [**list[PermissionSetBasicInfo]**](PermissionSetBasicInfo.md) | The role's permission sets. | [optional] +**id** | **str** | The role's ID. | [optional] +**name** | **str** | The role's name. This property supports: sorting and searching. | [optional] +**description** | **str** | The role's description. This property supports: searching. | [optional] +**customer_account_access_rule** | **str** | The role's access rule. This controls how customer and account access is determined. | [optional] +**permission_sets** | [**list[PermissionSetBasicInfo]**](PermissionSetBasicInfo.md) | The role's permission sets. | [optional] **customer_accounts** | [**list[CustomerAccountBasicInfo]**](CustomerAccountBasicInfo.md) | The customers and/or accounts to which the role grants access. | [optional] -**created_date** | **datetime** | The role's creation date. | [optional] -**updated_date** | **datetime** | The role's last updated date. | [optional] -**owned_by** | **str** | The role's owner. | [optional] +**created_date** | **datetime** | The role's creation date. | [optional] +**updated_date** | **datetime** | The role's last updated date. | [optional] +**owned_by** | **str** | The role's owner. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/RolesApi.md b/docs/RolesApi.md index 7903ad8..94f30ff 100644 --- a/docs/RolesApi.md +++ b/docs/RolesApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.RolesApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,8 +14,9 @@ Method | HTTP request | Description [**modify_user_roles**](RolesApi.md#modify_user_roles) | **PUT** /auth/v1/customers/{customerId}/roles/{roleId}/users | Add or remove a role from multiple users. [**update_role**](RolesApi.md#update_role) | **PUT** /policy/v1/customers/{customerId}/roles/{roleId} | Update a role. + # **create_role** -> RoleResponseModel create_role(customer_id, body=body) +> RoleResponseModel create_role(customer_id, request=request) Create a new role. @@ -34,11 +35,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.RolesApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestRoleRequestModel() # CreateRequestRoleRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestRoleRequestModel() # CreateRequestRoleRequestModel | (optional) try: # Create a new role. - api_response = api_instance.create_role(customer_id, body=body) + api_response = api_instance.create_role(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling RolesApi->create_role: %s\n" % e) @@ -49,7 +50,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestRoleRequestModel**](CreateRequestRoleRequestModel.md)| | [optional] + **request** | [**CreateRequestRoleRequestModel**](CreateRequestRoleRequestModel.md)| | [optional] ### Return type @@ -350,7 +351,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **modify_client_roles** -> ListModificationResponseModel modify_client_roles(customer_id, role_id, body=body) +> ListModificationResponseModel modify_client_roles(customer_id, role_id, request=request) Add or remove a role from multiple clients. @@ -370,11 +371,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.RolesApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | role_id = 'role_id_example' # str | -body = cloudcheckr_cmx_client.ListModificationRequestModel() # ListModificationRequestModel | (optional) +request = cloudcheckr_cmx_client.ListModificationRequestModel() # ListModificationRequestModel | (optional) try: # Add or remove a role from multiple clients. - api_response = api_instance.modify_client_roles(customer_id, role_id, body=body) + api_response = api_instance.modify_client_roles(customer_id, role_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling RolesApi->modify_client_roles: %s\n" % e) @@ -386,7 +387,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **role_id** | **str**| | - **body** | [**ListModificationRequestModel**](ListModificationRequestModel.md)| | [optional] + **request** | [**ListModificationRequestModel**](ListModificationRequestModel.md)| | [optional] ### Return type @@ -404,7 +405,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **modify_user_roles** -> ListModificationResponseModel modify_user_roles(customer_id, role_id, body=body) +> ListModificationResponseModel modify_user_roles(customer_id, role_id, request=request) Add or remove a role from multiple users. @@ -424,11 +425,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.RolesApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | role_id = 'role_id_example' # str | -body = cloudcheckr_cmx_client.ListModificationRequestModel() # ListModificationRequestModel | (optional) +request = cloudcheckr_cmx_client.ListModificationRequestModel() # ListModificationRequestModel | (optional) try: # Add or remove a role from multiple users. - api_response = api_instance.modify_user_roles(customer_id, role_id, body=body) + api_response = api_instance.modify_user_roles(customer_id, role_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling RolesApi->modify_user_roles: %s\n" % e) @@ -440,7 +441,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **role_id** | **str**| | - **body** | [**ListModificationRequestModel**](ListModificationRequestModel.md)| | [optional] + **request** | [**ListModificationRequestModel**](ListModificationRequestModel.md)| | [optional] ### Return type @@ -458,7 +459,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_role** -> RoleResponseModel update_role(customer_id, role_id, body=body) +> RoleResponseModel update_role(customer_id, role_id, request=request) Update a role. @@ -478,11 +479,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.RolesApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | role_id = 'role_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestRoleRequestModel() # UpdateRequestRoleRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestRoleRequestModel() # UpdateRequestRoleRequestModel | (optional) try: # Update a role. - api_response = api_instance.update_role(customer_id, role_id, body=body) + api_response = api_instance.update_role(customer_id, role_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling RolesApi->update_role: %s\n" % e) @@ -494,7 +495,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **role_id** | **str**| | - **body** | [**UpdateRequestRoleRequestModel**](UpdateRequestRoleRequestModel.md)| | [optional] + **request** | [**UpdateRequestRoleRequestModel**](UpdateRequestRoleRequestModel.md)| | [optional] ### Return type diff --git a/docs/SAMLProviderRulesApi.md b/docs/SAMLProviderRulesApi.md index 2d26a4c..00641d2 100644 --- a/docs/SAMLProviderRulesApi.md +++ b/docs/SAMLProviderRulesApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.SAMLProviderRulesApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -9,8 +9,9 @@ Method | HTTP request | Description [**list_saml_provider_rules**](SAMLProviderRulesApi.md#list_saml_provider_rules) | **GET** /auth/v1/customers/{customerId}/saml-providers/{samlProviderId}/rules | Get all SAML provider rules assigned to a SAML provider. [**update_saml_provider_rule**](SAMLProviderRulesApi.md#update_saml_provider_rule) | **PUT** /auth/v1/customers/{customerId}/saml-providers/{samlProviderId}/rules/{ruleId} | Updates a SAML provider rule. + # **create_saml_provider_rule** -> SamlProviderRuleResponseModel create_saml_provider_rule(customer_id, saml_provider_id, body=body) +> SamlProviderRuleResponseModel create_saml_provider_rule(customer_id, saml_provider_id, request=request) Creates a new SAML provider rule for the specified SAML provider. @@ -30,11 +31,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.SAMLProviderRulesApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | saml_provider_id = 'saml_provider_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestSamlProviderRuleRequestModel() # CreateRequestSamlProviderRuleRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestSamlProviderRuleRequestModel() # CreateRequestSamlProviderRuleRequestModel | (optional) try: # Creates a new SAML provider rule for the specified SAML provider. - api_response = api_instance.create_saml_provider_rule(customer_id, saml_provider_id, body=body) + api_response = api_instance.create_saml_provider_rule(customer_id, saml_provider_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling SAMLProviderRulesApi->create_saml_provider_rule: %s\n" % e) @@ -46,7 +47,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **saml_provider_id** | **str**| | - **body** | [**CreateRequestSamlProviderRuleRequestModel**](CreateRequestSamlProviderRuleRequestModel.md)| | [optional] + **request** | [**CreateRequestSamlProviderRuleRequestModel**](CreateRequestSamlProviderRuleRequestModel.md)| | [optional] ### Return type @@ -112,7 +113,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -173,7 +174,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_saml_provider_rule** -> SamlProviderRuleResponseModel update_saml_provider_rule(customer_id, saml_provider_id, rule_id, body=body) +> SamlProviderRuleResponseModel update_saml_provider_rule(customer_id, saml_provider_id, rule_id, request=request) Updates a SAML provider rule. @@ -194,11 +195,11 @@ api_instance = cloudcheckr_cmx_client.SAMLProviderRulesApi(cloudcheckr_cmx_clien customer_id = 'customer_id_example' # str | saml_provider_id = 'saml_provider_id_example' # str | rule_id = 'rule_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestSamlProviderRuleRequestModel() # UpdateRequestSamlProviderRuleRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestSamlProviderRuleRequestModel() # UpdateRequestSamlProviderRuleRequestModel | (optional) try: # Updates a SAML provider rule. - api_response = api_instance.update_saml_provider_rule(customer_id, saml_provider_id, rule_id, body=body) + api_response = api_instance.update_saml_provider_rule(customer_id, saml_provider_id, rule_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling SAMLProviderRulesApi->update_saml_provider_rule: %s\n" % e) @@ -211,7 +212,7 @@ Name | Type | Description | Notes **customer_id** | **str**| | **saml_provider_id** | **str**| | **rule_id** | **str**| | - **body** | [**UpdateRequestSamlProviderRuleRequestModel**](UpdateRequestSamlProviderRuleRequestModel.md)| | [optional] + **request** | [**UpdateRequestSamlProviderRuleRequestModel**](UpdateRequestSamlProviderRuleRequestModel.md)| | [optional] ### Return type diff --git a/docs/SAMLProvidersApi.md b/docs/SAMLProvidersApi.md index 6736310..35dea03 100644 --- a/docs/SAMLProvidersApi.md +++ b/docs/SAMLProvidersApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.SAMLProvidersApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -10,8 +10,9 @@ Method | HTTP request | Description [**list_saml_providers**](SAMLProvidersApi.md#list_saml_providers) | **GET** /auth/v1/customers/{customerId}/saml-providers | Get all SAML providers. [**update_saml_provider**](SAMLProvidersApi.md#update_saml_provider) | **PUT** /auth/v1/customers/{customerId}/saml-providers/{samlProviderId} | Updates an existing SAML provider entry for this customer. + # **create_saml_provider** -> SamlProviderResponseDetailModel create_saml_provider(customer_id, body=body) +> SamlProviderResponseDetailModel create_saml_provider(customer_id, request=request) Creates a new SAML provider entry for this customer. @@ -30,11 +31,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.SAMLProvidersApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestSamlProviderRequestModel() # CreateRequestSamlProviderRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestSamlProviderRequestModel() # CreateRequestSamlProviderRequestModel | (optional) try: # Creates a new SAML provider entry for this customer. - api_response = api_instance.create_saml_provider(customer_id, body=body) + api_response = api_instance.create_saml_provider(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling SAMLProvidersApi->create_saml_provider: %s\n" % e) @@ -45,7 +46,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestSamlProviderRequestModel**](CreateRequestSamlProviderRequestModel.md)| | [optional] + **request** | [**CreateRequestSamlProviderRequestModel**](CreateRequestSamlProviderRequestModel.md)| | [optional] ### Return type @@ -109,7 +110,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -224,7 +225,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_saml_provider** -> SamlProviderResponseDetailModel update_saml_provider(customer_id, saml_provider_id, body=body) +> SamlProviderResponseDetailModel update_saml_provider(customer_id, saml_provider_id, request=request) Updates an existing SAML provider entry for this customer. @@ -244,11 +245,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.SAMLProvidersApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | saml_provider_id = 'saml_provider_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestSamlProviderRequestModel() # UpdateRequestSamlProviderRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestSamlProviderRequestModel() # UpdateRequestSamlProviderRequestModel | (optional) try: # Updates an existing SAML provider entry for this customer. - api_response = api_instance.update_saml_provider(customer_id, saml_provider_id, body=body) + api_response = api_instance.update_saml_provider(customer_id, saml_provider_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling SAMLProvidersApi->update_saml_provider: %s\n" % e) @@ -260,7 +261,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **saml_provider_id** | **str**| | - **body** | [**UpdateRequestSamlProviderRequestModel**](UpdateRequestSamlProviderRequestModel.md)| | [optional] + **request** | [**UpdateRequestSamlProviderRequestModel**](UpdateRequestSamlProviderRequestModel.md)| | [optional] ### Return type diff --git a/docs/SamlClaimModel.md b/docs/SamlClaimModel.md index 95f2164..cab0832 100644 --- a/docs/SamlClaimModel.md +++ b/docs/SamlClaimModel.md @@ -9,3 +9,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SamlProviderRequestModel.md b/docs/SamlProviderRequestModel.md index dc9ba96..aeff492 100644 --- a/docs/SamlProviderRequestModel.md +++ b/docs/SamlProviderRequestModel.md @@ -9,3 +9,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SamlProviderResponseDetailModel.md b/docs/SamlProviderResponseDetailModel.md index 4a98a53..155ac1d 100644 --- a/docs/SamlProviderResponseDetailModel.md +++ b/docs/SamlProviderResponseDetailModel.md @@ -5,11 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | **str** | Metadata document for this identity provider. | [optional] **metadata_state** | **str** | The state of the metadata. | [optional] -**id** | **str** | The SAML provider's ID. | [optional] -**name** | **str** | The SAML provider's name. This property supports: filtering and sorting. | [optional] -**default_role** | **str** | The SAML provider's default role. This property supports: filtering and sorting. | [optional] -**saml_issuer** | **str** | The SAML provider's issuer. This property supports: filtering and sorting. | [optional] +**id** | **str** | The SAML provider's ID. | [optional] +**name** | **str** | The SAML provider's name. This property supports: filtering and sorting. | [optional] +**default_role** | **str** | The SAML provider's default role. This property supports: filtering and sorting. | [optional] +**saml_issuer** | **str** | The SAML provider's issuer. This property supports: filtering and sorting. | [optional] **permitted_child_customers** | [**list[PermittedChildCustomerModel]**](PermittedChildCustomerModel.md) | The L2 customers allowed to use this L1 SAML provider. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SamlProviderResponseModel.md b/docs/SamlProviderResponseModel.md index 01a2fc2..85c2181 100644 --- a/docs/SamlProviderResponseModel.md +++ b/docs/SamlProviderResponseModel.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The SAML provider's ID. | [optional] -**name** | **str** | The SAML provider's name. This property supports: filtering and sorting. | [optional] -**default_role** | **str** | The SAML provider's default role. This property supports: filtering and sorting. | [optional] -**saml_issuer** | **str** | The SAML provider's issuer. This property supports: filtering and sorting. | [optional] +**id** | **str** | The SAML provider's ID. | [optional] +**name** | **str** | The SAML provider's name. This property supports: filtering and sorting. | [optional] +**default_role** | **str** | The SAML provider's default role. This property supports: filtering and sorting. | [optional] +**saml_issuer** | **str** | The SAML provider's issuer. This property supports: filtering and sorting. | [optional] **permitted_child_customers** | [**list[PermittedChildCustomerModel]**](PermittedChildCustomerModel.md) | The L2 customers allowed to use this L1 SAML provider. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SamlProviderRuleRequestModel.md b/docs/SamlProviderRuleRequestModel.md index c552eee..1f538ec 100644 --- a/docs/SamlProviderRuleRequestModel.md +++ b/docs/SamlProviderRuleRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**saml_claim** | [**SamlClaimModel**](SamlClaimModel.md) | | [optional] +**saml_claim** | [**SamlClaimModel**](SamlClaimModel.md) | SAML attribute info used for matching. | [optional] **mapped_role_id** | **str** | Mapped role ID. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/SamlProviderRuleResponseModel.md b/docs/SamlProviderRuleResponseModel.md index 6e69308..439e1de 100644 --- a/docs/SamlProviderRuleResponseModel.md +++ b/docs/SamlProviderRuleResponseModel.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | SAML provider rule's ID. | [optional] -**saml_claim** | [**SamlClaimModel**](SamlClaimModel.md) | | [optional] -**mapped_role** | [**MappedRoleResponseModel**](MappedRoleResponseModel.md) | | [optional] +**id** | **str** | SAML provider rule's ID. | [optional] +**saml_claim** | [**SamlClaimModel**](SamlClaimModel.md) | SAML attribute info used for matching. | [optional] +**mapped_role** | [**MappedRoleResponseModel**](MappedRoleResponseModel.md) | The target role. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TokenInfoResponse.md b/docs/TokenInfoResponse.md index 222d363..4371679 100644 --- a/docs/TokenInfoResponse.md +++ b/docs/TokenInfoResponse.md @@ -14,3 +14,4 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TokenManagementApi.md b/docs/TokenManagementApi.md index 5860818..b28e6b9 100644 --- a/docs/TokenManagementApi.md +++ b/docs/TokenManagementApi.md @@ -1,12 +1,13 @@ # cloudcheckr_cmx_client.TokenManagementApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**exchange_token_for_delegate_access_token**](TokenManagementApi.md#exchange_token_for_delegate_access_token) | **PUT** /auth/v1/token/exchange/{customerId} | Exchange a token for a different customer. [**get_token_info**](TokenManagementApi.md#get_token_info) | **GET** /auth/v1/token/info | Get information about the current bearer token. + # **exchange_token_for_delegate_access_token** > TokenResponse exchange_token_for_delegate_access_token(customer_id) diff --git a/docs/TokenResponse.md b/docs/TokenResponse.md index a70d963..34d5686 100644 --- a/docs/TokenResponse.md +++ b/docs/TokenResponse.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**access_token** | **str** | The client's access token. | [optional] +**access_token** | **str** | The client's access token. | [optional] **expires_in** | **int** | The number of seconds before this token expires. | [optional] **token_type** | **str** | The type of token. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestAccountAttributeRequestModel.md b/docs/UpdateRequestAccountAttributeRequestModel.md index c17ba7d..99e42c3 100644 --- a/docs/UpdateRequestAccountAttributeRequestModel.md +++ b/docs/UpdateRequestAccountAttributeRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AccountAttributeRequestModel**](AccountAttributeRequestModel.md) | | [optional] +**item** | [**AccountAttributeRequestModel**](AccountAttributeRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestAccountGroupRequestModel.md b/docs/UpdateRequestAccountGroupRequestModel.md index 2c7615d..b2800fd 100644 --- a/docs/UpdateRequestAccountGroupRequestModel.md +++ b/docs/UpdateRequestAccountGroupRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AccountGroupRequestModel**](AccountGroupRequestModel.md) | | [optional] +**item** | [**AccountGroupRequestModel**](AccountGroupRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestAwsAssumeRoleCredentialRequestModel.md b/docs/UpdateRequestAwsAssumeRoleCredentialRequestModel.md deleted file mode 100644 index c0f226e..0000000 --- a/docs/UpdateRequestAwsAssumeRoleCredentialRequestModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdateRequestAwsAssumeRoleCredentialRequestModel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | [**AwsAssumeRoleCredentialRequestModel**](AwsAssumeRoleCredentialRequestModel.md) | | [optional] -**reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/UpdateRequestAwsCredentialRequestModel.md b/docs/UpdateRequestAwsCredentialRequestModel.md index 33a63e7..905c4ef 100644 --- a/docs/UpdateRequestAwsCredentialRequestModel.md +++ b/docs/UpdateRequestAwsCredentialRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AwsCredentialRequestModel**](AwsCredentialRequestModel.md) | | [optional] +**item** | [**AwsCredentialRequestModel**](AwsCredentialRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestAzureCspAuthorizationRequestModel.md b/docs/UpdateRequestAzureCspAuthorizationRequestModel.md index 3351bfe..55c0891 100644 --- a/docs/UpdateRequestAzureCspAuthorizationRequestModel.md +++ b/docs/UpdateRequestAzureCspAuthorizationRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AzureCspAuthorizationRequestModel**](AzureCspAuthorizationRequestModel.md) | | [optional] +**item** | [**AzureCspAuthorizationRequestModel**](AzureCspAuthorizationRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestAzureEnterpriseAgreementCredentialRequestModel.md b/docs/UpdateRequestAzureEnterpriseAgreementCredentialRequestModel.md index a70b82e..fed0491 100644 --- a/docs/UpdateRequestAzureEnterpriseAgreementCredentialRequestModel.md +++ b/docs/UpdateRequestAzureEnterpriseAgreementCredentialRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AzureEnterpriseAgreementCredentialRequestModel**](AzureEnterpriseAgreementCredentialRequestModel.md) | | [optional] +**item** | [**AzureEnterpriseAgreementCredentialRequestModel**](AzureEnterpriseAgreementCredentialRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestAzureSubscriptionCredentialRequestModel.md b/docs/UpdateRequestAzureSubscriptionCredentialRequestModel.md index a816918..fdec227 100644 --- a/docs/UpdateRequestAzureSubscriptionCredentialRequestModel.md +++ b/docs/UpdateRequestAzureSubscriptionCredentialRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AzureSubscriptionCredentialRequestModel**](AzureSubscriptionCredentialRequestModel.md) | | [optional] +**item** | [**AzureSubscriptionCredentialRequestModel**](AzureSubscriptionCredentialRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestAzureTokenCredentialRequestModel.md b/docs/UpdateRequestAzureTokenCredentialRequestModel.md index e46acf6..a4abedb 100644 --- a/docs/UpdateRequestAzureTokenCredentialRequestModel.md +++ b/docs/UpdateRequestAzureTokenCredentialRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**AzureTokenCredentialRequestModel**](AzureTokenCredentialRequestModel.md) | | [optional] +**item** | [**AzureTokenCredentialRequestModel**](AzureTokenCredentialRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestClientRequestModel.md b/docs/UpdateRequestClientRequestModel.md index 186f010..b32b151 100644 --- a/docs/UpdateRequestClientRequestModel.md +++ b/docs/UpdateRequestClientRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**ClientRequestModel**](ClientRequestModel.md) | | [optional] +**item** | [**ClientRequestModel**](ClientRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestCustomThemeRequestModel.md b/docs/UpdateRequestCustomThemeRequestModel.md index 48daa10..0bbc13b 100644 --- a/docs/UpdateRequestCustomThemeRequestModel.md +++ b/docs/UpdateRequestCustomThemeRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**CustomThemeRequestModel**](CustomThemeRequestModel.md) | | [optional] +**item** | [**CustomThemeRequestModel**](CustomThemeRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestGeneralAccountRequestModel.md b/docs/UpdateRequestGeneralAccountRequestModel.md index 468c95f..969719f 100644 --- a/docs/UpdateRequestGeneralAccountRequestModel.md +++ b/docs/UpdateRequestGeneralAccountRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**GeneralAccountRequestModel**](GeneralAccountRequestModel.md) | | [optional] +**item** | [**GeneralAccountRequestModel**](GeneralAccountRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestGoogleCredentialRequestModel.md b/docs/UpdateRequestGoogleCredentialRequestModel.md index 6aaacbc..b2f9a8e 100644 --- a/docs/UpdateRequestGoogleCredentialRequestModel.md +++ b/docs/UpdateRequestGoogleCredentialRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**GoogleCredentialRequestModel**](GoogleCredentialRequestModel.md) | | [optional] +**item** | [**GoogleCredentialRequestModel**](GoogleCredentialRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestMavRequestModel.md b/docs/UpdateRequestMavRequestModel.md index f0c64ab..32c38bd 100644 --- a/docs/UpdateRequestMavRequestModel.md +++ b/docs/UpdateRequestMavRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**MavRequestModel**](MavRequestModel.md) | | [optional] +**item** | [**MavRequestModel**](MavRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestPermissionSetRequestModel.md b/docs/UpdateRequestPermissionSetRequestModel.md index f849028..b564acc 100644 --- a/docs/UpdateRequestPermissionSetRequestModel.md +++ b/docs/UpdateRequestPermissionSetRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**PermissionSetRequestModel**](PermissionSetRequestModel.md) | | [optional] +**item** | [**PermissionSetRequestModel**](PermissionSetRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestRoleRequestModel.md b/docs/UpdateRequestRoleRequestModel.md index 3282b71..de764d1 100644 --- a/docs/UpdateRequestRoleRequestModel.md +++ b/docs/UpdateRequestRoleRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**RoleRequestModel**](RoleRequestModel.md) | | [optional] +**item** | [**RoleRequestModel**](RoleRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestSamlProviderRequestModel.md b/docs/UpdateRequestSamlProviderRequestModel.md index fef4a7a..9a3c2a8 100644 --- a/docs/UpdateRequestSamlProviderRequestModel.md +++ b/docs/UpdateRequestSamlProviderRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**SamlProviderRequestModel**](SamlProviderRequestModel.md) | | [optional] +**item** | [**SamlProviderRequestModel**](SamlProviderRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestSamlProviderRuleRequestModel.md b/docs/UpdateRequestSamlProviderRuleRequestModel.md index eb17b66..4516620 100644 --- a/docs/UpdateRequestSamlProviderRuleRequestModel.md +++ b/docs/UpdateRequestSamlProviderRuleRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**SamlProviderRuleRequestModel**](SamlProviderRuleRequestModel.md) | | [optional] +**item** | [**SamlProviderRuleRequestModel**](SamlProviderRuleRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestUserLevelAccessRequestModel.md b/docs/UpdateRequestUserLevelAccessRequestModel.md index 84d4d07..19984d1 100644 --- a/docs/UpdateRequestUserLevelAccessRequestModel.md +++ b/docs/UpdateRequestUserLevelAccessRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**UserLevelAccessRequestModel**](UserLevelAccessRequestModel.md) | | [optional] +**item** | [**UserLevelAccessRequestModel**](UserLevelAccessRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UpdateRequestUserRequestModel.md b/docs/UpdateRequestUserRequestModel.md index 94e1091..872eaad 100644 --- a/docs/UpdateRequestUserRequestModel.md +++ b/docs/UpdateRequestUserRequestModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**item** | [**UserRequestModel**](UserRequestModel.md) | | [optional] +**item** | [**UserRequestModel**](UserRequestModel.md) | Item to update | [optional] **reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserLevelAccessApi.md b/docs/UserLevelAccessApi.md index 81efacb..cb71069 100644 --- a/docs/UserLevelAccessApi.md +++ b/docs/UserLevelAccessApi.md @@ -1,12 +1,13 @@ # cloudcheckr_cmx_client.UserLevelAccessApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_user_level_access**](UserLevelAccessApi.md#get_user_level_access) | **GET** /policy/v1/customers/{customerId}/user-level-access/{userId} | Get user-level access for a single user. [**update_user_level_access**](UserLevelAccessApi.md#update_user_level_access) | **PUT** /policy/v1/customers/{customerId}/user-level-access/{userId} | Updates the user-level access for the given user. + # **get_user_level_access** > UserLevelAccessResponseModel get_user_level_access(customer_id, user_id) @@ -60,7 +61,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_user_level_access** -> UserLevelAccessResponseModel update_user_level_access(customer_id, user_id, body=body) +> UserLevelAccessResponseModel update_user_level_access(customer_id, user_id, request=request) Updates the user-level access for the given user. @@ -80,11 +81,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.UserLevelAccessApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | user_id = 'user_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestUserLevelAccessRequestModel() # UpdateRequestUserLevelAccessRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestUserLevelAccessRequestModel() # UpdateRequestUserLevelAccessRequestModel | (optional) try: # Updates the user-level access for the given user. - api_response = api_instance.update_user_level_access(customer_id, user_id, body=body) + api_response = api_instance.update_user_level_access(customer_id, user_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling UserLevelAccessApi->update_user_level_access: %s\n" % e) @@ -96,7 +97,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **user_id** | **str**| | - **body** | [**UpdateRequestUserLevelAccessRequestModel**](UpdateRequestUserLevelAccessRequestModel.md)| | [optional] + **request** | [**UpdateRequestUserLevelAccessRequestModel**](UpdateRequestUserLevelAccessRequestModel.md)| | [optional] ### Return type diff --git a/docs/UserLevelAccessRequestModel.md b/docs/UserLevelAccessRequestModel.md index ebc4bcc..a686d6c 100644 --- a/docs/UserLevelAccessRequestModel.md +++ b/docs/UserLevelAccessRequestModel.md @@ -3,9 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**permission_sets** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | The user's permission sets. This property supports: resetting. | [optional] -**customer_account_access_rule** | **str** | The user's access rule. This controls how customer and account access is determined. | [optional] +**permission_sets** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | The user's permission sets. This property supports: resetting. | [optional] +**customer_account_access_rule** | **str** | The user's access rule. This controls how customer and account access is determined. | [optional] **customer_accounts** | [**list[CustomerAccountModification]**](CustomerAccountModification.md) | The customers and/or accounts to which the user has access. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserLevelAccessResponseModel.md b/docs/UserLevelAccessResponseModel.md index 0268496..0252c72 100644 --- a/docs/UserLevelAccessResponseModel.md +++ b/docs/UserLevelAccessResponseModel.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customer_account_access_rule** | **str** | The user's access rule. This controls how customer and account access is determined. | [optional] -**permission_sets** | [**list[PermissionSetBasicInfo]**](PermissionSetBasicInfo.md) | The user's permission sets. | [optional] +**customer_account_access_rule** | **str** | The user's access rule. This controls how customer and account access is determined. | [optional] +**permission_sets** | [**list[PermissionSetBasicInfo]**](PermissionSetBasicInfo.md) | The user's permission sets. | [optional] **customer_accounts** | [**list[CustomerAccountBasicInfo]**](CustomerAccountBasicInfo.md) | The customers and/or accounts to which the user has access. | [optional] **created_date** | **datetime** | The date this user-level access was first assigned. | [optional] **updated_date** | **datetime** | The date this user-level access was last updated. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserRequestModel.md b/docs/UserRequestModel.md index ca1d4d3..2a43dcb 100644 --- a/docs/UserRequestModel.md +++ b/docs/UserRequestModel.md @@ -3,12 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | The user's email address. | -**saml_provider** | [**UserSamlProviderRequestModel**](UserSamlProviderRequestModel.md) | | [optional] -**allowed_auth_types** | **list[str]** | The user's allowed authorization types. | -**organization_note** | **str** | The user's organizational, shared note. | [optional] -**personal_note** | **str** | The user's personal note. | [optional] +**email** | **str** | The user's email address. | +**saml_provider** | [**UserSamlProviderRequestModel**](UserSamlProviderRequestModel.md) | The user's SAML provider. This property supports: resetting. | [optional] +**allowed_auth_types** | **list[str]** | The user's allowed authorization types. | +**organization_note** | **str** | The user's organizational, shared note. | [optional] +**personal_note** | **str** | The user's personal note. | [optional] +**alternate_saml_providers** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | List of alternate SAML provider IDs to assign to the user. This property supports: resetting. | [optional] **roles** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | List of role ids to assign to the user. This property supports: resetting. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserResponseModel.md b/docs/UserResponseModel.md index b12aa59..0d75528 100644 --- a/docs/UserResponseModel.md +++ b/docs/UserResponseModel.md @@ -3,20 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The user's unique ID. This property supports: searching. | [optional] +**id** | **str** | The user's unique ID. This property supports: searching. | [optional] **customer_id** | **str** | The ID of the customer that manages the user. | [optional] **roles** | [**list[MappedRoleResponseModel]**](MappedRoleResponseModel.md) | The roles that are assigned to the user. | [optional] -**email** | **str** | The user's email address. This property supports: sorting, filtering and searching. | [optional] -**saml_provider** | [**UserSamlProviderResponseModel**](UserSamlProviderResponseModel.md) | | [optional] -**allowed_auth_types** | **list[str]** | The user's allowed authorization types. | [optional] -**created_date** | **datetime** | The user's creation date. This property supports: sorting and filtering. | [optional] -**last_login_date** | **datetime** | The user's last login date. This property supports: sorting and filtering. | [optional] -**is_locked_out** | **bool** | The user's lock out status. If true, the user is locked out and will not be permitted to login. This property supports: filtering. | [optional] +**email** | **str** | The user's email address. This property supports: sorting, filtering and searching. | [optional] +**saml_provider** | [**UserSamlProviderResponseModel**](UserSamlProviderResponseModel.md) | The user's SAML provider. | [optional] +**allowed_auth_types** | **list[str]** | The user's allowed authorization types. | [optional] +**created_date** | **datetime** | The user's creation date. This property supports: sorting and filtering. | [optional] +**last_login_date** | **datetime** | The user's last login date. This property supports: sorting and filtering. | [optional] +**is_locked_out** | **bool** | The user's lock out status. If true, the user is locked out and will not be permitted to login. This property supports: filtering. | [optional] **last_lockout_date** | **datetime** | If the user is locked, the date on which the user was locked out. | [optional] -**is_activated** | **bool** | The user's activation status. Some actions may be limited if the user is inactive. This property supports: filtering. | [optional] -**organization_note** | **str** | The user's organizational, shared note. | [optional] -**personal_note** | **str** | The user's personal note. | [optional] +**is_activated** | **bool** | The user's activation status. Some actions may be limited if the user is inactive. This property supports: filtering. | [optional] +**organization_note** | **str** | The user's organizational, shared note. | [optional] +**personal_note** | **str** | The user's personal note. | [optional] **has_user_level_access** | **bool** | Flag that indicate whether or not the user has user level access. This property supports: filtering. | [optional] +**alternate_saml_providers** | [**list[UserSamlProviderResponseModel]**](UserSamlProviderResponseModel.md) | The user's alternate SAML providers (i.e. other SAML providers that the user is permitted to use). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserSamlProviderRequestModel.md b/docs/UserSamlProviderRequestModel.md index fed9bc3..ebadacc 100644 --- a/docs/UserSamlProviderRequestModel.md +++ b/docs/UserSamlProviderRequestModel.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The unique ID of the user's SAML provider. | +**id** | **str** | The unique ID of the user's SAML provider. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserSamlProviderResponseModel.md b/docs/UserSamlProviderResponseModel.md index 4b0d7b1..e3b88d0 100644 --- a/docs/UserSamlProviderResponseModel.md +++ b/docs/UserSamlProviderResponseModel.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The unique ID of the user's SAML provider. | [optional] -**custom_name** | **str** | The custom name for the user's SAML provider. | [optional] +**id** | **str** | The unique ID of the user's SAML provider. | [optional] +**custom_name** | **str** | The custom name for the user's SAML provider. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UsersApi.md b/docs/UsersApi.md index e471b19..e3775ea 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -1,6 +1,6 @@ # cloudcheckr_cmx_client.UsersApi -All URIs are relative to *//api-us.cloudcheckr.com/* +All URIs are relative to *https://api-us.cloudcheckr.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -11,8 +11,9 @@ Method | HTTP request | Description [**send_activation**](UsersApi.md#send_activation) | **POST** /auth/v1/customers/{customerId}/users/{userId}/send-activation | Send a user activation email. [**update_user**](UsersApi.md#update_user) | **PUT** /auth/v1/customers/{customerId}/users/{userId} | Update a user. + # **create_user** -> UserResponseModel create_user(customer_id, body=body) +> UserResponseModel create_user(customer_id, request=request) Create a new user. @@ -31,11 +32,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class api_instance = cloudcheckr_cmx_client.UsersApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | -body = cloudcheckr_cmx_client.CreateRequestUserRequestModel() # CreateRequestUserRequestModel | (optional) +request = cloudcheckr_cmx_client.CreateRequestUserRequestModel() # CreateRequestUserRequestModel | (optional) try: # Create a new user. - api_response = api_instance.create_user(customer_id, body=body) + api_response = api_instance.create_user(customer_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling UsersApi->create_user: %s\n" % e) @@ -46,7 +47,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | - **body** | [**CreateRequestUserRequestModel**](CreateRequestUserRequestModel.md)| | [optional] + **request** | [**CreateRequestUserRequestModel**](CreateRequestUserRequestModel.md)| | [optional] ### Return type @@ -110,7 +111,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -278,7 +279,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_user** -> UserResponseModel update_user(customer_id, user_id, body=body) +> UserResponseModel update_user(customer_id, user_id, request=request) Update a user. @@ -298,11 +299,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' api_instance = cloudcheckr_cmx_client.UsersApi(cloudcheckr_cmx_client.ApiClient(configuration)) customer_id = 'customer_id_example' # str | user_id = 'user_id_example' # str | -body = cloudcheckr_cmx_client.UpdateRequestUserRequestModel() # UpdateRequestUserRequestModel | (optional) +request = cloudcheckr_cmx_client.UpdateRequestUserRequestModel() # UpdateRequestUserRequestModel | (optional) try: # Update a user. - api_response = api_instance.update_user(customer_id, user_id, body=body) + api_response = api_instance.update_user(customer_id, user_id, request=request) pprint(api_response) except ApiException as e: print("Exception when calling UsersApi->update_user: %s\n" % e) @@ -314,7 +315,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer_id** | **str**| | **user_id** | **str**| | - **body** | [**UpdateRequestUserRequestModel**](UpdateRequestUserRequestModel.md)| | [optional] + **request** | [**UpdateRequestUserRequestModel**](UpdateRequestUserRequestModel.md)| | [optional] ### Return type diff --git a/docs/VerificationActionModel.md b/docs/VerificationActionModel.md index 5002622..e7496d6 100644 --- a/docs/VerificationActionModel.md +++ b/docs/VerificationActionModel.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | The verification action's unique ID. | [optional] +**id** | **str** | The verification action's unique ID. | [optional] **description** | **str** | Description of the verification action performed. | [optional] **additional_info** | **str** | Additional information returned by the verification step. | [optional] **outcome** | **str** | Outcome of the verification action. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/git_push.sh b/git_push.sh old mode 100755 new mode 100644 index 6f96922..8acccfd --- a/git_push.sh +++ b/git_push.sh @@ -37,16 +37,16 @@ if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin git@github.com:/${git_user_id}/${git_repo_id}.git + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git fi fi -git pull origin main +git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to git@github.com:${git_user_id}/${git_repo_id}.git" -git push origin main 2>&1 | grep -v 'To https' +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/setup.py b/setup.py index 8a20e5a..12dc802 100644 --- a/setup.py +++ b/setup.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from setuptools import setup, find_packages # noqa: H301 NAME = "ct-cloudcheckr-cmx-client" -VERSION = "1.0.1" +VERSION = "1.0.2" # To install the library, run the following # # python setup.py install @@ -21,7 +22,13 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = [ + "certifi>=2017.4.17", + "python-dateutil>=2.1", + "six>=1.10", + "urllib3>=1.23" +] + setup( name=NAME, diff --git a/swag.config.python.json b/swag.config.python.json index 160c1d0..fdb020f 100644 --- a/swag.config.python.json +++ b/swag.config.python.json @@ -1,6 +1,6 @@ { "packageName": "cloudcheckr_cmx_client", "projectName": "ct-cloudcheckr-cmx-client", - "packageVersion": "1.0.0", + "packageVersion": "1.0.2", "packageUrl": "https://github.com/CU-CommunityApps/ct-cloudcheckr-cmx-client" } diff --git a/test/__init__.py b/test/__init__.py index e69de29..576f56f 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -0,0 +1 @@ +# coding: utf-8 \ No newline at end of file diff --git a/test/test_account_assignment_response_model.py b/test/test_account_assignment_response_model.py index 7b32077..79a088a 100644 --- a/test/test_account_assignment_response_model.py +++ b/test/test_account_assignment_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_attribute_assignment_response_model.py b/test/test_account_attribute_assignment_response_model.py index 6c11e3b..0446940 100644 --- a/test/test_account_attribute_assignment_response_model.py +++ b/test/test_account_attribute_assignment_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_attribute_basic_info.py b/test/test_account_attribute_basic_info.py index 0dd6acc..961ba47 100644 --- a/test/test_account_attribute_basic_info.py +++ b/test/test_account_attribute_basic_info.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_attribute_modification.py b/test/test_account_attribute_modification.py index 0c53646..80415a1 100644 --- a/test/test_account_attribute_modification.py +++ b/test/test_account_attribute_modification.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_attribute_request_model.py b/test/test_account_attribute_request_model.py index 6fc2cd4..8ffeb9f 100644 --- a/test/test_account_attribute_request_model.py +++ b/test/test_account_attribute_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_attribute_response_model.py b/test/test_account_attribute_response_model.py index 41f8af0..c2eea65 100644 --- a/test/test_account_attribute_response_model.py +++ b/test/test_account_attribute_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_attributes_api.py b/test/test_account_attributes_api.py index 168b0de..57d0ee6 100644 --- a/test/test_account_attributes_api.py +++ b/test/test_account_attributes_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestAccountAttributesApi(unittest.TestCase): """AccountAttributesApi unit test stubs""" def setUp(self): - self.api = AccountAttributesApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.account_attributes_api.AccountAttributesApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_account_cost.py b/test/test_account_cost.py index 9f63abe..77e4cbc 100644 --- a/test/test_account_cost.py +++ b/test/test_account_cost.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_group_hierarchy_response_model.py b/test/test_account_group_hierarchy_response_model.py index 79429eb..fdf4a17 100644 --- a/test/test_account_group_hierarchy_response_model.py +++ b/test/test_account_group_hierarchy_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_group_request_model.py b/test/test_account_group_request_model.py index a32a727..bc31e83 100644 --- a/test/test_account_group_request_model.py +++ b/test/test_account_group_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_group_response_model.py b/test/test_account_group_response_model.py index 3fdbd84..69416df 100644 --- a/test/test_account_group_response_model.py +++ b/test/test_account_group_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_group_search_response_model.py b/test/test_account_group_search_response_model.py index 40d16bd..c00edae 100644 --- a/test/test_account_group_search_response_model.py +++ b/test/test_account_group_search_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_account_management_api.py b/test/test_account_management_api.py index 97e16c5..712ac0a 100644 --- a/test/test_account_management_api.py +++ b/test/test_account_management_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestAccountManagementApi(unittest.TestCase): """AccountManagementApi unit test stubs""" def setUp(self): - self.api = AccountManagementApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.account_management_api.AccountManagementApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_accounts_api.py b/test/test_accounts_api.py index d9778ee..29d9b29 100644 --- a/test/test_accounts_api.py +++ b/test/test_accounts_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestAccountsApi(unittest.TestCase): """AccountsApi unit test stubs""" def setUp(self): - self.api = AccountsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.accounts_api.AccountsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_ancestor_model.py b/test/test_ancestor_model.py index fcfb011..0707725 100644 --- a/test/test_ancestor_model.py +++ b/test/test_ancestor_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_ancestors_response_model.py b/test/test_ancestors_response_model.py index 6ce7306..fdde880 100644 --- a/test/test_ancestors_response_model.py +++ b/test/test_ancestors_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_application_model.py b/test/test_application_model.py index 3ac0b4e..7bb62c2 100644 --- a/test/test_application_model.py +++ b/test/test_application_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_aws_access_key_model.py b/test/test_aws_access_key_model.py index 5a573c5..6212693 100644 --- a/test/test_aws_access_key_model.py +++ b/test/test_aws_access_key_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_aws_assume_role_credential_request_model.py b/test/test_aws_assume_role_credential_request_model.py deleted file mode 100644 index 5f95a5f..0000000 --- a/test/test_aws_assume_role_credential_request_model.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - CloudCheckr API - - CloudCheckr API # noqa: E501 - - OpenAPI spec version: v1 - Contact: support@cloudcheckr.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import cloudcheckr_cmx_client -from cloudcheckr_cmx_client.models.aws_assume_role_credential_request_model import AwsAssumeRoleCredentialRequestModel # noqa: E501 -from cloudcheckr_cmx_client.rest import ApiException - - -class TestAwsAssumeRoleCredentialRequestModel(unittest.TestCase): - """AwsAssumeRoleCredentialRequestModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAwsAssumeRoleCredentialRequestModel(self): - """Test AwsAssumeRoleCredentialRequestModel""" - # FIXME: construct object with mandatory attributes with example values - # model = cloudcheckr_cmx_client.models.aws_assume_role_credential_request_model.AwsAssumeRoleCredentialRequestModel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_aws_credential_request_model.py b/test/test_aws_credential_request_model.py index e616c29..5fe8d53 100644 --- a/test/test_aws_credential_request_model.py +++ b/test/test_aws_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_aws_credentials_api.py b/test/test_aws_credentials_api.py index 5a6b69c..b4a4ec9 100644 --- a/test/test_aws_credentials_api.py +++ b/test/test_aws_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,11 +24,18 @@ class TestAWSCredentialsApi(unittest.TestCase): """AWSCredentialsApi unit test stubs""" def setUp(self): - self.api = AWSCredentialsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.aws_credentials_api.AWSCredentialsApi() # noqa: E501 def tearDown(self): pass + def test_delete_aws_external_id(self): + """Test case for delete_aws_external_id + + Delete/reset the external ID to use when configuring an account to use an AWS cross-account role. Use only if external ID configurations have changed and the account's external ID should use the new configuration (e.g. using the customer-level external ID rather than the account-level external ID). Note: This may cause a new external ID to be generated even if the settings have not changed. Do not use as part of the standard credentialing setup process. # noqa: E501 + """ + pass + def test_get_aws_external_id(self): """Test case for get_aws_external_id @@ -42,13 +50,6 @@ def test_modify_credential(self): """ pass - def test_modify_customer_aws_assume_role_credential(self): - """Test case for modify_customer_aws_assume_role_credential - - Set the credential to use when assuming a cross-acount role. # noqa: E501 - """ - pass - def test_modify_default_credential(self): """Test case for modify_default_credential diff --git a/test/test_aws_cross_account_role_model.py b/test/test_aws_cross_account_role_model.py index c5d0fa1..b7f5df7 100644 --- a/test/test_aws_cross_account_role_model.py +++ b/test/test_aws_cross_account_role_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_aws_cross_account_role_setup_response_model.py b/test/test_aws_cross_account_role_setup_response_model.py index 5f3635a..175b628 100644 --- a/test/test_aws_cross_account_role_setup_response_model.py +++ b/test/test_aws_cross_account_role_setup_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_azure_authorization_response_model.py b/test/test_azure_authorization_response_model.py index d959833..6e69ff7 100644 --- a/test/test_azure_authorization_response_model.py +++ b/test/test_azure_authorization_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_azure_billing_account_response_model.py b/test/test_azure_billing_account_response_model.py index a394ccb..dc566b5 100644 --- a/test/test_azure_billing_account_response_model.py +++ b/test/test_azure_billing_account_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_azure_billing_account_selection_request_model.py b/test/test_azure_billing_account_selection_request_model.py index 7d8395f..c7430ca 100644 --- a/test/test_azure_billing_account_selection_request_model.py +++ b/test/test_azure_billing_account_selection_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_azure_common_credentials_api.py b/test/test_azure_common_credentials_api.py index 5f71483..cc222a3 100644 --- a/test/test_azure_common_credentials_api.py +++ b/test/test_azure_common_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestAzureCommonCredentialsApi(unittest.TestCase): """AzureCommonCredentialsApi unit test stubs""" def setUp(self): - self.api = AzureCommonCredentialsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.azure_common_credentials_api.AzureCommonCredentialsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_azure_credentials_api.py b/test/test_azure_credentials_api.py index 51a4988..9acba7d 100644 --- a/test/test_azure_credentials_api.py +++ b/test/test_azure_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestAzureCredentialsApi(unittest.TestCase): """AzureCredentialsApi unit test stubs""" def setUp(self): - self.api = AzureCredentialsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.azure_credentials_api.AzureCredentialsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_azure_csp_authorization_request_model.py b/test/test_azure_csp_authorization_request_model.py index ed75271..6c3cfdf 100644 --- a/test/test_azure_csp_authorization_request_model.py +++ b/test/test_azure_csp_authorization_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_azure_enterprise_agreement_credential_request_model.py b/test/test_azure_enterprise_agreement_credential_request_model.py index 2bd027e..6ce0b21 100644 --- a/test/test_azure_enterprise_agreement_credential_request_model.py +++ b/test/test_azure_enterprise_agreement_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_azure_subscription_credential_request_model.py b/test/test_azure_subscription_credential_request_model.py index 7b83757..acfdd17 100644 --- a/test/test_azure_subscription_credential_request_model.py +++ b/test/test_azure_subscription_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_azure_token_credential_request_model.py b/test/test_azure_token_credential_request_model.py index d130637..69a42ab 100644 --- a/test/test_azure_token_credential_request_model.py +++ b/test/test_azure_token_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_base_account_info.py b/test/test_base_account_info.py index bf44bc7..46d98d0 100644 --- a/test/test_base_account_info.py +++ b/test/test_base_account_info.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_basic_request_list_modification.py b/test/test_basic_request_list_modification.py index 9a51db2..2aacbb5 100644 --- a/test/test_basic_request_list_modification.py +++ b/test/test_basic_request_list_modification.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_bulk_account_assignment_request_model.py b/test/test_bulk_account_assignment_request_model.py index 4eea137..ad7af06 100644 --- a/test/test_bulk_account_assignment_request_model.py +++ b/test/test_bulk_account_assignment_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_bulk_account_assignment_response_model_account_assignment_response_model.py b/test/test_bulk_account_assignment_response_model_account_assignment_response_model.py index e81f895..e4961b9 100644 --- a/test/test_bulk_account_assignment_response_model_account_assignment_response_model.py +++ b/test/test_bulk_account_assignment_response_model_account_assignment_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_bulk_account_assignment_response_model_account_attribute_assignment_response_model.py b/test/test_bulk_account_assignment_response_model_account_attribute_assignment_response_model.py index b5c3858..bf3961b 100644 --- a/test/test_bulk_account_assignment_response_model_account_attribute_assignment_response_model.py +++ b/test/test_bulk_account_assignment_response_model_account_attribute_assignment_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_bulk_account_attribute_assignment_request_model.py b/test/test_bulk_account_attribute_assignment_request_model.py index 42f2052..36a3cd2 100644 --- a/test/test_bulk_account_attribute_assignment_request_model.py +++ b/test/test_bulk_account_attribute_assignment_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_client_access_key_request_model.py b/test/test_client_access_key_request_model.py index f8abd55..b71b9b0 100644 --- a/test/test_client_access_key_request_model.py +++ b/test/test_client_access_key_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_client_access_key_response_model.py b/test/test_client_access_key_response_model.py index 7ade3b0..daae82a 100644 --- a/test/test_client_access_key_response_model.py +++ b/test/test_client_access_key_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_client_access_keys_api.py b/test/test_client_access_keys_api.py index 327edcb..0a2684b 100644 --- a/test/test_client_access_keys_api.py +++ b/test/test_client_access_keys_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestClientAccessKeysApi(unittest.TestCase): """ClientAccessKeysApi unit test stubs""" def setUp(self): - self.api = ClientAccessKeysApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.client_access_keys_api.ClientAccessKeysApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_client_create_request_model.py b/test/test_client_create_request_model.py index 9750748..ae75bc4 100644 --- a/test/test_client_create_request_model.py +++ b/test/test_client_create_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_client_request_model.py b/test/test_client_request_model.py index bceba1c..2803e60 100644 --- a/test/test_client_request_model.py +++ b/test/test_client_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_client_response_model.py b/test/test_client_response_model.py index 5dbe855..8adb16b 100644 --- a/test/test_client_response_model.py +++ b/test/test_client_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_clients_api.py b/test/test_clients_api.py index 4890d09..ba261b7 100644 --- a/test/test_clients_api.py +++ b/test/test_clients_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestClientsApi(unittest.TestCase): """ClientsApi unit test stubs""" def setUp(self): - self.api = ClientsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.clients_api.ClientsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_create_request_account_group_request_model.py b/test/test_create_request_account_group_request_model.py index 7ba7b23..8cdf29d 100644 --- a/test/test_create_request_account_group_request_model.py +++ b/test/test_create_request_account_group_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_azure_billing_account_selection_request_model.py b/test/test_create_request_azure_billing_account_selection_request_model.py index 685195e..e156f38 100644 --- a/test/test_create_request_azure_billing_account_selection_request_model.py +++ b/test/test_create_request_azure_billing_account_selection_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_client_access_key_request_model.py b/test/test_create_request_client_access_key_request_model.py index ad81232..1553210 100644 --- a/test/test_create_request_client_access_key_request_model.py +++ b/test/test_create_request_client_access_key_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_client_create_request_model.py b/test/test_create_request_client_create_request_model.py index 89a0c75..d0c733f 100644 --- a/test/test_create_request_client_create_request_model.py +++ b/test/test_create_request_client_create_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_general_account_request_model.py b/test/test_create_request_general_account_request_model.py index 17ece1b..ebed670 100644 --- a/test/test_create_request_general_account_request_model.py +++ b/test/test_create_request_general_account_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_mav_request_model.py b/test/test_create_request_mav_request_model.py index 563e238..9b69742 100644 --- a/test/test_create_request_mav_request_model.py +++ b/test/test_create_request_mav_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_permission_set_request_model.py b/test/test_create_request_permission_set_request_model.py index d47b1f8..5236e80 100644 --- a/test/test_create_request_permission_set_request_model.py +++ b/test/test_create_request_permission_set_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_role_request_model.py b/test/test_create_request_role_request_model.py index 062e84c..840675e 100644 --- a/test/test_create_request_role_request_model.py +++ b/test/test_create_request_role_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_saml_provider_request_model.py b/test/test_create_request_saml_provider_request_model.py index a46ecb0..e8b17f6 100644 --- a/test/test_create_request_saml_provider_request_model.py +++ b/test/test_create_request_saml_provider_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_saml_provider_rule_request_model.py b/test/test_create_request_saml_provider_rule_request_model.py index 3891a33..2d5d313 100644 --- a/test/test_create_request_saml_provider_rule_request_model.py +++ b/test/test_create_request_saml_provider_rule_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_create_request_user_request_model.py b/test/test_create_request_user_request_model.py index 14800f3..ba38d0a 100644 --- a/test/test_create_request_user_request_model.py +++ b/test/test_create_request_user_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_credential_metadata_model.py b/test/test_credential_metadata_model.py index 8363bd5..0c7a72d 100644 --- a/test/test_credential_metadata_model.py +++ b/test/test_credential_metadata_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_credential_response_model.py b/test/test_credential_response_model.py index 2d77831..256a675 100644 --- a/test/test_credential_response_model.py +++ b/test/test_credential_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_credentials_api.py b/test/test_credentials_api.py index 92123cb..bf6c607 100644 --- a/test/test_credentials_api.py +++ b/test/test_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestCredentialsApi(unittest.TestCase): """CredentialsApi unit test stubs""" def setUp(self): - self.api = CredentialsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.credentials_api.CredentialsApi() # noqa: E501 def tearDown(self): pass @@ -35,13 +36,6 @@ def test_get_account_credentials(self): """ pass - def test_get_customer_credentials(self): - """Test case for get_customer_credentials - - Get all credentials configured on the customer. # noqa: E501 - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_credentials_response_model.py b/test/test_credentials_response_model.py index b087890..db9d290 100644 --- a/test/test_credentials_response_model.py +++ b/test/test_credentials_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_custom_theme_request_model.py b/test/test_custom_theme_request_model.py index c844ec8..60f5df0 100644 --- a/test/test_custom_theme_request_model.py +++ b/test/test_custom_theme_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_custom_theme_response_model.py b/test/test_custom_theme_response_model.py index 72bdcb4..9fcebec 100644 --- a/test/test_custom_theme_response_model.py +++ b/test/test_custom_theme_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_custom_theme_settings_api.py b/test/test_custom_theme_settings_api.py index 6e6485a..722e11a 100644 --- a/test/test_custom_theme_settings_api.py +++ b/test/test_custom_theme_settings_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestCustomThemeSettingsApi(unittest.TestCase): """CustomThemeSettingsApi unit test stubs""" def setUp(self): - self.api = CustomThemeSettingsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.custom_theme_settings_api.CustomThemeSettingsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_customer_account_basic_info.py b/test/test_customer_account_basic_info.py index 2fe151c..2773571 100644 --- a/test/test_customer_account_basic_info.py +++ b/test/test_customer_account_basic_info.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_customer_account_modification.py b/test/test_customer_account_modification.py index df613b3..807ea70 100644 --- a/test/test_customer_account_modification.py +++ b/test/test_customer_account_modification.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_customer_plan_response_model.py b/test/test_customer_plan_response_model.py index af8bfb0..de09e75 100644 --- a/test/test_customer_plan_response_model.py +++ b/test/test_customer_plan_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_customer_response_model.py b/test/test_customer_response_model.py index 3980f87..daac2a3 100644 --- a/test/test_customer_response_model.py +++ b/test/test_customer_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_customers_api.py b/test/test_customers_api.py index 7261c2a..4de15f9 100644 --- a/test/test_customers_api.py +++ b/test/test_customers_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,11 +24,25 @@ class TestCustomersApi(unittest.TestCase): """CustomersApi unit test stubs""" def setUp(self): - self.api = CustomersApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.customers_api.CustomersApi() # noqa: E501 def tearDown(self): pass + def test_create_customer(self): + """Test case for create_customer + + Create a customer. Customer is not available for immediate use. Customer will be available once necessary back-end processing has been completed. # noqa: E501 + """ + pass + + def test_delete_customer(self): + """Test case for delete_customer + + Delete a customer. # noqa: E501 + """ + pass + def test_get_customer(self): """Test case for get_customer @@ -42,6 +57,13 @@ def test_list_customers(self): """ pass + def test_update_customer(self): + """Test case for update_customer + + Update a customer. # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_developer_info.py b/test/test_developer_info.py index 59e4da3..f5a54b2 100644 --- a/test/test_developer_info.py +++ b/test/test_developer_info.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_error.py b/test/test_error.py index 3f7e06c..6bb9c54 100644 --- a/test/test_error.py +++ b/test/test_error.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_error_response.py b/test/test_error_response.py index 6a19cd1..914fcf7 100644 --- a/test/test_error_response.py +++ b/test/test_error_response.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_general_account_request_model.py b/test/test_general_account_request_model.py index 3c928f7..9dd0287 100644 --- a/test/test_general_account_request_model.py +++ b/test/test_general_account_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_general_account_response_model.py b/test/test_general_account_response_model.py index 70733a9..853494f 100644 --- a/test/test_general_account_response_model.py +++ b/test/test_general_account_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_google_credential_request_model.py b/test/test_google_credential_request_model.py index 7b44e60..4c60595 100644 --- a/test/test_google_credential_request_model.py +++ b/test/test_google_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_google_credentials_api.py b/test/test_google_credentials_api.py index f356574..5e28a3e 100644 --- a/test/test_google_credentials_api.py +++ b/test/test_google_credentials_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestGoogleCredentialsApi(unittest.TestCase): """GoogleCredentialsApi unit test stubs""" def setUp(self): - self.api = GoogleCredentialsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.google_credentials_api.GoogleCredentialsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_linked_aws_commercial_account_model.py b/test/test_linked_aws_commercial_account_model.py index 729b2ab..f0a55d6 100644 --- a/test/test_linked_aws_commercial_account_model.py +++ b/test/test_linked_aws_commercial_account_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_list_modification_error.py b/test/test_list_modification_error.py index 085ada0..7ee9396 100644 --- a/test/test_list_modification_error.py +++ b/test/test_list_modification_error.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_list_modification_request_model.py b/test/test_list_modification_request_model.py index f090e16..87337c8 100644 --- a/test/test_list_modification_request_model.py +++ b/test/test_list_modification_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_list_modification_response_model.py b/test/test_list_modification_response_model.py index 2cbfe90..fcad4c5 100644 --- a/test/test_list_modification_response_model.py +++ b/test/test_list_modification_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_mapped_role_response_model.py b/test/test_mapped_role_response_model.py index 817ebb9..a52f9a5 100644 --- a/test/test_mapped_role_response_model.py +++ b/test/test_mapped_role_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_mav_request_model.py b/test/test_mav_request_model.py index 01cdcaa..d3fbb25 100644 --- a/test/test_mav_request_model.py +++ b/test/test_mav_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_mav_response_model.py b/test/test_mav_response_model.py index b705bb9..95ad3b6 100644 --- a/test/test_mav_response_model.py +++ b/test/test_mav_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_minimal_client_response_model.py b/test/test_minimal_client_response_model.py index e15962b..e894eb5 100644 --- a/test/test_minimal_client_response_model.py +++ b/test/test_minimal_client_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_minimal_user_response_model.py b/test/test_minimal_user_response_model.py index ddd5412..6ad4aad 100644 --- a/test/test_minimal_user_response_model.py +++ b/test/test_minimal_user_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_new_client_access_info.py b/test/test_new_client_access_info.py index 591dcf3..1bcc5c1 100644 --- a/test/test_new_client_access_info.py +++ b/test/test_new_client_access_info.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_info.py b/test/test_pagination_info.py index 841bce9..7d95620 100644 --- a/test/test_pagination_info.py +++ b/test/test_pagination_info.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_response_account_attribute_response_model.py b/test/test_pagination_response_account_attribute_response_model.py index 8225126..a5ea50e 100644 --- a/test/test_pagination_response_account_attribute_response_model.py +++ b/test/test_pagination_response_account_attribute_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_response_azure_billing_account_response_model.py b/test/test_pagination_response_azure_billing_account_response_model.py index 46da011..f90529f 100644 --- a/test/test_pagination_response_azure_billing_account_response_model.py +++ b/test/test_pagination_response_azure_billing_account_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_response_permission_set_response_model.py b/test/test_pagination_response_permission_set_response_model.py index ce8a5fe..14cb357 100644 --- a/test/test_pagination_response_permission_set_response_model.py +++ b/test/test_pagination_response_permission_set_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_response_role_response_model.py b/test/test_pagination_response_role_response_model.py index c1671e4..b89a5fd 100644 --- a/test/test_pagination_response_role_response_model.py +++ b/test/test_pagination_response_role_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_account_group_hierarchy_response_model.py b/test/test_pagination_with_count_response_account_group_hierarchy_response_model.py index 396593b..f0c73d1 100644 --- a/test/test_pagination_with_count_response_account_group_hierarchy_response_model.py +++ b/test/test_pagination_with_count_response_account_group_hierarchy_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_account_group_response_model.py b/test/test_pagination_with_count_response_account_group_response_model.py index 6dec1da..9492ec4 100644 --- a/test/test_pagination_with_count_response_account_group_response_model.py +++ b/test/test_pagination_with_count_response_account_group_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_account_group_search_response_model.py b/test/test_pagination_with_count_response_account_group_search_response_model.py index 4bda358..8bb5876 100644 --- a/test/test_pagination_with_count_response_account_group_search_response_model.py +++ b/test/test_pagination_with_count_response_account_group_search_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_client_access_key_response_model.py b/test/test_pagination_with_count_response_client_access_key_response_model.py index d8a5485..d1110f5 100644 --- a/test/test_pagination_with_count_response_client_access_key_response_model.py +++ b/test/test_pagination_with_count_response_client_access_key_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_client_response_model.py b/test/test_pagination_with_count_response_client_response_model.py index 104e543..ef65dd9 100644 --- a/test/test_pagination_with_count_response_client_response_model.py +++ b/test/test_pagination_with_count_response_client_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_customer_response_model.py b/test/test_pagination_with_count_response_customer_response_model.py index 7c54b0d..705071e 100644 --- a/test/test_pagination_with_count_response_customer_response_model.py +++ b/test/test_pagination_with_count_response_customer_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_general_account_response_model.py b/test/test_pagination_with_count_response_general_account_response_model.py index 38f6ea2..4b69390 100644 --- a/test/test_pagination_with_count_response_general_account_response_model.py +++ b/test/test_pagination_with_count_response_general_account_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_mav_response_model.py b/test/test_pagination_with_count_response_mav_response_model.py index 4655c2d..83466d8 100644 --- a/test/test_pagination_with_count_response_mav_response_model.py +++ b/test/test_pagination_with_count_response_mav_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_minimal_client_response_model.py b/test/test_pagination_with_count_response_minimal_client_response_model.py index e62111e..55742a4 100644 --- a/test/test_pagination_with_count_response_minimal_client_response_model.py +++ b/test/test_pagination_with_count_response_minimal_client_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_minimal_user_response_model.py b/test/test_pagination_with_count_response_minimal_user_response_model.py index d46bc9b..9b64b49 100644 --- a/test/test_pagination_with_count_response_minimal_user_response_model.py +++ b/test/test_pagination_with_count_response_minimal_user_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_parent_assignment_response_model.py b/test/test_pagination_with_count_response_parent_assignment_response_model.py index 10b3507..15b0888 100644 --- a/test/test_pagination_with_count_response_parent_assignment_response_model.py +++ b/test/test_pagination_with_count_response_parent_assignment_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_permission_response_model.py b/test/test_pagination_with_count_response_permission_response_model.py index dd1d8dc..4459e43 100644 --- a/test/test_pagination_with_count_response_permission_response_model.py +++ b/test/test_pagination_with_count_response_permission_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_referenced_account_response_model.py b/test/test_pagination_with_count_response_referenced_account_response_model.py index d54c374..4d6aca9 100644 --- a/test/test_pagination_with_count_response_referenced_account_response_model.py +++ b/test/test_pagination_with_count_response_referenced_account_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_saml_provider_response_model.py b/test/test_pagination_with_count_response_saml_provider_response_model.py index 8d12dee..beb616e 100644 --- a/test/test_pagination_with_count_response_saml_provider_response_model.py +++ b/test/test_pagination_with_count_response_saml_provider_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_saml_provider_rule_response_model.py b/test/test_pagination_with_count_response_saml_provider_rule_response_model.py index 8a25808..876ae2e 100644 --- a/test/test_pagination_with_count_response_saml_provider_rule_response_model.py +++ b/test/test_pagination_with_count_response_saml_provider_rule_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_pagination_with_count_response_user_response_model.py b/test/test_pagination_with_count_response_user_response_model.py index beda826..4e6c898 100644 --- a/test/test_pagination_with_count_response_user_response_model.py +++ b/test/test_pagination_with_count_response_user_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_parent_assignment.py b/test/test_parent_assignment.py index f48f38a..f34adec 100644 --- a/test/test_parent_assignment.py +++ b/test/test_parent_assignment.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_parent_assignment_response_model.py b/test/test_parent_assignment_response_model.py index 0ca9b81..3d76b16 100644 --- a/test/test_parent_assignment_response_model.py +++ b/test/test_parent_assignment_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_payee_configuration_model.py b/test/test_payee_configuration_model.py index 5fd3666..c5fdcba 100644 --- a/test/test_payee_configuration_model.py +++ b/test/test_payee_configuration_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_permission_group_model.py b/test/test_permission_group_model.py index 49544cf..dd8b0c1 100644 --- a/test/test_permission_group_model.py +++ b/test/test_permission_group_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_permission_response_model.py b/test/test_permission_response_model.py index 62c8c3e..8503e03 100644 --- a/test/test_permission_response_model.py +++ b/test/test_permission_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_permission_set_basic_info.py b/test/test_permission_set_basic_info.py index dec3e76..60356ee 100644 --- a/test/test_permission_set_basic_info.py +++ b/test/test_permission_set_basic_info.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_permission_set_permission_model.py b/test/test_permission_set_permission_model.py index 27169cc..04bb7e9 100644 --- a/test/test_permission_set_permission_model.py +++ b/test/test_permission_set_permission_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_permission_set_request_model.py b/test/test_permission_set_request_model.py index 26f24d5..136354e 100644 --- a/test/test_permission_set_request_model.py +++ b/test/test_permission_set_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_permission_set_response_model.py b/test/test_permission_set_response_model.py index a927d30..c6d72e6 100644 --- a/test/test_permission_set_response_model.py +++ b/test/test_permission_set_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_permission_sets_api.py b/test/test_permission_sets_api.py index 303f74d..7e62544 100644 --- a/test/test_permission_sets_api.py +++ b/test/test_permission_sets_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestPermissionSetsApi(unittest.TestCase): """PermissionSetsApi unit test stubs""" def setUp(self): - self.api = PermissionSetsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.permission_sets_api.PermissionSetsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_permissions_api.py b/test/test_permissions_api.py index e1bcaa5..d7d780f 100644 --- a/test/test_permissions_api.py +++ b/test/test_permissions_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestPermissionsApi(unittest.TestCase): """PermissionsApi unit test stubs""" def setUp(self): - self.api = PermissionsApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.permissions_api.PermissionsApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_permitted_child_customer_model.py b/test/test_permitted_child_customer_model.py index fee988f..b33a6d0 100644 --- a/test/test_permitted_child_customer_model.py +++ b/test/test_permitted_child_customer_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_referenced_account_response_model.py b/test/test_referenced_account_response_model.py index e43c8fb..db9c96b 100644 --- a/test/test_referenced_account_response_model.py +++ b/test/test_referenced_account_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_related_permission_model.py b/test/test_related_permission_model.py index 9901728..2a0313d 100644 --- a/test/test_related_permission_model.py +++ b/test/test_related_permission_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_role_request_model.py b/test/test_role_request_model.py index 86f0fb9..9afff1e 100644 --- a/test/test_role_request_model.py +++ b/test/test_role_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_role_response_model.py b/test/test_role_response_model.py index f9970d9..2a2d873 100644 --- a/test/test_role_response_model.py +++ b/test/test_role_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_roles_api.py b/test/test_roles_api.py index 8145d89..25c1d2e 100644 --- a/test/test_roles_api.py +++ b/test/test_roles_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestRolesApi(unittest.TestCase): """RolesApi unit test stubs""" def setUp(self): - self.api = RolesApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.roles_api.RolesApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_saml_claim_model.py b/test/test_saml_claim_model.py index 29ed6aa..419dabb 100644 --- a/test/test_saml_claim_model.py +++ b/test/test_saml_claim_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_saml_provider_request_model.py b/test/test_saml_provider_request_model.py index 4f69702..3a8f5ae 100644 --- a/test/test_saml_provider_request_model.py +++ b/test/test_saml_provider_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_saml_provider_response_detail_model.py b/test/test_saml_provider_response_detail_model.py index c6f5c1a..d48283d 100644 --- a/test/test_saml_provider_response_detail_model.py +++ b/test/test_saml_provider_response_detail_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_saml_provider_response_model.py b/test/test_saml_provider_response_model.py index d2f468b..9526090 100644 --- a/test/test_saml_provider_response_model.py +++ b/test/test_saml_provider_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_saml_provider_rule_request_model.py b/test/test_saml_provider_rule_request_model.py index 17b8a78..e6eabdb 100644 --- a/test/test_saml_provider_rule_request_model.py +++ b/test/test_saml_provider_rule_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_saml_provider_rule_response_model.py b/test/test_saml_provider_rule_response_model.py index f45fc4b..34c24bc 100644 --- a/test/test_saml_provider_rule_response_model.py +++ b/test/test_saml_provider_rule_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_saml_provider_rules_api.py b/test/test_saml_provider_rules_api.py index 68ad883..ffe7fa4 100644 --- a/test/test_saml_provider_rules_api.py +++ b/test/test_saml_provider_rules_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestSAMLProviderRulesApi(unittest.TestCase): """SAMLProviderRulesApi unit test stubs""" def setUp(self): - self.api = SAMLProviderRulesApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.saml_provider_rules_api.SAMLProviderRulesApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_saml_providers_api.py b/test/test_saml_providers_api.py index 9296ed9..86436fc 100644 --- a/test/test_saml_providers_api.py +++ b/test/test_saml_providers_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestSAMLProvidersApi(unittest.TestCase): """SAMLProvidersApi unit test stubs""" def setUp(self): - self.api = SAMLProvidersApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.saml_providers_api.SAMLProvidersApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_token_info_response.py b/test/test_token_info_response.py index 64047ad..6a4d713 100644 --- a/test/test_token_info_response.py +++ b/test/test_token_info_response.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_token_management_api.py b/test/test_token_management_api.py index 4ea6ab0..08fd2bd 100644 --- a/test/test_token_management_api.py +++ b/test/test_token_management_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestTokenManagementApi(unittest.TestCase): """TokenManagementApi unit test stubs""" def setUp(self): - self.api = TokenManagementApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.token_management_api.TokenManagementApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_token_response.py b/test/test_token_response.py index ca41546..c737e98 100644 --- a/test/test_token_response.py +++ b/test/test_token_response.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_account_attribute_request_model.py b/test/test_update_request_account_attribute_request_model.py index 622e2cc..e246c43 100644 --- a/test/test_update_request_account_attribute_request_model.py +++ b/test/test_update_request_account_attribute_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_account_group_request_model.py b/test/test_update_request_account_group_request_model.py index 7c56efb..09a6ca0 100644 --- a/test/test_update_request_account_group_request_model.py +++ b/test/test_update_request_account_group_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_aws_assume_role_credential_request_model.py b/test/test_update_request_aws_assume_role_credential_request_model.py deleted file mode 100644 index 2150b03..0000000 --- a/test/test_update_request_aws_assume_role_credential_request_model.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - CloudCheckr API - - CloudCheckr API # noqa: E501 - - OpenAPI spec version: v1 - Contact: support@cloudcheckr.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import cloudcheckr_cmx_client -from cloudcheckr_cmx_client.models.update_request_aws_assume_role_credential_request_model import UpdateRequestAwsAssumeRoleCredentialRequestModel # noqa: E501 -from cloudcheckr_cmx_client.rest import ApiException - - -class TestUpdateRequestAwsAssumeRoleCredentialRequestModel(unittest.TestCase): - """UpdateRequestAwsAssumeRoleCredentialRequestModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUpdateRequestAwsAssumeRoleCredentialRequestModel(self): - """Test UpdateRequestAwsAssumeRoleCredentialRequestModel""" - # FIXME: construct object with mandatory attributes with example values - # model = cloudcheckr_cmx_client.models.update_request_aws_assume_role_credential_request_model.UpdateRequestAwsAssumeRoleCredentialRequestModel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_request_aws_credential_request_model.py b/test/test_update_request_aws_credential_request_model.py index ffade83..7df9be8 100644 --- a/test/test_update_request_aws_credential_request_model.py +++ b/test/test_update_request_aws_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_azure_csp_authorization_request_model.py b/test/test_update_request_azure_csp_authorization_request_model.py index e9ef51b..5c2d855 100644 --- a/test/test_update_request_azure_csp_authorization_request_model.py +++ b/test/test_update_request_azure_csp_authorization_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_azure_enterprise_agreement_credential_request_model.py b/test/test_update_request_azure_enterprise_agreement_credential_request_model.py index 0b12e90..2271e9a 100644 --- a/test/test_update_request_azure_enterprise_agreement_credential_request_model.py +++ b/test/test_update_request_azure_enterprise_agreement_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_azure_subscription_credential_request_model.py b/test/test_update_request_azure_subscription_credential_request_model.py index e62d705..404988b 100644 --- a/test/test_update_request_azure_subscription_credential_request_model.py +++ b/test/test_update_request_azure_subscription_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_azure_token_credential_request_model.py b/test/test_update_request_azure_token_credential_request_model.py index df7be4c..8ce16d1 100644 --- a/test/test_update_request_azure_token_credential_request_model.py +++ b/test/test_update_request_azure_token_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_client_request_model.py b/test/test_update_request_client_request_model.py index 9f3df7a..c3cef65 100644 --- a/test/test_update_request_client_request_model.py +++ b/test/test_update_request_client_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_custom_theme_request_model.py b/test/test_update_request_custom_theme_request_model.py index 6e93a5e..9144345 100644 --- a/test/test_update_request_custom_theme_request_model.py +++ b/test/test_update_request_custom_theme_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_general_account_request_model.py b/test/test_update_request_general_account_request_model.py index e74d4b0..190fdd7 100644 --- a/test/test_update_request_general_account_request_model.py +++ b/test/test_update_request_general_account_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_google_credential_request_model.py b/test/test_update_request_google_credential_request_model.py index d66b526..27d6738 100644 --- a/test/test_update_request_google_credential_request_model.py +++ b/test/test_update_request_google_credential_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_mav_request_model.py b/test/test_update_request_mav_request_model.py index 16fabf1..3c85b7b 100644 --- a/test/test_update_request_mav_request_model.py +++ b/test/test_update_request_mav_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_permission_set_request_model.py b/test/test_update_request_permission_set_request_model.py index 1cd0180..514b0ca 100644 --- a/test/test_update_request_permission_set_request_model.py +++ b/test/test_update_request_permission_set_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_role_request_model.py b/test/test_update_request_role_request_model.py index 816cec4..14a796f 100644 --- a/test/test_update_request_role_request_model.py +++ b/test/test_update_request_role_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_saml_provider_request_model.py b/test/test_update_request_saml_provider_request_model.py index 7b7507d..a28b9be 100644 --- a/test/test_update_request_saml_provider_request_model.py +++ b/test/test_update_request_saml_provider_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_saml_provider_rule_request_model.py b/test/test_update_request_saml_provider_rule_request_model.py index e0f2525..5e69dbe 100644 --- a/test/test_update_request_saml_provider_rule_request_model.py +++ b/test/test_update_request_saml_provider_rule_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_user_level_access_request_model.py b/test/test_update_request_user_level_access_request_model.py index 1a85d95..e78f289 100644 --- a/test/test_update_request_user_level_access_request_model.py +++ b/test/test_update_request_user_level_access_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_update_request_user_request_model.py b/test/test_update_request_user_request_model.py index a478f51..ba71eff 100644 --- a/test/test_update_request_user_request_model.py +++ b/test/test_update_request_user_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_user_level_access_api.py b/test/test_user_level_access_api.py index 2361c9c..f7b478e 100644 --- a/test/test_user_level_access_api.py +++ b/test/test_user_level_access_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestUserLevelAccessApi(unittest.TestCase): """UserLevelAccessApi unit test stubs""" def setUp(self): - self.api = UserLevelAccessApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.user_level_access_api.UserLevelAccessApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_user_level_access_request_model.py b/test/test_user_level_access_request_model.py index 930828a..a2c4b15 100644 --- a/test/test_user_level_access_request_model.py +++ b/test/test_user_level_access_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_user_level_access_response_model.py b/test/test_user_level_access_response_model.py index 231e4eb..6e3d28e 100644 --- a/test/test_user_level_access_response_model.py +++ b/test/test_user_level_access_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_user_request_model.py b/test/test_user_request_model.py index 275ac5b..3afc3e9 100644 --- a/test/test_user_request_model.py +++ b/test/test_user_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_user_response_model.py b/test/test_user_response_model.py index 1d1a45f..76b6c3e 100644 --- a/test/test_user_response_model.py +++ b/test/test_user_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_user_saml_provider_request_model.py b/test/test_user_saml_provider_request_model.py index 2ccf6e1..44b49aa 100644 --- a/test/test_user_saml_provider_request_model.py +++ b/test/test_user_saml_provider_request_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_user_saml_provider_response_model.py b/test/test_user_saml_provider_response_model.py index 385314b..b3584a1 100644 --- a/test/test_user_saml_provider_response_model.py +++ b/test/test_user_saml_provider_response_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest diff --git a/test/test_users_api.py b/test/test_users_api.py index 96b28dc..324eea9 100644 --- a/test/test_users_api.py +++ b/test/test_users_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest @@ -23,7 +24,7 @@ class TestUsersApi(unittest.TestCase): """UsersApi unit test stubs""" def setUp(self): - self.api = UsersApi() # noqa: E501 + self.api = cloudcheckr_cmx_client.api.users_api.UsersApi() # noqa: E501 def tearDown(self): pass diff --git a/test/test_verification_action_model.py b/test/test_verification_action_model.py index ecaca46..8906f82 100644 --- a/test/test_verification_action_model.py +++ b/test/test_verification_action_model.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import unittest From 9f278ba463e8de2eae9311723f76e235a4308ee2 Mon Sep 17 00:00:00 2001 From: Dan Klinger Date: Thu, 7 Mar 2024 14:23:34 -0500 Subject: [PATCH 2/4] new cc apis --- .../api/cost_queries__beta_release_api.py | 583 +++++++++++ cloudcheckr_cmx_client/api/dashboard_api.py | 906 ++++++++++++++++++ .../api/dashboard_data_api.py | 252 +++++ .../api/dimensions__beta_release_api.py | 615 ++++++++++++ .../api/map_to_payer_credentials_api.py | 143 +++ .../models/applicable_account_info.py | 125 +++ .../available_query_options_response_model.py | 237 +++++ ...asic_request_list_modification_provider.py | 163 ++++ .../models/cost_aggregation_data_point.py | 153 +++ ...ost_aggregation_download_response_model.py | 153 +++ .../models/cost_aggregation_response_model.py | 181 ++++ ...cost_aggregation_summary_response_model.py | 349 +++++++ .../models/cost_data_request_model.py | 329 +++++++ .../models/cost_data_response_model.py | 329 +++++++ .../cost_query_summary_response_model.py | 328 +++++++ cloudcheckr_cmx_client/models/costs.py | 209 ++++ .../models/create_cost_query_request_model.py | 293 ++++++ .../create_request_cost_data_request_model.py | 123 +++ ...request_create_cost_query_request_model.py | 123 +++ .../create_request_customer_request_model.py | 125 +++ ...e_request_dashboard_panel_request_model.py | 123 +++ .../create_request_dashboard_request_model.py | 123 +++ ...ate_request_discount_data_request_model.py | 123 +++ .../models/customer_plan_request_model.py | 153 +++ .../models/customer_request_model.py | 182 ++++ .../models/customer_update_request_model.py | 210 ++++ .../models/dashboard_auth_info.py | 153 +++ .../models/dashboard_common_response_model.py | 293 ++++++ .../models/dashboard_panel_request_model.py | 265 +++++ .../models/dashboard_panel_response_model.py | 293 ++++++ .../models/dashboard_request_model.py | 181 ++++ .../models/dashboard_response_model.py | 321 +++++++ .../models/data_set_info.py | 237 +++++ cloudcheckr_cmx_client/models/datapoint.py | 265 +++++ .../models/dimension_value.py | 175 ++++ .../models/discount_data_request_model.py | 301 ++++++ .../models/discount_data_response_model.py | 329 +++++++ .../models/grouping_option.py | 153 +++ .../models/landing_page_model.py | 160 ++++ .../map_to_payer_credential_request_model.py | 188 ++++ .../models/new_query_response_model.py | 188 ++++ ...esponse_dashboard_common_response_model.py | 149 +++ ...ination_response_tag_key_response_model.py | 149 +++ ...ation_response_tag_value_response_model.py | 149 +++ ...ion_with_count_response_dimension_value.py | 175 ++++ ...h_count_response_tag_key_response_model.py | 175 ++++ .../models/sized_grouping.py | 153 +++ .../models/sorting_option.py | 160 ++++ cloudcheckr_cmx_client/models/tag_key.py | 153 +++ .../models/tag_key_response_model.py | 125 +++ .../models/tag_value_response_model.py | 125 +++ cloudcheckr_cmx_client/models/time_period.py | 209 ++++ ...e_request_customer_update_request_model.py | 153 +++ ...e_request_dashboard_panel_request_model.py | 149 +++ .../update_request_dashboard_request_model.py | 149 +++ ...t_map_to_payer_credential_request_model.py | 153 +++ docs/ApplicableAccountInfo.md | 10 + docs/AvailableQueryOptionsResponseModel.md | 14 + docs/BasicRequestListModificationProvider.md | 11 + docs/CostAggregationDataPoint.md | 11 + docs/CostAggregationDownloadResponseModel.md | 11 + docs/CostAggregationResponseModel.md | 12 + docs/CostAggregationSummaryResponseModel.md | 18 + docs/CostDataRequestModel.md | 17 + docs/CostDataResponseModel.md | 17 + docs/CostQueriesBetaReleaseApi.md | 287 ++++++ docs/CostQuerySummaryResponseModel.md | 17 + docs/Costs.md | 13 + docs/CreateCostQueryRequestModel.md | 16 + docs/CreateRequestCostDataRequestModel.md | 10 + ...reateRequestCreateCostQueryRequestModel.md | 10 + docs/CreateRequestCustomerRequestModel.md | 10 + ...CreateRequestDashboardPanelRequestModel.md | 10 + docs/CreateRequestDashboardRequestModel.md | 10 + docs/CreateRequestDiscountDataRequestModel.md | 10 + docs/CustomerPlanRequestModel.md | 11 + docs/CustomerRequestModel.md | 12 + docs/CustomerUpdateRequestModel.md | 13 + docs/DashboardApi.md | 450 +++++++++ docs/DashboardAuthInfo.md | 11 + docs/DashboardCommonResponseModel.md | 16 + docs/DashboardDataApi.md | 118 +++ docs/DashboardPanelRequestModel.md | 15 + docs/DashboardPanelResponseModel.md | 16 + docs/DashboardRequestModel.md | 12 + docs/DashboardResponseModel.md | 17 + docs/DataSetInfo.md | 14 + docs/Datapoint.md | 15 + docs/DimensionValue.md | 12 + docs/DimensionsBetaReleaseApi.md | 308 ++++++ docs/DiscountDataRequestModel.md | 16 + docs/DiscountDataResponseModel.md | 17 + docs/GroupingOption.md | 11 + docs/LandingPageModel.md | 11 + docs/MapToPayerCredentialRequestModel.md | 12 + docs/MapToPayerCredentialsApi.md | 63 ++ docs/NewQueryResponseModel.md | 12 + ...ionResponseDashboardCommonResponseModel.md | 11 + docs/PaginationResponseTagKeyResponseModel.md | 11 + ...PaginationResponseTagValueResponseModel.md | 11 + ...ginationWithCountResponseDimensionValue.md | 12 + ...ionWithCountResponseTagKeyResponseModel.md | 12 + docs/SizedGrouping.md | 11 + docs/SortingOption.md | 11 + docs/TagKey.md | 11 + docs/TagKeyResponseModel.md | 10 + docs/TagValueResponseModel.md | 10 + docs/TimePeriod.md | 13 + ...UpdateRequestCustomerUpdateRequestModel.md | 11 + ...UpdateRequestDashboardPanelRequestModel.md | 11 + docs/UpdateRequestDashboardRequestModel.md | 11 + ...RequestMapToPayerCredentialRequestModel.md | 11 + test/test_applicable_account_info.py | 40 + ..._available_query_options_response_model.py | 40 + ...asic_request_list_modification_provider.py | 40 + test/test_cost_aggregation_data_point.py | 40 + ...ost_aggregation_download_response_model.py | 40 + test/test_cost_aggregation_response_model.py | 40 + ...cost_aggregation_summary_response_model.py | 40 + test/test_cost_data_request_model.py | 40 + test/test_cost_data_response_model.py | 40 + test/test_cost_queries__beta_release_api.py | 69 ++ .../test_cost_query_summary_response_model.py | 40 + test/test_costs.py | 40 + test/test_create_cost_query_request_model.py | 40 + ..._create_request_cost_data_request_model.py | 40 + ...request_create_cost_query_request_model.py | 40 + ...t_create_request_customer_request_model.py | 40 + ...e_request_dashboard_panel_request_model.py | 40 + ..._create_request_dashboard_request_model.py | 40 + ...ate_request_discount_data_request_model.py | 40 + test/test_customer_plan_request_model.py | 40 + test/test_customer_request_model.py | 40 + test/test_customer_update_request_model.py | 40 + test/test_dashboard_api.py | 90 ++ test/test_dashboard_auth_info.py | 40 + test/test_dashboard_common_response_model.py | 40 + test/test_dashboard_data_api.py | 48 + test/test_dashboard_panel_request_model.py | 40 + test/test_dashboard_panel_response_model.py | 40 + test/test_dashboard_request_model.py | 40 + test/test_dashboard_response_model.py | 40 + test/test_data_set_info.py | 40 + test/test_datapoint.py | 40 + test/test_dimension_value.py | 40 + test/test_dimensions__beta_release_api.py | 69 ++ test/test_discount_data_request_model.py | 40 + test/test_discount_data_response_model.py | 40 + test/test_grouping_option.py | 40 + test/test_landing_page_model.py | 40 + ...t_map_to_payer_credential_request_model.py | 40 + test/test_map_to_payer_credentials_api.py | 41 + test/test_new_query_response_model.py | 40 + ...esponse_dashboard_common_response_model.py | 40 + ...ination_response_tag_key_response_model.py | 40 + ...ation_response_tag_value_response_model.py | 40 + ...ion_with_count_response_dimension_value.py | 40 + ...h_count_response_tag_key_response_model.py | 40 + test/test_sized_grouping.py | 40 + test/test_sorting_option.py | 40 + test/test_tag_key.py | 40 + test/test_tag_key_response_model.py | 40 + test/test_tag_value_response_model.py | 40 + test/test_time_period.py | 40 + ...e_request_customer_update_request_model.py | 40 + ...e_request_dashboard_panel_request_model.py | 40 + ..._update_request_dashboard_request_model.py | 40 + ...t_map_to_payer_credential_request_model.py | 40 + 168 files changed, 16681 insertions(+) create mode 100644 cloudcheckr_cmx_client/api/cost_queries__beta_release_api.py create mode 100644 cloudcheckr_cmx_client/api/dashboard_api.py create mode 100644 cloudcheckr_cmx_client/api/dashboard_data_api.py create mode 100644 cloudcheckr_cmx_client/api/dimensions__beta_release_api.py create mode 100644 cloudcheckr_cmx_client/api/map_to_payer_credentials_api.py create mode 100644 cloudcheckr_cmx_client/models/applicable_account_info.py create mode 100644 cloudcheckr_cmx_client/models/available_query_options_response_model.py create mode 100644 cloudcheckr_cmx_client/models/basic_request_list_modification_provider.py create mode 100644 cloudcheckr_cmx_client/models/cost_aggregation_data_point.py create mode 100644 cloudcheckr_cmx_client/models/cost_aggregation_download_response_model.py create mode 100644 cloudcheckr_cmx_client/models/cost_aggregation_response_model.py create mode 100644 cloudcheckr_cmx_client/models/cost_aggregation_summary_response_model.py create mode 100644 cloudcheckr_cmx_client/models/cost_data_request_model.py create mode 100644 cloudcheckr_cmx_client/models/cost_data_response_model.py create mode 100644 cloudcheckr_cmx_client/models/cost_query_summary_response_model.py create mode 100644 cloudcheckr_cmx_client/models/costs.py create mode 100644 cloudcheckr_cmx_client/models/create_cost_query_request_model.py create mode 100644 cloudcheckr_cmx_client/models/create_request_cost_data_request_model.py create mode 100644 cloudcheckr_cmx_client/models/create_request_create_cost_query_request_model.py create mode 100644 cloudcheckr_cmx_client/models/create_request_customer_request_model.py create mode 100644 cloudcheckr_cmx_client/models/create_request_dashboard_panel_request_model.py create mode 100644 cloudcheckr_cmx_client/models/create_request_dashboard_request_model.py create mode 100644 cloudcheckr_cmx_client/models/create_request_discount_data_request_model.py create mode 100644 cloudcheckr_cmx_client/models/customer_plan_request_model.py create mode 100644 cloudcheckr_cmx_client/models/customer_request_model.py create mode 100644 cloudcheckr_cmx_client/models/customer_update_request_model.py create mode 100644 cloudcheckr_cmx_client/models/dashboard_auth_info.py create mode 100644 cloudcheckr_cmx_client/models/dashboard_common_response_model.py create mode 100644 cloudcheckr_cmx_client/models/dashboard_panel_request_model.py create mode 100644 cloudcheckr_cmx_client/models/dashboard_panel_response_model.py create mode 100644 cloudcheckr_cmx_client/models/dashboard_request_model.py create mode 100644 cloudcheckr_cmx_client/models/dashboard_response_model.py create mode 100644 cloudcheckr_cmx_client/models/data_set_info.py create mode 100644 cloudcheckr_cmx_client/models/datapoint.py create mode 100644 cloudcheckr_cmx_client/models/dimension_value.py create mode 100644 cloudcheckr_cmx_client/models/discount_data_request_model.py create mode 100644 cloudcheckr_cmx_client/models/discount_data_response_model.py create mode 100644 cloudcheckr_cmx_client/models/grouping_option.py create mode 100644 cloudcheckr_cmx_client/models/landing_page_model.py create mode 100644 cloudcheckr_cmx_client/models/map_to_payer_credential_request_model.py create mode 100644 cloudcheckr_cmx_client/models/new_query_response_model.py create mode 100644 cloudcheckr_cmx_client/models/pagination_response_dashboard_common_response_model.py create mode 100644 cloudcheckr_cmx_client/models/pagination_response_tag_key_response_model.py create mode 100644 cloudcheckr_cmx_client/models/pagination_response_tag_value_response_model.py create mode 100644 cloudcheckr_cmx_client/models/pagination_with_count_response_dimension_value.py create mode 100644 cloudcheckr_cmx_client/models/pagination_with_count_response_tag_key_response_model.py create mode 100644 cloudcheckr_cmx_client/models/sized_grouping.py create mode 100644 cloudcheckr_cmx_client/models/sorting_option.py create mode 100644 cloudcheckr_cmx_client/models/tag_key.py create mode 100644 cloudcheckr_cmx_client/models/tag_key_response_model.py create mode 100644 cloudcheckr_cmx_client/models/tag_value_response_model.py create mode 100644 cloudcheckr_cmx_client/models/time_period.py create mode 100644 cloudcheckr_cmx_client/models/update_request_customer_update_request_model.py create mode 100644 cloudcheckr_cmx_client/models/update_request_dashboard_panel_request_model.py create mode 100644 cloudcheckr_cmx_client/models/update_request_dashboard_request_model.py create mode 100644 cloudcheckr_cmx_client/models/update_request_map_to_payer_credential_request_model.py create mode 100644 docs/ApplicableAccountInfo.md create mode 100644 docs/AvailableQueryOptionsResponseModel.md create mode 100644 docs/BasicRequestListModificationProvider.md create mode 100644 docs/CostAggregationDataPoint.md create mode 100644 docs/CostAggregationDownloadResponseModel.md create mode 100644 docs/CostAggregationResponseModel.md create mode 100644 docs/CostAggregationSummaryResponseModel.md create mode 100644 docs/CostDataRequestModel.md create mode 100644 docs/CostDataResponseModel.md create mode 100644 docs/CostQueriesBetaReleaseApi.md create mode 100644 docs/CostQuerySummaryResponseModel.md create mode 100644 docs/Costs.md create mode 100644 docs/CreateCostQueryRequestModel.md create mode 100644 docs/CreateRequestCostDataRequestModel.md create mode 100644 docs/CreateRequestCreateCostQueryRequestModel.md create mode 100644 docs/CreateRequestCustomerRequestModel.md create mode 100644 docs/CreateRequestDashboardPanelRequestModel.md create mode 100644 docs/CreateRequestDashboardRequestModel.md create mode 100644 docs/CreateRequestDiscountDataRequestModel.md create mode 100644 docs/CustomerPlanRequestModel.md create mode 100644 docs/CustomerRequestModel.md create mode 100644 docs/CustomerUpdateRequestModel.md create mode 100644 docs/DashboardApi.md create mode 100644 docs/DashboardAuthInfo.md create mode 100644 docs/DashboardCommonResponseModel.md create mode 100644 docs/DashboardDataApi.md create mode 100644 docs/DashboardPanelRequestModel.md create mode 100644 docs/DashboardPanelResponseModel.md create mode 100644 docs/DashboardRequestModel.md create mode 100644 docs/DashboardResponseModel.md create mode 100644 docs/DataSetInfo.md create mode 100644 docs/Datapoint.md create mode 100644 docs/DimensionValue.md create mode 100644 docs/DimensionsBetaReleaseApi.md create mode 100644 docs/DiscountDataRequestModel.md create mode 100644 docs/DiscountDataResponseModel.md create mode 100644 docs/GroupingOption.md create mode 100644 docs/LandingPageModel.md create mode 100644 docs/MapToPayerCredentialRequestModel.md create mode 100644 docs/MapToPayerCredentialsApi.md create mode 100644 docs/NewQueryResponseModel.md create mode 100644 docs/PaginationResponseDashboardCommonResponseModel.md create mode 100644 docs/PaginationResponseTagKeyResponseModel.md create mode 100644 docs/PaginationResponseTagValueResponseModel.md create mode 100644 docs/PaginationWithCountResponseDimensionValue.md create mode 100644 docs/PaginationWithCountResponseTagKeyResponseModel.md create mode 100644 docs/SizedGrouping.md create mode 100644 docs/SortingOption.md create mode 100644 docs/TagKey.md create mode 100644 docs/TagKeyResponseModel.md create mode 100644 docs/TagValueResponseModel.md create mode 100644 docs/TimePeriod.md create mode 100644 docs/UpdateRequestCustomerUpdateRequestModel.md create mode 100644 docs/UpdateRequestDashboardPanelRequestModel.md create mode 100644 docs/UpdateRequestDashboardRequestModel.md create mode 100644 docs/UpdateRequestMapToPayerCredentialRequestModel.md create mode 100644 test/test_applicable_account_info.py create mode 100644 test/test_available_query_options_response_model.py create mode 100644 test/test_basic_request_list_modification_provider.py create mode 100644 test/test_cost_aggregation_data_point.py create mode 100644 test/test_cost_aggregation_download_response_model.py create mode 100644 test/test_cost_aggregation_response_model.py create mode 100644 test/test_cost_aggregation_summary_response_model.py create mode 100644 test/test_cost_data_request_model.py create mode 100644 test/test_cost_data_response_model.py create mode 100644 test/test_cost_queries__beta_release_api.py create mode 100644 test/test_cost_query_summary_response_model.py create mode 100644 test/test_costs.py create mode 100644 test/test_create_cost_query_request_model.py create mode 100644 test/test_create_request_cost_data_request_model.py create mode 100644 test/test_create_request_create_cost_query_request_model.py create mode 100644 test/test_create_request_customer_request_model.py create mode 100644 test/test_create_request_dashboard_panel_request_model.py create mode 100644 test/test_create_request_dashboard_request_model.py create mode 100644 test/test_create_request_discount_data_request_model.py create mode 100644 test/test_customer_plan_request_model.py create mode 100644 test/test_customer_request_model.py create mode 100644 test/test_customer_update_request_model.py create mode 100644 test/test_dashboard_api.py create mode 100644 test/test_dashboard_auth_info.py create mode 100644 test/test_dashboard_common_response_model.py create mode 100644 test/test_dashboard_data_api.py create mode 100644 test/test_dashboard_panel_request_model.py create mode 100644 test/test_dashboard_panel_response_model.py create mode 100644 test/test_dashboard_request_model.py create mode 100644 test/test_dashboard_response_model.py create mode 100644 test/test_data_set_info.py create mode 100644 test/test_datapoint.py create mode 100644 test/test_dimension_value.py create mode 100644 test/test_dimensions__beta_release_api.py create mode 100644 test/test_discount_data_request_model.py create mode 100644 test/test_discount_data_response_model.py create mode 100644 test/test_grouping_option.py create mode 100644 test/test_landing_page_model.py create mode 100644 test/test_map_to_payer_credential_request_model.py create mode 100644 test/test_map_to_payer_credentials_api.py create mode 100644 test/test_new_query_response_model.py create mode 100644 test/test_pagination_response_dashboard_common_response_model.py create mode 100644 test/test_pagination_response_tag_key_response_model.py create mode 100644 test/test_pagination_response_tag_value_response_model.py create mode 100644 test/test_pagination_with_count_response_dimension_value.py create mode 100644 test/test_pagination_with_count_response_tag_key_response_model.py create mode 100644 test/test_sized_grouping.py create mode 100644 test/test_sorting_option.py create mode 100644 test/test_tag_key.py create mode 100644 test/test_tag_key_response_model.py create mode 100644 test/test_tag_value_response_model.py create mode 100644 test/test_time_period.py create mode 100644 test/test_update_request_customer_update_request_model.py create mode 100644 test/test_update_request_dashboard_panel_request_model.py create mode 100644 test/test_update_request_dashboard_request_model.py create mode 100644 test/test_update_request_map_to_payer_credential_request_model.py diff --git a/cloudcheckr_cmx_client/api/cost_queries__beta_release_api.py b/cloudcheckr_cmx_client/api/cost_queries__beta_release_api.py new file mode 100644 index 0000000..449c339 --- /dev/null +++ b/cloudcheckr_cmx_client/api/cost_queries__beta_release_api.py @@ -0,0 +1,583 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudcheckr_cmx_client.api_client import ApiClient + + +class CostQueriesBetaReleaseApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_available_query_options(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get available query options for a specific account. This includes information such as first / last month with data, properties that can be used for grouping, etc. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_query_options(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :return: AvailableQueryOptionsResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_available_query_options_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + else: + (data) = self.get_available_query_options_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + return data + + def get_available_query_options_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get available query options for a specific account. This includes information such as first / last month with data, properties that can be used for grouping, etc. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_query_options_with_http_info(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :return: AvailableQueryOptionsResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_available_query_options" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_available_query_options`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_available_query_options`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/options', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AvailableQueryOptionsResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cost_query_results(self, customer_id, account_id, cost_query_id, **kwargs): # noqa: E501 + """Get the results of a completed cost query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_query_results(customer_id, account_id, cost_query_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str cost_query_id: (required) + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: CostAggregationResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_query_results_with_http_info(customer_id, account_id, cost_query_id, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_query_results_with_http_info(customer_id, account_id, cost_query_id, **kwargs) # noqa: E501 + return data + + def get_cost_query_results_with_http_info(self, customer_id, account_id, cost_query_id, **kwargs): # noqa: E501 + """Get the results of a completed cost query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_query_results_with_http_info(customer_id, account_id, cost_query_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str cost_query_id: (required) + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: CostAggregationResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'cost_query_id', 'page_size', 'pagination_key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_query_results" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_query_results`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_cost_query_results`") # noqa: E501 + # verify the required parameter 'cost_query_id' is set + if self.api_client.client_side_validation and ('cost_query_id' not in params or + params['cost_query_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `cost_query_id` when calling `get_cost_query_results`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + if 'cost_query_id' in params: + path_params['costQueryId'] = params['cost_query_id'] # noqa: E501 + + query_params = [] + if 'page_size' in params: + query_params.append(('$pageSize', params['page_size'])) # noqa: E501 + if 'pagination_key' in params: + query_params.append(('$paginationKey', params['pagination_key'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId}/results', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CostAggregationResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cost_query_results_download_link(self, customer_id, account_id, cost_query_id, **kwargs): # noqa: E501 + """Get a download link for the results of a completed query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_query_results_download_link(customer_id, account_id, cost_query_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str cost_query_id: (required) + :param bool include_content_type: If true, sets the expected 'content-type' request header to 'text/plain'. + :return: CostAggregationDownloadResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_query_results_download_link_with_http_info(customer_id, account_id, cost_query_id, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_query_results_download_link_with_http_info(customer_id, account_id, cost_query_id, **kwargs) # noqa: E501 + return data + + def get_cost_query_results_download_link_with_http_info(self, customer_id, account_id, cost_query_id, **kwargs): # noqa: E501 + """Get a download link for the results of a completed query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_query_results_download_link_with_http_info(customer_id, account_id, cost_query_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str cost_query_id: (required) + :param bool include_content_type: If true, sets the expected 'content-type' request header to 'text/plain'. + :return: CostAggregationDownloadResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'cost_query_id', 'include_content_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_query_results_download_link" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_query_results_download_link`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_cost_query_results_download_link`") # noqa: E501 + # verify the required parameter 'cost_query_id' is set + if self.api_client.client_side_validation and ('cost_query_id' not in params or + params['cost_query_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `cost_query_id` when calling `get_cost_query_results_download_link`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + if 'cost_query_id' in params: + path_params['costQueryId'] = params['cost_query_id'] # noqa: E501 + + query_params = [] + if 'include_content_type' in params: + query_params.append(('includeContentType', params['include_content_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId}/download-link', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CostAggregationDownloadResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cost_query_summary(self, customer_id, account_id, cost_query_id, **kwargs): # noqa: E501 + """Get status information about a cost query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_query_summary(customer_id, account_id, cost_query_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str cost_query_id: (required) + :return: CostQuerySummaryResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_query_summary_with_http_info(customer_id, account_id, cost_query_id, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_query_summary_with_http_info(customer_id, account_id, cost_query_id, **kwargs) # noqa: E501 + return data + + def get_cost_query_summary_with_http_info(self, customer_id, account_id, cost_query_id, **kwargs): # noqa: E501 + """Get status information about a cost query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_query_summary_with_http_info(customer_id, account_id, cost_query_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str cost_query_id: (required) + :return: CostQuerySummaryResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'cost_query_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_query_summary" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_query_summary`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_cost_query_summary`") # noqa: E501 + # verify the required parameter 'cost_query_id' is set + if self.api_client.client_side_validation and ('cost_query_id' not in params or + params['cost_query_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `cost_query_id` when calling `get_cost_query_summary`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + if 'cost_query_id' in params: + path_params['costQueryId'] = params['cost_query_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CostQuerySummaryResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def start_query(self, customer_id, account_id, **kwargs): # noqa: E501 + """Create / start a new cost query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.start_query(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestCreateCostQueryRequestModel request: + :return: NewQueryResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.start_query_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + else: + (data) = self.start_query_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + return data + + def start_query_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Create / start a new cost query. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.start_query_with_http_info(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestCreateCostQueryRequestModel request: + :return: NewQueryResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method start_query" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `start_query`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `start_query`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NewQueryResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudcheckr_cmx_client/api/dashboard_api.py b/cloudcheckr_cmx_client/api/dashboard_api.py new file mode 100644 index 0000000..aeeaeb5 --- /dev/null +++ b/cloudcheckr_cmx_client/api/dashboard_api.py @@ -0,0 +1,906 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudcheckr_cmx_client.api_client import ApiClient + + +class DashboardApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_dashboard(self, customer_id, **kwargs): # noqa: E501 + """Create a dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_dashboard(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param CreateRequestDashboardRequestModel request: + :return: DashboardResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_dashboard_with_http_info(customer_id, **kwargs) # noqa: E501 + else: + (data) = self.create_dashboard_with_http_info(customer_id, **kwargs) # noqa: E501 + return data + + def create_dashboard_with_http_info(self, customer_id, **kwargs): # noqa: E501 + """Create a dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_dashboard_with_http_info(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param CreateRequestDashboardRequestModel request: + :return: DashboardResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_dashboard" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `create_dashboard`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/dashboard-configs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DashboardResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_panel(self, customer_id, dashboard_id, **kwargs): # noqa: E501 + """Create the given panel. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_panel(customer_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param CreateRequestDashboardPanelRequestModel request: + :return: DashboardPanelResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_panel_with_http_info(customer_id, dashboard_id, **kwargs) # noqa: E501 + else: + (data) = self.create_panel_with_http_info(customer_id, dashboard_id, **kwargs) # noqa: E501 + return data + + def create_panel_with_http_info(self, customer_id, dashboard_id, **kwargs): # noqa: E501 + """Create the given panel. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_panel_with_http_info(customer_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param CreateRequestDashboardPanelRequestModel request: + :return: DashboardPanelResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'dashboard_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_panel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `create_panel`") # noqa: E501 + # verify the required parameter 'dashboard_id' is set + if self.api_client.client_side_validation and ('dashboard_id' not in params or + params['dashboard_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `dashboard_id` when calling `create_panel`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'dashboard_id' in params: + path_params['dashboardId'] = params['dashboard_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DashboardPanelResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_dashboard(self, customer_id, dashboard_id, **kwargs): # noqa: E501 + """Delete a dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_dashboard(customer_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_dashboard_with_http_info(customer_id, dashboard_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_dashboard_with_http_info(customer_id, dashboard_id, **kwargs) # noqa: E501 + return data + + def delete_dashboard_with_http_info(self, customer_id, dashboard_id, **kwargs): # noqa: E501 + """Delete a dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_dashboard_with_http_info(customer_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'dashboard_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_dashboard" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `delete_dashboard`") # noqa: E501 + # verify the required parameter 'dashboard_id' is set + if self.api_client.client_side_validation and ('dashboard_id' not in params or + params['dashboard_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `dashboard_id` when calling `delete_dashboard`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'dashboard_id' in params: + path_params['dashboardId'] = params['dashboard_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_panel(self, customer_id, dashboard_id, panel_id, **kwargs): # noqa: E501 + """Delete the given panel. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_panel(customer_id, dashboard_id, panel_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param str panel_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_panel_with_http_info(customer_id, dashboard_id, panel_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_panel_with_http_info(customer_id, dashboard_id, panel_id, **kwargs) # noqa: E501 + return data + + def delete_panel_with_http_info(self, customer_id, dashboard_id, panel_id, **kwargs): # noqa: E501 + """Delete the given panel. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_panel_with_http_info(customer_id, dashboard_id, panel_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param str panel_id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'dashboard_id', 'panel_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_panel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `delete_panel`") # noqa: E501 + # verify the required parameter 'dashboard_id' is set + if self.api_client.client_side_validation and ('dashboard_id' not in params or + params['dashboard_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `dashboard_id` when calling `delete_panel`") # noqa: E501 + # verify the required parameter 'panel_id' is set + if self.api_client.client_side_validation and ('panel_id' not in params or + params['panel_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `panel_id` when calling `delete_panel`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'dashboard_id' in params: + path_params['dashboardId'] = params['dashboard_id'] # noqa: E501 + if 'panel_id' in params: + path_params['panelId'] = params['panel_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels/{panelId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_dashboard(self, customer_id, account_id, dashboard_id, **kwargs): # noqa: E501 + """Get dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_dashboard(customer_id, account_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str dashboard_id: (required) + :return: DashboardResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_dashboard_with_http_info(customer_id, account_id, dashboard_id, **kwargs) # noqa: E501 + else: + (data) = self.get_dashboard_with_http_info(customer_id, account_id, dashboard_id, **kwargs) # noqa: E501 + return data + + def get_dashboard_with_http_info(self, customer_id, account_id, dashboard_id, **kwargs): # noqa: E501 + """Get dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_dashboard_with_http_info(customer_id, account_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str dashboard_id: (required) + :return: DashboardResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'dashboard_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_dashboard" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_dashboard`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_dashboard`") # noqa: E501 + # verify the required parameter 'dashboard_id' is set + if self.api_client.client_side_validation and ('dashboard_id' not in params or + params['dashboard_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `dashboard_id` when calling `get_dashboard`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + if 'dashboard_id' in params: + path_params['dashboardId'] = params['dashboard_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/accounts/{accountId}/dashboards/{dashboardId}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DashboardResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_dashboards(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get all dashboards. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_dashboards(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str search: finds all resources that match the specified value + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :param str order_by: orders a given property + :return: PaginationResponseDashboardCommonResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_dashboards_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + else: + (data) = self.list_dashboards_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + return data + + def list_dashboards_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get all dashboards. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_dashboards_with_http_info(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str search: finds all resources that match the specified value + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :param str order_by: orders a given property + :return: PaginationResponseDashboardCommonResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'search', 'page_size', 'pagination_key', 'order_by'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_dashboards" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `list_dashboards`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `list_dashboards`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + + query_params = [] + if 'search' in params: + query_params.append(('search', params['search'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('$pageSize', params['page_size'])) # noqa: E501 + if 'pagination_key' in params: + query_params.append(('$paginationKey', params['pagination_key'])) # noqa: E501 + if 'order_by' in params: + query_params.append(('$orderBy', params['order_by'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/accounts/{accountId}/dashboards', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PaginationResponseDashboardCommonResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_dashboard(self, customer_id, dashboard_id, **kwargs): # noqa: E501 + """Update a dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_dashboard(customer_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param UpdateRequestDashboardRequestModel request: + :return: DashboardResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_dashboard_with_http_info(customer_id, dashboard_id, **kwargs) # noqa: E501 + else: + (data) = self.update_dashboard_with_http_info(customer_id, dashboard_id, **kwargs) # noqa: E501 + return data + + def update_dashboard_with_http_info(self, customer_id, dashboard_id, **kwargs): # noqa: E501 + """Update a dashboard. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_dashboard_with_http_info(customer_id, dashboard_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param UpdateRequestDashboardRequestModel request: + :return: DashboardResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'dashboard_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_dashboard" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `update_dashboard`") # noqa: E501 + # verify the required parameter 'dashboard_id' is set + if self.api_client.client_side_validation and ('dashboard_id' not in params or + params['dashboard_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `dashboard_id` when calling `update_dashboard`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'dashboard_id' in params: + path_params['dashboardId'] = params['dashboard_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DashboardResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_panel(self, customer_id, dashboard_id, panel_id, **kwargs): # noqa: E501 + """Add or update the given panel. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_panel(customer_id, dashboard_id, panel_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param str panel_id: (required) + :param UpdateRequestDashboardPanelRequestModel request: + :return: DashboardPanelResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_panel_with_http_info(customer_id, dashboard_id, panel_id, **kwargs) # noqa: E501 + else: + (data) = self.update_panel_with_http_info(customer_id, dashboard_id, panel_id, **kwargs) # noqa: E501 + return data + + def update_panel_with_http_info(self, customer_id, dashboard_id, panel_id, **kwargs): # noqa: E501 + """Add or update the given panel. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_panel_with_http_info(customer_id, dashboard_id, panel_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str dashboard_id: (required) + :param str panel_id: (required) + :param UpdateRequestDashboardPanelRequestModel request: + :return: DashboardPanelResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'dashboard_id', 'panel_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_panel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `update_panel`") # noqa: E501 + # verify the required parameter 'dashboard_id' is set + if self.api_client.client_side_validation and ('dashboard_id' not in params or + params['dashboard_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `dashboard_id` when calling `update_panel`") # noqa: E501 + # verify the required parameter 'panel_id' is set + if self.api_client.client_side_validation and ('panel_id' not in params or + params['panel_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `panel_id` when calling `update_panel`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'dashboard_id' in params: + path_params['dashboardId'] = params['dashboard_id'] # noqa: E501 + if 'panel_id' in params: + path_params['panelId'] = params['panel_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels/{panelId}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DashboardPanelResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudcheckr_cmx_client/api/dashboard_data_api.py b/cloudcheckr_cmx_client/api/dashboard_data_api.py new file mode 100644 index 0000000..91ca6ae --- /dev/null +++ b/cloudcheckr_cmx_client/api/dashboard_data_api.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudcheckr_cmx_client.api_client import ApiClient + + +class DashboardDataApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_cost_data(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get data points for a cost data set. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_data(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestCostDataRequestModel request: + :return: CostDataResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_data_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_data_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + return data + + def get_cost_data_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get data points for a cost data set. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_data_with_http_info(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestCostDataRequestModel request: + :return: CostDataResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_data`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_cost_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/accounts/{accountId}/data/cost', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CostDataResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_discount_data(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get data points for a discount data set. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_discount_data(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestDiscountDataRequestModel request: + :return: DiscountDataResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_discount_data_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + else: + (data) = self.get_discount_data_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + return data + + def get_discount_data_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get data points for a discount data set. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_discount_data_with_http_info(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param CreateRequestDiscountDataRequestModel request: + :return: DiscountDataResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_discount_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_discount_data`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_discount_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/dashboard/v1/customers/{customerId}/accounts/{accountId}/data/discount', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DiscountDataResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudcheckr_cmx_client/api/dimensions__beta_release_api.py b/cloudcheckr_cmx_client/api/dimensions__beta_release_api.py new file mode 100644 index 0000000..eadd679 --- /dev/null +++ b/cloudcheckr_cmx_client/api/dimensions__beta_release_api.py @@ -0,0 +1,615 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudcheckr_cmx_client.api_client import ApiClient + + +class DimensionsBetaReleaseApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_cost_tag_keys_for_account(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get cost tag keys for an account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_keys_for_account(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationWithCountResponseTagKeyResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_tag_keys_for_account_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_tag_keys_for_account_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + return data + + def get_cost_tag_keys_for_account_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Get cost tag keys for an account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_keys_for_account_with_http_info(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationWithCountResponseTagKeyResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'must_have_been_used_since', 'page_size', 'pagination_key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_tag_keys_for_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_tag_keys_for_account`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_cost_tag_keys_for_account`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + + query_params = [] + if 'must_have_been_used_since' in params: + query_params.append(('mustHaveBeenUsedSince', params['must_have_been_used_since'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('$pageSize', params['page_size'])) # noqa: E501 + if 'pagination_key' in params: + query_params.append(('$paginationKey', params['pagination_key'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-tags', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PaginationWithCountResponseTagKeyResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cost_tag_keys_for_customer(self, customer_id, **kwargs): # noqa: E501 + """Retrieve tag keys for all accounts of a customer # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_keys_for_customer(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str search: + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationResponseTagKeyResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_tag_keys_for_customer_with_http_info(customer_id, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_tag_keys_for_customer_with_http_info(customer_id, **kwargs) # noqa: E501 + return data + + def get_cost_tag_keys_for_customer_with_http_info(self, customer_id, **kwargs): # noqa: E501 + """Retrieve tag keys for all accounts of a customer # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_keys_for_customer_with_http_info(customer_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str search: + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationResponseTagKeyResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'search', 'must_have_been_used_since', 'page_size', 'pagination_key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_tag_keys_for_customer" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_tag_keys_for_customer`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + + query_params = [] + if 'search' in params: + query_params.append(('search', params['search'])) # noqa: E501 + if 'must_have_been_used_since' in params: + query_params.append(('mustHaveBeenUsedSince', params['must_have_been_used_since'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('$pageSize', params['page_size'])) # noqa: E501 + if 'pagination_key' in params: + query_params.append(('$paginationKey', params['pagination_key'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/cost-tags', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PaginationResponseTagKeyResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cost_tag_values_for_account(self, customer_id, account_id, tag_key, **kwargs): # noqa: E501 + """Get cost tag values for an account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_values_for_account(customer_id, account_id, tag_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str tag_key: (required) + :param str search: + :param datetime must_have_been_used_since: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_tag_values_for_account_with_http_info(customer_id, account_id, tag_key, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_tag_values_for_account_with_http_info(customer_id, account_id, tag_key, **kwargs) # noqa: E501 + return data + + def get_cost_tag_values_for_account_with_http_info(self, customer_id, account_id, tag_key, **kwargs): # noqa: E501 + """Get cost tag values for an account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_values_for_account_with_http_info(customer_id, account_id, tag_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str tag_key: (required) + :param str search: + :param datetime must_have_been_used_since: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'tag_key', 'search', 'must_have_been_used_since'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_tag_values_for_account" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_tag_values_for_account`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_cost_tag_values_for_account`") # noqa: E501 + # verify the required parameter 'tag_key' is set + if self.api_client.client_side_validation and ('tag_key' not in params or + params['tag_key'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `tag_key` when calling `get_cost_tag_values_for_account`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + if 'tag_key' in params: + path_params['tagKey'] = params['tag_key'] # noqa: E501 + + query_params = [] + if 'search' in params: + query_params.append(('search', params['search'])) # noqa: E501 + if 'must_have_been_used_since' in params: + query_params.append(('mustHaveBeenUsedSince', params['must_have_been_used_since'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-tags/{tagKey}/values', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cost_tag_values_for_customer(self, customer_id, tag_key, **kwargs): # noqa: E501 + """Retrieve values for a specific tag key, for all accounts of a customer # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_values_for_customer(customer_id, tag_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str tag_key: (required) + :param str search: + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationResponseTagValueResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_cost_tag_values_for_customer_with_http_info(customer_id, tag_key, **kwargs) # noqa: E501 + else: + (data) = self.get_cost_tag_values_for_customer_with_http_info(customer_id, tag_key, **kwargs) # noqa: E501 + return data + + def get_cost_tag_values_for_customer_with_http_info(self, customer_id, tag_key, **kwargs): # noqa: E501 + """Retrieve values for a specific tag key, for all accounts of a customer # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_cost_tag_values_for_customer_with_http_info(customer_id, tag_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str tag_key: (required) + :param str search: + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationResponseTagValueResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'tag_key', 'search', 'must_have_been_used_since', 'page_size', 'pagination_key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cost_tag_values_for_customer" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_cost_tag_values_for_customer`") # noqa: E501 + # verify the required parameter 'tag_key' is set + if self.api_client.client_side_validation and ('tag_key' not in params or + params['tag_key'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `tag_key` when calling `get_cost_tag_values_for_customer`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'tag_key' in params: + path_params['tagKey'] = params['tag_key'] # noqa: E501 + + query_params = [] + if 'search' in params: + query_params.append(('search', params['search'])) # noqa: E501 + if 'must_have_been_used_since' in params: + query_params.append(('mustHaveBeenUsedSince', params['must_have_been_used_since'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('$pageSize', params['page_size'])) # noqa: E501 + if 'pagination_key' in params: + query_params.append(('$paginationKey', params['pagination_key'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/cost-tags/{tagKey}/values', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PaginationResponseTagValueResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_values(self, customer_id, account_id, dimension_name, **kwargs): # noqa: E501 + """Get valid values for the specified dimension. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_values(customer_id, account_id, dimension_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str dimension_name: (required) + :param str search: Finds resources that match the specified value + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationWithCountResponseDimensionValue + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_values_with_http_info(customer_id, account_id, dimension_name, **kwargs) # noqa: E501 + else: + (data) = self.get_values_with_http_info(customer_id, account_id, dimension_name, **kwargs) # noqa: E501 + return data + + def get_values_with_http_info(self, customer_id, account_id, dimension_name, **kwargs): # noqa: E501 + """Get valid values for the specified dimension. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_values_with_http_info(customer_id, account_id, dimension_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param str dimension_name: (required) + :param str search: Finds resources that match the specified value + :param datetime must_have_been_used_since: + :param int page_size: number of items to include in the response + :param str pagination_key: key used to fetch the next page of items + :return: PaginationWithCountResponseDimensionValue + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'dimension_name', 'search', 'must_have_been_used_since', 'page_size', 'pagination_key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_values" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `get_values`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `get_values`") # noqa: E501 + # verify the required parameter 'dimension_name' is set + if self.api_client.client_side_validation and ('dimension_name' not in params or + params['dimension_name'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `dimension_name` when calling `get_values`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + if 'dimension_name' in params: + path_params['dimensionName'] = params['dimension_name'] # noqa: E501 + + query_params = [] + if 'search' in params: + query_params.append(('search', params['search'])) # noqa: E501 + if 'must_have_been_used_since' in params: + query_params.append(('mustHaveBeenUsedSince', params['must_have_been_used_since'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('$pageSize', params['page_size'])) # noqa: E501 + if 'pagination_key' in params: + query_params.append(('$paginationKey', params['pagination_key'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/cost/query/v1/customers/{customerId}/accounts/{accountId}/dimensions/{dimensionName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PaginationWithCountResponseDimensionValue', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudcheckr_cmx_client/api/map_to_payer_credentials_api.py b/cloudcheckr_cmx_client/api/map_to_payer_credentials_api.py new file mode 100644 index 0000000..9dc7b44 --- /dev/null +++ b/cloudcheckr_cmx_client/api/map_to_payer_credentials_api.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudcheckr_cmx_client.api_client import ApiClient + + +class MapToPayerCredentialsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def modify_map_to_payer_credentials(self, customer_id, account_id, **kwargs): # noqa: E501 + """Modify the credentials on the account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_map_to_payer_credentials(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestMapToPayerCredentialRequestModel request: + :return: CredentialResponseModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.modify_map_to_payer_credentials_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + else: + (data) = self.modify_map_to_payer_credentials_with_http_info(customer_id, account_id, **kwargs) # noqa: E501 + return data + + def modify_map_to_payer_credentials_with_http_info(self, customer_id, account_id, **kwargs): # noqa: E501 + """Modify the credentials on the account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_map_to_payer_credentials_with_http_info(customer_id, account_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str customer_id: (required) + :param str account_id: (required) + :param UpdateRequestMapToPayerCredentialRequestModel request: + :return: CredentialResponseModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['customer_id', 'account_id', 'request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method modify_map_to_payer_credentials" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'customer_id' is set + if self.api_client.client_side_validation and ('customer_id' not in params or + params['customer_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `customer_id` when calling `modify_map_to_payer_credentials`") # noqa: E501 + # verify the required parameter 'account_id' is set + if self.api_client.client_side_validation and ('account_id' not in params or + params['account_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `account_id` when calling `modify_map_to_payer_credentials`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'customer_id' in params: + path_params['customerId'] = params['customer_id'] # noqa: E501 + if 'account_id' in params: + path_params['accountId'] = params['account_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request' in params: + body_params = params['request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = ['oauth'] # noqa: E501 + + return self.api_client.call_api( + '/credential/v1/customers/{customerId}/accounts/{accountId}/credentials/map-to-payer', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CredentialResponseModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/cloudcheckr_cmx_client/models/applicable_account_info.py b/cloudcheckr_cmx_client/models/applicable_account_info.py new file mode 100644 index 0000000..de188ad --- /dev/null +++ b/cloudcheckr_cmx_client/models/applicable_account_info.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class ApplicableAccountInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None, _configuration=None): # noqa: E501 + """ApplicableAccountInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this ApplicableAccountInfo. # noqa: E501 + + The applicable account's ID. # noqa: E501 + + :return: The id of this ApplicableAccountInfo. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApplicableAccountInfo. + + The applicable account's ID. # noqa: E501 + + :param id: The id of this ApplicableAccountInfo. # noqa: E501 + :type: str + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ApplicableAccountInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApplicableAccountInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ApplicableAccountInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/available_query_options_response_model.py b/cloudcheckr_cmx_client/models/available_query_options_response_model.py new file mode 100644 index 0000000..5f5c6a1 --- /dev/null +++ b/cloudcheckr_cmx_client/models/available_query_options_response_model.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class AvailableQueryOptionsResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'groupings': 'list[GroupingOption]', + 'tag_keys': 'list[TagKey]', + 'first_month': 'datetime', + 'last_month': 'datetime', + 'number_of_months': 'int' + } + + attribute_map = { + 'groupings': 'groupings', + 'tag_keys': 'tagKeys', + 'first_month': 'firstMonth', + 'last_month': 'lastMonth', + 'number_of_months': 'numberOfMonths' + } + + def __init__(self, groupings=None, tag_keys=None, first_month=None, last_month=None, number_of_months=None, _configuration=None): # noqa: E501 + """AvailableQueryOptionsResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._groupings = None + self._tag_keys = None + self._first_month = None + self._last_month = None + self._number_of_months = None + self.discriminator = None + + if groupings is not None: + self.groupings = groupings + if tag_keys is not None: + self.tag_keys = tag_keys + if first_month is not None: + self.first_month = first_month + if last_month is not None: + self.last_month = last_month + if number_of_months is not None: + self.number_of_months = number_of_months + + @property + def groupings(self): + """Gets the groupings of this AvailableQueryOptionsResponseModel. # noqa: E501 + + Available groupings. # noqa: E501 + + :return: The groupings of this AvailableQueryOptionsResponseModel. # noqa: E501 + :rtype: list[GroupingOption] + """ + return self._groupings + + @groupings.setter + def groupings(self, groupings): + """Sets the groupings of this AvailableQueryOptionsResponseModel. + + Available groupings. # noqa: E501 + + :param groupings: The groupings of this AvailableQueryOptionsResponseModel. # noqa: E501 + :type: list[GroupingOption] + """ + + self._groupings = groupings + + @property + def tag_keys(self): + """Gets the tag_keys of this AvailableQueryOptionsResponseModel. # noqa: E501 + + Available tag keys. # noqa: E501 + + :return: The tag_keys of this AvailableQueryOptionsResponseModel. # noqa: E501 + :rtype: list[TagKey] + """ + return self._tag_keys + + @tag_keys.setter + def tag_keys(self, tag_keys): + """Sets the tag_keys of this AvailableQueryOptionsResponseModel. + + Available tag keys. # noqa: E501 + + :param tag_keys: The tag_keys of this AvailableQueryOptionsResponseModel. # noqa: E501 + :type: list[TagKey] + """ + + self._tag_keys = tag_keys + + @property + def first_month(self): + """Gets the first_month of this AvailableQueryOptionsResponseModel. # noqa: E501 + + First month with data. # noqa: E501 + + :return: The first_month of this AvailableQueryOptionsResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._first_month + + @first_month.setter + def first_month(self, first_month): + """Sets the first_month of this AvailableQueryOptionsResponseModel. + + First month with data. # noqa: E501 + + :param first_month: The first_month of this AvailableQueryOptionsResponseModel. # noqa: E501 + :type: datetime + """ + + self._first_month = first_month + + @property + def last_month(self): + """Gets the last_month of this AvailableQueryOptionsResponseModel. # noqa: E501 + + Last month with data. # noqa: E501 + + :return: The last_month of this AvailableQueryOptionsResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._last_month + + @last_month.setter + def last_month(self, last_month): + """Sets the last_month of this AvailableQueryOptionsResponseModel. + + Last month with data. # noqa: E501 + + :param last_month: The last_month of this AvailableQueryOptionsResponseModel. # noqa: E501 + :type: datetime + """ + + self._last_month = last_month + + @property + def number_of_months(self): + """Gets the number_of_months of this AvailableQueryOptionsResponseModel. # noqa: E501 + + Number of months with data. # noqa: E501 + + :return: The number_of_months of this AvailableQueryOptionsResponseModel. # noqa: E501 + :rtype: int + """ + return self._number_of_months + + @number_of_months.setter + def number_of_months(self, number_of_months): + """Sets the number_of_months of this AvailableQueryOptionsResponseModel. + + Number of months with data. # noqa: E501 + + :param number_of_months: The number_of_months of this AvailableQueryOptionsResponseModel. # noqa: E501 + :type: int + """ + + self._number_of_months = number_of_months + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AvailableQueryOptionsResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AvailableQueryOptionsResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AvailableQueryOptionsResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/basic_request_list_modification_provider.py b/cloudcheckr_cmx_client/models/basic_request_list_modification_provider.py new file mode 100644 index 0000000..7a5c2d1 --- /dev/null +++ b/cloudcheckr_cmx_client/models/basic_request_list_modification_provider.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class BasicRequestListModificationProvider(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'action': 'str' + } + + attribute_map = { + 'id': 'id', + 'action': 'action' + } + + def __init__(self, id=None, action=None, _configuration=None): # noqa: E501 + """BasicRequestListModificationProvider - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._action = None + self.discriminator = None + + if id is not None: + self.id = id + if action is not None: + self.action = action + + @property + def id(self): + """Gets the id of this BasicRequestListModificationProvider. # noqa: E501 + + + :return: The id of this BasicRequestListModificationProvider. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BasicRequestListModificationProvider. + + + :param id: The id of this BasicRequestListModificationProvider. # noqa: E501 + :type: str + """ + allowed_values = ["NotApplicable", "AWS", "Azure", "Google", "VMware", "Oracle"] # noqa: E501 + if (self._configuration.client_side_validation and + id not in allowed_values): + raise ValueError( + "Invalid value for `id` ({0}), must be one of {1}" # noqa: E501 + .format(id, allowed_values) + ) + + self._id = id + + @property + def action(self): + """Gets the action of this BasicRequestListModificationProvider. # noqa: E501 + + + :return: The action of this BasicRequestListModificationProvider. # noqa: E501 + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this BasicRequestListModificationProvider. + + + :param action: The action of this BasicRequestListModificationProvider. # noqa: E501 + :type: str + """ + allowed_values = ["Add", "Remove"] # noqa: E501 + if (self._configuration.client_side_validation and + action not in allowed_values): + raise ValueError( + "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501 + .format(action, allowed_values) + ) + + self._action = action + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BasicRequestListModificationProvider, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BasicRequestListModificationProvider): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BasicRequestListModificationProvider): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/cost_aggregation_data_point.py b/cloudcheckr_cmx_client/models/cost_aggregation_data_point.py new file mode 100644 index 0000000..04b3ee2 --- /dev/null +++ b/cloudcheckr_cmx_client/models/cost_aggregation_data_point.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CostAggregationDataPoint(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cost_info': 'Costs', + 'groupings': 'list[str]' + } + + attribute_map = { + 'cost_info': 'costInfo', + 'groupings': 'groupings' + } + + def __init__(self, cost_info=None, groupings=None, _configuration=None): # noqa: E501 + """CostAggregationDataPoint - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._cost_info = None + self._groupings = None + self.discriminator = None + + if cost_info is not None: + self.cost_info = cost_info + if groupings is not None: + self.groupings = groupings + + @property + def cost_info(self): + """Gets the cost_info of this CostAggregationDataPoint. # noqa: E501 + + Cost information for this grouping. # noqa: E501 + + :return: The cost_info of this CostAggregationDataPoint. # noqa: E501 + :rtype: Costs + """ + return self._cost_info + + @cost_info.setter + def cost_info(self, cost_info): + """Sets the cost_info of this CostAggregationDataPoint. + + Cost information for this grouping. # noqa: E501 + + :param cost_info: The cost_info of this CostAggregationDataPoint. # noqa: E501 + :type: Costs + """ + + self._cost_info = cost_info + + @property + def groupings(self): + """Gets the groupings of this CostAggregationDataPoint. # noqa: E501 + + Values for the groupings in the query. # noqa: E501 + + :return: The groupings of this CostAggregationDataPoint. # noqa: E501 + :rtype: list[str] + """ + return self._groupings + + @groupings.setter + def groupings(self, groupings): + """Sets the groupings of this CostAggregationDataPoint. + + Values for the groupings in the query. # noqa: E501 + + :param groupings: The groupings of this CostAggregationDataPoint. # noqa: E501 + :type: list[str] + """ + + self._groupings = groupings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CostAggregationDataPoint, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CostAggregationDataPoint): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CostAggregationDataPoint): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/cost_aggregation_download_response_model.py b/cloudcheckr_cmx_client/models/cost_aggregation_download_response_model.py new file mode 100644 index 0000000..daceb7c --- /dev/null +++ b/cloudcheckr_cmx_client/models/cost_aggregation_download_response_model.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CostAggregationDownloadResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'query_info': 'CostAggregationSummaryResponseModel', + 'download_link': 'str' + } + + attribute_map = { + 'query_info': 'queryInfo', + 'download_link': 'downloadLink' + } + + def __init__(self, query_info=None, download_link=None, _configuration=None): # noqa: E501 + """CostAggregationDownloadResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._query_info = None + self._download_link = None + self.discriminator = None + + if query_info is not None: + self.query_info = query_info + if download_link is not None: + self.download_link = download_link + + @property + def query_info(self): + """Gets the query_info of this CostAggregationDownloadResponseModel. # noqa: E501 + + The query summary. # noqa: E501 + + :return: The query_info of this CostAggregationDownloadResponseModel. # noqa: E501 + :rtype: CostAggregationSummaryResponseModel + """ + return self._query_info + + @query_info.setter + def query_info(self, query_info): + """Sets the query_info of this CostAggregationDownloadResponseModel. + + The query summary. # noqa: E501 + + :param query_info: The query_info of this CostAggregationDownloadResponseModel. # noqa: E501 + :type: CostAggregationSummaryResponseModel + """ + + self._query_info = query_info + + @property + def download_link(self): + """Gets the download_link of this CostAggregationDownloadResponseModel. # noqa: E501 + + URL / download link to the data. # noqa: E501 + + :return: The download_link of this CostAggregationDownloadResponseModel. # noqa: E501 + :rtype: str + """ + return self._download_link + + @download_link.setter + def download_link(self, download_link): + """Sets the download_link of this CostAggregationDownloadResponseModel. + + URL / download link to the data. # noqa: E501 + + :param download_link: The download_link of this CostAggregationDownloadResponseModel. # noqa: E501 + :type: str + """ + + self._download_link = download_link + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CostAggregationDownloadResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CostAggregationDownloadResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CostAggregationDownloadResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/cost_aggregation_response_model.py b/cloudcheckr_cmx_client/models/cost_aggregation_response_model.py new file mode 100644 index 0000000..51774a1 --- /dev/null +++ b/cloudcheckr_cmx_client/models/cost_aggregation_response_model.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CostAggregationResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'query_info': 'CostAggregationSummaryResponseModel', + 'items': 'list[CostAggregationDataPoint]', + 'pagination': 'PaginationInfo' + } + + attribute_map = { + 'query_info': 'queryInfo', + 'items': 'items', + 'pagination': 'pagination' + } + + def __init__(self, query_info=None, items=None, pagination=None, _configuration=None): # noqa: E501 + """CostAggregationResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._query_info = None + self._items = None + self._pagination = None + self.discriminator = None + + if query_info is not None: + self.query_info = query_info + if items is not None: + self.items = items + if pagination is not None: + self.pagination = pagination + + @property + def query_info(self): + """Gets the query_info of this CostAggregationResponseModel. # noqa: E501 + + The query summary. # noqa: E501 + + :return: The query_info of this CostAggregationResponseModel. # noqa: E501 + :rtype: CostAggregationSummaryResponseModel + """ + return self._query_info + + @query_info.setter + def query_info(self, query_info): + """Sets the query_info of this CostAggregationResponseModel. + + The query summary. # noqa: E501 + + :param query_info: The query_info of this CostAggregationResponseModel. # noqa: E501 + :type: CostAggregationSummaryResponseModel + """ + + self._query_info = query_info + + @property + def items(self): + """Gets the items of this CostAggregationResponseModel. # noqa: E501 + + Items for this page. # noqa: E501 + + :return: The items of this CostAggregationResponseModel. # noqa: E501 + :rtype: list[CostAggregationDataPoint] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this CostAggregationResponseModel. + + Items for this page. # noqa: E501 + + :param items: The items of this CostAggregationResponseModel. # noqa: E501 + :type: list[CostAggregationDataPoint] + """ + + self._items = items + + @property + def pagination(self): + """Gets the pagination of this CostAggregationResponseModel. # noqa: E501 + + Pagination info for next page (if any). # noqa: E501 + + :return: The pagination of this CostAggregationResponseModel. # noqa: E501 + :rtype: PaginationInfo + """ + return self._pagination + + @pagination.setter + def pagination(self, pagination): + """Sets the pagination of this CostAggregationResponseModel. + + Pagination info for next page (if any). # noqa: E501 + + :param pagination: The pagination of this CostAggregationResponseModel. # noqa: E501 + :type: PaginationInfo + """ + + self._pagination = pagination + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CostAggregationResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CostAggregationResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CostAggregationResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/cost_aggregation_summary_response_model.py b/cloudcheckr_cmx_client/models/cost_aggregation_summary_response_model.py new file mode 100644 index 0000000..affce56 --- /dev/null +++ b/cloudcheckr_cmx_client/models/cost_aggregation_summary_response_model.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CostAggregationSummaryResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'filter': 'str', + 'order_by': 'list[SortingOption]', + 'include_zero_costs': 'bool', + 'customer_id': 'int', + 'account_id': 'str', + 'start_date': 'datetime', + 'end_date': 'datetime', + 'group_bys': 'list[str]', + 'currency_code': 'str' + } + + attribute_map = { + 'filter': 'filter', + 'order_by': 'orderBy', + 'include_zero_costs': 'includeZeroCosts', + 'customer_id': 'customerId', + 'account_id': 'accountId', + 'start_date': 'startDate', + 'end_date': 'endDate', + 'group_bys': 'groupBys', + 'currency_code': 'currencyCode' + } + + def __init__(self, filter=None, order_by=None, include_zero_costs=None, customer_id=None, account_id=None, start_date=None, end_date=None, group_bys=None, currency_code=None, _configuration=None): # noqa: E501 + """CostAggregationSummaryResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._filter = None + self._order_by = None + self._include_zero_costs = None + self._customer_id = None + self._account_id = None + self._start_date = None + self._end_date = None + self._group_bys = None + self._currency_code = None + self.discriminator = None + + if filter is not None: + self.filter = filter + if order_by is not None: + self.order_by = order_by + if include_zero_costs is not None: + self.include_zero_costs = include_zero_costs + if customer_id is not None: + self.customer_id = customer_id + if account_id is not None: + self.account_id = account_id + if start_date is not None: + self.start_date = start_date + if end_date is not None: + self.end_date = end_date + if group_bys is not None: + self.group_bys = group_bys + if currency_code is not None: + self.currency_code = currency_code + + @property + def filter(self): + """Gets the filter of this CostAggregationSummaryResponseModel. # noqa: E501 + + Odata filter (optional). # noqa: E501 + + :return: The filter of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this CostAggregationSummaryResponseModel. + + Odata filter (optional). # noqa: E501 + + :param filter: The filter of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: str + """ + + self._filter = filter + + @property + def order_by(self): + """Gets the order_by of this CostAggregationSummaryResponseModel. # noqa: E501 + + Ordering (optional). # noqa: E501 + + :return: The order_by of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: list[SortingOption] + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this CostAggregationSummaryResponseModel. + + Ordering (optional). # noqa: E501 + + :param order_by: The order_by of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: list[SortingOption] + """ + + self._order_by = order_by + + @property + def include_zero_costs(self): + """Gets the include_zero_costs of this CostAggregationSummaryResponseModel. # noqa: E501 + + Whether or not this query should include costs of zero. # noqa: E501 + + :return: The include_zero_costs of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: bool + """ + return self._include_zero_costs + + @include_zero_costs.setter + def include_zero_costs(self, include_zero_costs): + """Sets the include_zero_costs of this CostAggregationSummaryResponseModel. + + Whether or not this query should include costs of zero. # noqa: E501 + + :param include_zero_costs: The include_zero_costs of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: bool + """ + + self._include_zero_costs = include_zero_costs + + @property + def customer_id(self): + """Gets the customer_id of this CostAggregationSummaryResponseModel. # noqa: E501 + + The customer to query. # noqa: E501 + + :return: The customer_id of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: int + """ + return self._customer_id + + @customer_id.setter + def customer_id(self, customer_id): + """Sets the customer_id of this CostAggregationSummaryResponseModel. + + The customer to query. # noqa: E501 + + :param customer_id: The customer_id of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: int + """ + + self._customer_id = customer_id + + @property + def account_id(self): + """Gets the account_id of this CostAggregationSummaryResponseModel. # noqa: E501 + + The account to query. # noqa: E501 + + :return: The account_id of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """Sets the account_id of this CostAggregationSummaryResponseModel. + + The account to query. # noqa: E501 + + :param account_id: The account_id of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: str + """ + + self._account_id = account_id + + @property + def start_date(self): + """Gets the start_date of this CostAggregationSummaryResponseModel. # noqa: E501 + + Query start date. # noqa: E501 + + :return: The start_date of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """Sets the start_date of this CostAggregationSummaryResponseModel. + + Query start date. # noqa: E501 + + :param start_date: The start_date of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: datetime + """ + + self._start_date = start_date + + @property + def end_date(self): + """Gets the end_date of this CostAggregationSummaryResponseModel. # noqa: E501 + + Query end date. # noqa: E501 + + :return: The end_date of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._end_date + + @end_date.setter + def end_date(self, end_date): + """Sets the end_date of this CostAggregationSummaryResponseModel. + + Query end date. # noqa: E501 + + :param end_date: The end_date of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: datetime + """ + + self._end_date = end_date + + @property + def group_bys(self): + """Gets the group_bys of this CostAggregationSummaryResponseModel. # noqa: E501 + + Groupings (optional). # noqa: E501 + + :return: The group_bys of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: list[str] + """ + return self._group_bys + + @group_bys.setter + def group_bys(self, group_bys): + """Sets the group_bys of this CostAggregationSummaryResponseModel. + + Groupings (optional). # noqa: E501 + + :param group_bys: The group_bys of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: list[str] + """ + + self._group_bys = group_bys + + @property + def currency_code(self): + """Gets the currency_code of this CostAggregationSummaryResponseModel. # noqa: E501 + + Selected currency code. # noqa: E501 + + :return: The currency_code of this CostAggregationSummaryResponseModel. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this CostAggregationSummaryResponseModel. + + Selected currency code. # noqa: E501 + + :param currency_code: The currency_code of this CostAggregationSummaryResponseModel. # noqa: E501 + :type: str + """ + + self._currency_code = currency_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CostAggregationSummaryResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CostAggregationSummaryResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CostAggregationSummaryResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/cost_data_request_model.py b/cloudcheckr_cmx_client/models/cost_data_request_model.py new file mode 100644 index 0000000..c3af415 --- /dev/null +++ b/cloudcheckr_cmx_client/models/cost_data_request_model.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CostDataRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cost_types': 'list[str]', + 'filter': 'str', + 'has_cost_type_grouping': 'bool', + 'relative_time_period': 'str', + 'time_period_offset': 'str', + 'primary_grouping': 'SizedGrouping', + 'secondary_grouping': 'SizedGrouping', + 'currency_code': 'str' + } + + attribute_map = { + 'cost_types': 'costTypes', + 'filter': 'filter', + 'has_cost_type_grouping': 'hasCostTypeGrouping', + 'relative_time_period': 'relativeTimePeriod', + 'time_period_offset': 'timePeriodOffset', + 'primary_grouping': 'primaryGrouping', + 'secondary_grouping': 'secondaryGrouping', + 'currency_code': 'currencyCode' + } + + def __init__(self, cost_types=None, filter=None, has_cost_type_grouping=None, relative_time_period=None, time_period_offset=None, primary_grouping=None, secondary_grouping=None, currency_code=None, _configuration=None): # noqa: E501 + """CostDataRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._cost_types = None + self._filter = None + self._has_cost_type_grouping = None + self._relative_time_period = None + self._time_period_offset = None + self._primary_grouping = None + self._secondary_grouping = None + self._currency_code = None + self.discriminator = None + + if cost_types is not None: + self.cost_types = cost_types + if filter is not None: + self.filter = filter + if has_cost_type_grouping is not None: + self.has_cost_type_grouping = has_cost_type_grouping + if relative_time_period is not None: + self.relative_time_period = relative_time_period + if time_period_offset is not None: + self.time_period_offset = time_period_offset + if primary_grouping is not None: + self.primary_grouping = primary_grouping + if secondary_grouping is not None: + self.secondary_grouping = secondary_grouping + if currency_code is not None: + self.currency_code = currency_code + + @property + def cost_types(self): + """Gets the cost_types of this CostDataRequestModel. # noqa: E501 + + Cost Types. # noqa: E501 + + :return: The cost_types of this CostDataRequestModel. # noqa: E501 + :rtype: list[str] + """ + return self._cost_types + + @cost_types.setter + def cost_types(self, cost_types): + """Sets the cost_types of this CostDataRequestModel. + + Cost Types. # noqa: E501 + + :param cost_types: The cost_types of this CostDataRequestModel. # noqa: E501 + :type: list[str] + """ + allowed_values = ["Actual", "List", "Retail", "Profit", "PercentProfitMargin"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(cost_types).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `cost_types` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(cost_types) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._cost_types = cost_types + + @property + def filter(self): + """Gets the filter of this CostDataRequestModel. # noqa: E501 + + Query filter. # noqa: E501 + + :return: The filter of this CostDataRequestModel. # noqa: E501 + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this CostDataRequestModel. + + Query filter. # noqa: E501 + + :param filter: The filter of this CostDataRequestModel. # noqa: E501 + :type: str + """ + + self._filter = filter + + @property + def has_cost_type_grouping(self): + """Gets the has_cost_type_grouping of this CostDataRequestModel. # noqa: E501 + + Returns true if it contains a CostTypes Grouping. # noqa: E501 + + :return: The has_cost_type_grouping of this CostDataRequestModel. # noqa: E501 + :rtype: bool + """ + return self._has_cost_type_grouping + + @has_cost_type_grouping.setter + def has_cost_type_grouping(self, has_cost_type_grouping): + """Sets the has_cost_type_grouping of this CostDataRequestModel. + + Returns true if it contains a CostTypes Grouping. # noqa: E501 + + :param has_cost_type_grouping: The has_cost_type_grouping of this CostDataRequestModel. # noqa: E501 + :type: bool + """ + + self._has_cost_type_grouping = has_cost_type_grouping + + @property + def relative_time_period(self): + """Gets the relative_time_period of this CostDataRequestModel. # noqa: E501 + + Relative time period to query. # noqa: E501 + + :return: The relative_time_period of this CostDataRequestModel. # noqa: E501 + :rtype: str + """ + return self._relative_time_period + + @relative_time_period.setter + def relative_time_period(self, relative_time_period): + """Sets the relative_time_period of this CostDataRequestModel. + + Relative time period to query. # noqa: E501 + + :param relative_time_period: The relative_time_period of this CostDataRequestModel. # noqa: E501 + :type: str + """ + + self._relative_time_period = relative_time_period + + @property + def time_period_offset(self): + """Gets the time_period_offset of this CostDataRequestModel. # noqa: E501 + + Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. # noqa: E501 + + :return: The time_period_offset of this CostDataRequestModel. # noqa: E501 + :rtype: str + """ + return self._time_period_offset + + @time_period_offset.setter + def time_period_offset(self, time_period_offset): + """Sets the time_period_offset of this CostDataRequestModel. + + Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. # noqa: E501 + + :param time_period_offset: The time_period_offset of this CostDataRequestModel. # noqa: E501 + :type: str + """ + + self._time_period_offset = time_period_offset + + @property + def primary_grouping(self): + """Gets the primary_grouping of this CostDataRequestModel. # noqa: E501 + + Primary grouping. # noqa: E501 + + :return: The primary_grouping of this CostDataRequestModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._primary_grouping + + @primary_grouping.setter + def primary_grouping(self, primary_grouping): + """Sets the primary_grouping of this CostDataRequestModel. + + Primary grouping. # noqa: E501 + + :param primary_grouping: The primary_grouping of this CostDataRequestModel. # noqa: E501 + :type: SizedGrouping + """ + + self._primary_grouping = primary_grouping + + @property + def secondary_grouping(self): + """Gets the secondary_grouping of this CostDataRequestModel. # noqa: E501 + + Secondary grouping. # noqa: E501 + + :return: The secondary_grouping of this CostDataRequestModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._secondary_grouping + + @secondary_grouping.setter + def secondary_grouping(self, secondary_grouping): + """Sets the secondary_grouping of this CostDataRequestModel. + + Secondary grouping. # noqa: E501 + + :param secondary_grouping: The secondary_grouping of this CostDataRequestModel. # noqa: E501 + :type: SizedGrouping + """ + + self._secondary_grouping = secondary_grouping + + @property + def currency_code(self): + """Gets the currency_code of this CostDataRequestModel. # noqa: E501 + + Currency code. # noqa: E501 + + :return: The currency_code of this CostDataRequestModel. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this CostDataRequestModel. + + Currency code. # noqa: E501 + + :param currency_code: The currency_code of this CostDataRequestModel. # noqa: E501 + :type: str + """ + + self._currency_code = currency_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CostDataRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CostDataRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CostDataRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/cost_data_response_model.py b/cloudcheckr_cmx_client/models/cost_data_response_model.py new file mode 100644 index 0000000..ff7f09f --- /dev/null +++ b/cloudcheckr_cmx_client/models/cost_data_response_model.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CostDataResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cost_types': 'list[str]', + 'currency_code': 'str', + 'time_period': 'TimePeriod', + 'primary_grouping': 'SizedGrouping', + 'secondary_grouping': 'SizedGrouping', + 'filter': 'str', + 'data_set_info': 'DataSetInfo', + 'data_points': 'list[Datapoint]' + } + + attribute_map = { + 'cost_types': 'costTypes', + 'currency_code': 'currencyCode', + 'time_period': 'timePeriod', + 'primary_grouping': 'primaryGrouping', + 'secondary_grouping': 'secondaryGrouping', + 'filter': 'filter', + 'data_set_info': 'dataSetInfo', + 'data_points': 'dataPoints' + } + + def __init__(self, cost_types=None, currency_code=None, time_period=None, primary_grouping=None, secondary_grouping=None, filter=None, data_set_info=None, data_points=None, _configuration=None): # noqa: E501 + """CostDataResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._cost_types = None + self._currency_code = None + self._time_period = None + self._primary_grouping = None + self._secondary_grouping = None + self._filter = None + self._data_set_info = None + self._data_points = None + self.discriminator = None + + if cost_types is not None: + self.cost_types = cost_types + if currency_code is not None: + self.currency_code = currency_code + if time_period is not None: + self.time_period = time_period + if primary_grouping is not None: + self.primary_grouping = primary_grouping + if secondary_grouping is not None: + self.secondary_grouping = secondary_grouping + if filter is not None: + self.filter = filter + if data_set_info is not None: + self.data_set_info = data_set_info + if data_points is not None: + self.data_points = data_points + + @property + def cost_types(self): + """Gets the cost_types of this CostDataResponseModel. # noqa: E501 + + CostTypes. # noqa: E501 + + :return: The cost_types of this CostDataResponseModel. # noqa: E501 + :rtype: list[str] + """ + return self._cost_types + + @cost_types.setter + def cost_types(self, cost_types): + """Sets the cost_types of this CostDataResponseModel. + + CostTypes. # noqa: E501 + + :param cost_types: The cost_types of this CostDataResponseModel. # noqa: E501 + :type: list[str] + """ + allowed_values = ["Actual", "List", "Retail", "Profit", "PercentProfitMargin"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(cost_types).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `cost_types` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(cost_types) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._cost_types = cost_types + + @property + def currency_code(self): + """Gets the currency_code of this CostDataResponseModel. # noqa: E501 + + Currency code. # noqa: E501 + + :return: The currency_code of this CostDataResponseModel. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this CostDataResponseModel. + + Currency code. # noqa: E501 + + :param currency_code: The currency_code of this CostDataResponseModel. # noqa: E501 + :type: str + """ + + self._currency_code = currency_code + + @property + def time_period(self): + """Gets the time_period of this CostDataResponseModel. # noqa: E501 + + Time period captured by the data set. # noqa: E501 + + :return: The time_period of this CostDataResponseModel. # noqa: E501 + :rtype: TimePeriod + """ + return self._time_period + + @time_period.setter + def time_period(self, time_period): + """Sets the time_period of this CostDataResponseModel. + + Time period captured by the data set. # noqa: E501 + + :param time_period: The time_period of this CostDataResponseModel. # noqa: E501 + :type: TimePeriod + """ + + self._time_period = time_period + + @property + def primary_grouping(self): + """Gets the primary_grouping of this CostDataResponseModel. # noqa: E501 + + Primary grouping. # noqa: E501 + + :return: The primary_grouping of this CostDataResponseModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._primary_grouping + + @primary_grouping.setter + def primary_grouping(self, primary_grouping): + """Sets the primary_grouping of this CostDataResponseModel. + + Primary grouping. # noqa: E501 + + :param primary_grouping: The primary_grouping of this CostDataResponseModel. # noqa: E501 + :type: SizedGrouping + """ + + self._primary_grouping = primary_grouping + + @property + def secondary_grouping(self): + """Gets the secondary_grouping of this CostDataResponseModel. # noqa: E501 + + Secondary grouping. # noqa: E501 + + :return: The secondary_grouping of this CostDataResponseModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._secondary_grouping + + @secondary_grouping.setter + def secondary_grouping(self, secondary_grouping): + """Sets the secondary_grouping of this CostDataResponseModel. + + Secondary grouping. # noqa: E501 + + :param secondary_grouping: The secondary_grouping of this CostDataResponseModel. # noqa: E501 + :type: SizedGrouping + """ + + self._secondary_grouping = secondary_grouping + + @property + def filter(self): + """Gets the filter of this CostDataResponseModel. # noqa: E501 + + Query filter. # noqa: E501 + + :return: The filter of this CostDataResponseModel. # noqa: E501 + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this CostDataResponseModel. + + Query filter. # noqa: E501 + + :param filter: The filter of this CostDataResponseModel. # noqa: E501 + :type: str + """ + + self._filter = filter + + @property + def data_set_info(self): + """Gets the data_set_info of this CostDataResponseModel. # noqa: E501 + + Data set info (e.g. new data set, etc). # noqa: E501 + + :return: The data_set_info of this CostDataResponseModel. # noqa: E501 + :rtype: DataSetInfo + """ + return self._data_set_info + + @data_set_info.setter + def data_set_info(self, data_set_info): + """Sets the data_set_info of this CostDataResponseModel. + + Data set info (e.g. new data set, etc). # noqa: E501 + + :param data_set_info: The data_set_info of this CostDataResponseModel. # noqa: E501 + :type: DataSetInfo + """ + + self._data_set_info = data_set_info + + @property + def data_points(self): + """Gets the data_points of this CostDataResponseModel. # noqa: E501 + + Requested data points. # noqa: E501 + + :return: The data_points of this CostDataResponseModel. # noqa: E501 + :rtype: list[Datapoint] + """ + return self._data_points + + @data_points.setter + def data_points(self, data_points): + """Sets the data_points of this CostDataResponseModel. + + Requested data points. # noqa: E501 + + :param data_points: The data_points of this CostDataResponseModel. # noqa: E501 + :type: list[Datapoint] + """ + + self._data_points = data_points + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CostDataResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CostDataResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CostDataResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/cost_query_summary_response_model.py b/cloudcheckr_cmx_client/models/cost_query_summary_response_model.py new file mode 100644 index 0000000..24d69ae --- /dev/null +++ b/cloudcheckr_cmx_client/models/cost_query_summary_response_model.py @@ -0,0 +1,328 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CostQuerySummaryResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'state': 'str', + 'error_message': 'str', + 'requested_date': 'datetime', + 'started_date': 'datetime', + 'completed_date': 'datetime', + 'query_time_seconds': 'float', + 'total_time_seconds': 'float' + } + + attribute_map = { + 'id': 'id', + 'state': 'state', + 'error_message': 'errorMessage', + 'requested_date': 'requestedDate', + 'started_date': 'startedDate', + 'completed_date': 'completedDate', + 'query_time_seconds': 'queryTimeSeconds', + 'total_time_seconds': 'totalTimeSeconds' + } + + def __init__(self, id=None, state=None, error_message=None, requested_date=None, started_date=None, completed_date=None, query_time_seconds=None, total_time_seconds=None, _configuration=None): # noqa: E501 + """CostQuerySummaryResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._state = None + self._error_message = None + self._requested_date = None + self._started_date = None + self._completed_date = None + self._query_time_seconds = None + self._total_time_seconds = None + self.discriminator = None + + if id is not None: + self.id = id + if state is not None: + self.state = state + if error_message is not None: + self.error_message = error_message + if requested_date is not None: + self.requested_date = requested_date + if started_date is not None: + self.started_date = started_date + if completed_date is not None: + self.completed_date = completed_date + if query_time_seconds is not None: + self.query_time_seconds = query_time_seconds + if total_time_seconds is not None: + self.total_time_seconds = total_time_seconds + + @property + def id(self): + """Gets the id of this CostQuerySummaryResponseModel. # noqa: E501 + + The query ID. # noqa: E501 + + :return: The id of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CostQuerySummaryResponseModel. + + The query ID. # noqa: E501 + + :param id: The id of this CostQuerySummaryResponseModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def state(self): + """Gets the state of this CostQuerySummaryResponseModel. # noqa: E501 + + The current state of the query. # noqa: E501 + + :return: The state of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this CostQuerySummaryResponseModel. + + The current state of the query. # noqa: E501 + + :param state: The state of this CostQuerySummaryResponseModel. # noqa: E501 + :type: str + """ + allowed_values = ["Pending", "InProgress", "Canceled", "Failed", "Completed"] # noqa: E501 + if (self._configuration.client_side_validation and + state not in allowed_values): + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 + .format(state, allowed_values) + ) + + self._state = state + + @property + def error_message(self): + """Gets the error_message of this CostQuerySummaryResponseModel. # noqa: E501 + + The error message when state is Failed. # noqa: E501 + + :return: The error_message of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this CostQuerySummaryResponseModel. + + The error message when state is Failed. # noqa: E501 + + :param error_message: The error_message of this CostQuerySummaryResponseModel. # noqa: E501 + :type: str + """ + + self._error_message = error_message + + @property + def requested_date(self): + """Gets the requested_date of this CostQuerySummaryResponseModel. # noqa: E501 + + The timestamp indicating when the query was requested. # noqa: E501 + + :return: The requested_date of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._requested_date + + @requested_date.setter + def requested_date(self, requested_date): + """Sets the requested_date of this CostQuerySummaryResponseModel. + + The timestamp indicating when the query was requested. # noqa: E501 + + :param requested_date: The requested_date of this CostQuerySummaryResponseModel. # noqa: E501 + :type: datetime + """ + + self._requested_date = requested_date + + @property + def started_date(self): + """Gets the started_date of this CostQuerySummaryResponseModel. # noqa: E501 + + The timestamp indicating when the query started executing. # noqa: E501 + + :return: The started_date of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._started_date + + @started_date.setter + def started_date(self, started_date): + """Sets the started_date of this CostQuerySummaryResponseModel. + + The timestamp indicating when the query started executing. # noqa: E501 + + :param started_date: The started_date of this CostQuerySummaryResponseModel. # noqa: E501 + :type: datetime + """ + + self._started_date = started_date + + @property + def completed_date(self): + """Gets the completed_date of this CostQuerySummaryResponseModel. # noqa: E501 + + The timestamp indicating when the query completed. # noqa: E501 + + :return: The completed_date of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._completed_date + + @completed_date.setter + def completed_date(self, completed_date): + """Sets the completed_date of this CostQuerySummaryResponseModel. + + The timestamp indicating when the query completed. # noqa: E501 + + :param completed_date: The completed_date of this CostQuerySummaryResponseModel. # noqa: E501 + :type: datetime + """ + + self._completed_date = completed_date + + @property + def query_time_seconds(self): + """Gets the query_time_seconds of this CostQuerySummaryResponseModel. # noqa: E501 + + The amount of time spent executing the query. # noqa: E501 + + :return: The query_time_seconds of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: float + """ + return self._query_time_seconds + + @query_time_seconds.setter + def query_time_seconds(self, query_time_seconds): + """Sets the query_time_seconds of this CostQuerySummaryResponseModel. + + The amount of time spent executing the query. # noqa: E501 + + :param query_time_seconds: The query_time_seconds of this CostQuerySummaryResponseModel. # noqa: E501 + :type: float + """ + + self._query_time_seconds = query_time_seconds + + @property + def total_time_seconds(self): + """Gets the total_time_seconds of this CostQuerySummaryResponseModel. # noqa: E501 + + The amount of time for the query to process (from request to completed). # noqa: E501 + + :return: The total_time_seconds of this CostQuerySummaryResponseModel. # noqa: E501 + :rtype: float + """ + return self._total_time_seconds + + @total_time_seconds.setter + def total_time_seconds(self, total_time_seconds): + """Sets the total_time_seconds of this CostQuerySummaryResponseModel. + + The amount of time for the query to process (from request to completed). # noqa: E501 + + :param total_time_seconds: The total_time_seconds of this CostQuerySummaryResponseModel. # noqa: E501 + :type: float + """ + + self._total_time_seconds = total_time_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CostQuerySummaryResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CostQuerySummaryResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CostQuerySummaryResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/costs.py b/cloudcheckr_cmx_client/models/costs.py new file mode 100644 index 0000000..1603661 --- /dev/null +++ b/cloudcheckr_cmx_client/models/costs.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class Costs(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'currency_code': 'str', + 'actual_cost': 'float', + 'list_cost': 'float', + 'normalized_cost': 'float' + } + + attribute_map = { + 'currency_code': 'currencyCode', + 'actual_cost': 'actualCost', + 'list_cost': 'listCost', + 'normalized_cost': 'normalizedCost' + } + + def __init__(self, currency_code=None, actual_cost=None, list_cost=None, normalized_cost=None, _configuration=None): # noqa: E501 + """Costs - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._currency_code = None + self._actual_cost = None + self._list_cost = None + self._normalized_cost = None + self.discriminator = None + + if currency_code is not None: + self.currency_code = currency_code + if actual_cost is not None: + self.actual_cost = actual_cost + if list_cost is not None: + self.list_cost = list_cost + if normalized_cost is not None: + self.normalized_cost = normalized_cost + + @property + def currency_code(self): + """Gets the currency_code of this Costs. # noqa: E501 + + Currency code. # noqa: E501 + + :return: The currency_code of this Costs. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this Costs. + + Currency code. # noqa: E501 + + :param currency_code: The currency_code of this Costs. # noqa: E501 + :type: str + """ + + self._currency_code = currency_code + + @property + def actual_cost(self): + """Gets the actual_cost of this Costs. # noqa: E501 + + Original cost from the cloud provider, i.e. from the cloud provider cost data / invoice. It may be null if the user is not authorized to view this field # noqa: E501 + + :return: The actual_cost of this Costs. # noqa: E501 + :rtype: float + """ + return self._actual_cost + + @actual_cost.setter + def actual_cost(self, actual_cost): + """Sets the actual_cost of this Costs. + + Original cost from the cloud provider, i.e. from the cloud provider cost data / invoice. It may be null if the user is not authorized to view this field # noqa: E501 + + :param actual_cost: The actual_cost of this Costs. # noqa: E501 + :type: float + """ + + self._actual_cost = actual_cost + + @property + def list_cost(self): + """Gets the list_cost of this Costs. # noqa: E501 + + Cost after applying cost-related rules. It may be null if the user is not authorized to view this field # noqa: E501 + + :return: The list_cost of this Costs. # noqa: E501 + :rtype: float + """ + return self._list_cost + + @list_cost.setter + def list_cost(self, list_cost): + """Sets the list_cost of this Costs. + + Cost after applying cost-related rules. It may be null if the user is not authorized to view this field # noqa: E501 + + :param list_cost: The list_cost of this Costs. # noqa: E501 + :type: float + """ + + self._list_cost = list_cost + + @property + def normalized_cost(self): + """Gets the normalized_cost of this Costs. # noqa: E501 + + Adjusted cost that includes the usage-based cost only with any amortized upfront fees removed. # noqa: E501 + + :return: The normalized_cost of this Costs. # noqa: E501 + :rtype: float + """ + return self._normalized_cost + + @normalized_cost.setter + def normalized_cost(self, normalized_cost): + """Sets the normalized_cost of this Costs. + + Adjusted cost that includes the usage-based cost only with any amortized upfront fees removed. # noqa: E501 + + :param normalized_cost: The normalized_cost of this Costs. # noqa: E501 + :type: float + """ + + self._normalized_cost = normalized_cost + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Costs, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Costs): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Costs): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_cost_query_request_model.py b/cloudcheckr_cmx_client/models/create_cost_query_request_model.py new file mode 100644 index 0000000..e31f220 --- /dev/null +++ b/cloudcheckr_cmx_client/models/create_cost_query_request_model.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CreateCostQueryRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'order_by': 'list[SortingOption]', + 'filter': 'str', + 'include_zero_costs': 'bool', + 'start_date': 'datetime', + 'end_date': 'datetime', + 'group_by': 'list[str]', + 'currency_code': 'str' + } + + attribute_map = { + 'order_by': 'orderBy', + 'filter': 'filter', + 'include_zero_costs': 'includeZeroCosts', + 'start_date': 'startDate', + 'end_date': 'endDate', + 'group_by': 'groupBy', + 'currency_code': 'currencyCode' + } + + def __init__(self, order_by=None, filter=None, include_zero_costs=None, start_date=None, end_date=None, group_by=None, currency_code=None, _configuration=None): # noqa: E501 + """CreateCostQueryRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._order_by = None + self._filter = None + self._include_zero_costs = None + self._start_date = None + self._end_date = None + self._group_by = None + self._currency_code = None + self.discriminator = None + + if order_by is not None: + self.order_by = order_by + if filter is not None: + self.filter = filter + if include_zero_costs is not None: + self.include_zero_costs = include_zero_costs + if start_date is not None: + self.start_date = start_date + if end_date is not None: + self.end_date = end_date + if group_by is not None: + self.group_by = group_by + if currency_code is not None: + self.currency_code = currency_code + + @property + def order_by(self): + """Gets the order_by of this CreateCostQueryRequestModel. # noqa: E501 + + Fields to order the results by. # noqa: E501 + + :return: The order_by of this CreateCostQueryRequestModel. # noqa: E501 + :rtype: list[SortingOption] + """ + return self._order_by + + @order_by.setter + def order_by(self, order_by): + """Sets the order_by of this CreateCostQueryRequestModel. + + Fields to order the results by. # noqa: E501 + + :param order_by: The order_by of this CreateCostQueryRequestModel. # noqa: E501 + :type: list[SortingOption] + """ + + self._order_by = order_by + + @property + def filter(self): + """Gets the filter of this CreateCostQueryRequestModel. # noqa: E501 + + Items to filter by in the query. # noqa: E501 + + :return: The filter of this CreateCostQueryRequestModel. # noqa: E501 + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this CreateCostQueryRequestModel. + + Items to filter by in the query. # noqa: E501 + + :param filter: The filter of this CreateCostQueryRequestModel. # noqa: E501 + :type: str + """ + + self._filter = filter + + @property + def include_zero_costs(self): + """Gets the include_zero_costs of this CreateCostQueryRequestModel. # noqa: E501 + + Whether or not the cost query should include costs of zero # noqa: E501 + + :return: The include_zero_costs of this CreateCostQueryRequestModel. # noqa: E501 + :rtype: bool + """ + return self._include_zero_costs + + @include_zero_costs.setter + def include_zero_costs(self, include_zero_costs): + """Sets the include_zero_costs of this CreateCostQueryRequestModel. + + Whether or not the cost query should include costs of zero # noqa: E501 + + :param include_zero_costs: The include_zero_costs of this CreateCostQueryRequestModel. # noqa: E501 + :type: bool + """ + + self._include_zero_costs = include_zero_costs + + @property + def start_date(self): + """Gets the start_date of this CreateCostQueryRequestModel. # noqa: E501 + + Timestamp indicating the beginning of the period to query. # noqa: E501 + + :return: The start_date of this CreateCostQueryRequestModel. # noqa: E501 + :rtype: datetime + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """Sets the start_date of this CreateCostQueryRequestModel. + + Timestamp indicating the beginning of the period to query. # noqa: E501 + + :param start_date: The start_date of this CreateCostQueryRequestModel. # noqa: E501 + :type: datetime + """ + + self._start_date = start_date + + @property + def end_date(self): + """Gets the end_date of this CreateCostQueryRequestModel. # noqa: E501 + + Timestamp indicating the end of the period to query. # noqa: E501 + + :return: The end_date of this CreateCostQueryRequestModel. # noqa: E501 + :rtype: datetime + """ + return self._end_date + + @end_date.setter + def end_date(self, end_date): + """Sets the end_date of this CreateCostQueryRequestModel. + + Timestamp indicating the end of the period to query. # noqa: E501 + + :param end_date: The end_date of this CreateCostQueryRequestModel. # noqa: E501 + :type: datetime + """ + + self._end_date = end_date + + @property + def group_by(self): + """Gets the group_by of this CreateCostQueryRequestModel. # noqa: E501 + + Items to group the query results by. # noqa: E501 + + :return: The group_by of this CreateCostQueryRequestModel. # noqa: E501 + :rtype: list[str] + """ + return self._group_by + + @group_by.setter + def group_by(self, group_by): + """Sets the group_by of this CreateCostQueryRequestModel. + + Items to group the query results by. # noqa: E501 + + :param group_by: The group_by of this CreateCostQueryRequestModel. # noqa: E501 + :type: list[str] + """ + + self._group_by = group_by + + @property + def currency_code(self): + """Gets the currency_code of this CreateCostQueryRequestModel. # noqa: E501 + + Used to filter the response to only include the currency code specified. # noqa: E501 + + :return: The currency_code of this CreateCostQueryRequestModel. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this CreateCostQueryRequestModel. + + Used to filter the response to only include the currency code specified. # noqa: E501 + + :param currency_code: The currency_code of this CreateCostQueryRequestModel. # noqa: E501 + :type: str + """ + + self._currency_code = currency_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateCostQueryRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCostQueryRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateCostQueryRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_cost_data_request_model.py b/cloudcheckr_cmx_client/models/create_request_cost_data_request_model.py new file mode 100644 index 0000000..6628969 --- /dev/null +++ b/cloudcheckr_cmx_client/models/create_request_cost_data_request_model.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CreateRequestCostDataRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'CostDataRequestModel' + } + + attribute_map = { + 'item': 'item' + } + + def __init__(self, item=None, _configuration=None): # noqa: E501 + """CreateRequestCostDataRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self.discriminator = None + + if item is not None: + self.item = item + + @property + def item(self): + """Gets the item of this CreateRequestCostDataRequestModel. # noqa: E501 + + + :return: The item of this CreateRequestCostDataRequestModel. # noqa: E501 + :rtype: CostDataRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this CreateRequestCostDataRequestModel. + + + :param item: The item of this CreateRequestCostDataRequestModel. # noqa: E501 + :type: CostDataRequestModel + """ + + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateRequestCostDataRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRequestCostDataRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateRequestCostDataRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_create_cost_query_request_model.py b/cloudcheckr_cmx_client/models/create_request_create_cost_query_request_model.py new file mode 100644 index 0000000..9664135 --- /dev/null +++ b/cloudcheckr_cmx_client/models/create_request_create_cost_query_request_model.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CreateRequestCreateCostQueryRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'CreateCostQueryRequestModel' + } + + attribute_map = { + 'item': 'item' + } + + def __init__(self, item=None, _configuration=None): # noqa: E501 + """CreateRequestCreateCostQueryRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self.discriminator = None + + if item is not None: + self.item = item + + @property + def item(self): + """Gets the item of this CreateRequestCreateCostQueryRequestModel. # noqa: E501 + + + :return: The item of this CreateRequestCreateCostQueryRequestModel. # noqa: E501 + :rtype: CreateCostQueryRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this CreateRequestCreateCostQueryRequestModel. + + + :param item: The item of this CreateRequestCreateCostQueryRequestModel. # noqa: E501 + :type: CreateCostQueryRequestModel + """ + + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateRequestCreateCostQueryRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRequestCreateCostQueryRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateRequestCreateCostQueryRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_customer_request_model.py b/cloudcheckr_cmx_client/models/create_request_customer_request_model.py new file mode 100644 index 0000000..6a3b3b4 --- /dev/null +++ b/cloudcheckr_cmx_client/models/create_request_customer_request_model.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CreateRequestCustomerRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'CustomerRequestModel' + } + + attribute_map = { + 'item': 'item' + } + + def __init__(self, item=None, _configuration=None): # noqa: E501 + """CreateRequestCustomerRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self.discriminator = None + + if item is not None: + self.item = item + + @property + def item(self): + """Gets the item of this CreateRequestCustomerRequestModel. # noqa: E501 + + Item to create # noqa: E501 + + :return: The item of this CreateRequestCustomerRequestModel. # noqa: E501 + :rtype: CustomerRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this CreateRequestCustomerRequestModel. + + Item to create # noqa: E501 + + :param item: The item of this CreateRequestCustomerRequestModel. # noqa: E501 + :type: CustomerRequestModel + """ + + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateRequestCustomerRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRequestCustomerRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateRequestCustomerRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_dashboard_panel_request_model.py b/cloudcheckr_cmx_client/models/create_request_dashboard_panel_request_model.py new file mode 100644 index 0000000..ebed238 --- /dev/null +++ b/cloudcheckr_cmx_client/models/create_request_dashboard_panel_request_model.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CreateRequestDashboardPanelRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'DashboardPanelRequestModel' + } + + attribute_map = { + 'item': 'item' + } + + def __init__(self, item=None, _configuration=None): # noqa: E501 + """CreateRequestDashboardPanelRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self.discriminator = None + + if item is not None: + self.item = item + + @property + def item(self): + """Gets the item of this CreateRequestDashboardPanelRequestModel. # noqa: E501 + + + :return: The item of this CreateRequestDashboardPanelRequestModel. # noqa: E501 + :rtype: DashboardPanelRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this CreateRequestDashboardPanelRequestModel. + + + :param item: The item of this CreateRequestDashboardPanelRequestModel. # noqa: E501 + :type: DashboardPanelRequestModel + """ + + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateRequestDashboardPanelRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRequestDashboardPanelRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateRequestDashboardPanelRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_dashboard_request_model.py b/cloudcheckr_cmx_client/models/create_request_dashboard_request_model.py new file mode 100644 index 0000000..2ab871d --- /dev/null +++ b/cloudcheckr_cmx_client/models/create_request_dashboard_request_model.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CreateRequestDashboardRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'DashboardRequestModel' + } + + attribute_map = { + 'item': 'item' + } + + def __init__(self, item=None, _configuration=None): # noqa: E501 + """CreateRequestDashboardRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self.discriminator = None + + if item is not None: + self.item = item + + @property + def item(self): + """Gets the item of this CreateRequestDashboardRequestModel. # noqa: E501 + + + :return: The item of this CreateRequestDashboardRequestModel. # noqa: E501 + :rtype: DashboardRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this CreateRequestDashboardRequestModel. + + + :param item: The item of this CreateRequestDashboardRequestModel. # noqa: E501 + :type: DashboardRequestModel + """ + + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateRequestDashboardRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRequestDashboardRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateRequestDashboardRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/create_request_discount_data_request_model.py b/cloudcheckr_cmx_client/models/create_request_discount_data_request_model.py new file mode 100644 index 0000000..c6a1574 --- /dev/null +++ b/cloudcheckr_cmx_client/models/create_request_discount_data_request_model.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CreateRequestDiscountDataRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'DiscountDataRequestModel' + } + + attribute_map = { + 'item': 'item' + } + + def __init__(self, item=None, _configuration=None): # noqa: E501 + """CreateRequestDiscountDataRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self.discriminator = None + + if item is not None: + self.item = item + + @property + def item(self): + """Gets the item of this CreateRequestDiscountDataRequestModel. # noqa: E501 + + + :return: The item of this CreateRequestDiscountDataRequestModel. # noqa: E501 + :rtype: DiscountDataRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this CreateRequestDiscountDataRequestModel. + + + :param item: The item of this CreateRequestDiscountDataRequestModel. # noqa: E501 + :type: DiscountDataRequestModel + """ + + self._item = item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateRequestDiscountDataRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRequestDiscountDataRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateRequestDiscountDataRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/customer_plan_request_model.py b/cloudcheckr_cmx_client/models/customer_plan_request_model.py new file mode 100644 index 0000000..7e4d827 --- /dev/null +++ b/cloudcheckr_cmx_client/models/customer_plan_request_model.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CustomerPlanRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'end_date': 'datetime', + 'plan_type': 'str' + } + + attribute_map = { + 'end_date': 'endDate', + 'plan_type': 'planType' + } + + def __init__(self, end_date=None, plan_type=None, _configuration=None): # noqa: E501 + """CustomerPlanRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._end_date = None + self._plan_type = None + self.discriminator = None + + if end_date is not None: + self.end_date = end_date + if plan_type is not None: + self.plan_type = plan_type + + @property + def end_date(self): + """Gets the end_date of this CustomerPlanRequestModel. # noqa: E501 + + The end date of the plan. # noqa: E501 + + :return: The end_date of this CustomerPlanRequestModel. # noqa: E501 + :rtype: datetime + """ + return self._end_date + + @end_date.setter + def end_date(self, end_date): + """Sets the end_date of this CustomerPlanRequestModel. + + The end date of the plan. # noqa: E501 + + :param end_date: The end_date of this CustomerPlanRequestModel. # noqa: E501 + :type: datetime + """ + + self._end_date = end_date + + @property + def plan_type(self): + """Gets the plan_type of this CustomerPlanRequestModel. # noqa: E501 + + The type of plan # noqa: E501 + + :return: The plan_type of this CustomerPlanRequestModel. # noqa: E501 + :rtype: str + """ + return self._plan_type + + @plan_type.setter + def plan_type(self, plan_type): + """Sets the plan_type of this CustomerPlanRequestModel. + + The type of plan # noqa: E501 + + :param plan_type: The plan_type of this CustomerPlanRequestModel. # noqa: E501 + :type: str + """ + + self._plan_type = plan_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CustomerPlanRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomerPlanRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CustomerPlanRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/customer_request_model.py b/cloudcheckr_cmx_client/models/customer_request_model.py new file mode 100644 index 0000000..c752fd1 --- /dev/null +++ b/cloudcheckr_cmx_client/models/customer_request_model.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CustomerRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'parent_id': 'str', + 'plan': 'CustomerPlanRequestModel' + } + + attribute_map = { + 'name': 'name', + 'parent_id': 'parentId', + 'plan': 'plan' + } + + def __init__(self, name=None, parent_id=None, plan=None, _configuration=None): # noqa: E501 + """CustomerRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name = None + self._parent_id = None + self._plan = None + self.discriminator = None + + self.name = name + if parent_id is not None: + self.parent_id = parent_id + if plan is not None: + self.plan = plan + + @property + def name(self): + """Gets the name of this CustomerRequestModel. # noqa: E501 + + The customer's name. # noqa: E501 + + :return: The name of this CustomerRequestModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CustomerRequestModel. + + The customer's name. # noqa: E501 + + :param name: The name of this CustomerRequestModel. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def parent_id(self): + """Gets the parent_id of this CustomerRequestModel. # noqa: E501 + + The customer's parent ID if there is an L1/L2 relationship. # noqa: E501 + + :return: The parent_id of this CustomerRequestModel. # noqa: E501 + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this CustomerRequestModel. + + The customer's parent ID if there is an L1/L2 relationship. # noqa: E501 + + :param parent_id: The parent_id of this CustomerRequestModel. # noqa: E501 + :type: str + """ + + self._parent_id = parent_id + + @property + def plan(self): + """Gets the plan of this CustomerRequestModel. # noqa: E501 + + The customer plan information. # noqa: E501 + + :return: The plan of this CustomerRequestModel. # noqa: E501 + :rtype: CustomerPlanRequestModel + """ + return self._plan + + @plan.setter + def plan(self, plan): + """Sets the plan of this CustomerRequestModel. + + The customer plan information. # noqa: E501 + + :param plan: The plan of this CustomerRequestModel. # noqa: E501 + :type: CustomerPlanRequestModel + """ + + self._plan = plan + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CustomerRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomerRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CustomerRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/customer_update_request_model.py b/cloudcheckr_cmx_client/models/customer_update_request_model.py new file mode 100644 index 0000000..bb076b0 --- /dev/null +++ b/cloudcheckr_cmx_client/models/customer_update_request_model.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class CustomerUpdateRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disabled': 'bool', + 'name': 'str', + 'parent_id': 'str', + 'plan': 'CustomerPlanRequestModel' + } + + attribute_map = { + 'disabled': 'disabled', + 'name': 'name', + 'parent_id': 'parentId', + 'plan': 'plan' + } + + def __init__(self, disabled=None, name=None, parent_id=None, plan=None, _configuration=None): # noqa: E501 + """CustomerUpdateRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._disabled = None + self._name = None + self._parent_id = None + self._plan = None + self.discriminator = None + + if disabled is not None: + self.disabled = disabled + self.name = name + if parent_id is not None: + self.parent_id = parent_id + if plan is not None: + self.plan = plan + + @property + def disabled(self): + """Gets the disabled of this CustomerUpdateRequestModel. # noqa: E501 + + Indicates whether this customer should be disabled. # noqa: E501 + + :return: The disabled of this CustomerUpdateRequestModel. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this CustomerUpdateRequestModel. + + Indicates whether this customer should be disabled. # noqa: E501 + + :param disabled: The disabled of this CustomerUpdateRequestModel. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def name(self): + """Gets the name of this CustomerUpdateRequestModel. # noqa: E501 + + The customer's name. # noqa: E501 + + :return: The name of this CustomerUpdateRequestModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CustomerUpdateRequestModel. + + The customer's name. # noqa: E501 + + :param name: The name of this CustomerUpdateRequestModel. # noqa: E501 + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def parent_id(self): + """Gets the parent_id of this CustomerUpdateRequestModel. # noqa: E501 + + The customer's parent ID if there is an L1/L2 relationship. # noqa: E501 + + :return: The parent_id of this CustomerUpdateRequestModel. # noqa: E501 + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this CustomerUpdateRequestModel. + + The customer's parent ID if there is an L1/L2 relationship. # noqa: E501 + + :param parent_id: The parent_id of this CustomerUpdateRequestModel. # noqa: E501 + :type: str + """ + + self._parent_id = parent_id + + @property + def plan(self): + """Gets the plan of this CustomerUpdateRequestModel. # noqa: E501 + + The customer plan information. # noqa: E501 + + :return: The plan of this CustomerUpdateRequestModel. # noqa: E501 + :rtype: CustomerPlanRequestModel + """ + return self._plan + + @plan.setter + def plan(self, plan): + """Sets the plan of this CustomerUpdateRequestModel. + + The customer plan information. # noqa: E501 + + :param plan: The plan of this CustomerUpdateRequestModel. # noqa: E501 + :type: CustomerPlanRequestModel + """ + + self._plan = plan + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CustomerUpdateRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomerUpdateRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CustomerUpdateRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/dashboard_auth_info.py b/cloudcheckr_cmx_client/models/dashboard_auth_info.py new file mode 100644 index 0000000..433020a --- /dev/null +++ b/cloudcheckr_cmx_client/models/dashboard_auth_info.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DashboardAuthInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'is_visible_to_current_account': 'bool', + 'can_manage_dashboard': 'bool' + } + + attribute_map = { + 'is_visible_to_current_account': 'isVisibleToCurrentAccount', + 'can_manage_dashboard': 'canManageDashboard' + } + + def __init__(self, is_visible_to_current_account=None, can_manage_dashboard=None, _configuration=None): # noqa: E501 + """DashboardAuthInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._is_visible_to_current_account = None + self._can_manage_dashboard = None + self.discriminator = None + + if is_visible_to_current_account is not None: + self.is_visible_to_current_account = is_visible_to_current_account + if can_manage_dashboard is not None: + self.can_manage_dashboard = can_manage_dashboard + + @property + def is_visible_to_current_account(self): + """Gets the is_visible_to_current_account of this DashboardAuthInfo. # noqa: E501 + + True if this dashboard is visible to the current account. This may be false when the dashboard was included because the caller can manage the dashboard. # noqa: E501 + + :return: The is_visible_to_current_account of this DashboardAuthInfo. # noqa: E501 + :rtype: bool + """ + return self._is_visible_to_current_account + + @is_visible_to_current_account.setter + def is_visible_to_current_account(self, is_visible_to_current_account): + """Sets the is_visible_to_current_account of this DashboardAuthInfo. + + True if this dashboard is visible to the current account. This may be false when the dashboard was included because the caller can manage the dashboard. # noqa: E501 + + :param is_visible_to_current_account: The is_visible_to_current_account of this DashboardAuthInfo. # noqa: E501 + :type: bool + """ + + self._is_visible_to_current_account = is_visible_to_current_account + + @property + def can_manage_dashboard(self): + """Gets the can_manage_dashboard of this DashboardAuthInfo. # noqa: E501 + + True if the caller can manage the dashboard. # noqa: E501 + + :return: The can_manage_dashboard of this DashboardAuthInfo. # noqa: E501 + :rtype: bool + """ + return self._can_manage_dashboard + + @can_manage_dashboard.setter + def can_manage_dashboard(self, can_manage_dashboard): + """Sets the can_manage_dashboard of this DashboardAuthInfo. + + True if the caller can manage the dashboard. # noqa: E501 + + :param can_manage_dashboard: The can_manage_dashboard of this DashboardAuthInfo. # noqa: E501 + :type: bool + """ + + self._can_manage_dashboard = can_manage_dashboard + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DashboardAuthInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DashboardAuthInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DashboardAuthInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/dashboard_common_response_model.py b/cloudcheckr_cmx_client/models/dashboard_common_response_model.py new file mode 100644 index 0000000..dabd530 --- /dev/null +++ b/cloudcheckr_cmx_client/models/dashboard_common_response_model.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DashboardCommonResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'applicable_accounts': 'list[ApplicableAccountInfo]', + 'auth_info': 'DashboardAuthInfo', + 'created_date': 'datetime', + 'updated_date': 'datetime' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'applicable_accounts': 'applicableAccounts', + 'auth_info': 'authInfo', + 'created_date': 'createdDate', + 'updated_date': 'updatedDate' + } + + def __init__(self, id=None, name=None, description=None, applicable_accounts=None, auth_info=None, created_date=None, updated_date=None, _configuration=None): # noqa: E501 + """DashboardCommonResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._name = None + self._description = None + self._applicable_accounts = None + self._auth_info = None + self._created_date = None + self._updated_date = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if applicable_accounts is not None: + self.applicable_accounts = applicable_accounts + if auth_info is not None: + self.auth_info = auth_info + if created_date is not None: + self.created_date = created_date + if updated_date is not None: + self.updated_date = updated_date + + @property + def id(self): + """Gets the id of this DashboardCommonResponseModel. # noqa: E501 + + The dashboard's ID. # noqa: E501 + + :return: The id of this DashboardCommonResponseModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DashboardCommonResponseModel. + + The dashboard's ID. # noqa: E501 + + :param id: The id of this DashboardCommonResponseModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this DashboardCommonResponseModel. # noqa: E501 + + The dashboard's name. This property supports: sorting and searching. # noqa: E501 + + :return: The name of this DashboardCommonResponseModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DashboardCommonResponseModel. + + The dashboard's name. This property supports: sorting and searching. # noqa: E501 + + :param name: The name of this DashboardCommonResponseModel. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def description(self): + """Gets the description of this DashboardCommonResponseModel. # noqa: E501 + + The dashboard's description. This property supports: searching. # noqa: E501 + + :return: The description of this DashboardCommonResponseModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DashboardCommonResponseModel. + + The dashboard's description. This property supports: searching. # noqa: E501 + + :param description: The description of this DashboardCommonResponseModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def applicable_accounts(self): + """Gets the applicable_accounts of this DashboardCommonResponseModel. # noqa: E501 + + The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. # noqa: E501 + + :return: The applicable_accounts of this DashboardCommonResponseModel. # noqa: E501 + :rtype: list[ApplicableAccountInfo] + """ + return self._applicable_accounts + + @applicable_accounts.setter + def applicable_accounts(self, applicable_accounts): + """Sets the applicable_accounts of this DashboardCommonResponseModel. + + The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. # noqa: E501 + + :param applicable_accounts: The applicable_accounts of this DashboardCommonResponseModel. # noqa: E501 + :type: list[ApplicableAccountInfo] + """ + + self._applicable_accounts = applicable_accounts + + @property + def auth_info(self): + """Gets the auth_info of this DashboardCommonResponseModel. # noqa: E501 + + Authorization info about this dashboard in relationship to the current caller. # noqa: E501 + + :return: The auth_info of this DashboardCommonResponseModel. # noqa: E501 + :rtype: DashboardAuthInfo + """ + return self._auth_info + + @auth_info.setter + def auth_info(self, auth_info): + """Sets the auth_info of this DashboardCommonResponseModel. + + Authorization info about this dashboard in relationship to the current caller. # noqa: E501 + + :param auth_info: The auth_info of this DashboardCommonResponseModel. # noqa: E501 + :type: DashboardAuthInfo + """ + + self._auth_info = auth_info + + @property + def created_date(self): + """Gets the created_date of this DashboardCommonResponseModel. # noqa: E501 + + The dashboard's creation date. # noqa: E501 + + :return: The created_date of this DashboardCommonResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._created_date + + @created_date.setter + def created_date(self, created_date): + """Sets the created_date of this DashboardCommonResponseModel. + + The dashboard's creation date. # noqa: E501 + + :param created_date: The created_date of this DashboardCommonResponseModel. # noqa: E501 + :type: datetime + """ + + self._created_date = created_date + + @property + def updated_date(self): + """Gets the updated_date of this DashboardCommonResponseModel. # noqa: E501 + + The dashboard's last updated date. # noqa: E501 + + :return: The updated_date of this DashboardCommonResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._updated_date + + @updated_date.setter + def updated_date(self, updated_date): + """Sets the updated_date of this DashboardCommonResponseModel. + + The dashboard's last updated date. # noqa: E501 + + :param updated_date: The updated_date of this DashboardCommonResponseModel. # noqa: E501 + :type: datetime + """ + + self._updated_date = updated_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DashboardCommonResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DashboardCommonResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DashboardCommonResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/dashboard_panel_request_model.py b/cloudcheckr_cmx_client/models/dashboard_panel_request_model.py new file mode 100644 index 0000000..cae7574 --- /dev/null +++ b/cloudcheckr_cmx_client/models/dashboard_panel_request_model.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DashboardPanelRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'order': 'int', + 'panel_type': 'str', + 'applicable_providers': 'list[BasicRequestListModificationProvider]', + 'query_parameters': 'object', + 'ui_config': 'object' + } + + attribute_map = { + 'name': 'name', + 'order': 'order', + 'panel_type': 'panelType', + 'applicable_providers': 'applicableProviders', + 'query_parameters': 'queryParameters', + 'ui_config': 'uiConfig' + } + + def __init__(self, name=None, order=None, panel_type=None, applicable_providers=None, query_parameters=None, ui_config=None, _configuration=None): # noqa: E501 + """DashboardPanelRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name = None + self._order = None + self._panel_type = None + self._applicable_providers = None + self._query_parameters = None + self._ui_config = None + self.discriminator = None + + if name is not None: + self.name = name + if order is not None: + self.order = order + if panel_type is not None: + self.panel_type = panel_type + if applicable_providers is not None: + self.applicable_providers = applicable_providers + if query_parameters is not None: + self.query_parameters = query_parameters + if ui_config is not None: + self.ui_config = ui_config + + @property + def name(self): + """Gets the name of this DashboardPanelRequestModel. # noqa: E501 + + Dashboard panel name. # noqa: E501 + + :return: The name of this DashboardPanelRequestModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DashboardPanelRequestModel. + + Dashboard panel name. # noqa: E501 + + :param name: The name of this DashboardPanelRequestModel. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def order(self): + """Gets the order of this DashboardPanelRequestModel. # noqa: E501 + + Order to be displayed on UI. # noqa: E501 + + :return: The order of this DashboardPanelRequestModel. # noqa: E501 + :rtype: int + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this DashboardPanelRequestModel. + + Order to be displayed on UI. # noqa: E501 + + :param order: The order of this DashboardPanelRequestModel. # noqa: E501 + :type: int + """ + + self._order = order + + @property + def panel_type(self): + """Gets the panel_type of this DashboardPanelRequestModel. # noqa: E501 + + Dashboard panel type (e.g. Cost) # noqa: E501 + + :return: The panel_type of this DashboardPanelRequestModel. # noqa: E501 + :rtype: str + """ + return self._panel_type + + @panel_type.setter + def panel_type(self, panel_type): + """Sets the panel_type of this DashboardPanelRequestModel. + + Dashboard panel type (e.g. Cost) # noqa: E501 + + :param panel_type: The panel_type of this DashboardPanelRequestModel. # noqa: E501 + :type: str + """ + + self._panel_type = panel_type + + @property + def applicable_providers(self): + """Gets the applicable_providers of this DashboardPanelRequestModel. # noqa: E501 + + The list of applicable providers. (e.g. AWS, Azure, Google) This property supports: resetting. # noqa: E501 + + :return: The applicable_providers of this DashboardPanelRequestModel. # noqa: E501 + :rtype: list[BasicRequestListModificationProvider] + """ + return self._applicable_providers + + @applicable_providers.setter + def applicable_providers(self, applicable_providers): + """Sets the applicable_providers of this DashboardPanelRequestModel. + + The list of applicable providers. (e.g. AWS, Azure, Google) This property supports: resetting. # noqa: E501 + + :param applicable_providers: The applicable_providers of this DashboardPanelRequestModel. # noqa: E501 + :type: list[BasicRequestListModificationProvider] + """ + + self._applicable_providers = applicable_providers + + @property + def query_parameters(self): + """Gets the query_parameters of this DashboardPanelRequestModel. # noqa: E501 + + Dashboard panel query parameters. # noqa: E501 + + :return: The query_parameters of this DashboardPanelRequestModel. # noqa: E501 + :rtype: object + """ + return self._query_parameters + + @query_parameters.setter + def query_parameters(self, query_parameters): + """Sets the query_parameters of this DashboardPanelRequestModel. + + Dashboard panel query parameters. # noqa: E501 + + :param query_parameters: The query_parameters of this DashboardPanelRequestModel. # noqa: E501 + :type: object + """ + + self._query_parameters = query_parameters + + @property + def ui_config(self): + """Gets the ui_config of this DashboardPanelRequestModel. # noqa: E501 + + UI config. # noqa: E501 + + :return: The ui_config of this DashboardPanelRequestModel. # noqa: E501 + :rtype: object + """ + return self._ui_config + + @ui_config.setter + def ui_config(self, ui_config): + """Sets the ui_config of this DashboardPanelRequestModel. + + UI config. # noqa: E501 + + :param ui_config: The ui_config of this DashboardPanelRequestModel. # noqa: E501 + :type: object + """ + + self._ui_config = ui_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DashboardPanelRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DashboardPanelRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DashboardPanelRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/dashboard_panel_response_model.py b/cloudcheckr_cmx_client/models/dashboard_panel_response_model.py new file mode 100644 index 0000000..af21b1f --- /dev/null +++ b/cloudcheckr_cmx_client/models/dashboard_panel_response_model.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DashboardPanelResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'order': 'int', + 'panel_type': 'str', + 'applicable_providers': 'list[str]', + 'query_parameters': 'object', + 'ui_config': 'object' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'order': 'order', + 'panel_type': 'panelType', + 'applicable_providers': 'applicableProviders', + 'query_parameters': 'queryParameters', + 'ui_config': 'uiConfig' + } + + def __init__(self, id=None, name=None, order=None, panel_type=None, applicable_providers=None, query_parameters=None, ui_config=None, _configuration=None): # noqa: E501 + """DashboardPanelResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._name = None + self._order = None + self._panel_type = None + self._applicable_providers = None + self._query_parameters = None + self._ui_config = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if order is not None: + self.order = order + if panel_type is not None: + self.panel_type = panel_type + if applicable_providers is not None: + self.applicable_providers = applicable_providers + if query_parameters is not None: + self.query_parameters = query_parameters + if ui_config is not None: + self.ui_config = ui_config + + @property + def id(self): + """Gets the id of this DashboardPanelResponseModel. # noqa: E501 + + Dashboard panel ID. # noqa: E501 + + :return: The id of this DashboardPanelResponseModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DashboardPanelResponseModel. + + Dashboard panel ID. # noqa: E501 + + :param id: The id of this DashboardPanelResponseModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this DashboardPanelResponseModel. # noqa: E501 + + Dashboard panel name. # noqa: E501 + + :return: The name of this DashboardPanelResponseModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DashboardPanelResponseModel. + + Dashboard panel name. # noqa: E501 + + :param name: The name of this DashboardPanelResponseModel. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def order(self): + """Gets the order of this DashboardPanelResponseModel. # noqa: E501 + + Order to be displayed on UI. # noqa: E501 + + :return: The order of this DashboardPanelResponseModel. # noqa: E501 + :rtype: int + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this DashboardPanelResponseModel. + + Order to be displayed on UI. # noqa: E501 + + :param order: The order of this DashboardPanelResponseModel. # noqa: E501 + :type: int + """ + + self._order = order + + @property + def panel_type(self): + """Gets the panel_type of this DashboardPanelResponseModel. # noqa: E501 + + Dashboard panel type (e.g. Cost) # noqa: E501 + + :return: The panel_type of this DashboardPanelResponseModel. # noqa: E501 + :rtype: str + """ + return self._panel_type + + @panel_type.setter + def panel_type(self, panel_type): + """Sets the panel_type of this DashboardPanelResponseModel. + + Dashboard panel type (e.g. Cost) # noqa: E501 + + :param panel_type: The panel_type of this DashboardPanelResponseModel. # noqa: E501 + :type: str + """ + + self._panel_type = panel_type + + @property + def applicable_providers(self): + """Gets the applicable_providers of this DashboardPanelResponseModel. # noqa: E501 + + The list of applicable providers. (e.g. AWS, Azure, Google) # noqa: E501 + + :return: The applicable_providers of this DashboardPanelResponseModel. # noqa: E501 + :rtype: list[str] + """ + return self._applicable_providers + + @applicable_providers.setter + def applicable_providers(self, applicable_providers): + """Sets the applicable_providers of this DashboardPanelResponseModel. + + The list of applicable providers. (e.g. AWS, Azure, Google) # noqa: E501 + + :param applicable_providers: The applicable_providers of this DashboardPanelResponseModel. # noqa: E501 + :type: list[str] + """ + + self._applicable_providers = applicable_providers + + @property + def query_parameters(self): + """Gets the query_parameters of this DashboardPanelResponseModel. # noqa: E501 + + Dashboard panel query parameters. # noqa: E501 + + :return: The query_parameters of this DashboardPanelResponseModel. # noqa: E501 + :rtype: object + """ + return self._query_parameters + + @query_parameters.setter + def query_parameters(self, query_parameters): + """Sets the query_parameters of this DashboardPanelResponseModel. + + Dashboard panel query parameters. # noqa: E501 + + :param query_parameters: The query_parameters of this DashboardPanelResponseModel. # noqa: E501 + :type: object + """ + + self._query_parameters = query_parameters + + @property + def ui_config(self): + """Gets the ui_config of this DashboardPanelResponseModel. # noqa: E501 + + UI config. # noqa: E501 + + :return: The ui_config of this DashboardPanelResponseModel. # noqa: E501 + :rtype: object + """ + return self._ui_config + + @ui_config.setter + def ui_config(self, ui_config): + """Sets the ui_config of this DashboardPanelResponseModel. + + UI config. # noqa: E501 + + :param ui_config: The ui_config of this DashboardPanelResponseModel. # noqa: E501 + :type: object + """ + + self._ui_config = ui_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DashboardPanelResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DashboardPanelResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DashboardPanelResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/dashboard_request_model.py b/cloudcheckr_cmx_client/models/dashboard_request_model.py new file mode 100644 index 0000000..da502e0 --- /dev/null +++ b/cloudcheckr_cmx_client/models/dashboard_request_model.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DashboardRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'description': 'str', + 'applicable_accounts': 'list[BasicRequestListModification]' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'applicable_accounts': 'applicableAccounts' + } + + def __init__(self, name=None, description=None, applicable_accounts=None, _configuration=None): # noqa: E501 + """DashboardRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name = None + self._description = None + self._applicable_accounts = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if applicable_accounts is not None: + self.applicable_accounts = applicable_accounts + + @property + def name(self): + """Gets the name of this DashboardRequestModel. # noqa: E501 + + The dashboard's name. # noqa: E501 + + :return: The name of this DashboardRequestModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DashboardRequestModel. + + The dashboard's name. # noqa: E501 + + :param name: The name of this DashboardRequestModel. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def description(self): + """Gets the description of this DashboardRequestModel. # noqa: E501 + + The dashboard's description. This property supports: resetting. # noqa: E501 + + :return: The description of this DashboardRequestModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DashboardRequestModel. + + The dashboard's description. This property supports: resetting. # noqa: E501 + + :param description: The description of this DashboardRequestModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def applicable_accounts(self): + """Gets the applicable_accounts of this DashboardRequestModel. # noqa: E501 + + The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. This property supports: resetting. # noqa: E501 + + :return: The applicable_accounts of this DashboardRequestModel. # noqa: E501 + :rtype: list[BasicRequestListModification] + """ + return self._applicable_accounts + + @applicable_accounts.setter + def applicable_accounts(self, applicable_accounts): + """Sets the applicable_accounts of this DashboardRequestModel. + + The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. This property supports: resetting. # noqa: E501 + + :param applicable_accounts: The applicable_accounts of this DashboardRequestModel. # noqa: E501 + :type: list[BasicRequestListModification] + """ + + self._applicable_accounts = applicable_accounts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DashboardRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DashboardRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DashboardRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/dashboard_response_model.py b/cloudcheckr_cmx_client/models/dashboard_response_model.py new file mode 100644 index 0000000..5b15dd2 --- /dev/null +++ b/cloudcheckr_cmx_client/models/dashboard_response_model.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DashboardResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attached_panels': 'list[DashboardPanelResponseModel]', + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'applicable_accounts': 'list[ApplicableAccountInfo]', + 'auth_info': 'DashboardAuthInfo', + 'created_date': 'datetime', + 'updated_date': 'datetime' + } + + attribute_map = { + 'attached_panels': 'attachedPanels', + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'applicable_accounts': 'applicableAccounts', + 'auth_info': 'authInfo', + 'created_date': 'createdDate', + 'updated_date': 'updatedDate' + } + + def __init__(self, attached_panels=None, id=None, name=None, description=None, applicable_accounts=None, auth_info=None, created_date=None, updated_date=None, _configuration=None): # noqa: E501 + """DashboardResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._attached_panels = None + self._id = None + self._name = None + self._description = None + self._applicable_accounts = None + self._auth_info = None + self._created_date = None + self._updated_date = None + self.discriminator = None + + if attached_panels is not None: + self.attached_panels = attached_panels + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if applicable_accounts is not None: + self.applicable_accounts = applicable_accounts + if auth_info is not None: + self.auth_info = auth_info + if created_date is not None: + self.created_date = created_date + if updated_date is not None: + self.updated_date = updated_date + + @property + def attached_panels(self): + """Gets the attached_panels of this DashboardResponseModel. # noqa: E501 + + The dashboard's attached panels. # noqa: E501 + + :return: The attached_panels of this DashboardResponseModel. # noqa: E501 + :rtype: list[DashboardPanelResponseModel] + """ + return self._attached_panels + + @attached_panels.setter + def attached_panels(self, attached_panels): + """Sets the attached_panels of this DashboardResponseModel. + + The dashboard's attached panels. # noqa: E501 + + :param attached_panels: The attached_panels of this DashboardResponseModel. # noqa: E501 + :type: list[DashboardPanelResponseModel] + """ + + self._attached_panels = attached_panels + + @property + def id(self): + """Gets the id of this DashboardResponseModel. # noqa: E501 + + The dashboard's ID. # noqa: E501 + + :return: The id of this DashboardResponseModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DashboardResponseModel. + + The dashboard's ID. # noqa: E501 + + :param id: The id of this DashboardResponseModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this DashboardResponseModel. # noqa: E501 + + The dashboard's name. This property supports: sorting and searching. # noqa: E501 + + :return: The name of this DashboardResponseModel. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DashboardResponseModel. + + The dashboard's name. This property supports: sorting and searching. # noqa: E501 + + :param name: The name of this DashboardResponseModel. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def description(self): + """Gets the description of this DashboardResponseModel. # noqa: E501 + + The dashboard's description. This property supports: searching. # noqa: E501 + + :return: The description of this DashboardResponseModel. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DashboardResponseModel. + + The dashboard's description. This property supports: searching. # noqa: E501 + + :param description: The description of this DashboardResponseModel. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def applicable_accounts(self): + """Gets the applicable_accounts of this DashboardResponseModel. # noqa: E501 + + The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. # noqa: E501 + + :return: The applicable_accounts of this DashboardResponseModel. # noqa: E501 + :rtype: list[ApplicableAccountInfo] + """ + return self._applicable_accounts + + @applicable_accounts.setter + def applicable_accounts(self, applicable_accounts): + """Sets the applicable_accounts of this DashboardResponseModel. + + The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. # noqa: E501 + + :param applicable_accounts: The applicable_accounts of this DashboardResponseModel. # noqa: E501 + :type: list[ApplicableAccountInfo] + """ + + self._applicable_accounts = applicable_accounts + + @property + def auth_info(self): + """Gets the auth_info of this DashboardResponseModel. # noqa: E501 + + Authorization info about this dashboard in relationship to the current caller. # noqa: E501 + + :return: The auth_info of this DashboardResponseModel. # noqa: E501 + :rtype: DashboardAuthInfo + """ + return self._auth_info + + @auth_info.setter + def auth_info(self, auth_info): + """Sets the auth_info of this DashboardResponseModel. + + Authorization info about this dashboard in relationship to the current caller. # noqa: E501 + + :param auth_info: The auth_info of this DashboardResponseModel. # noqa: E501 + :type: DashboardAuthInfo + """ + + self._auth_info = auth_info + + @property + def created_date(self): + """Gets the created_date of this DashboardResponseModel. # noqa: E501 + + The dashboard's creation date. # noqa: E501 + + :return: The created_date of this DashboardResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._created_date + + @created_date.setter + def created_date(self, created_date): + """Sets the created_date of this DashboardResponseModel. + + The dashboard's creation date. # noqa: E501 + + :param created_date: The created_date of this DashboardResponseModel. # noqa: E501 + :type: datetime + """ + + self._created_date = created_date + + @property + def updated_date(self): + """Gets the updated_date of this DashboardResponseModel. # noqa: E501 + + The dashboard's last updated date. # noqa: E501 + + :return: The updated_date of this DashboardResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._updated_date + + @updated_date.setter + def updated_date(self, updated_date): + """Sets the updated_date of this DashboardResponseModel. + + The dashboard's last updated date. # noqa: E501 + + :param updated_date: The updated_date of this DashboardResponseModel. # noqa: E501 + :type: datetime + """ + + self._updated_date = updated_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DashboardResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DashboardResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DashboardResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/data_set_info.py b/cloudcheckr_cmx_client/models/data_set_info.py new file mode 100644 index 0000000..bbd331a --- /dev/null +++ b/cloudcheckr_cmx_client/models/data_set_info.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DataSetInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'last_updated': 'datetime', + 'refresh_blocked_until': 'datetime', + 'is_being_refreshed': 'bool', + 'is_new_data_set': 'bool', + 'error_message': 'str' + } + + attribute_map = { + 'last_updated': 'lastUpdated', + 'refresh_blocked_until': 'refreshBlockedUntil', + 'is_being_refreshed': 'isBeingRefreshed', + 'is_new_data_set': 'isNewDataSet', + 'error_message': 'errorMessage' + } + + def __init__(self, last_updated=None, refresh_blocked_until=None, is_being_refreshed=None, is_new_data_set=None, error_message=None, _configuration=None): # noqa: E501 + """DataSetInfo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._last_updated = None + self._refresh_blocked_until = None + self._is_being_refreshed = None + self._is_new_data_set = None + self._error_message = None + self.discriminator = None + + if last_updated is not None: + self.last_updated = last_updated + if refresh_blocked_until is not None: + self.refresh_blocked_until = refresh_blocked_until + if is_being_refreshed is not None: + self.is_being_refreshed = is_being_refreshed + if is_new_data_set is not None: + self.is_new_data_set = is_new_data_set + if error_message is not None: + self.error_message = error_message + + @property + def last_updated(self): + """Gets the last_updated of this DataSetInfo. # noqa: E501 + + Date/time the data set was last refreshed. # noqa: E501 + + :return: The last_updated of this DataSetInfo. # noqa: E501 + :rtype: datetime + """ + return self._last_updated + + @last_updated.setter + def last_updated(self, last_updated): + """Sets the last_updated of this DataSetInfo. + + Date/time the data set was last refreshed. # noqa: E501 + + :param last_updated: The last_updated of this DataSetInfo. # noqa: E501 + :type: datetime + """ + + self._last_updated = last_updated + + @property + def refresh_blocked_until(self): + """Gets the refresh_blocked_until of this DataSetInfo. # noqa: E501 + + Date/time that data set refreshes will resume. If set, indicates too many failed refresh attempts. # noqa: E501 + + :return: The refresh_blocked_until of this DataSetInfo. # noqa: E501 + :rtype: datetime + """ + return self._refresh_blocked_until + + @refresh_blocked_until.setter + def refresh_blocked_until(self, refresh_blocked_until): + """Sets the refresh_blocked_until of this DataSetInfo. + + Date/time that data set refreshes will resume. If set, indicates too many failed refresh attempts. # noqa: E501 + + :param refresh_blocked_until: The refresh_blocked_until of this DataSetInfo. # noqa: E501 + :type: datetime + """ + + self._refresh_blocked_until = refresh_blocked_until + + @property + def is_being_refreshed(self): + """Gets the is_being_refreshed of this DataSetInfo. # noqa: E501 + + Returns true if the data set is currently being refreshed. Current datapoints returned with this response will use the previously generated data set. # noqa: E501 + + :return: The is_being_refreshed of this DataSetInfo. # noqa: E501 + :rtype: bool + """ + return self._is_being_refreshed + + @is_being_refreshed.setter + def is_being_refreshed(self, is_being_refreshed): + """Sets the is_being_refreshed of this DataSetInfo. + + Returns true if the data set is currently being refreshed. Current datapoints returned with this response will use the previously generated data set. # noqa: E501 + + :param is_being_refreshed: The is_being_refreshed of this DataSetInfo. # noqa: E501 + :type: bool + """ + + self._is_being_refreshed = is_being_refreshed + + @property + def is_new_data_set(self): + """Gets the is_new_data_set of this DataSetInfo. # noqa: E501 + + Returns true if a data set has never been generated. # noqa: E501 + + :return: The is_new_data_set of this DataSetInfo. # noqa: E501 + :rtype: bool + """ + return self._is_new_data_set + + @is_new_data_set.setter + def is_new_data_set(self, is_new_data_set): + """Sets the is_new_data_set of this DataSetInfo. + + Returns true if a data set has never been generated. # noqa: E501 + + :param is_new_data_set: The is_new_data_set of this DataSetInfo. # noqa: E501 + :type: bool + """ + + self._is_new_data_set = is_new_data_set + + @property + def error_message(self): + """Gets the error_message of this DataSetInfo. # noqa: E501 + + Error message (if any). # noqa: E501 + + :return: The error_message of this DataSetInfo. # noqa: E501 + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this DataSetInfo. + + Error message (if any). # noqa: E501 + + :param error_message: The error_message of this DataSetInfo. # noqa: E501 + :type: str + """ + + self._error_message = error_message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DataSetInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataSetInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DataSetInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/datapoint.py b/cloudcheckr_cmx_client/models/datapoint.py new file mode 100644 index 0000000..e561417 --- /dev/null +++ b/cloudcheckr_cmx_client/models/datapoint.py @@ -0,0 +1,265 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class Datapoint(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'primary': 'str', + 'primary_display_value': 'str', + 'secondary': 'str', + 'secondary_display_value': 'str', + 'value': 'str', + 'unit': 'str' + } + + attribute_map = { + 'primary': 'primary', + 'primary_display_value': 'primaryDisplayValue', + 'secondary': 'secondary', + 'secondary_display_value': 'secondaryDisplayValue', + 'value': 'value', + 'unit': 'unit' + } + + def __init__(self, primary=None, primary_display_value=None, secondary=None, secondary_display_value=None, value=None, unit=None, _configuration=None): # noqa: E501 + """Datapoint - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._primary = None + self._primary_display_value = None + self._secondary = None + self._secondary_display_value = None + self._value = None + self._unit = None + self.discriminator = None + + if primary is not None: + self.primary = primary + if primary_display_value is not None: + self.primary_display_value = primary_display_value + if secondary is not None: + self.secondary = secondary + if secondary_display_value is not None: + self.secondary_display_value = secondary_display_value + if value is not None: + self.value = value + if unit is not None: + self.unit = unit + + @property + def primary(self): + """Gets the primary of this Datapoint. # noqa: E501 + + Primary grouping value. # noqa: E501 + + :return: The primary of this Datapoint. # noqa: E501 + :rtype: str + """ + return self._primary + + @primary.setter + def primary(self, primary): + """Sets the primary of this Datapoint. + + Primary grouping value. # noqa: E501 + + :param primary: The primary of this Datapoint. # noqa: E501 + :type: str + """ + + self._primary = primary + + @property + def primary_display_value(self): + """Gets the primary_display_value of this Datapoint. # noqa: E501 + + Primary grouping display value. # noqa: E501 + + :return: The primary_display_value of this Datapoint. # noqa: E501 + :rtype: str + """ + return self._primary_display_value + + @primary_display_value.setter + def primary_display_value(self, primary_display_value): + """Sets the primary_display_value of this Datapoint. + + Primary grouping display value. # noqa: E501 + + :param primary_display_value: The primary_display_value of this Datapoint. # noqa: E501 + :type: str + """ + + self._primary_display_value = primary_display_value + + @property + def secondary(self): + """Gets the secondary of this Datapoint. # noqa: E501 + + Secondary grouping value. # noqa: E501 + + :return: The secondary of this Datapoint. # noqa: E501 + :rtype: str + """ + return self._secondary + + @secondary.setter + def secondary(self, secondary): + """Sets the secondary of this Datapoint. + + Secondary grouping value. # noqa: E501 + + :param secondary: The secondary of this Datapoint. # noqa: E501 + :type: str + """ + + self._secondary = secondary + + @property + def secondary_display_value(self): + """Gets the secondary_display_value of this Datapoint. # noqa: E501 + + Secondary grouping display value. # noqa: E501 + + :return: The secondary_display_value of this Datapoint. # noqa: E501 + :rtype: str + """ + return self._secondary_display_value + + @secondary_display_value.setter + def secondary_display_value(self, secondary_display_value): + """Sets the secondary_display_value of this Datapoint. + + Secondary grouping display value. # noqa: E501 + + :param secondary_display_value: The secondary_display_value of this Datapoint. # noqa: E501 + :type: str + """ + + self._secondary_display_value = secondary_display_value + + @property + def value(self): + """Gets the value of this Datapoint. # noqa: E501 + + Value of this group. # noqa: E501 + + :return: The value of this Datapoint. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Datapoint. + + Value of this group. # noqa: E501 + + :param value: The value of this Datapoint. # noqa: E501 + :type: str + """ + + self._value = value + + @property + def unit(self): + """Gets the unit of this Datapoint. # noqa: E501 + + Unit of measure. # noqa: E501 + + :return: The unit of this Datapoint. # noqa: E501 + :rtype: str + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this Datapoint. + + Unit of measure. # noqa: E501 + + :param unit: The unit of this Datapoint. # noqa: E501 + :type: str + """ + + self._unit = unit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Datapoint, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Datapoint): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Datapoint): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/dimension_value.py b/cloudcheckr_cmx_client/models/dimension_value.py new file mode 100644 index 0000000..7b5884a --- /dev/null +++ b/cloudcheckr_cmx_client/models/dimension_value.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DimensionValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'first_seen_date': 'datetime', + 'last_seen_date': 'datetime' + } + + attribute_map = { + 'value': 'value', + 'first_seen_date': 'firstSeenDate', + 'last_seen_date': 'lastSeenDate' + } + + def __init__(self, value=None, first_seen_date=None, last_seen_date=None, _configuration=None): # noqa: E501 + """DimensionValue - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._value = None + self._first_seen_date = None + self._last_seen_date = None + self.discriminator = None + + if value is not None: + self.value = value + if first_seen_date is not None: + self.first_seen_date = first_seen_date + if last_seen_date is not None: + self.last_seen_date = last_seen_date + + @property + def value(self): + """Gets the value of this DimensionValue. # noqa: E501 + + + :return: The value of this DimensionValue. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this DimensionValue. + + + :param value: The value of this DimensionValue. # noqa: E501 + :type: str + """ + + self._value = value + + @property + def first_seen_date(self): + """Gets the first_seen_date of this DimensionValue. # noqa: E501 + + + :return: The first_seen_date of this DimensionValue. # noqa: E501 + :rtype: datetime + """ + return self._first_seen_date + + @first_seen_date.setter + def first_seen_date(self, first_seen_date): + """Sets the first_seen_date of this DimensionValue. + + + :param first_seen_date: The first_seen_date of this DimensionValue. # noqa: E501 + :type: datetime + """ + + self._first_seen_date = first_seen_date + + @property + def last_seen_date(self): + """Gets the last_seen_date of this DimensionValue. # noqa: E501 + + + :return: The last_seen_date of this DimensionValue. # noqa: E501 + :rtype: datetime + """ + return self._last_seen_date + + @last_seen_date.setter + def last_seen_date(self, last_seen_date): + """Sets the last_seen_date of this DimensionValue. + + + :param last_seen_date: The last_seen_date of this DimensionValue. # noqa: E501 + :type: datetime + """ + + self._last_seen_date = last_seen_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DimensionValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DimensionValue): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DimensionValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/discount_data_request_model.py b/cloudcheckr_cmx_client/models/discount_data_request_model.py new file mode 100644 index 0000000..4adf232 --- /dev/null +++ b/cloudcheckr_cmx_client/models/discount_data_request_model.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DiscountDataRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'discount_types': 'list[str]', + 'has_discount_type_grouping': 'bool', + 'relative_time_period': 'str', + 'time_period_offset': 'str', + 'primary_grouping': 'SizedGrouping', + 'secondary_grouping': 'SizedGrouping', + 'currency_code': 'str' + } + + attribute_map = { + 'discount_types': 'discountTypes', + 'has_discount_type_grouping': 'hasDiscountTypeGrouping', + 'relative_time_period': 'relativeTimePeriod', + 'time_period_offset': 'timePeriodOffset', + 'primary_grouping': 'primaryGrouping', + 'secondary_grouping': 'secondaryGrouping', + 'currency_code': 'currencyCode' + } + + def __init__(self, discount_types=None, has_discount_type_grouping=None, relative_time_period=None, time_period_offset=None, primary_grouping=None, secondary_grouping=None, currency_code=None, _configuration=None): # noqa: E501 + """DiscountDataRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._discount_types = None + self._has_discount_type_grouping = None + self._relative_time_period = None + self._time_period_offset = None + self._primary_grouping = None + self._secondary_grouping = None + self._currency_code = None + self.discriminator = None + + if discount_types is not None: + self.discount_types = discount_types + if has_discount_type_grouping is not None: + self.has_discount_type_grouping = has_discount_type_grouping + if relative_time_period is not None: + self.relative_time_period = relative_time_period + if time_period_offset is not None: + self.time_period_offset = time_period_offset + if primary_grouping is not None: + self.primary_grouping = primary_grouping + if secondary_grouping is not None: + self.secondary_grouping = secondary_grouping + if currency_code is not None: + self.currency_code = currency_code + + @property + def discount_types(self): + """Gets the discount_types of this DiscountDataRequestModel. # noqa: E501 + + Discount Types. # noqa: E501 + + :return: The discount_types of this DiscountDataRequestModel. # noqa: E501 + :rtype: list[str] + """ + return self._discount_types + + @discount_types.setter + def discount_types(self, discount_types): + """Sets the discount_types of this DiscountDataRequestModel. + + Discount Types. # noqa: E501 + + :param discount_types: The discount_types of this DiscountDataRequestModel. # noqa: E501 + :type: list[str] + """ + allowed_values = ["CoveredUsage", "WastedCommitment", "UncoveredUsage", "PercentCoverage", "PercentUtilized", "RealizedSavings", "UpfrontFees", "RecurringFees", "TotalCommitment"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(discount_types).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `discount_types` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(discount_types) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._discount_types = discount_types + + @property + def has_discount_type_grouping(self): + """Gets the has_discount_type_grouping of this DiscountDataRequestModel. # noqa: E501 + + Returns true if it contains a DiscountTypes Grouping. # noqa: E501 + + :return: The has_discount_type_grouping of this DiscountDataRequestModel. # noqa: E501 + :rtype: bool + """ + return self._has_discount_type_grouping + + @has_discount_type_grouping.setter + def has_discount_type_grouping(self, has_discount_type_grouping): + """Sets the has_discount_type_grouping of this DiscountDataRequestModel. + + Returns true if it contains a DiscountTypes Grouping. # noqa: E501 + + :param has_discount_type_grouping: The has_discount_type_grouping of this DiscountDataRequestModel. # noqa: E501 + :type: bool + """ + + self._has_discount_type_grouping = has_discount_type_grouping + + @property + def relative_time_period(self): + """Gets the relative_time_period of this DiscountDataRequestModel. # noqa: E501 + + Relative time period to query. # noqa: E501 + + :return: The relative_time_period of this DiscountDataRequestModel. # noqa: E501 + :rtype: str + """ + return self._relative_time_period + + @relative_time_period.setter + def relative_time_period(self, relative_time_period): + """Sets the relative_time_period of this DiscountDataRequestModel. + + Relative time period to query. # noqa: E501 + + :param relative_time_period: The relative_time_period of this DiscountDataRequestModel. # noqa: E501 + :type: str + """ + + self._relative_time_period = relative_time_period + + @property + def time_period_offset(self): + """Gets the time_period_offset of this DiscountDataRequestModel. # noqa: E501 + + Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. # noqa: E501 + + :return: The time_period_offset of this DiscountDataRequestModel. # noqa: E501 + :rtype: str + """ + return self._time_period_offset + + @time_period_offset.setter + def time_period_offset(self, time_period_offset): + """Sets the time_period_offset of this DiscountDataRequestModel. + + Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. # noqa: E501 + + :param time_period_offset: The time_period_offset of this DiscountDataRequestModel. # noqa: E501 + :type: str + """ + + self._time_period_offset = time_period_offset + + @property + def primary_grouping(self): + """Gets the primary_grouping of this DiscountDataRequestModel. # noqa: E501 + + Primary grouping. # noqa: E501 + + :return: The primary_grouping of this DiscountDataRequestModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._primary_grouping + + @primary_grouping.setter + def primary_grouping(self, primary_grouping): + """Sets the primary_grouping of this DiscountDataRequestModel. + + Primary grouping. # noqa: E501 + + :param primary_grouping: The primary_grouping of this DiscountDataRequestModel. # noqa: E501 + :type: SizedGrouping + """ + + self._primary_grouping = primary_grouping + + @property + def secondary_grouping(self): + """Gets the secondary_grouping of this DiscountDataRequestModel. # noqa: E501 + + Secondary grouping. # noqa: E501 + + :return: The secondary_grouping of this DiscountDataRequestModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._secondary_grouping + + @secondary_grouping.setter + def secondary_grouping(self, secondary_grouping): + """Sets the secondary_grouping of this DiscountDataRequestModel. + + Secondary grouping. # noqa: E501 + + :param secondary_grouping: The secondary_grouping of this DiscountDataRequestModel. # noqa: E501 + :type: SizedGrouping + """ + + self._secondary_grouping = secondary_grouping + + @property + def currency_code(self): + """Gets the currency_code of this DiscountDataRequestModel. # noqa: E501 + + Currency code. # noqa: E501 + + :return: The currency_code of this DiscountDataRequestModel. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this DiscountDataRequestModel. + + Currency code. # noqa: E501 + + :param currency_code: The currency_code of this DiscountDataRequestModel. # noqa: E501 + :type: str + """ + + self._currency_code = currency_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DiscountDataRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiscountDataRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DiscountDataRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/discount_data_response_model.py b/cloudcheckr_cmx_client/models/discount_data_response_model.py new file mode 100644 index 0000000..9677ef5 --- /dev/null +++ b/cloudcheckr_cmx_client/models/discount_data_response_model.py @@ -0,0 +1,329 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class DiscountDataResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'currency_code': 'str', + 'discount_types': 'list[str]', + 'time_period': 'TimePeriod', + 'primary_grouping': 'SizedGrouping', + 'secondary_grouping': 'SizedGrouping', + 'filter': 'str', + 'data_set_info': 'DataSetInfo', + 'data_points': 'list[Datapoint]' + } + + attribute_map = { + 'currency_code': 'currencyCode', + 'discount_types': 'discountTypes', + 'time_period': 'timePeriod', + 'primary_grouping': 'primaryGrouping', + 'secondary_grouping': 'secondaryGrouping', + 'filter': 'filter', + 'data_set_info': 'dataSetInfo', + 'data_points': 'dataPoints' + } + + def __init__(self, currency_code=None, discount_types=None, time_period=None, primary_grouping=None, secondary_grouping=None, filter=None, data_set_info=None, data_points=None, _configuration=None): # noqa: E501 + """DiscountDataResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._currency_code = None + self._discount_types = None + self._time_period = None + self._primary_grouping = None + self._secondary_grouping = None + self._filter = None + self._data_set_info = None + self._data_points = None + self.discriminator = None + + if currency_code is not None: + self.currency_code = currency_code + if discount_types is not None: + self.discount_types = discount_types + if time_period is not None: + self.time_period = time_period + if primary_grouping is not None: + self.primary_grouping = primary_grouping + if secondary_grouping is not None: + self.secondary_grouping = secondary_grouping + if filter is not None: + self.filter = filter + if data_set_info is not None: + self.data_set_info = data_set_info + if data_points is not None: + self.data_points = data_points + + @property + def currency_code(self): + """Gets the currency_code of this DiscountDataResponseModel. # noqa: E501 + + Currency code. # noqa: E501 + + :return: The currency_code of this DiscountDataResponseModel. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this DiscountDataResponseModel. + + Currency code. # noqa: E501 + + :param currency_code: The currency_code of this DiscountDataResponseModel. # noqa: E501 + :type: str + """ + + self._currency_code = currency_code + + @property + def discount_types(self): + """Gets the discount_types of this DiscountDataResponseModel. # noqa: E501 + + Discount Types # noqa: E501 + + :return: The discount_types of this DiscountDataResponseModel. # noqa: E501 + :rtype: list[str] + """ + return self._discount_types + + @discount_types.setter + def discount_types(self, discount_types): + """Sets the discount_types of this DiscountDataResponseModel. + + Discount Types # noqa: E501 + + :param discount_types: The discount_types of this DiscountDataResponseModel. # noqa: E501 + :type: list[str] + """ + allowed_values = ["CoveredUsage", "WastedCommitment", "UncoveredUsage", "PercentCoverage", "PercentUtilized", "RealizedSavings", "UpfrontFees", "RecurringFees", "TotalCommitment"] # noqa: E501 + if (self._configuration.client_side_validation and + not set(discount_types).issubset(set(allowed_values))): # noqa: E501 + raise ValueError( + "Invalid values for `discount_types` [{0}], must be a subset of [{1}]" # noqa: E501 + .format(", ".join(map(str, set(discount_types) - set(allowed_values))), # noqa: E501 + ", ".join(map(str, allowed_values))) + ) + + self._discount_types = discount_types + + @property + def time_period(self): + """Gets the time_period of this DiscountDataResponseModel. # noqa: E501 + + Time period captured by the data set. # noqa: E501 + + :return: The time_period of this DiscountDataResponseModel. # noqa: E501 + :rtype: TimePeriod + """ + return self._time_period + + @time_period.setter + def time_period(self, time_period): + """Sets the time_period of this DiscountDataResponseModel. + + Time period captured by the data set. # noqa: E501 + + :param time_period: The time_period of this DiscountDataResponseModel. # noqa: E501 + :type: TimePeriod + """ + + self._time_period = time_period + + @property + def primary_grouping(self): + """Gets the primary_grouping of this DiscountDataResponseModel. # noqa: E501 + + Primary grouping. # noqa: E501 + + :return: The primary_grouping of this DiscountDataResponseModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._primary_grouping + + @primary_grouping.setter + def primary_grouping(self, primary_grouping): + """Sets the primary_grouping of this DiscountDataResponseModel. + + Primary grouping. # noqa: E501 + + :param primary_grouping: The primary_grouping of this DiscountDataResponseModel. # noqa: E501 + :type: SizedGrouping + """ + + self._primary_grouping = primary_grouping + + @property + def secondary_grouping(self): + """Gets the secondary_grouping of this DiscountDataResponseModel. # noqa: E501 + + Secondary grouping. # noqa: E501 + + :return: The secondary_grouping of this DiscountDataResponseModel. # noqa: E501 + :rtype: SizedGrouping + """ + return self._secondary_grouping + + @secondary_grouping.setter + def secondary_grouping(self, secondary_grouping): + """Sets the secondary_grouping of this DiscountDataResponseModel. + + Secondary grouping. # noqa: E501 + + :param secondary_grouping: The secondary_grouping of this DiscountDataResponseModel. # noqa: E501 + :type: SizedGrouping + """ + + self._secondary_grouping = secondary_grouping + + @property + def filter(self): + """Gets the filter of this DiscountDataResponseModel. # noqa: E501 + + Query filter. # noqa: E501 + + :return: The filter of this DiscountDataResponseModel. # noqa: E501 + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this DiscountDataResponseModel. + + Query filter. # noqa: E501 + + :param filter: The filter of this DiscountDataResponseModel. # noqa: E501 + :type: str + """ + + self._filter = filter + + @property + def data_set_info(self): + """Gets the data_set_info of this DiscountDataResponseModel. # noqa: E501 + + Data set info (e.g. new data set, etc). # noqa: E501 + + :return: The data_set_info of this DiscountDataResponseModel. # noqa: E501 + :rtype: DataSetInfo + """ + return self._data_set_info + + @data_set_info.setter + def data_set_info(self, data_set_info): + """Sets the data_set_info of this DiscountDataResponseModel. + + Data set info (e.g. new data set, etc). # noqa: E501 + + :param data_set_info: The data_set_info of this DiscountDataResponseModel. # noqa: E501 + :type: DataSetInfo + """ + + self._data_set_info = data_set_info + + @property + def data_points(self): + """Gets the data_points of this DiscountDataResponseModel. # noqa: E501 + + Requested data points. # noqa: E501 + + :return: The data_points of this DiscountDataResponseModel. # noqa: E501 + :rtype: list[Datapoint] + """ + return self._data_points + + @data_points.setter + def data_points(self, data_points): + """Sets the data_points of this DiscountDataResponseModel. + + Requested data points. # noqa: E501 + + :param data_points: The data_points of this DiscountDataResponseModel. # noqa: E501 + :type: list[Datapoint] + """ + + self._data_points = data_points + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DiscountDataResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiscountDataResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DiscountDataResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/grouping_option.py b/cloudcheckr_cmx_client/models/grouping_option.py new file mode 100644 index 0000000..3d58660 --- /dev/null +++ b/cloudcheckr_cmx_client/models/grouping_option.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class GroupingOption(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'display_name': 'str' + } + + attribute_map = { + 'id': 'id', + 'display_name': 'displayName' + } + + def __init__(self, id=None, display_name=None, _configuration=None): # noqa: E501 + """GroupingOption - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._display_name = None + self.discriminator = None + + if id is not None: + self.id = id + if display_name is not None: + self.display_name = display_name + + @property + def id(self): + """Gets the id of this GroupingOption. # noqa: E501 + + The grouping's ID. # noqa: E501 + + :return: The id of this GroupingOption. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GroupingOption. + + The grouping's ID. # noqa: E501 + + :param id: The id of this GroupingOption. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def display_name(self): + """Gets the display_name of this GroupingOption. # noqa: E501 + + The grouping's display name. # noqa: E501 + + :return: The display_name of this GroupingOption. # noqa: E501 + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this GroupingOption. + + The grouping's display name. # noqa: E501 + + :param display_name: The display_name of this GroupingOption. # noqa: E501 + :type: str + """ + + self._display_name = display_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GroupingOption, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupingOption): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupingOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/landing_page_model.py b/cloudcheckr_cmx_client/models/landing_page_model.py new file mode 100644 index 0000000..cd4d80a --- /dev/null +++ b/cloudcheckr_cmx_client/models/landing_page_model.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class LandingPageModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'scope': 'str', + 'page': 'str' + } + + attribute_map = { + 'scope': 'scope', + 'page': 'page' + } + + def __init__(self, scope=None, page=None, _configuration=None): # noqa: E501 + """LandingPageModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._scope = None + self._page = None + self.discriminator = None + + if scope is not None: + self.scope = scope + if page is not None: + self.page = page + + @property + def scope(self): + """Gets the scope of this LandingPageModel. # noqa: E501 + + Scope of the page (i.e. customer, account) # noqa: E501 + + :return: The scope of this LandingPageModel. # noqa: E501 + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this LandingPageModel. + + Scope of the page (i.e. customer, account) # noqa: E501 + + :param scope: The scope of this LandingPageModel. # noqa: E501 + :type: str + """ + allowed_values = ["Customer", "Account"] # noqa: E501 + if (self._configuration.client_side_validation and + scope not in allowed_values): + raise ValueError( + "Invalid value for `scope` ({0}), must be one of {1}" # noqa: E501 + .format(scope, allowed_values) + ) + + self._scope = scope + + @property + def page(self): + """Gets the page of this LandingPageModel. # noqa: E501 + + Relative path of the page. Excludes the portions of the path that specify the target scope (e.g. customer, account). # noqa: E501 + + :return: The page of this LandingPageModel. # noqa: E501 + :rtype: str + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this LandingPageModel. + + Relative path of the page. Excludes the portions of the path that specify the target scope (e.g. customer, account). # noqa: E501 + + :param page: The page of this LandingPageModel. # noqa: E501 + :type: str + """ + + self._page = page + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(LandingPageModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LandingPageModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, LandingPageModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/map_to_payer_credential_request_model.py b/cloudcheckr_cmx_client/models/map_to_payer_credential_request_model.py new file mode 100644 index 0000000..15f6ce0 --- /dev/null +++ b/cloudcheckr_cmx_client/models/map_to_payer_credential_request_model.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class MapToPayerCredentialRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payer_id': 'str', + 'provider_payee_id': 'str', + 'provider': 'str' + } + + attribute_map = { + 'payer_id': 'payerId', + 'provider_payee_id': 'providerPayeeId', + 'provider': 'provider' + } + + def __init__(self, payer_id=None, provider_payee_id=None, provider=None, _configuration=None): # noqa: E501 + """MapToPayerCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._payer_id = None + self._provider_payee_id = None + self._provider = None + self.discriminator = None + + if payer_id is not None: + self.payer_id = payer_id + if provider_payee_id is not None: + self.provider_payee_id = provider_payee_id + if provider is not None: + self.provider = provider + + @property + def payer_id(self): + """Gets the payer_id of this MapToPayerCredentialRequestModel. # noqa: E501 + + Cloudcheckr account to be mapped to. # noqa: E501 + + :return: The payer_id of this MapToPayerCredentialRequestModel. # noqa: E501 + :rtype: str + """ + return self._payer_id + + @payer_id.setter + def payer_id(self, payer_id): + """Sets the payer_id of this MapToPayerCredentialRequestModel. + + Cloudcheckr account to be mapped to. # noqa: E501 + + :param payer_id: The payer_id of this MapToPayerCredentialRequestModel. # noqa: E501 + :type: str + """ + + self._payer_id = payer_id + + @property + def provider_payee_id(self): + """Gets the provider_payee_id of this MapToPayerCredentialRequestModel. # noqa: E501 + + The cloud provider ID of the payee account to link to in the payer account. For AWS, this is the AWS account ID. For Azure, this is the Azure subscription ID. # noqa: E501 + + :return: The provider_payee_id of this MapToPayerCredentialRequestModel. # noqa: E501 + :rtype: str + """ + return self._provider_payee_id + + @provider_payee_id.setter + def provider_payee_id(self, provider_payee_id): + """Sets the provider_payee_id of this MapToPayerCredentialRequestModel. + + The cloud provider ID of the payee account to link to in the payer account. For AWS, this is the AWS account ID. For Azure, this is the Azure subscription ID. # noqa: E501 + + :param provider_payee_id: The provider_payee_id of this MapToPayerCredentialRequestModel. # noqa: E501 + :type: str + """ + + self._provider_payee_id = provider_payee_id + + @property + def provider(self): + """Gets the provider of this MapToPayerCredentialRequestModel. # noqa: E501 + + The account's cloud provider. # noqa: E501 + + :return: The provider of this MapToPayerCredentialRequestModel. # noqa: E501 + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this MapToPayerCredentialRequestModel. + + The account's cloud provider. # noqa: E501 + + :param provider: The provider of this MapToPayerCredentialRequestModel. # noqa: E501 + :type: str + """ + allowed_values = ["NotApplicable", "AWS", "Azure", "Google", "VMware", "Oracle"] # noqa: E501 + if (self._configuration.client_side_validation and + provider not in allowed_values): + raise ValueError( + "Invalid value for `provider` ({0}), must be one of {1}" # noqa: E501 + .format(provider, allowed_values) + ) + + self._provider = provider + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(MapToPayerCredentialRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MapToPayerCredentialRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MapToPayerCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/new_query_response_model.py b/cloudcheckr_cmx_client/models/new_query_response_model.py new file mode 100644 index 0000000..f066b08 --- /dev/null +++ b/cloudcheckr_cmx_client/models/new_query_response_model.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class NewQueryResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'state': 'str', + 'requested_date': 'datetime' + } + + attribute_map = { + 'id': 'id', + 'state': 'state', + 'requested_date': 'requestedDate' + } + + def __init__(self, id=None, state=None, requested_date=None, _configuration=None): # noqa: E501 + """NewQueryResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._state = None + self._requested_date = None + self.discriminator = None + + if id is not None: + self.id = id + if state is not None: + self.state = state + if requested_date is not None: + self.requested_date = requested_date + + @property + def id(self): + """Gets the id of this NewQueryResponseModel. # noqa: E501 + + The query ID. # noqa: E501 + + :return: The id of this NewQueryResponseModel. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NewQueryResponseModel. + + The query ID. # noqa: E501 + + :param id: The id of this NewQueryResponseModel. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def state(self): + """Gets the state of this NewQueryResponseModel. # noqa: E501 + + The current state of the query. # noqa: E501 + + :return: The state of this NewQueryResponseModel. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this NewQueryResponseModel. + + The current state of the query. # noqa: E501 + + :param state: The state of this NewQueryResponseModel. # noqa: E501 + :type: str + """ + allowed_values = ["Pending", "InProgress", "Canceled", "Failed", "Completed"] # noqa: E501 + if (self._configuration.client_side_validation and + state not in allowed_values): + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 + .format(state, allowed_values) + ) + + self._state = state + + @property + def requested_date(self): + """Gets the requested_date of this NewQueryResponseModel. # noqa: E501 + + The timestamp indicating when the query was requested. # noqa: E501 + + :return: The requested_date of this NewQueryResponseModel. # noqa: E501 + :rtype: datetime + """ + return self._requested_date + + @requested_date.setter + def requested_date(self, requested_date): + """Sets the requested_date of this NewQueryResponseModel. + + The timestamp indicating when the query was requested. # noqa: E501 + + :param requested_date: The requested_date of this NewQueryResponseModel. # noqa: E501 + :type: datetime + """ + + self._requested_date = requested_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NewQueryResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NewQueryResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NewQueryResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_response_dashboard_common_response_model.py b/cloudcheckr_cmx_client/models/pagination_response_dashboard_common_response_model.py new file mode 100644 index 0000000..e853228 --- /dev/null +++ b/cloudcheckr_cmx_client/models/pagination_response_dashboard_common_response_model.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class PaginationResponseDashboardCommonResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'items': 'list[DashboardCommonResponseModel]', + 'pagination': 'PaginationInfo' + } + + attribute_map = { + 'items': 'items', + 'pagination': 'pagination' + } + + def __init__(self, items=None, pagination=None, _configuration=None): # noqa: E501 + """PaginationResponseDashboardCommonResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._items = None + self._pagination = None + self.discriminator = None + + if items is not None: + self.items = items + if pagination is not None: + self.pagination = pagination + + @property + def items(self): + """Gets the items of this PaginationResponseDashboardCommonResponseModel. # noqa: E501 + + + :return: The items of this PaginationResponseDashboardCommonResponseModel. # noqa: E501 + :rtype: list[DashboardCommonResponseModel] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PaginationResponseDashboardCommonResponseModel. + + + :param items: The items of this PaginationResponseDashboardCommonResponseModel. # noqa: E501 + :type: list[DashboardCommonResponseModel] + """ + + self._items = items + + @property + def pagination(self): + """Gets the pagination of this PaginationResponseDashboardCommonResponseModel. # noqa: E501 + + + :return: The pagination of this PaginationResponseDashboardCommonResponseModel. # noqa: E501 + :rtype: PaginationInfo + """ + return self._pagination + + @pagination.setter + def pagination(self, pagination): + """Sets the pagination of this PaginationResponseDashboardCommonResponseModel. + + + :param pagination: The pagination of this PaginationResponseDashboardCommonResponseModel. # noqa: E501 + :type: PaginationInfo + """ + + self._pagination = pagination + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PaginationResponseDashboardCommonResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PaginationResponseDashboardCommonResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PaginationResponseDashboardCommonResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_response_tag_key_response_model.py b/cloudcheckr_cmx_client/models/pagination_response_tag_key_response_model.py new file mode 100644 index 0000000..8a861fa --- /dev/null +++ b/cloudcheckr_cmx_client/models/pagination_response_tag_key_response_model.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class PaginationResponseTagKeyResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'items': 'list[TagKeyResponseModel]', + 'pagination': 'PaginationInfo' + } + + attribute_map = { + 'items': 'items', + 'pagination': 'pagination' + } + + def __init__(self, items=None, pagination=None, _configuration=None): # noqa: E501 + """PaginationResponseTagKeyResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._items = None + self._pagination = None + self.discriminator = None + + if items is not None: + self.items = items + if pagination is not None: + self.pagination = pagination + + @property + def items(self): + """Gets the items of this PaginationResponseTagKeyResponseModel. # noqa: E501 + + + :return: The items of this PaginationResponseTagKeyResponseModel. # noqa: E501 + :rtype: list[TagKeyResponseModel] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PaginationResponseTagKeyResponseModel. + + + :param items: The items of this PaginationResponseTagKeyResponseModel. # noqa: E501 + :type: list[TagKeyResponseModel] + """ + + self._items = items + + @property + def pagination(self): + """Gets the pagination of this PaginationResponseTagKeyResponseModel. # noqa: E501 + + + :return: The pagination of this PaginationResponseTagKeyResponseModel. # noqa: E501 + :rtype: PaginationInfo + """ + return self._pagination + + @pagination.setter + def pagination(self, pagination): + """Sets the pagination of this PaginationResponseTagKeyResponseModel. + + + :param pagination: The pagination of this PaginationResponseTagKeyResponseModel. # noqa: E501 + :type: PaginationInfo + """ + + self._pagination = pagination + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PaginationResponseTagKeyResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PaginationResponseTagKeyResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PaginationResponseTagKeyResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_response_tag_value_response_model.py b/cloudcheckr_cmx_client/models/pagination_response_tag_value_response_model.py new file mode 100644 index 0000000..19890ef --- /dev/null +++ b/cloudcheckr_cmx_client/models/pagination_response_tag_value_response_model.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class PaginationResponseTagValueResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'items': 'list[TagValueResponseModel]', + 'pagination': 'PaginationInfo' + } + + attribute_map = { + 'items': 'items', + 'pagination': 'pagination' + } + + def __init__(self, items=None, pagination=None, _configuration=None): # noqa: E501 + """PaginationResponseTagValueResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._items = None + self._pagination = None + self.discriminator = None + + if items is not None: + self.items = items + if pagination is not None: + self.pagination = pagination + + @property + def items(self): + """Gets the items of this PaginationResponseTagValueResponseModel. # noqa: E501 + + + :return: The items of this PaginationResponseTagValueResponseModel. # noqa: E501 + :rtype: list[TagValueResponseModel] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PaginationResponseTagValueResponseModel. + + + :param items: The items of this PaginationResponseTagValueResponseModel. # noqa: E501 + :type: list[TagValueResponseModel] + """ + + self._items = items + + @property + def pagination(self): + """Gets the pagination of this PaginationResponseTagValueResponseModel. # noqa: E501 + + + :return: The pagination of this PaginationResponseTagValueResponseModel. # noqa: E501 + :rtype: PaginationInfo + """ + return self._pagination + + @pagination.setter + def pagination(self, pagination): + """Sets the pagination of this PaginationResponseTagValueResponseModel. + + + :param pagination: The pagination of this PaginationResponseTagValueResponseModel. # noqa: E501 + :type: PaginationInfo + """ + + self._pagination = pagination + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PaginationResponseTagValueResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PaginationResponseTagValueResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PaginationResponseTagValueResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_dimension_value.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_dimension_value.py new file mode 100644 index 0000000..b8fa3c5 --- /dev/null +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_dimension_value.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class PaginationWithCountResponseDimensionValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_count': 'int', + 'items': 'list[DimensionValue]', + 'pagination': 'PaginationInfo' + } + + attribute_map = { + 'total_count': 'totalCount', + 'items': 'items', + 'pagination': 'pagination' + } + + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 + """PaginationWithCountResponseDimensionValue - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._total_count = None + self._items = None + self._pagination = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + if items is not None: + self.items = items + if pagination is not None: + self.pagination = pagination + + @property + def total_count(self): + """Gets the total_count of this PaginationWithCountResponseDimensionValue. # noqa: E501 + + + :return: The total_count of this PaginationWithCountResponseDimensionValue. # noqa: E501 + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this PaginationWithCountResponseDimensionValue. + + + :param total_count: The total_count of this PaginationWithCountResponseDimensionValue. # noqa: E501 + :type: int + """ + + self._total_count = total_count + + @property + def items(self): + """Gets the items of this PaginationWithCountResponseDimensionValue. # noqa: E501 + + + :return: The items of this PaginationWithCountResponseDimensionValue. # noqa: E501 + :rtype: list[DimensionValue] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PaginationWithCountResponseDimensionValue. + + + :param items: The items of this PaginationWithCountResponseDimensionValue. # noqa: E501 + :type: list[DimensionValue] + """ + + self._items = items + + @property + def pagination(self): + """Gets the pagination of this PaginationWithCountResponseDimensionValue. # noqa: E501 + + + :return: The pagination of this PaginationWithCountResponseDimensionValue. # noqa: E501 + :rtype: PaginationInfo + """ + return self._pagination + + @pagination.setter + def pagination(self, pagination): + """Sets the pagination of this PaginationWithCountResponseDimensionValue. + + + :param pagination: The pagination of this PaginationWithCountResponseDimensionValue. # noqa: E501 + :type: PaginationInfo + """ + + self._pagination = pagination + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PaginationWithCountResponseDimensionValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PaginationWithCountResponseDimensionValue): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PaginationWithCountResponseDimensionValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/pagination_with_count_response_tag_key_response_model.py b/cloudcheckr_cmx_client/models/pagination_with_count_response_tag_key_response_model.py new file mode 100644 index 0000000..46f9389 --- /dev/null +++ b/cloudcheckr_cmx_client/models/pagination_with_count_response_tag_key_response_model.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class PaginationWithCountResponseTagKeyResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_count': 'int', + 'items': 'list[TagKeyResponseModel]', + 'pagination': 'PaginationInfo' + } + + attribute_map = { + 'total_count': 'totalCount', + 'items': 'items', + 'pagination': 'pagination' + } + + def __init__(self, total_count=None, items=None, pagination=None, _configuration=None): # noqa: E501 + """PaginationWithCountResponseTagKeyResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._total_count = None + self._items = None + self._pagination = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + if items is not None: + self.items = items + if pagination is not None: + self.pagination = pagination + + @property + def total_count(self): + """Gets the total_count of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + + + :return: The total_count of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this PaginationWithCountResponseTagKeyResponseModel. + + + :param total_count: The total_count of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + :type: int + """ + + self._total_count = total_count + + @property + def items(self): + """Gets the items of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + + + :return: The items of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + :rtype: list[TagKeyResponseModel] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this PaginationWithCountResponseTagKeyResponseModel. + + + :param items: The items of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + :type: list[TagKeyResponseModel] + """ + + self._items = items + + @property + def pagination(self): + """Gets the pagination of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + + + :return: The pagination of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + :rtype: PaginationInfo + """ + return self._pagination + + @pagination.setter + def pagination(self, pagination): + """Sets the pagination of this PaginationWithCountResponseTagKeyResponseModel. + + + :param pagination: The pagination of this PaginationWithCountResponseTagKeyResponseModel. # noqa: E501 + :type: PaginationInfo + """ + + self._pagination = pagination + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PaginationWithCountResponseTagKeyResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PaginationWithCountResponseTagKeyResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PaginationWithCountResponseTagKeyResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/sized_grouping.py b/cloudcheckr_cmx_client/models/sized_grouping.py new file mode 100644 index 0000000..74043d5 --- /dev/null +++ b/cloudcheckr_cmx_client/models/sized_grouping.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class SizedGrouping(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'max_number_of_items': 'int', + 'group_name': 'str' + } + + attribute_map = { + 'max_number_of_items': 'maxNumberOfItems', + 'group_name': 'groupName' + } + + def __init__(self, max_number_of_items=None, group_name=None, _configuration=None): # noqa: E501 + """SizedGrouping - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._max_number_of_items = None + self._group_name = None + self.discriminator = None + + if max_number_of_items is not None: + self.max_number_of_items = max_number_of_items + if group_name is not None: + self.group_name = group_name + + @property + def max_number_of_items(self): + """Gets the max_number_of_items of this SizedGrouping. # noqa: E501 + + Limits the number of items returned for the grouping. If there are more items than the maximum requested, the top X items are returned and the remainder are grouped into an \"Other\" grouping. # noqa: E501 + + :return: The max_number_of_items of this SizedGrouping. # noqa: E501 + :rtype: int + """ + return self._max_number_of_items + + @max_number_of_items.setter + def max_number_of_items(self, max_number_of_items): + """Sets the max_number_of_items of this SizedGrouping. + + Limits the number of items returned for the grouping. If there are more items than the maximum requested, the top X items are returned and the remainder are grouped into an \"Other\" grouping. # noqa: E501 + + :param max_number_of_items: The max_number_of_items of this SizedGrouping. # noqa: E501 + :type: int + """ + + self._max_number_of_items = max_number_of_items + + @property + def group_name(self): + """Gets the group_name of this SizedGrouping. # noqa: E501 + + Property to group by. # noqa: E501 + + :return: The group_name of this SizedGrouping. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this SizedGrouping. + + Property to group by. # noqa: E501 + + :param group_name: The group_name of this SizedGrouping. # noqa: E501 + :type: str + """ + + self._group_name = group_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SizedGrouping, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SizedGrouping): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SizedGrouping): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/sorting_option.py b/cloudcheckr_cmx_client/models/sorting_option.py new file mode 100644 index 0000000..96fc623 --- /dev/null +++ b/cloudcheckr_cmx_client/models/sorting_option.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class SortingOption(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'field': 'str', + 'direction': 'str' + } + + attribute_map = { + 'field': 'field', + 'direction': 'direction' + } + + def __init__(self, field=None, direction=None, _configuration=None): # noqa: E501 + """SortingOption - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._field = None + self._direction = None + self.discriminator = None + + if field is not None: + self.field = field + if direction is not None: + self.direction = direction + + @property + def field(self): + """Gets the field of this SortingOption. # noqa: E501 + + Field that will be used on order by clause. # noqa: E501 + + :return: The field of this SortingOption. # noqa: E501 + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """Sets the field of this SortingOption. + + Field that will be used on order by clause. # noqa: E501 + + :param field: The field of this SortingOption. # noqa: E501 + :type: str + """ + + self._field = field + + @property + def direction(self): + """Gets the direction of this SortingOption. # noqa: E501 + + Direction that will be used to perform the order by clause. # noqa: E501 + + :return: The direction of this SortingOption. # noqa: E501 + :rtype: str + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this SortingOption. + + Direction that will be used to perform the order by clause. # noqa: E501 + + :param direction: The direction of this SortingOption. # noqa: E501 + :type: str + """ + allowed_values = ["ASC", "DESC"] # noqa: E501 + if (self._configuration.client_side_validation and + direction not in allowed_values): + raise ValueError( + "Invalid value for `direction` ({0}), must be one of {1}" # noqa: E501 + .format(direction, allowed_values) + ) + + self._direction = direction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SortingOption, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SortingOption): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SortingOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/tag_key.py b/cloudcheckr_cmx_client/models/tag_key.py new file mode 100644 index 0000000..93fee5e --- /dev/null +++ b/cloudcheckr_cmx_client/models/tag_key.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class TagKey(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'value': 'str' + } + + attribute_map = { + 'id': 'id', + 'value': 'value' + } + + def __init__(self, id=None, value=None, _configuration=None): # noqa: E501 + """TagKey - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._id = None + self._value = None + self.discriminator = None + + if id is not None: + self.id = id + if value is not None: + self.value = value + + @property + def id(self): + """Gets the id of this TagKey. # noqa: E501 + + The tag key ID. # noqa: E501 + + :return: The id of this TagKey. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TagKey. + + The tag key ID. # noqa: E501 + + :param id: The id of this TagKey. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def value(self): + """Gets the value of this TagKey. # noqa: E501 + + The tag key name. # noqa: E501 + + :return: The value of this TagKey. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TagKey. + + The tag key name. # noqa: E501 + + :param value: The value of this TagKey. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TagKey, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TagKey): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TagKey): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/tag_key_response_model.py b/cloudcheckr_cmx_client/models/tag_key_response_model.py new file mode 100644 index 0000000..17decdc --- /dev/null +++ b/cloudcheckr_cmx_client/models/tag_key_response_model.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class TagKeyResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tag_key': 'str' + } + + attribute_map = { + 'tag_key': 'tagKey' + } + + def __init__(self, tag_key=None, _configuration=None): # noqa: E501 + """TagKeyResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._tag_key = None + self.discriminator = None + + if tag_key is not None: + self.tag_key = tag_key + + @property + def tag_key(self): + """Gets the tag_key of this TagKeyResponseModel. # noqa: E501 + + Tag Key # noqa: E501 + + :return: The tag_key of this TagKeyResponseModel. # noqa: E501 + :rtype: str + """ + return self._tag_key + + @tag_key.setter + def tag_key(self, tag_key): + """Sets the tag_key of this TagKeyResponseModel. + + Tag Key # noqa: E501 + + :param tag_key: The tag_key of this TagKeyResponseModel. # noqa: E501 + :type: str + """ + + self._tag_key = tag_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TagKeyResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TagKeyResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TagKeyResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/tag_value_response_model.py b/cloudcheckr_cmx_client/models/tag_value_response_model.py new file mode 100644 index 0000000..e4fe44f --- /dev/null +++ b/cloudcheckr_cmx_client/models/tag_value_response_model.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class TagValueResponseModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tag_value': 'str' + } + + attribute_map = { + 'tag_value': 'tagValue' + } + + def __init__(self, tag_value=None, _configuration=None): # noqa: E501 + """TagValueResponseModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._tag_value = None + self.discriminator = None + + if tag_value is not None: + self.tag_value = tag_value + + @property + def tag_value(self): + """Gets the tag_value of this TagValueResponseModel. # noqa: E501 + + Tag value # noqa: E501 + + :return: The tag_value of this TagValueResponseModel. # noqa: E501 + :rtype: str + """ + return self._tag_value + + @tag_value.setter + def tag_value(self, tag_value): + """Sets the tag_value of this TagValueResponseModel. + + Tag value # noqa: E501 + + :param tag_value: The tag_value of this TagValueResponseModel. # noqa: E501 + :type: str + """ + + self._tag_value = tag_value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TagValueResponseModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TagValueResponseModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TagValueResponseModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/time_period.py b/cloudcheckr_cmx_client/models/time_period.py new file mode 100644 index 0000000..80f9757 --- /dev/null +++ b/cloudcheckr_cmx_client/models/time_period.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class TimePeriod(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'relative_time_period': 'str', + 'time_period_offset': 'str', + 'actual_start_date': 'datetime', + 'actual_end_date': 'datetime' + } + + attribute_map = { + 'relative_time_period': 'relativeTimePeriod', + 'time_period_offset': 'timePeriodOffset', + 'actual_start_date': 'actualStartDate', + 'actual_end_date': 'actualEndDate' + } + + def __init__(self, relative_time_period=None, time_period_offset=None, actual_start_date=None, actual_end_date=None, _configuration=None): # noqa: E501 + """TimePeriod - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._relative_time_period = None + self._time_period_offset = None + self._actual_start_date = None + self._actual_end_date = None + self.discriminator = None + + if relative_time_period is not None: + self.relative_time_period = relative_time_period + if time_period_offset is not None: + self.time_period_offset = time_period_offset + if actual_start_date is not None: + self.actual_start_date = actual_start_date + if actual_end_date is not None: + self.actual_end_date = actual_end_date + + @property + def relative_time_period(self): + """Gets the relative_time_period of this TimePeriod. # noqa: E501 + + Requested time period (e.g. 3m = 3 months, 3d = 3 days). # noqa: E501 + + :return: The relative_time_period of this TimePeriod. # noqa: E501 + :rtype: str + """ + return self._relative_time_period + + @relative_time_period.setter + def relative_time_period(self, relative_time_period): + """Sets the relative_time_period of this TimePeriod. + + Requested time period (e.g. 3m = 3 months, 3d = 3 days). # noqa: E501 + + :param relative_time_period: The relative_time_period of this TimePeriod. # noqa: E501 + :type: str + """ + + self._relative_time_period = relative_time_period + + @property + def time_period_offset(self): + """Gets the time_period_offset of this TimePeriod. # noqa: E501 + + Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. # noqa: E501 + + :return: The time_period_offset of this TimePeriod. # noqa: E501 + :rtype: str + """ + return self._time_period_offset + + @time_period_offset.setter + def time_period_offset(self, time_period_offset): + """Sets the time_period_offset of this TimePeriod. + + Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. # noqa: E501 + + :param time_period_offset: The time_period_offset of this TimePeriod. # noqa: E501 + :type: str + """ + + self._time_period_offset = time_period_offset + + @property + def actual_start_date(self): + """Gets the actual_start_date of this TimePeriod. # noqa: E501 + + Start date calculated when the relative time period was used to generate the data set. # noqa: E501 + + :return: The actual_start_date of this TimePeriod. # noqa: E501 + :rtype: datetime + """ + return self._actual_start_date + + @actual_start_date.setter + def actual_start_date(self, actual_start_date): + """Sets the actual_start_date of this TimePeriod. + + Start date calculated when the relative time period was used to generate the data set. # noqa: E501 + + :param actual_start_date: The actual_start_date of this TimePeriod. # noqa: E501 + :type: datetime + """ + + self._actual_start_date = actual_start_date + + @property + def actual_end_date(self): + """Gets the actual_end_date of this TimePeriod. # noqa: E501 + + End date calculated when the relative time period was used to generate the data set. # noqa: E501 + + :return: The actual_end_date of this TimePeriod. # noqa: E501 + :rtype: datetime + """ + return self._actual_end_date + + @actual_end_date.setter + def actual_end_date(self, actual_end_date): + """Sets the actual_end_date of this TimePeriod. + + End date calculated when the relative time period was used to generate the data set. # noqa: E501 + + :param actual_end_date: The actual_end_date of this TimePeriod. # noqa: E501 + :type: datetime + """ + + self._actual_end_date = actual_end_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TimePeriod, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TimePeriod): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TimePeriod): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_customer_update_request_model.py b/cloudcheckr_cmx_client/models/update_request_customer_update_request_model.py new file mode 100644 index 0000000..1075f7f --- /dev/null +++ b/cloudcheckr_cmx_client/models/update_request_customer_update_request_model.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class UpdateRequestCustomerUpdateRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'CustomerUpdateRequestModel', + 'reset_properties': 'list[str]' + } + + attribute_map = { + 'item': 'item', + 'reset_properties': 'resetProperties' + } + + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 + """UpdateRequestCustomerUpdateRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self._reset_properties = None + self.discriminator = None + + if item is not None: + self.item = item + if reset_properties is not None: + self.reset_properties = reset_properties + + @property + def item(self): + """Gets the item of this UpdateRequestCustomerUpdateRequestModel. # noqa: E501 + + Item to update # noqa: E501 + + :return: The item of this UpdateRequestCustomerUpdateRequestModel. # noqa: E501 + :rtype: CustomerUpdateRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this UpdateRequestCustomerUpdateRequestModel. + + Item to update # noqa: E501 + + :param item: The item of this UpdateRequestCustomerUpdateRequestModel. # noqa: E501 + :type: CustomerUpdateRequestModel + """ + + self._item = item + + @property + def reset_properties(self): + """Gets the reset_properties of this UpdateRequestCustomerUpdateRequestModel. # noqa: E501 + + If a property name is included in this list, then its value will be forced to its default value (default value may be null). # noqa: E501 + + :return: The reset_properties of this UpdateRequestCustomerUpdateRequestModel. # noqa: E501 + :rtype: list[str] + """ + return self._reset_properties + + @reset_properties.setter + def reset_properties(self, reset_properties): + """Sets the reset_properties of this UpdateRequestCustomerUpdateRequestModel. + + If a property name is included in this list, then its value will be forced to its default value (default value may be null). # noqa: E501 + + :param reset_properties: The reset_properties of this UpdateRequestCustomerUpdateRequestModel. # noqa: E501 + :type: list[str] + """ + + self._reset_properties = reset_properties + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UpdateRequestCustomerUpdateRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRequestCustomerUpdateRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UpdateRequestCustomerUpdateRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_dashboard_panel_request_model.py b/cloudcheckr_cmx_client/models/update_request_dashboard_panel_request_model.py new file mode 100644 index 0000000..6d9de8c --- /dev/null +++ b/cloudcheckr_cmx_client/models/update_request_dashboard_panel_request_model.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class UpdateRequestDashboardPanelRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'DashboardPanelRequestModel', + 'reset_properties': 'list[str]' + } + + attribute_map = { + 'item': 'item', + 'reset_properties': 'resetProperties' + } + + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 + """UpdateRequestDashboardPanelRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self._reset_properties = None + self.discriminator = None + + if item is not None: + self.item = item + if reset_properties is not None: + self.reset_properties = reset_properties + + @property + def item(self): + """Gets the item of this UpdateRequestDashboardPanelRequestModel. # noqa: E501 + + + :return: The item of this UpdateRequestDashboardPanelRequestModel. # noqa: E501 + :rtype: DashboardPanelRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this UpdateRequestDashboardPanelRequestModel. + + + :param item: The item of this UpdateRequestDashboardPanelRequestModel. # noqa: E501 + :type: DashboardPanelRequestModel + """ + + self._item = item + + @property + def reset_properties(self): + """Gets the reset_properties of this UpdateRequestDashboardPanelRequestModel. # noqa: E501 + + + :return: The reset_properties of this UpdateRequestDashboardPanelRequestModel. # noqa: E501 + :rtype: list[str] + """ + return self._reset_properties + + @reset_properties.setter + def reset_properties(self, reset_properties): + """Sets the reset_properties of this UpdateRequestDashboardPanelRequestModel. + + + :param reset_properties: The reset_properties of this UpdateRequestDashboardPanelRequestModel. # noqa: E501 + :type: list[str] + """ + + self._reset_properties = reset_properties + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UpdateRequestDashboardPanelRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRequestDashboardPanelRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UpdateRequestDashboardPanelRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_dashboard_request_model.py b/cloudcheckr_cmx_client/models/update_request_dashboard_request_model.py new file mode 100644 index 0000000..1b78736 --- /dev/null +++ b/cloudcheckr_cmx_client/models/update_request_dashboard_request_model.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class UpdateRequestDashboardRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'DashboardRequestModel', + 'reset_properties': 'list[str]' + } + + attribute_map = { + 'item': 'item', + 'reset_properties': 'resetProperties' + } + + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 + """UpdateRequestDashboardRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self._reset_properties = None + self.discriminator = None + + if item is not None: + self.item = item + if reset_properties is not None: + self.reset_properties = reset_properties + + @property + def item(self): + """Gets the item of this UpdateRequestDashboardRequestModel. # noqa: E501 + + + :return: The item of this UpdateRequestDashboardRequestModel. # noqa: E501 + :rtype: DashboardRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this UpdateRequestDashboardRequestModel. + + + :param item: The item of this UpdateRequestDashboardRequestModel. # noqa: E501 + :type: DashboardRequestModel + """ + + self._item = item + + @property + def reset_properties(self): + """Gets the reset_properties of this UpdateRequestDashboardRequestModel. # noqa: E501 + + + :return: The reset_properties of this UpdateRequestDashboardRequestModel. # noqa: E501 + :rtype: list[str] + """ + return self._reset_properties + + @reset_properties.setter + def reset_properties(self, reset_properties): + """Sets the reset_properties of this UpdateRequestDashboardRequestModel. + + + :param reset_properties: The reset_properties of this UpdateRequestDashboardRequestModel. # noqa: E501 + :type: list[str] + """ + + self._reset_properties = reset_properties + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UpdateRequestDashboardRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRequestDashboardRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UpdateRequestDashboardRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/cloudcheckr_cmx_client/models/update_request_map_to_payer_credential_request_model.py b/cloudcheckr_cmx_client/models/update_request_map_to_payer_credential_request_model.py new file mode 100644 index 0000000..cd0dcd4 --- /dev/null +++ b/cloudcheckr_cmx_client/models/update_request_map_to_payer_credential_request_model.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudcheckr_cmx_client.configuration import Configuration + + +class UpdateRequestMapToPayerCredentialRequestModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'item': 'MapToPayerCredentialRequestModel', + 'reset_properties': 'list[str]' + } + + attribute_map = { + 'item': 'item', + 'reset_properties': 'resetProperties' + } + + def __init__(self, item=None, reset_properties=None, _configuration=None): # noqa: E501 + """UpdateRequestMapToPayerCredentialRequestModel - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._item = None + self._reset_properties = None + self.discriminator = None + + if item is not None: + self.item = item + if reset_properties is not None: + self.reset_properties = reset_properties + + @property + def item(self): + """Gets the item of this UpdateRequestMapToPayerCredentialRequestModel. # noqa: E501 + + Item to update # noqa: E501 + + :return: The item of this UpdateRequestMapToPayerCredentialRequestModel. # noqa: E501 + :rtype: MapToPayerCredentialRequestModel + """ + return self._item + + @item.setter + def item(self, item): + """Sets the item of this UpdateRequestMapToPayerCredentialRequestModel. + + Item to update # noqa: E501 + + :param item: The item of this UpdateRequestMapToPayerCredentialRequestModel. # noqa: E501 + :type: MapToPayerCredentialRequestModel + """ + + self._item = item + + @property + def reset_properties(self): + """Gets the reset_properties of this UpdateRequestMapToPayerCredentialRequestModel. # noqa: E501 + + If a property name is included in this list, then its value will be forced to its default value (default value may be null). # noqa: E501 + + :return: The reset_properties of this UpdateRequestMapToPayerCredentialRequestModel. # noqa: E501 + :rtype: list[str] + """ + return self._reset_properties + + @reset_properties.setter + def reset_properties(self, reset_properties): + """Sets the reset_properties of this UpdateRequestMapToPayerCredentialRequestModel. + + If a property name is included in this list, then its value will be forced to its default value (default value may be null). # noqa: E501 + + :param reset_properties: The reset_properties of this UpdateRequestMapToPayerCredentialRequestModel. # noqa: E501 + :type: list[str] + """ + + self._reset_properties = reset_properties + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UpdateRequestMapToPayerCredentialRequestModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRequestMapToPayerCredentialRequestModel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UpdateRequestMapToPayerCredentialRequestModel): + return True + + return self.to_dict() != other.to_dict() diff --git a/docs/ApplicableAccountInfo.md b/docs/ApplicableAccountInfo.md new file mode 100644 index 0000000..7caeb32 --- /dev/null +++ b/docs/ApplicableAccountInfo.md @@ -0,0 +1,10 @@ +# ApplicableAccountInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The applicable account's ID. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AvailableQueryOptionsResponseModel.md b/docs/AvailableQueryOptionsResponseModel.md new file mode 100644 index 0000000..c78ddd1 --- /dev/null +++ b/docs/AvailableQueryOptionsResponseModel.md @@ -0,0 +1,14 @@ +# AvailableQueryOptionsResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupings** | [**list[GroupingOption]**](GroupingOption.md) | Available groupings. | [optional] +**tag_keys** | [**list[TagKey]**](TagKey.md) | Available tag keys. | [optional] +**first_month** | **datetime** | First month with data. | [optional] +**last_month** | **datetime** | Last month with data. | [optional] +**number_of_months** | **int** | Number of months with data. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BasicRequestListModificationProvider.md b/docs/BasicRequestListModificationProvider.md new file mode 100644 index 0000000..9a6125c --- /dev/null +++ b/docs/BasicRequestListModificationProvider.md @@ -0,0 +1,11 @@ +# BasicRequestListModificationProvider + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**action** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CostAggregationDataPoint.md b/docs/CostAggregationDataPoint.md new file mode 100644 index 0000000..e0cad90 --- /dev/null +++ b/docs/CostAggregationDataPoint.md @@ -0,0 +1,11 @@ +# CostAggregationDataPoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cost_info** | [**Costs**](Costs.md) | Cost information for this grouping. | [optional] +**groupings** | **list[str]** | Values for the groupings in the query. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CostAggregationDownloadResponseModel.md b/docs/CostAggregationDownloadResponseModel.md new file mode 100644 index 0000000..b60224e --- /dev/null +++ b/docs/CostAggregationDownloadResponseModel.md @@ -0,0 +1,11 @@ +# CostAggregationDownloadResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query_info** | [**CostAggregationSummaryResponseModel**](CostAggregationSummaryResponseModel.md) | The query summary. | [optional] +**download_link** | **str** | URL / download link to the data. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CostAggregationResponseModel.md b/docs/CostAggregationResponseModel.md new file mode 100644 index 0000000..975f2e2 --- /dev/null +++ b/docs/CostAggregationResponseModel.md @@ -0,0 +1,12 @@ +# CostAggregationResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query_info** | [**CostAggregationSummaryResponseModel**](CostAggregationSummaryResponseModel.md) | The query summary. | [optional] +**items** | [**list[CostAggregationDataPoint]**](CostAggregationDataPoint.md) | Items for this page. | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | Pagination info for next page (if any). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CostAggregationSummaryResponseModel.md b/docs/CostAggregationSummaryResponseModel.md new file mode 100644 index 0000000..a306000 --- /dev/null +++ b/docs/CostAggregationSummaryResponseModel.md @@ -0,0 +1,18 @@ +# CostAggregationSummaryResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **str** | Odata filter (optional). | [optional] +**order_by** | [**list[SortingOption]**](SortingOption.md) | Ordering (optional). | [optional] +**include_zero_costs** | **bool** | Whether or not this query should include costs of zero. | [optional] +**customer_id** | **int** | The customer to query. | [optional] +**account_id** | **str** | The account to query. | [optional] +**start_date** | **datetime** | Query start date. | [optional] +**end_date** | **datetime** | Query end date. | [optional] +**group_bys** | **list[str]** | Groupings (optional). | [optional] +**currency_code** | **str** | Selected currency code. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CostDataRequestModel.md b/docs/CostDataRequestModel.md new file mode 100644 index 0000000..fa41145 --- /dev/null +++ b/docs/CostDataRequestModel.md @@ -0,0 +1,17 @@ +# CostDataRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cost_types** | **list[str]** | Cost Types. | [optional] +**filter** | **str** | Query filter. | [optional] +**has_cost_type_grouping** | **bool** | Returns true if it contains a CostTypes Grouping. | [optional] +**relative_time_period** | **str** | Relative time period to query. | [optional] +**time_period_offset** | **str** | Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. | [optional] +**primary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Primary grouping. | [optional] +**secondary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Secondary grouping. | [optional] +**currency_code** | **str** | Currency code. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CostDataResponseModel.md b/docs/CostDataResponseModel.md new file mode 100644 index 0000000..832d992 --- /dev/null +++ b/docs/CostDataResponseModel.md @@ -0,0 +1,17 @@ +# CostDataResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cost_types** | **list[str]** | CostTypes. | [optional] +**currency_code** | **str** | Currency code. | [optional] +**time_period** | [**TimePeriod**](TimePeriod.md) | Time period captured by the data set. | [optional] +**primary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Primary grouping. | [optional] +**secondary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Secondary grouping. | [optional] +**filter** | **str** | Query filter. | [optional] +**data_set_info** | [**DataSetInfo**](DataSetInfo.md) | Data set info (e.g. new data set, etc). | [optional] +**data_points** | [**list[Datapoint]**](Datapoint.md) | Requested data points. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CostQueriesBetaReleaseApi.md b/docs/CostQueriesBetaReleaseApi.md new file mode 100644 index 0000000..218f14a --- /dev/null +++ b/docs/CostQueriesBetaReleaseApi.md @@ -0,0 +1,287 @@ +# cloudcheckr_cmx_client.CostQueriesBetaReleaseApi + +All URIs are relative to *https://api-us.cloudcheckr.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_available_query_options**](CostQueriesBetaReleaseApi.md#get_available_query_options) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/options | Get available query options for a specific account. This includes information such as first / last month with data, properties that can be used for grouping, etc. +[**get_cost_query_results**](CostQueriesBetaReleaseApi.md#get_cost_query_results) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId}/results | Get the results of a completed cost query. +[**get_cost_query_results_download_link**](CostQueriesBetaReleaseApi.md#get_cost_query_results_download_link) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId}/download-link | Get a download link for the results of a completed query. +[**get_cost_query_summary**](CostQueriesBetaReleaseApi.md#get_cost_query_summary) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries/{costQueryId} | Get status information about a cost query. +[**start_query**](CostQueriesBetaReleaseApi.md#start_query) | **POST** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-queries | Create / start a new cost query. + + +# **get_available_query_options** +> AvailableQueryOptionsResponseModel get_available_query_options(customer_id, account_id) + +Get available query options for a specific account. This includes information such as first / last month with data, properties that can be used for grouping, etc. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CostQueriesBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | + +try: + # Get available query options for a specific account. This includes information such as first / last month with data, properties that can be used for grouping, etc. + api_response = api_instance.get_available_query_options(customer_id, account_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling CostQueriesBetaReleaseApi->get_available_query_options: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + +### Return type + +[**AvailableQueryOptionsResponseModel**](AvailableQueryOptionsResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cost_query_results** +> CostAggregationResponseModel get_cost_query_results(customer_id, account_id, cost_query_id, page_size=page_size, pagination_key=pagination_key) + +Get the results of a completed cost query. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CostQueriesBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +cost_query_id = 'cost_query_id_example' # str | +page_size = 56 # int | number of items to include in the response (optional) +pagination_key = 'pagination_key_example' # str | key used to fetch the next page of items (optional) + +try: + # Get the results of a completed cost query. + api_response = api_instance.get_cost_query_results(customer_id, account_id, cost_query_id, page_size=page_size, pagination_key=pagination_key) + pprint(api_response) +except ApiException as e: + print("Exception when calling CostQueriesBetaReleaseApi->get_cost_query_results: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **cost_query_id** | **str**| | + **page_size** | **int**| number of items to include in the response | [optional] + **pagination_key** | **str**| key used to fetch the next page of items | [optional] + +### Return type + +[**CostAggregationResponseModel**](CostAggregationResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cost_query_results_download_link** +> CostAggregationDownloadResponseModel get_cost_query_results_download_link(customer_id, account_id, cost_query_id, include_content_type=include_content_type) + +Get a download link for the results of a completed query. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CostQueriesBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +cost_query_id = 'cost_query_id_example' # str | +include_content_type = false # bool | If true, sets the expected 'content-type' request header to 'text/plain'. (optional) (default to false) + +try: + # Get a download link for the results of a completed query. + api_response = api_instance.get_cost_query_results_download_link(customer_id, account_id, cost_query_id, include_content_type=include_content_type) + pprint(api_response) +except ApiException as e: + print("Exception when calling CostQueriesBetaReleaseApi->get_cost_query_results_download_link: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **cost_query_id** | **str**| | + **include_content_type** | **bool**| If true, sets the expected 'content-type' request header to 'text/plain'. | [optional] [default to false] + +### Return type + +[**CostAggregationDownloadResponseModel**](CostAggregationDownloadResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cost_query_summary** +> CostQuerySummaryResponseModel get_cost_query_summary(customer_id, account_id, cost_query_id) + +Get status information about a cost query. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CostQueriesBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +cost_query_id = 'cost_query_id_example' # str | + +try: + # Get status information about a cost query. + api_response = api_instance.get_cost_query_summary(customer_id, account_id, cost_query_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling CostQueriesBetaReleaseApi->get_cost_query_summary: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **cost_query_id** | **str**| | + +### Return type + +[**CostQuerySummaryResponseModel**](CostQuerySummaryResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_query** +> NewQueryResponseModel start_query(customer_id, account_id, request=request) + +Create / start a new cost query. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.CostQueriesBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +request = cloudcheckr_cmx_client.CreateRequestCreateCostQueryRequestModel() # CreateRequestCreateCostQueryRequestModel | (optional) + +try: + # Create / start a new cost query. + api_response = api_instance.start_query(customer_id, account_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling CostQueriesBetaReleaseApi->start_query: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **request** | [**CreateRequestCreateCostQueryRequestModel**](CreateRequestCreateCostQueryRequestModel.md)| | [optional] + +### Return type + +[**NewQueryResponseModel**](NewQueryResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CostQuerySummaryResponseModel.md b/docs/CostQuerySummaryResponseModel.md new file mode 100644 index 0000000..56c255c --- /dev/null +++ b/docs/CostQuerySummaryResponseModel.md @@ -0,0 +1,17 @@ +# CostQuerySummaryResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The query ID. | [optional] +**state** | **str** | The current state of the query. | [optional] +**error_message** | **str** | The error message when state is Failed. | [optional] +**requested_date** | **datetime** | The timestamp indicating when the query was requested. | [optional] +**started_date** | **datetime** | The timestamp indicating when the query started executing. | [optional] +**completed_date** | **datetime** | The timestamp indicating when the query completed. | [optional] +**query_time_seconds** | **float** | The amount of time spent executing the query. | [optional] +**total_time_seconds** | **float** | The amount of time for the query to process (from request to completed). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Costs.md b/docs/Costs.md new file mode 100644 index 0000000..c65bb35 --- /dev/null +++ b/docs/Costs.md @@ -0,0 +1,13 @@ +# Costs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency_code** | **str** | Currency code. | [optional] +**actual_cost** | **float** | Original cost from the cloud provider, i.e. from the cloud provider cost data / invoice. It may be null if the user is not authorized to view this field | [optional] +**list_cost** | **float** | Cost after applying cost-related rules. It may be null if the user is not authorized to view this field | [optional] +**normalized_cost** | **float** | Adjusted cost that includes the usage-based cost only with any amortized upfront fees removed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCostQueryRequestModel.md b/docs/CreateCostQueryRequestModel.md new file mode 100644 index 0000000..64db639 --- /dev/null +++ b/docs/CreateCostQueryRequestModel.md @@ -0,0 +1,16 @@ +# CreateCostQueryRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**order_by** | [**list[SortingOption]**](SortingOption.md) | Fields to order the results by. | [optional] +**filter** | **str** | Items to filter by in the query. | [optional] +**include_zero_costs** | **bool** | Whether or not the cost query should include costs of zero | [optional] +**start_date** | **datetime** | Timestamp indicating the beginning of the period to query. | [optional] +**end_date** | **datetime** | Timestamp indicating the end of the period to query. | [optional] +**group_by** | **list[str]** | Items to group the query results by. | [optional] +**currency_code** | **str** | Used to filter the response to only include the currency code specified. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateRequestCostDataRequestModel.md b/docs/CreateRequestCostDataRequestModel.md new file mode 100644 index 0000000..40708d9 --- /dev/null +++ b/docs/CreateRequestCostDataRequestModel.md @@ -0,0 +1,10 @@ +# CreateRequestCostDataRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**CostDataRequestModel**](CostDataRequestModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateRequestCreateCostQueryRequestModel.md b/docs/CreateRequestCreateCostQueryRequestModel.md new file mode 100644 index 0000000..988deae --- /dev/null +++ b/docs/CreateRequestCreateCostQueryRequestModel.md @@ -0,0 +1,10 @@ +# CreateRequestCreateCostQueryRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**CreateCostQueryRequestModel**](CreateCostQueryRequestModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateRequestCustomerRequestModel.md b/docs/CreateRequestCustomerRequestModel.md new file mode 100644 index 0000000..12dd886 --- /dev/null +++ b/docs/CreateRequestCustomerRequestModel.md @@ -0,0 +1,10 @@ +# CreateRequestCustomerRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**CustomerRequestModel**](CustomerRequestModel.md) | Item to create | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateRequestDashboardPanelRequestModel.md b/docs/CreateRequestDashboardPanelRequestModel.md new file mode 100644 index 0000000..e2890bb --- /dev/null +++ b/docs/CreateRequestDashboardPanelRequestModel.md @@ -0,0 +1,10 @@ +# CreateRequestDashboardPanelRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**DashboardPanelRequestModel**](DashboardPanelRequestModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateRequestDashboardRequestModel.md b/docs/CreateRequestDashboardRequestModel.md new file mode 100644 index 0000000..61211e2 --- /dev/null +++ b/docs/CreateRequestDashboardRequestModel.md @@ -0,0 +1,10 @@ +# CreateRequestDashboardRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**DashboardRequestModel**](DashboardRequestModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateRequestDiscountDataRequestModel.md b/docs/CreateRequestDiscountDataRequestModel.md new file mode 100644 index 0000000..3641c24 --- /dev/null +++ b/docs/CreateRequestDiscountDataRequestModel.md @@ -0,0 +1,10 @@ +# CreateRequestDiscountDataRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**DiscountDataRequestModel**](DiscountDataRequestModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomerPlanRequestModel.md b/docs/CustomerPlanRequestModel.md new file mode 100644 index 0000000..98b1c55 --- /dev/null +++ b/docs/CustomerPlanRequestModel.md @@ -0,0 +1,11 @@ +# CustomerPlanRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_date** | **datetime** | The end date of the plan. | [optional] +**plan_type** | **str** | The type of plan | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomerRequestModel.md b/docs/CustomerRequestModel.md new file mode 100644 index 0000000..ef62774 --- /dev/null +++ b/docs/CustomerRequestModel.md @@ -0,0 +1,12 @@ +# CustomerRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The customer's name. | +**parent_id** | **str** | The customer's parent ID if there is an L1/L2 relationship. | [optional] +**plan** | [**CustomerPlanRequestModel**](CustomerPlanRequestModel.md) | The customer plan information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomerUpdateRequestModel.md b/docs/CustomerUpdateRequestModel.md new file mode 100644 index 0000000..7b76f5e --- /dev/null +++ b/docs/CustomerUpdateRequestModel.md @@ -0,0 +1,13 @@ +# CustomerUpdateRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | Indicates whether this customer should be disabled. | [optional] +**name** | **str** | The customer's name. | +**parent_id** | **str** | The customer's parent ID if there is an L1/L2 relationship. | [optional] +**plan** | [**CustomerPlanRequestModel**](CustomerPlanRequestModel.md) | The customer plan information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DashboardApi.md b/docs/DashboardApi.md new file mode 100644 index 0000000..fc13673 --- /dev/null +++ b/docs/DashboardApi.md @@ -0,0 +1,450 @@ +# cloudcheckr_cmx_client.DashboardApi + +All URIs are relative to *https://api-us.cloudcheckr.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_dashboard**](DashboardApi.md#create_dashboard) | **POST** /dashboard/v1/customers/{customerId}/dashboard-configs | Create a dashboard. +[**create_panel**](DashboardApi.md#create_panel) | **POST** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels | Create the given panel. +[**delete_dashboard**](DashboardApi.md#delete_dashboard) | **DELETE** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId} | Delete a dashboard. +[**delete_panel**](DashboardApi.md#delete_panel) | **DELETE** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels/{panelId} | Delete the given panel. +[**get_dashboard**](DashboardApi.md#get_dashboard) | **GET** /dashboard/v1/customers/{customerId}/accounts/{accountId}/dashboards/{dashboardId} | Get dashboard. +[**list_dashboards**](DashboardApi.md#list_dashboards) | **GET** /dashboard/v1/customers/{customerId}/accounts/{accountId}/dashboards | Get all dashboards. +[**update_dashboard**](DashboardApi.md#update_dashboard) | **PUT** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId} | Update a dashboard. +[**update_panel**](DashboardApi.md#update_panel) | **PUT** /dashboard/v1/customers/{customerId}/dashboard-configs/{dashboardId}/panels/{panelId} | Add or update the given panel. + + +# **create_dashboard** +> DashboardResponseModel create_dashboard(customer_id, request=request) + +Create a dashboard. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +request = cloudcheckr_cmx_client.CreateRequestDashboardRequestModel() # CreateRequestDashboardRequestModel | (optional) + +try: + # Create a dashboard. + api_response = api_instance.create_dashboard(customer_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardApi->create_dashboard: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **request** | [**CreateRequestDashboardRequestModel**](CreateRequestDashboardRequestModel.md)| | [optional] + +### Return type + +[**DashboardResponseModel**](DashboardResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_panel** +> DashboardPanelResponseModel create_panel(customer_id, dashboard_id, request=request) + +Create the given panel. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +dashboard_id = 'dashboard_id_example' # str | +request = cloudcheckr_cmx_client.CreateRequestDashboardPanelRequestModel() # CreateRequestDashboardPanelRequestModel | (optional) + +try: + # Create the given panel. + api_response = api_instance.create_panel(customer_id, dashboard_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardApi->create_panel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **dashboard_id** | **str**| | + **request** | [**CreateRequestDashboardPanelRequestModel**](CreateRequestDashboardPanelRequestModel.md)| | [optional] + +### Return type + +[**DashboardPanelResponseModel**](DashboardPanelResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_dashboard** +> delete_dashboard(customer_id, dashboard_id) + +Delete a dashboard. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +dashboard_id = 'dashboard_id_example' # str | + +try: + # Delete a dashboard. + api_instance.delete_dashboard(customer_id, dashboard_id) +except ApiException as e: + print("Exception when calling DashboardApi->delete_dashboard: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **dashboard_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_panel** +> delete_panel(customer_id, dashboard_id, panel_id) + +Delete the given panel. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +dashboard_id = 'dashboard_id_example' # str | +panel_id = 'panel_id_example' # str | + +try: + # Delete the given panel. + api_instance.delete_panel(customer_id, dashboard_id, panel_id) +except ApiException as e: + print("Exception when calling DashboardApi->delete_panel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **dashboard_id** | **str**| | + **panel_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_dashboard** +> DashboardResponseModel get_dashboard(customer_id, account_id, dashboard_id) + +Get dashboard. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +dashboard_id = 'dashboard_id_example' # str | + +try: + # Get dashboard. + api_response = api_instance.get_dashboard(customer_id, account_id, dashboard_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardApi->get_dashboard: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **dashboard_id** | **str**| | + +### Return type + +[**DashboardResponseModel**](DashboardResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_dashboards** +> PaginationResponseDashboardCommonResponseModel list_dashboards(customer_id, account_id, search=search, page_size=page_size, pagination_key=pagination_key, order_by=order_by) + +Get all dashboards. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +search = 'search_example' # str | finds all resources that match the specified value (optional) +page_size = 56 # int | number of items to include in the response (optional) +pagination_key = 'pagination_key_example' # str | key used to fetch the next page of items (optional) +order_by = 'order_by_example' # str | orders a given property (optional) + +try: + # Get all dashboards. + api_response = api_instance.list_dashboards(customer_id, account_id, search=search, page_size=page_size, pagination_key=pagination_key, order_by=order_by) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardApi->list_dashboards: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **search** | **str**| finds all resources that match the specified value | [optional] + **page_size** | **int**| number of items to include in the response | [optional] + **pagination_key** | **str**| key used to fetch the next page of items | [optional] + **order_by** | **str**| orders a given property | [optional] + +### Return type + +[**PaginationResponseDashboardCommonResponseModel**](PaginationResponseDashboardCommonResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_dashboard** +> DashboardResponseModel update_dashboard(customer_id, dashboard_id, request=request) + +Update a dashboard. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +dashboard_id = 'dashboard_id_example' # str | +request = cloudcheckr_cmx_client.UpdateRequestDashboardRequestModel() # UpdateRequestDashboardRequestModel | (optional) + +try: + # Update a dashboard. + api_response = api_instance.update_dashboard(customer_id, dashboard_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardApi->update_dashboard: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **dashboard_id** | **str**| | + **request** | [**UpdateRequestDashboardRequestModel**](UpdateRequestDashboardRequestModel.md)| | [optional] + +### Return type + +[**DashboardResponseModel**](DashboardResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_panel** +> DashboardPanelResponseModel update_panel(customer_id, dashboard_id, panel_id, request=request) + +Add or update the given panel. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +dashboard_id = 'dashboard_id_example' # str | +panel_id = 'panel_id_example' # str | +request = cloudcheckr_cmx_client.UpdateRequestDashboardPanelRequestModel() # UpdateRequestDashboardPanelRequestModel | (optional) + +try: + # Add or update the given panel. + api_response = api_instance.update_panel(customer_id, dashboard_id, panel_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardApi->update_panel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **dashboard_id** | **str**| | + **panel_id** | **str**| | + **request** | [**UpdateRequestDashboardPanelRequestModel**](UpdateRequestDashboardPanelRequestModel.md)| | [optional] + +### Return type + +[**DashboardPanelResponseModel**](DashboardPanelResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DashboardAuthInfo.md b/docs/DashboardAuthInfo.md new file mode 100644 index 0000000..9110017 --- /dev/null +++ b/docs/DashboardAuthInfo.md @@ -0,0 +1,11 @@ +# DashboardAuthInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_visible_to_current_account** | **bool** | True if this dashboard is visible to the current account. This may be false when the dashboard was included because the caller can manage the dashboard. | [optional] +**can_manage_dashboard** | **bool** | True if the caller can manage the dashboard. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DashboardCommonResponseModel.md b/docs/DashboardCommonResponseModel.md new file mode 100644 index 0000000..c7d184e --- /dev/null +++ b/docs/DashboardCommonResponseModel.md @@ -0,0 +1,16 @@ +# DashboardCommonResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The dashboard's ID. | [optional] +**name** | **str** | The dashboard's name. This property supports: sorting and searching. | [optional] +**description** | **str** | The dashboard's description. This property supports: searching. | [optional] +**applicable_accounts** | [**list[ApplicableAccountInfo]**](ApplicableAccountInfo.md) | The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. | [optional] +**auth_info** | [**DashboardAuthInfo**](DashboardAuthInfo.md) | Authorization info about this dashboard in relationship to the current caller. | [optional] +**created_date** | **datetime** | The dashboard's creation date. | [optional] +**updated_date** | **datetime** | The dashboard's last updated date. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DashboardDataApi.md b/docs/DashboardDataApi.md new file mode 100644 index 0000000..4e48548 --- /dev/null +++ b/docs/DashboardDataApi.md @@ -0,0 +1,118 @@ +# cloudcheckr_cmx_client.DashboardDataApi + +All URIs are relative to *https://api-us.cloudcheckr.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cost_data**](DashboardDataApi.md#get_cost_data) | **POST** /dashboard/v1/customers/{customerId}/accounts/{accountId}/data/cost | Get data points for a cost data set. +[**get_discount_data**](DashboardDataApi.md#get_discount_data) | **POST** /dashboard/v1/customers/{customerId}/accounts/{accountId}/data/discount | Get data points for a discount data set. + + +# **get_cost_data** +> CostDataResponseModel get_cost_data(customer_id, account_id, request=request) + +Get data points for a cost data set. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardDataApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +request = cloudcheckr_cmx_client.CreateRequestCostDataRequestModel() # CreateRequestCostDataRequestModel | (optional) + +try: + # Get data points for a cost data set. + api_response = api_instance.get_cost_data(customer_id, account_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardDataApi->get_cost_data: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **request** | [**CreateRequestCostDataRequestModel**](CreateRequestCostDataRequestModel.md)| | [optional] + +### Return type + +[**CostDataResponseModel**](CostDataResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_discount_data** +> DiscountDataResponseModel get_discount_data(customer_id, account_id, request=request) + +Get data points for a discount data set. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DashboardDataApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +request = cloudcheckr_cmx_client.CreateRequestDiscountDataRequestModel() # CreateRequestDiscountDataRequestModel | (optional) + +try: + # Get data points for a discount data set. + api_response = api_instance.get_discount_data(customer_id, account_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DashboardDataApi->get_discount_data: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **request** | [**CreateRequestDiscountDataRequestModel**](CreateRequestDiscountDataRequestModel.md)| | [optional] + +### Return type + +[**DiscountDataResponseModel**](DiscountDataResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DashboardPanelRequestModel.md b/docs/DashboardPanelRequestModel.md new file mode 100644 index 0000000..6915f6c --- /dev/null +++ b/docs/DashboardPanelRequestModel.md @@ -0,0 +1,15 @@ +# DashboardPanelRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Dashboard panel name. | [optional] +**order** | **int** | Order to be displayed on UI. | [optional] +**panel_type** | **str** | Dashboard panel type (e.g. Cost) | [optional] +**applicable_providers** | [**list[BasicRequestListModificationProvider]**](BasicRequestListModificationProvider.md) | The list of applicable providers. (e.g. AWS, Azure, Google) This property supports: resetting. | [optional] +**query_parameters** | **object** | Dashboard panel query parameters. | [optional] +**ui_config** | **object** | UI config. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DashboardPanelResponseModel.md b/docs/DashboardPanelResponseModel.md new file mode 100644 index 0000000..a81930b --- /dev/null +++ b/docs/DashboardPanelResponseModel.md @@ -0,0 +1,16 @@ +# DashboardPanelResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Dashboard panel ID. | [optional] +**name** | **str** | Dashboard panel name. | [optional] +**order** | **int** | Order to be displayed on UI. | [optional] +**panel_type** | **str** | Dashboard panel type (e.g. Cost) | [optional] +**applicable_providers** | **list[str]** | The list of applicable providers. (e.g. AWS, Azure, Google) | [optional] +**query_parameters** | **object** | Dashboard panel query parameters. | [optional] +**ui_config** | **object** | UI config. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DashboardRequestModel.md b/docs/DashboardRequestModel.md new file mode 100644 index 0000000..15529ff --- /dev/null +++ b/docs/DashboardRequestModel.md @@ -0,0 +1,12 @@ +# DashboardRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The dashboard's name. | [optional] +**description** | **str** | The dashboard's description. This property supports: resetting. | [optional] +**applicable_accounts** | [**list[BasicRequestListModification]**](BasicRequestListModification.md) | The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. This property supports: resetting. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DashboardResponseModel.md b/docs/DashboardResponseModel.md new file mode 100644 index 0000000..24f5539 --- /dev/null +++ b/docs/DashboardResponseModel.md @@ -0,0 +1,17 @@ +# DashboardResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attached_panels** | [**list[DashboardPanelResponseModel]**](DashboardPanelResponseModel.md) | The dashboard's attached panels. | [optional] +**id** | **str** | The dashboard's ID. | [optional] +**name** | **str** | The dashboard's name. This property supports: sorting and searching. | [optional] +**description** | **str** | The dashboard's description. This property supports: searching. | [optional] +**applicable_accounts** | [**list[ApplicableAccountInfo]**](ApplicableAccountInfo.md) | The dashboard's applicable accounts. Optional. If empty, then dashboard applies to all accounts. | [optional] +**auth_info** | [**DashboardAuthInfo**](DashboardAuthInfo.md) | Authorization info about this dashboard in relationship to the current caller. | [optional] +**created_date** | **datetime** | The dashboard's creation date. | [optional] +**updated_date** | **datetime** | The dashboard's last updated date. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataSetInfo.md b/docs/DataSetInfo.md new file mode 100644 index 0000000..ce1cebd --- /dev/null +++ b/docs/DataSetInfo.md @@ -0,0 +1,14 @@ +# DataSetInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_updated** | **datetime** | Date/time the data set was last refreshed. | [optional] +**refresh_blocked_until** | **datetime** | Date/time that data set refreshes will resume. If set, indicates too many failed refresh attempts. | [optional] +**is_being_refreshed** | **bool** | Returns true if the data set is currently being refreshed. Current datapoints returned with this response will use the previously generated data set. | [optional] +**is_new_data_set** | **bool** | Returns true if a data set has never been generated. | [optional] +**error_message** | **str** | Error message (if any). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Datapoint.md b/docs/Datapoint.md new file mode 100644 index 0000000..110179e --- /dev/null +++ b/docs/Datapoint.md @@ -0,0 +1,15 @@ +# Datapoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**primary** | **str** | Primary grouping value. | [optional] +**primary_display_value** | **str** | Primary grouping display value. | [optional] +**secondary** | **str** | Secondary grouping value. | [optional] +**secondary_display_value** | **str** | Secondary grouping display value. | [optional] +**value** | **str** | Value of this group. | [optional] +**unit** | **str** | Unit of measure. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DimensionValue.md b/docs/DimensionValue.md new file mode 100644 index 0000000..c84ceed --- /dev/null +++ b/docs/DimensionValue.md @@ -0,0 +1,12 @@ +# DimensionValue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | [optional] +**first_seen_date** | **datetime** | | [optional] +**last_seen_date** | **datetime** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DimensionsBetaReleaseApi.md b/docs/DimensionsBetaReleaseApi.md new file mode 100644 index 0000000..5689f73 --- /dev/null +++ b/docs/DimensionsBetaReleaseApi.md @@ -0,0 +1,308 @@ +# cloudcheckr_cmx_client.DimensionsBetaReleaseApi + +All URIs are relative to *https://api-us.cloudcheckr.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cost_tag_keys_for_account**](DimensionsBetaReleaseApi.md#get_cost_tag_keys_for_account) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-tags | Get cost tag keys for an account. +[**get_cost_tag_keys_for_customer**](DimensionsBetaReleaseApi.md#get_cost_tag_keys_for_customer) | **GET** /cost/query/v1/customers/{customerId}/cost-tags | Retrieve tag keys for all accounts of a customer +[**get_cost_tag_values_for_account**](DimensionsBetaReleaseApi.md#get_cost_tag_values_for_account) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/cost-tags/{tagKey}/values | Get cost tag values for an account. +[**get_cost_tag_values_for_customer**](DimensionsBetaReleaseApi.md#get_cost_tag_values_for_customer) | **GET** /cost/query/v1/customers/{customerId}/cost-tags/{tagKey}/values | Retrieve values for a specific tag key, for all accounts of a customer +[**get_values**](DimensionsBetaReleaseApi.md#get_values) | **GET** /cost/query/v1/customers/{customerId}/accounts/{accountId}/dimensions/{dimensionName} | Get valid values for the specified dimension. + + +# **get_cost_tag_keys_for_account** +> PaginationWithCountResponseTagKeyResponseModel get_cost_tag_keys_for_account(customer_id, account_id, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + +Get cost tag keys for an account. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DimensionsBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +must_have_been_used_since = '2013-10-20T19:20:30+01:00' # datetime | (optional) +page_size = 56 # int | number of items to include in the response (optional) +pagination_key = 'pagination_key_example' # str | key used to fetch the next page of items (optional) + +try: + # Get cost tag keys for an account. + api_response = api_instance.get_cost_tag_keys_for_account(customer_id, account_id, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + pprint(api_response) +except ApiException as e: + print("Exception when calling DimensionsBetaReleaseApi->get_cost_tag_keys_for_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **must_have_been_used_since** | **datetime**| | [optional] + **page_size** | **int**| number of items to include in the response | [optional] + **pagination_key** | **str**| key used to fetch the next page of items | [optional] + +### Return type + +[**PaginationWithCountResponseTagKeyResponseModel**](PaginationWithCountResponseTagKeyResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cost_tag_keys_for_customer** +> PaginationResponseTagKeyResponseModel get_cost_tag_keys_for_customer(customer_id, search=search, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + +Retrieve tag keys for all accounts of a customer + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DimensionsBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +search = 'search_example' # str | (optional) +must_have_been_used_since = '2013-10-20T19:20:30+01:00' # datetime | (optional) +page_size = 56 # int | number of items to include in the response (optional) +pagination_key = 'pagination_key_example' # str | key used to fetch the next page of items (optional) + +try: + # Retrieve tag keys for all accounts of a customer + api_response = api_instance.get_cost_tag_keys_for_customer(customer_id, search=search, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + pprint(api_response) +except ApiException as e: + print("Exception when calling DimensionsBetaReleaseApi->get_cost_tag_keys_for_customer: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **search** | **str**| | [optional] + **must_have_been_used_since** | **datetime**| | [optional] + **page_size** | **int**| number of items to include in the response | [optional] + **pagination_key** | **str**| key used to fetch the next page of items | [optional] + +### Return type + +[**PaginationResponseTagKeyResponseModel**](PaginationResponseTagKeyResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cost_tag_values_for_account** +> get_cost_tag_values_for_account(customer_id, account_id, tag_key, search=search, must_have_been_used_since=must_have_been_used_since) + +Get cost tag values for an account. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DimensionsBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +tag_key = 'tag_key_example' # str | +search = 'search_example' # str | (optional) +must_have_been_used_since = '2013-10-20T19:20:30+01:00' # datetime | (optional) + +try: + # Get cost tag values for an account. + api_instance.get_cost_tag_values_for_account(customer_id, account_id, tag_key, search=search, must_have_been_used_since=must_have_been_used_since) +except ApiException as e: + print("Exception when calling DimensionsBetaReleaseApi->get_cost_tag_values_for_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **tag_key** | **str**| | + **search** | **str**| | [optional] + **must_have_been_used_since** | **datetime**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cost_tag_values_for_customer** +> PaginationResponseTagValueResponseModel get_cost_tag_values_for_customer(customer_id, tag_key, search=search, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + +Retrieve values for a specific tag key, for all accounts of a customer + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DimensionsBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +tag_key = 'tag_key_example' # str | +search = 'search_example' # str | (optional) +must_have_been_used_since = '2013-10-20T19:20:30+01:00' # datetime | (optional) +page_size = 56 # int | number of items to include in the response (optional) +pagination_key = 'pagination_key_example' # str | key used to fetch the next page of items (optional) + +try: + # Retrieve values for a specific tag key, for all accounts of a customer + api_response = api_instance.get_cost_tag_values_for_customer(customer_id, tag_key, search=search, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + pprint(api_response) +except ApiException as e: + print("Exception when calling DimensionsBetaReleaseApi->get_cost_tag_values_for_customer: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **tag_key** | **str**| | + **search** | **str**| | [optional] + **must_have_been_used_since** | **datetime**| | [optional] + **page_size** | **int**| number of items to include in the response | [optional] + **pagination_key** | **str**| key used to fetch the next page of items | [optional] + +### Return type + +[**PaginationResponseTagValueResponseModel**](PaginationResponseTagValueResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_values** +> PaginationWithCountResponseDimensionValue get_values(customer_id, account_id, dimension_name, search=search, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + +Get valid values for the specified dimension. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.DimensionsBetaReleaseApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +dimension_name = 'dimension_name_example' # str | +search = 'search_example' # str | Finds resources that match the specified value (optional) +must_have_been_used_since = '2013-10-20T19:20:30+01:00' # datetime | (optional) +page_size = 56 # int | number of items to include in the response (optional) +pagination_key = 'pagination_key_example' # str | key used to fetch the next page of items (optional) + +try: + # Get valid values for the specified dimension. + api_response = api_instance.get_values(customer_id, account_id, dimension_name, search=search, must_have_been_used_since=must_have_been_used_since, page_size=page_size, pagination_key=pagination_key) + pprint(api_response) +except ApiException as e: + print("Exception when calling DimensionsBetaReleaseApi->get_values: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **dimension_name** | **str**| | + **search** | **str**| Finds resources that match the specified value | [optional] + **must_have_been_used_since** | **datetime**| | [optional] + **page_size** | **int**| number of items to include in the response | [optional] + **pagination_key** | **str**| key used to fetch the next page of items | [optional] + +### Return type + +[**PaginationWithCountResponseDimensionValue**](PaginationWithCountResponseDimensionValue.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DiscountDataRequestModel.md b/docs/DiscountDataRequestModel.md new file mode 100644 index 0000000..77a5545 --- /dev/null +++ b/docs/DiscountDataRequestModel.md @@ -0,0 +1,16 @@ +# DiscountDataRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**discount_types** | **list[str]** | Discount Types. | [optional] +**has_discount_type_grouping** | **bool** | Returns true if it contains a DiscountTypes Grouping. | [optional] +**relative_time_period** | **str** | Relative time period to query. | [optional] +**time_period_offset** | **str** | Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. | [optional] +**primary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Primary grouping. | [optional] +**secondary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Secondary grouping. | [optional] +**currency_code** | **str** | Currency code. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DiscountDataResponseModel.md b/docs/DiscountDataResponseModel.md new file mode 100644 index 0000000..bd5e15d --- /dev/null +++ b/docs/DiscountDataResponseModel.md @@ -0,0 +1,17 @@ +# DiscountDataResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency_code** | **str** | Currency code. | [optional] +**discount_types** | **list[str]** | Discount Types | [optional] +**time_period** | [**TimePeriod**](TimePeriod.md) | Time period captured by the data set. | [optional] +**primary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Primary grouping. | [optional] +**secondary_grouping** | [**SizedGrouping**](SizedGrouping.md) | Secondary grouping. | [optional] +**filter** | **str** | Query filter. | [optional] +**data_set_info** | [**DataSetInfo**](DataSetInfo.md) | Data set info (e.g. new data set, etc). | [optional] +**data_points** | [**list[Datapoint]**](Datapoint.md) | Requested data points. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupingOption.md b/docs/GroupingOption.md new file mode 100644 index 0000000..7c9f65d --- /dev/null +++ b/docs/GroupingOption.md @@ -0,0 +1,11 @@ +# GroupingOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The grouping's ID. | [optional] +**display_name** | **str** | The grouping's display name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LandingPageModel.md b/docs/LandingPageModel.md new file mode 100644 index 0000000..9771c58 --- /dev/null +++ b/docs/LandingPageModel.md @@ -0,0 +1,11 @@ +# LandingPageModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scope** | **str** | Scope of the page (i.e. customer, account) | [optional] +**page** | **str** | Relative path of the page. Excludes the portions of the path that specify the target scope (e.g. customer, account). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MapToPayerCredentialRequestModel.md b/docs/MapToPayerCredentialRequestModel.md new file mode 100644 index 0000000..bd04d1d --- /dev/null +++ b/docs/MapToPayerCredentialRequestModel.md @@ -0,0 +1,12 @@ +# MapToPayerCredentialRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payer_id** | **str** | Cloudcheckr account to be mapped to. | [optional] +**provider_payee_id** | **str** | The cloud provider ID of the payee account to link to in the payer account. For AWS, this is the AWS account ID. For Azure, this is the Azure subscription ID. | [optional] +**provider** | **str** | The account's cloud provider. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MapToPayerCredentialsApi.md b/docs/MapToPayerCredentialsApi.md new file mode 100644 index 0000000..f5eaede --- /dev/null +++ b/docs/MapToPayerCredentialsApi.md @@ -0,0 +1,63 @@ +# cloudcheckr_cmx_client.MapToPayerCredentialsApi + +All URIs are relative to *https://api-us.cloudcheckr.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**modify_map_to_payer_credentials**](MapToPayerCredentialsApi.md#modify_map_to_payer_credentials) | **PUT** /credential/v1/customers/{customerId}/accounts/{accountId}/credentials/map-to-payer | Modify the credentials on the account. + + +# **modify_map_to_payer_credentials** +> CredentialResponseModel modify_map_to_payer_credentials(customer_id, account_id, request=request) + +Modify the credentials on the account. + +### Example +```python +from __future__ import print_function +import time +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = cloudcheckr_cmx_client.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = cloudcheckr_cmx_client.MapToPayerCredentialsApi(cloudcheckr_cmx_client.ApiClient(configuration)) +customer_id = 'customer_id_example' # str | +account_id = 'account_id_example' # str | +request = cloudcheckr_cmx_client.UpdateRequestMapToPayerCredentialRequestModel() # UpdateRequestMapToPayerCredentialRequestModel | (optional) + +try: + # Modify the credentials on the account. + api_response = api_instance.modify_map_to_payer_credentials(customer_id, account_id, request=request) + pprint(api_response) +except ApiException as e: + print("Exception when calling MapToPayerCredentialsApi->modify_map_to_payer_credentials: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customer_id** | **str**| | + **account_id** | **str**| | + **request** | [**UpdateRequestMapToPayerCredentialRequestModel**](UpdateRequestMapToPayerCredentialRequestModel.md)| | [optional] + +### Return type + +[**CredentialResponseModel**](CredentialResponseModel.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NewQueryResponseModel.md b/docs/NewQueryResponseModel.md new file mode 100644 index 0000000..54669d6 --- /dev/null +++ b/docs/NewQueryResponseModel.md @@ -0,0 +1,12 @@ +# NewQueryResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The query ID. | [optional] +**state** | **str** | The current state of the query. | [optional] +**requested_date** | **datetime** | The timestamp indicating when the query was requested. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginationResponseDashboardCommonResponseModel.md b/docs/PaginationResponseDashboardCommonResponseModel.md new file mode 100644 index 0000000..f1b2cd9 --- /dev/null +++ b/docs/PaginationResponseDashboardCommonResponseModel.md @@ -0,0 +1,11 @@ +# PaginationResponseDashboardCommonResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[DashboardCommonResponseModel]**](DashboardCommonResponseModel.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginationResponseTagKeyResponseModel.md b/docs/PaginationResponseTagKeyResponseModel.md new file mode 100644 index 0000000..be494f3 --- /dev/null +++ b/docs/PaginationResponseTagKeyResponseModel.md @@ -0,0 +1,11 @@ +# PaginationResponseTagKeyResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[TagKeyResponseModel]**](TagKeyResponseModel.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginationResponseTagValueResponseModel.md b/docs/PaginationResponseTagValueResponseModel.md new file mode 100644 index 0000000..7ee0ac0 --- /dev/null +++ b/docs/PaginationResponseTagValueResponseModel.md @@ -0,0 +1,11 @@ +# PaginationResponseTagValueResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[TagValueResponseModel]**](TagValueResponseModel.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginationWithCountResponseDimensionValue.md b/docs/PaginationWithCountResponseDimensionValue.md new file mode 100644 index 0000000..f6799c2 --- /dev/null +++ b/docs/PaginationWithCountResponseDimensionValue.md @@ -0,0 +1,12 @@ +# PaginationWithCountResponseDimensionValue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_count** | **int** | | [optional] +**items** | [**list[DimensionValue]**](DimensionValue.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginationWithCountResponseTagKeyResponseModel.md b/docs/PaginationWithCountResponseTagKeyResponseModel.md new file mode 100644 index 0000000..aab8653 --- /dev/null +++ b/docs/PaginationWithCountResponseTagKeyResponseModel.md @@ -0,0 +1,12 @@ +# PaginationWithCountResponseTagKeyResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_count** | **int** | | [optional] +**items** | [**list[TagKeyResponseModel]**](TagKeyResponseModel.md) | | [optional] +**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SizedGrouping.md b/docs/SizedGrouping.md new file mode 100644 index 0000000..9fd2619 --- /dev/null +++ b/docs/SizedGrouping.md @@ -0,0 +1,11 @@ +# SizedGrouping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_number_of_items** | **int** | Limits the number of items returned for the grouping. If there are more items than the maximum requested, the top X items are returned and the remainder are grouped into an \"Other\" grouping. | [optional] +**group_name** | **str** | Property to group by. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SortingOption.md b/docs/SortingOption.md new file mode 100644 index 0000000..5a80a09 --- /dev/null +++ b/docs/SortingOption.md @@ -0,0 +1,11 @@ +# SortingOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | **str** | Field that will be used on order by clause. | [optional] +**direction** | **str** | Direction that will be used to perform the order by clause. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TagKey.md b/docs/TagKey.md new file mode 100644 index 0000000..6634159 --- /dev/null +++ b/docs/TagKey.md @@ -0,0 +1,11 @@ +# TagKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The tag key ID. | [optional] +**value** | **str** | The tag key name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TagKeyResponseModel.md b/docs/TagKeyResponseModel.md new file mode 100644 index 0000000..5a42aec --- /dev/null +++ b/docs/TagKeyResponseModel.md @@ -0,0 +1,10 @@ +# TagKeyResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tag_key** | **str** | Tag Key | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TagValueResponseModel.md b/docs/TagValueResponseModel.md new file mode 100644 index 0000000..49cb1fc --- /dev/null +++ b/docs/TagValueResponseModel.md @@ -0,0 +1,10 @@ +# TagValueResponseModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tag_value** | **str** | Tag value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TimePeriod.md b/docs/TimePeriod.md new file mode 100644 index 0000000..889e70c --- /dev/null +++ b/docs/TimePeriod.md @@ -0,0 +1,13 @@ +# TimePeriod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**relative_time_period** | **str** | Requested time period (e.g. 3m = 3 months, 3d = 3 days). | [optional] +**time_period_offset** | **str** | Time period offset (optional). If not specified, the current date/time is used as is to calculate the time period start/end date. If specified, the offset is applied to the current date/time prior to calculating the time period start/end date. | [optional] +**actual_start_date** | **datetime** | Start date calculated when the relative time period was used to generate the data set. | [optional] +**actual_end_date** | **datetime** | End date calculated when the relative time period was used to generate the data set. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateRequestCustomerUpdateRequestModel.md b/docs/UpdateRequestCustomerUpdateRequestModel.md new file mode 100644 index 0000000..30e4579 --- /dev/null +++ b/docs/UpdateRequestCustomerUpdateRequestModel.md @@ -0,0 +1,11 @@ +# UpdateRequestCustomerUpdateRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**CustomerUpdateRequestModel**](CustomerUpdateRequestModel.md) | Item to update | [optional] +**reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateRequestDashboardPanelRequestModel.md b/docs/UpdateRequestDashboardPanelRequestModel.md new file mode 100644 index 0000000..0120cb5 --- /dev/null +++ b/docs/UpdateRequestDashboardPanelRequestModel.md @@ -0,0 +1,11 @@ +# UpdateRequestDashboardPanelRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**DashboardPanelRequestModel**](DashboardPanelRequestModel.md) | | [optional] +**reset_properties** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateRequestDashboardRequestModel.md b/docs/UpdateRequestDashboardRequestModel.md new file mode 100644 index 0000000..e7e6356 --- /dev/null +++ b/docs/UpdateRequestDashboardRequestModel.md @@ -0,0 +1,11 @@ +# UpdateRequestDashboardRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**DashboardRequestModel**](DashboardRequestModel.md) | | [optional] +**reset_properties** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateRequestMapToPayerCredentialRequestModel.md b/docs/UpdateRequestMapToPayerCredentialRequestModel.md new file mode 100644 index 0000000..06d4149 --- /dev/null +++ b/docs/UpdateRequestMapToPayerCredentialRequestModel.md @@ -0,0 +1,11 @@ +# UpdateRequestMapToPayerCredentialRequestModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item** | [**MapToPayerCredentialRequestModel**](MapToPayerCredentialRequestModel.md) | Item to update | [optional] +**reset_properties** | **list[str]** | If a property name is included in this list, then its value will be forced to its default value (default value may be null). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/test/test_applicable_account_info.py b/test/test_applicable_account_info.py new file mode 100644 index 0000000..fd87008 --- /dev/null +++ b/test/test_applicable_account_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.applicable_account_info import ApplicableAccountInfo # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestApplicableAccountInfo(unittest.TestCase): + """ApplicableAccountInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApplicableAccountInfo(self): + """Test ApplicableAccountInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.applicable_account_info.ApplicableAccountInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_available_query_options_response_model.py b/test/test_available_query_options_response_model.py new file mode 100644 index 0000000..ac9565f --- /dev/null +++ b/test/test_available_query_options_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.available_query_options_response_model import AvailableQueryOptionsResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestAvailableQueryOptionsResponseModel(unittest.TestCase): + """AvailableQueryOptionsResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAvailableQueryOptionsResponseModel(self): + """Test AvailableQueryOptionsResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.available_query_options_response_model.AvailableQueryOptionsResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_basic_request_list_modification_provider.py b/test/test_basic_request_list_modification_provider.py new file mode 100644 index 0000000..4b62a6e --- /dev/null +++ b/test/test_basic_request_list_modification_provider.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.basic_request_list_modification_provider import BasicRequestListModificationProvider # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestBasicRequestListModificationProvider(unittest.TestCase): + """BasicRequestListModificationProvider unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBasicRequestListModificationProvider(self): + """Test BasicRequestListModificationProvider""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.basic_request_list_modification_provider.BasicRequestListModificationProvider() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_aggregation_data_point.py b/test/test_cost_aggregation_data_point.py new file mode 100644 index 0000000..1afc536 --- /dev/null +++ b/test/test_cost_aggregation_data_point.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.cost_aggregation_data_point import CostAggregationDataPoint # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostAggregationDataPoint(unittest.TestCase): + """CostAggregationDataPoint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCostAggregationDataPoint(self): + """Test CostAggregationDataPoint""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.cost_aggregation_data_point.CostAggregationDataPoint() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_aggregation_download_response_model.py b/test/test_cost_aggregation_download_response_model.py new file mode 100644 index 0000000..bf8dd45 --- /dev/null +++ b/test/test_cost_aggregation_download_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.cost_aggregation_download_response_model import CostAggregationDownloadResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostAggregationDownloadResponseModel(unittest.TestCase): + """CostAggregationDownloadResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCostAggregationDownloadResponseModel(self): + """Test CostAggregationDownloadResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.cost_aggregation_download_response_model.CostAggregationDownloadResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_aggregation_response_model.py b/test/test_cost_aggregation_response_model.py new file mode 100644 index 0000000..9388df8 --- /dev/null +++ b/test/test_cost_aggregation_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.cost_aggregation_response_model import CostAggregationResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostAggregationResponseModel(unittest.TestCase): + """CostAggregationResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCostAggregationResponseModel(self): + """Test CostAggregationResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.cost_aggregation_response_model.CostAggregationResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_aggregation_summary_response_model.py b/test/test_cost_aggregation_summary_response_model.py new file mode 100644 index 0000000..45cb165 --- /dev/null +++ b/test/test_cost_aggregation_summary_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.cost_aggregation_summary_response_model import CostAggregationSummaryResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostAggregationSummaryResponseModel(unittest.TestCase): + """CostAggregationSummaryResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCostAggregationSummaryResponseModel(self): + """Test CostAggregationSummaryResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.cost_aggregation_summary_response_model.CostAggregationSummaryResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_data_request_model.py b/test/test_cost_data_request_model.py new file mode 100644 index 0000000..c46dc4f --- /dev/null +++ b/test/test_cost_data_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.cost_data_request_model import CostDataRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostDataRequestModel(unittest.TestCase): + """CostDataRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCostDataRequestModel(self): + """Test CostDataRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.cost_data_request_model.CostDataRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_data_response_model.py b/test/test_cost_data_response_model.py new file mode 100644 index 0000000..e3012b6 --- /dev/null +++ b/test/test_cost_data_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.cost_data_response_model import CostDataResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostDataResponseModel(unittest.TestCase): + """CostDataResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCostDataResponseModel(self): + """Test CostDataResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.cost_data_response_model.CostDataResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_queries__beta_release_api.py b/test/test_cost_queries__beta_release_api.py new file mode 100644 index 0000000..b09a290 --- /dev/null +++ b/test/test_cost_queries__beta_release_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.api.cost_queries__beta_release_api import CostQueriesBetaReleaseApi # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostQueriesBetaReleaseApi(unittest.TestCase): + """CostQueriesBetaReleaseApi unit test stubs""" + + def setUp(self): + self.api = cloudcheckr_cmx_client.api.cost_queries__beta_release_api.CostQueriesBetaReleaseApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_available_query_options(self): + """Test case for get_available_query_options + + Get available query options for a specific account. This includes information such as first / last month with data, properties that can be used for grouping, etc. # noqa: E501 + """ + pass + + def test_get_cost_query_results(self): + """Test case for get_cost_query_results + + Get the results of a completed cost query. # noqa: E501 + """ + pass + + def test_get_cost_query_results_download_link(self): + """Test case for get_cost_query_results_download_link + + Get a download link for the results of a completed query. # noqa: E501 + """ + pass + + def test_get_cost_query_summary(self): + """Test case for get_cost_query_summary + + Get status information about a cost query. # noqa: E501 + """ + pass + + def test_start_query(self): + """Test case for start_query + + Create / start a new cost query. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cost_query_summary_response_model.py b/test/test_cost_query_summary_response_model.py new file mode 100644 index 0000000..05952df --- /dev/null +++ b/test/test_cost_query_summary_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.cost_query_summary_response_model import CostQuerySummaryResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCostQuerySummaryResponseModel(unittest.TestCase): + """CostQuerySummaryResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCostQuerySummaryResponseModel(self): + """Test CostQuerySummaryResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.cost_query_summary_response_model.CostQuerySummaryResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_costs.py b/test/test_costs.py new file mode 100644 index 0000000..178c55f --- /dev/null +++ b/test/test_costs.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.costs import Costs # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCosts(unittest.TestCase): + """Costs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCosts(self): + """Test Costs""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.costs.Costs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_cost_query_request_model.py b/test/test_create_cost_query_request_model.py new file mode 100644 index 0000000..7c6be8d --- /dev/null +++ b/test/test_create_cost_query_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.create_cost_query_request_model import CreateCostQueryRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCreateCostQueryRequestModel(unittest.TestCase): + """CreateCostQueryRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCostQueryRequestModel(self): + """Test CreateCostQueryRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.create_cost_query_request_model.CreateCostQueryRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_request_cost_data_request_model.py b/test/test_create_request_cost_data_request_model.py new file mode 100644 index 0000000..9095c3e --- /dev/null +++ b/test/test_create_request_cost_data_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.create_request_cost_data_request_model import CreateRequestCostDataRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCreateRequestCostDataRequestModel(unittest.TestCase): + """CreateRequestCostDataRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateRequestCostDataRequestModel(self): + """Test CreateRequestCostDataRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.create_request_cost_data_request_model.CreateRequestCostDataRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_request_create_cost_query_request_model.py b/test/test_create_request_create_cost_query_request_model.py new file mode 100644 index 0000000..ecd4535 --- /dev/null +++ b/test/test_create_request_create_cost_query_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.create_request_create_cost_query_request_model import CreateRequestCreateCostQueryRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCreateRequestCreateCostQueryRequestModel(unittest.TestCase): + """CreateRequestCreateCostQueryRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateRequestCreateCostQueryRequestModel(self): + """Test CreateRequestCreateCostQueryRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.create_request_create_cost_query_request_model.CreateRequestCreateCostQueryRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_request_customer_request_model.py b/test/test_create_request_customer_request_model.py new file mode 100644 index 0000000..9252a8b --- /dev/null +++ b/test/test_create_request_customer_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.create_request_customer_request_model import CreateRequestCustomerRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCreateRequestCustomerRequestModel(unittest.TestCase): + """CreateRequestCustomerRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateRequestCustomerRequestModel(self): + """Test CreateRequestCustomerRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.create_request_customer_request_model.CreateRequestCustomerRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_request_dashboard_panel_request_model.py b/test/test_create_request_dashboard_panel_request_model.py new file mode 100644 index 0000000..cd41dbc --- /dev/null +++ b/test/test_create_request_dashboard_panel_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.create_request_dashboard_panel_request_model import CreateRequestDashboardPanelRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCreateRequestDashboardPanelRequestModel(unittest.TestCase): + """CreateRequestDashboardPanelRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateRequestDashboardPanelRequestModel(self): + """Test CreateRequestDashboardPanelRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.create_request_dashboard_panel_request_model.CreateRequestDashboardPanelRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_request_dashboard_request_model.py b/test/test_create_request_dashboard_request_model.py new file mode 100644 index 0000000..d0e1d8e --- /dev/null +++ b/test/test_create_request_dashboard_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.create_request_dashboard_request_model import CreateRequestDashboardRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCreateRequestDashboardRequestModel(unittest.TestCase): + """CreateRequestDashboardRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateRequestDashboardRequestModel(self): + """Test CreateRequestDashboardRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.create_request_dashboard_request_model.CreateRequestDashboardRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_request_discount_data_request_model.py b/test/test_create_request_discount_data_request_model.py new file mode 100644 index 0000000..023284c --- /dev/null +++ b/test/test_create_request_discount_data_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.create_request_discount_data_request_model import CreateRequestDiscountDataRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCreateRequestDiscountDataRequestModel(unittest.TestCase): + """CreateRequestDiscountDataRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateRequestDiscountDataRequestModel(self): + """Test CreateRequestDiscountDataRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.create_request_discount_data_request_model.CreateRequestDiscountDataRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_customer_plan_request_model.py b/test/test_customer_plan_request_model.py new file mode 100644 index 0000000..5e21deb --- /dev/null +++ b/test/test_customer_plan_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.customer_plan_request_model import CustomerPlanRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCustomerPlanRequestModel(unittest.TestCase): + """CustomerPlanRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCustomerPlanRequestModel(self): + """Test CustomerPlanRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.customer_plan_request_model.CustomerPlanRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_customer_request_model.py b/test/test_customer_request_model.py new file mode 100644 index 0000000..0403fbd --- /dev/null +++ b/test/test_customer_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.customer_request_model import CustomerRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCustomerRequestModel(unittest.TestCase): + """CustomerRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCustomerRequestModel(self): + """Test CustomerRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.customer_request_model.CustomerRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_customer_update_request_model.py b/test/test_customer_update_request_model.py new file mode 100644 index 0000000..8f3ce02 --- /dev/null +++ b/test/test_customer_update_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.customer_update_request_model import CustomerUpdateRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestCustomerUpdateRequestModel(unittest.TestCase): + """CustomerUpdateRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCustomerUpdateRequestModel(self): + """Test CustomerUpdateRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.customer_update_request_model.CustomerUpdateRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_api.py b/test/test_dashboard_api.py new file mode 100644 index 0000000..09f25f8 --- /dev/null +++ b/test/test_dashboard_api.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.api.dashboard_api import DashboardApi # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardApi(unittest.TestCase): + """DashboardApi unit test stubs""" + + def setUp(self): + self.api = cloudcheckr_cmx_client.api.dashboard_api.DashboardApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_dashboard(self): + """Test case for create_dashboard + + Create a dashboard. # noqa: E501 + """ + pass + + def test_create_panel(self): + """Test case for create_panel + + Create the given panel. # noqa: E501 + """ + pass + + def test_delete_dashboard(self): + """Test case for delete_dashboard + + Delete a dashboard. # noqa: E501 + """ + pass + + def test_delete_panel(self): + """Test case for delete_panel + + Delete the given panel. # noqa: E501 + """ + pass + + def test_get_dashboard(self): + """Test case for get_dashboard + + Get dashboard. # noqa: E501 + """ + pass + + def test_list_dashboards(self): + """Test case for list_dashboards + + Get all dashboards. # noqa: E501 + """ + pass + + def test_update_dashboard(self): + """Test case for update_dashboard + + Update a dashboard. # noqa: E501 + """ + pass + + def test_update_panel(self): + """Test case for update_panel + + Add or update the given panel. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_auth_info.py b/test/test_dashboard_auth_info.py new file mode 100644 index 0000000..fc007f4 --- /dev/null +++ b/test/test_dashboard_auth_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.dashboard_auth_info import DashboardAuthInfo # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardAuthInfo(unittest.TestCase): + """DashboardAuthInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardAuthInfo(self): + """Test DashboardAuthInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.dashboard_auth_info.DashboardAuthInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_common_response_model.py b/test/test_dashboard_common_response_model.py new file mode 100644 index 0000000..714c4be --- /dev/null +++ b/test/test_dashboard_common_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.dashboard_common_response_model import DashboardCommonResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardCommonResponseModel(unittest.TestCase): + """DashboardCommonResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardCommonResponseModel(self): + """Test DashboardCommonResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.dashboard_common_response_model.DashboardCommonResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_data_api.py b/test/test_dashboard_data_api.py new file mode 100644 index 0000000..e04b62a --- /dev/null +++ b/test/test_dashboard_data_api.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.api.dashboard_data_api import DashboardDataApi # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardDataApi(unittest.TestCase): + """DashboardDataApi unit test stubs""" + + def setUp(self): + self.api = cloudcheckr_cmx_client.api.dashboard_data_api.DashboardDataApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_cost_data(self): + """Test case for get_cost_data + + Get data points for a cost data set. # noqa: E501 + """ + pass + + def test_get_discount_data(self): + """Test case for get_discount_data + + Get data points for a discount data set. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_panel_request_model.py b/test/test_dashboard_panel_request_model.py new file mode 100644 index 0000000..ee078de --- /dev/null +++ b/test/test_dashboard_panel_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.dashboard_panel_request_model import DashboardPanelRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardPanelRequestModel(unittest.TestCase): + """DashboardPanelRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardPanelRequestModel(self): + """Test DashboardPanelRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.dashboard_panel_request_model.DashboardPanelRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_panel_response_model.py b/test/test_dashboard_panel_response_model.py new file mode 100644 index 0000000..63f7e63 --- /dev/null +++ b/test/test_dashboard_panel_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.dashboard_panel_response_model import DashboardPanelResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardPanelResponseModel(unittest.TestCase): + """DashboardPanelResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardPanelResponseModel(self): + """Test DashboardPanelResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.dashboard_panel_response_model.DashboardPanelResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_request_model.py b/test/test_dashboard_request_model.py new file mode 100644 index 0000000..879836f --- /dev/null +++ b/test/test_dashboard_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.dashboard_request_model import DashboardRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardRequestModel(unittest.TestCase): + """DashboardRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardRequestModel(self): + """Test DashboardRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.dashboard_request_model.DashboardRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dashboard_response_model.py b/test/test_dashboard_response_model.py new file mode 100644 index 0000000..878d690 --- /dev/null +++ b/test/test_dashboard_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.dashboard_response_model import DashboardResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDashboardResponseModel(unittest.TestCase): + """DashboardResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDashboardResponseModel(self): + """Test DashboardResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.dashboard_response_model.DashboardResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_data_set_info.py b/test/test_data_set_info.py new file mode 100644 index 0000000..552da8b --- /dev/null +++ b/test/test_data_set_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.data_set_info import DataSetInfo # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDataSetInfo(unittest.TestCase): + """DataSetInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDataSetInfo(self): + """Test DataSetInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.data_set_info.DataSetInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_datapoint.py b/test/test_datapoint.py new file mode 100644 index 0000000..e29f0f9 --- /dev/null +++ b/test/test_datapoint.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.datapoint import Datapoint # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDatapoint(unittest.TestCase): + """Datapoint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDatapoint(self): + """Test Datapoint""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.datapoint.Datapoint() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dimension_value.py b/test/test_dimension_value.py new file mode 100644 index 0000000..34b5af8 --- /dev/null +++ b/test/test_dimension_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.dimension_value import DimensionValue # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDimensionValue(unittest.TestCase): + """DimensionValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDimensionValue(self): + """Test DimensionValue""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.dimension_value.DimensionValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dimensions__beta_release_api.py b/test/test_dimensions__beta_release_api.py new file mode 100644 index 0000000..ed60e8d --- /dev/null +++ b/test/test_dimensions__beta_release_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.api.dimensions__beta_release_api import DimensionsBetaReleaseApi # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDimensionsBetaReleaseApi(unittest.TestCase): + """DimensionsBetaReleaseApi unit test stubs""" + + def setUp(self): + self.api = cloudcheckr_cmx_client.api.dimensions__beta_release_api.DimensionsBetaReleaseApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_cost_tag_keys_for_account(self): + """Test case for get_cost_tag_keys_for_account + + Get cost tag keys for an account. # noqa: E501 + """ + pass + + def test_get_cost_tag_keys_for_customer(self): + """Test case for get_cost_tag_keys_for_customer + + Retrieve tag keys for all accounts of a customer # noqa: E501 + """ + pass + + def test_get_cost_tag_values_for_account(self): + """Test case for get_cost_tag_values_for_account + + Get cost tag values for an account. # noqa: E501 + """ + pass + + def test_get_cost_tag_values_for_customer(self): + """Test case for get_cost_tag_values_for_customer + + Retrieve values for a specific tag key, for all accounts of a customer # noqa: E501 + """ + pass + + def test_get_values(self): + """Test case for get_values + + Get valid values for the specified dimension. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_discount_data_request_model.py b/test/test_discount_data_request_model.py new file mode 100644 index 0000000..b4487b0 --- /dev/null +++ b/test/test_discount_data_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.discount_data_request_model import DiscountDataRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDiscountDataRequestModel(unittest.TestCase): + """DiscountDataRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDiscountDataRequestModel(self): + """Test DiscountDataRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.discount_data_request_model.DiscountDataRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_discount_data_response_model.py b/test/test_discount_data_response_model.py new file mode 100644 index 0000000..9be474a --- /dev/null +++ b/test/test_discount_data_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.discount_data_response_model import DiscountDataResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestDiscountDataResponseModel(unittest.TestCase): + """DiscountDataResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDiscountDataResponseModel(self): + """Test DiscountDataResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.discount_data_response_model.DiscountDataResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_grouping_option.py b/test/test_grouping_option.py new file mode 100644 index 0000000..fbc2370 --- /dev/null +++ b/test/test_grouping_option.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.grouping_option import GroupingOption # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestGroupingOption(unittest.TestCase): + """GroupingOption unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupingOption(self): + """Test GroupingOption""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.grouping_option.GroupingOption() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_landing_page_model.py b/test/test_landing_page_model.py new file mode 100644 index 0000000..cf8cb00 --- /dev/null +++ b/test/test_landing_page_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.landing_page_model import LandingPageModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestLandingPageModel(unittest.TestCase): + """LandingPageModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLandingPageModel(self): + """Test LandingPageModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.landing_page_model.LandingPageModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_map_to_payer_credential_request_model.py b/test/test_map_to_payer_credential_request_model.py new file mode 100644 index 0000000..ba3a758 --- /dev/null +++ b/test/test_map_to_payer_credential_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.map_to_payer_credential_request_model import MapToPayerCredentialRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestMapToPayerCredentialRequestModel(unittest.TestCase): + """MapToPayerCredentialRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMapToPayerCredentialRequestModel(self): + """Test MapToPayerCredentialRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.map_to_payer_credential_request_model.MapToPayerCredentialRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_map_to_payer_credentials_api.py b/test/test_map_to_payer_credentials_api.py new file mode 100644 index 0000000..019c7cc --- /dev/null +++ b/test/test_map_to_payer_credentials_api.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.api.map_to_payer_credentials_api import MapToPayerCredentialsApi # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestMapToPayerCredentialsApi(unittest.TestCase): + """MapToPayerCredentialsApi unit test stubs""" + + def setUp(self): + self.api = cloudcheckr_cmx_client.api.map_to_payer_credentials_api.MapToPayerCredentialsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_modify_map_to_payer_credentials(self): + """Test case for modify_map_to_payer_credentials + + Modify the credentials on the account. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_new_query_response_model.py b/test/test_new_query_response_model.py new file mode 100644 index 0000000..f8993cd --- /dev/null +++ b/test/test_new_query_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.new_query_response_model import NewQueryResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestNewQueryResponseModel(unittest.TestCase): + """NewQueryResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNewQueryResponseModel(self): + """Test NewQueryResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.new_query_response_model.NewQueryResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pagination_response_dashboard_common_response_model.py b/test/test_pagination_response_dashboard_common_response_model.py new file mode 100644 index 0000000..b57b1cf --- /dev/null +++ b/test/test_pagination_response_dashboard_common_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.pagination_response_dashboard_common_response_model import PaginationResponseDashboardCommonResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestPaginationResponseDashboardCommonResponseModel(unittest.TestCase): + """PaginationResponseDashboardCommonResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaginationResponseDashboardCommonResponseModel(self): + """Test PaginationResponseDashboardCommonResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.pagination_response_dashboard_common_response_model.PaginationResponseDashboardCommonResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pagination_response_tag_key_response_model.py b/test/test_pagination_response_tag_key_response_model.py new file mode 100644 index 0000000..b44df8a --- /dev/null +++ b/test/test_pagination_response_tag_key_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.pagination_response_tag_key_response_model import PaginationResponseTagKeyResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestPaginationResponseTagKeyResponseModel(unittest.TestCase): + """PaginationResponseTagKeyResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaginationResponseTagKeyResponseModel(self): + """Test PaginationResponseTagKeyResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.pagination_response_tag_key_response_model.PaginationResponseTagKeyResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pagination_response_tag_value_response_model.py b/test/test_pagination_response_tag_value_response_model.py new file mode 100644 index 0000000..587a22c --- /dev/null +++ b/test/test_pagination_response_tag_value_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.pagination_response_tag_value_response_model import PaginationResponseTagValueResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestPaginationResponseTagValueResponseModel(unittest.TestCase): + """PaginationResponseTagValueResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaginationResponseTagValueResponseModel(self): + """Test PaginationResponseTagValueResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.pagination_response_tag_value_response_model.PaginationResponseTagValueResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pagination_with_count_response_dimension_value.py b/test/test_pagination_with_count_response_dimension_value.py new file mode 100644 index 0000000..594b2b6 --- /dev/null +++ b/test/test_pagination_with_count_response_dimension_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.pagination_with_count_response_dimension_value import PaginationWithCountResponseDimensionValue # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestPaginationWithCountResponseDimensionValue(unittest.TestCase): + """PaginationWithCountResponseDimensionValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaginationWithCountResponseDimensionValue(self): + """Test PaginationWithCountResponseDimensionValue""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.pagination_with_count_response_dimension_value.PaginationWithCountResponseDimensionValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pagination_with_count_response_tag_key_response_model.py b/test/test_pagination_with_count_response_tag_key_response_model.py new file mode 100644 index 0000000..9d3c770 --- /dev/null +++ b/test/test_pagination_with_count_response_tag_key_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.pagination_with_count_response_tag_key_response_model import PaginationWithCountResponseTagKeyResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestPaginationWithCountResponseTagKeyResponseModel(unittest.TestCase): + """PaginationWithCountResponseTagKeyResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPaginationWithCountResponseTagKeyResponseModel(self): + """Test PaginationWithCountResponseTagKeyResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.pagination_with_count_response_tag_key_response_model.PaginationWithCountResponseTagKeyResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sized_grouping.py b/test/test_sized_grouping.py new file mode 100644 index 0000000..9a17085 --- /dev/null +++ b/test/test_sized_grouping.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.sized_grouping import SizedGrouping # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestSizedGrouping(unittest.TestCase): + """SizedGrouping unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSizedGrouping(self): + """Test SizedGrouping""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.sized_grouping.SizedGrouping() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sorting_option.py b/test/test_sorting_option.py new file mode 100644 index 0000000..694448f --- /dev/null +++ b/test/test_sorting_option.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.sorting_option import SortingOption # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestSortingOption(unittest.TestCase): + """SortingOption unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSortingOption(self): + """Test SortingOption""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.sorting_option.SortingOption() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tag_key.py b/test/test_tag_key.py new file mode 100644 index 0000000..523eb69 --- /dev/null +++ b/test/test_tag_key.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.tag_key import TagKey # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestTagKey(unittest.TestCase): + """TagKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTagKey(self): + """Test TagKey""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.tag_key.TagKey() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tag_key_response_model.py b/test/test_tag_key_response_model.py new file mode 100644 index 0000000..537eb1f --- /dev/null +++ b/test/test_tag_key_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.tag_key_response_model import TagKeyResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestTagKeyResponseModel(unittest.TestCase): + """TagKeyResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTagKeyResponseModel(self): + """Test TagKeyResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.tag_key_response_model.TagKeyResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tag_value_response_model.py b/test/test_tag_value_response_model.py new file mode 100644 index 0000000..b193e43 --- /dev/null +++ b/test/test_tag_value_response_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.tag_value_response_model import TagValueResponseModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestTagValueResponseModel(unittest.TestCase): + """TagValueResponseModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTagValueResponseModel(self): + """Test TagValueResponseModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.tag_value_response_model.TagValueResponseModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_time_period.py b/test/test_time_period.py new file mode 100644 index 0000000..c5e8daf --- /dev/null +++ b/test/test_time_period.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.time_period import TimePeriod # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestTimePeriod(unittest.TestCase): + """TimePeriod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTimePeriod(self): + """Test TimePeriod""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.time_period.TimePeriod() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_request_customer_update_request_model.py b/test/test_update_request_customer_update_request_model.py new file mode 100644 index 0000000..e6e61b7 --- /dev/null +++ b/test/test_update_request_customer_update_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.update_request_customer_update_request_model import UpdateRequestCustomerUpdateRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestUpdateRequestCustomerUpdateRequestModel(unittest.TestCase): + """UpdateRequestCustomerUpdateRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateRequestCustomerUpdateRequestModel(self): + """Test UpdateRequestCustomerUpdateRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.update_request_customer_update_request_model.UpdateRequestCustomerUpdateRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_request_dashboard_panel_request_model.py b/test/test_update_request_dashboard_panel_request_model.py new file mode 100644 index 0000000..09d7cd9 --- /dev/null +++ b/test/test_update_request_dashboard_panel_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.update_request_dashboard_panel_request_model import UpdateRequestDashboardPanelRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestUpdateRequestDashboardPanelRequestModel(unittest.TestCase): + """UpdateRequestDashboardPanelRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateRequestDashboardPanelRequestModel(self): + """Test UpdateRequestDashboardPanelRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.update_request_dashboard_panel_request_model.UpdateRequestDashboardPanelRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_request_dashboard_request_model.py b/test/test_update_request_dashboard_request_model.py new file mode 100644 index 0000000..298586b --- /dev/null +++ b/test/test_update_request_dashboard_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.update_request_dashboard_request_model import UpdateRequestDashboardRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestUpdateRequestDashboardRequestModel(unittest.TestCase): + """UpdateRequestDashboardRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateRequestDashboardRequestModel(self): + """Test UpdateRequestDashboardRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.update_request_dashboard_request_model.UpdateRequestDashboardRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_request_map_to_payer_credential_request_model.py b/test/test_update_request_map_to_payer_credential_request_model.py new file mode 100644 index 0000000..bf4b1a8 --- /dev/null +++ b/test/test_update_request_map_to_payer_credential_request_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CloudCheckr API + + CloudCheckr API # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudcheckr.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import cloudcheckr_cmx_client +from cloudcheckr_cmx_client.models.update_request_map_to_payer_credential_request_model import UpdateRequestMapToPayerCredentialRequestModel # noqa: E501 +from cloudcheckr_cmx_client.rest import ApiException + + +class TestUpdateRequestMapToPayerCredentialRequestModel(unittest.TestCase): + """UpdateRequestMapToPayerCredentialRequestModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateRequestMapToPayerCredentialRequestModel(self): + """Test UpdateRequestMapToPayerCredentialRequestModel""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudcheckr_cmx_client.models.update_request_map_to_payer_credential_request_model.UpdateRequestMapToPayerCredentialRequestModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() From bf0b53990c593bde48892c9ea583f47e1e649398 Mon Sep 17 00:00:00 2001 From: Dan Klinger Date: Thu, 14 Mar 2024 19:33:47 -0400 Subject: [PATCH 3/4] Comments for wheel or source builds --- code-artifact-publish.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code-artifact-publish.sh b/code-artifact-publish.sh index dcd2f03..2bf33e6 100755 --- a/code-artifact-publish.sh +++ b/code-artifact-publish.sh @@ -14,5 +14,8 @@ aws codeartifact login \ --domain $CODE_ARTIFACT_DOMAIN \ --domain-owner $CODE_ARTIFACT_OWNER +# Use bdist_wheel if you want to build a wheel package +# Use sdist if you want to build a source distribution package +# Use both if you want to build both python3 setup.py sdist bdist_wheel python3 setup.py sdist # bdist_wheel twine upload --verbose --skip-existing --repository codeartifact dist/* From fd0bafa5ad75acc2ec3579116bc88975df70162e Mon Sep 17 00:00:00 2001 From: Dan Klinger Date: Thu, 14 Mar 2024 19:34:15 -0400 Subject: [PATCH 4/4] version = 1.0.3 --- setup.py | 2 +- swag.config.python.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 12dc802..ff2589a 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "ct-cloudcheckr-cmx-client" -VERSION = "1.0.2" +VERSION = "1.0.3" # To install the library, run the following # # python setup.py install diff --git a/swag.config.python.json b/swag.config.python.json index fdb020f..f4d299d 100644 --- a/swag.config.python.json +++ b/swag.config.python.json @@ -1,6 +1,6 @@ { "packageName": "cloudcheckr_cmx_client", "projectName": "ct-cloudcheckr-cmx-client", - "packageVersion": "1.0.2", + "packageVersion": "1.0.3", "packageUrl": "https://github.com/CU-CommunityApps/ct-cloudcheckr-cmx-client" }