From 585e1fa6fff1c3eee98cbff79adeff2d276221fc Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Tue, 2 Apr 2024 05:21:44 +0000 Subject: [PATCH] Releasing version 2.125.1 --- CHANGELOG.rst | 12 + docs/api/email.rst | 1 + .../models/oci.email.models.Configuration.rst | 11 + docs/api/email_data_plane.rst | 25 + .../oci.email_data_plane.EmailDPClient.rst | 8 + ...plane.EmailDPClientCompositeOperations.rst | 8 + ...i.email_data_plane.models.EmailAddress.rst | 11 + ...ta_plane.models.EmailSubmittedResponse.rst | 11 + ...oci.email_data_plane.models.Recipients.rst | 11 + .../oci.email_data_plane.models.Sender.rst | 11 + ...l_data_plane.models.SubmitEmailDetails.rst | 11 + docs/api/landing.rst | 2 + examples/showoci/CHANGELOG.rst | 7 +- examples/showoci/showoci.py | 2 +- examples/showoci/showoci_data.py | 2 +- examples/showoci/showoci_output.py | 28 +- examples/showoci/showoci_service.py | 183 +++--- examples/showrewards/README.md | 167 ++++++ examples/showrewards/showrewards.py | 549 ++++++++++++++++++ src/oci/__init__.py | 4 +- src/oci/cloud_guard/cloud_guard_client.py | 87 ++- .../models/activity_problem_aggregation.py | 2 +- .../models/condition_metadata_type.py | 2 +- src/oci/cloud_guard/models/configuration.py | 2 +- .../models/create_data_source_details.py | 47 ++ .../models/create_managed_list_details.py | 14 +- src/oci/cloud_guard/models/data_mask_rule.py | 2 +- src/oci/cloud_guard/models/detector.py | 2 +- src/oci/cloud_guard/models/detector_recipe.py | 2 +- .../models/detector_recipe_detector_rule.py | 16 +- .../detector_recipe_detector_rule_summary.py | 14 +- src/oci/cloud_guard/models/detector_rule.py | 16 +- .../models/detector_rule_summary.py | 14 +- .../models/impacted_resource_summary.py | 2 +- src/oci/cloud_guard/models/managed_list.py | 16 +- .../models/managed_list_summary.py | 14 +- .../models/managed_list_type_summary.py | 2 +- src/oci/cloud_guard/models/policy_summary.py | 2 +- src/oci/cloud_guard/models/problem.py | 2 +- .../cloud_guard/models/problem_aggregation.py | 2 +- .../models/problem_endpoint_summary.py | 2 +- .../models/problem_trend_aggregation.py | 2 +- .../target_detector_recipe_detector_rule.py | 14 +- ...t_detector_recipe_detector_rule_summary.py | 14 +- src/oci/email/email_client.py | 126 +++- src/oci/email/models/__init__.py | 2 + src/oci/email/models/configuration.py | 138 +++++ src/oci/email/models/create_dkim_details.py | 8 +- .../models/create_email_domain_details.py | 8 +- src/oci/email/models/dkim.py | 16 +- src/oci/email/models/dkim_collection.py | 2 +- src/oci/email/models/email_domain.py | 12 +- .../email/models/email_domain_collection.py | 2 +- src/oci/email/models/email_domain_summary.py | 12 +- src/oci/email/models/sender.py | 45 +- src/oci/email/models/sender_summary.py | 69 ++- src/oci/email/models/suppression.py | 16 +- src/oci/email/models/suppression_summary.py | 8 +- src/oci/email/models/work_request.py | 18 +- src/oci/email/models/work_request_error.py | 14 +- src/oci/email/models/work_request_resource.py | 10 +- src/oci/email/models/work_request_summary.py | 18 +- src/oci/email_data_plane/__init__.py | 14 + src/oci/email_data_plane/email_dp_client.py | 206 +++++++ .../email_dp_client_composite_operations.py | 26 + src/oci/email_data_plane/models/__init__.py | 22 + .../email_data_plane/models/email_address.py | 107 ++++ .../models/email_submitted_response.py | 136 +++++ src/oci/email_data_plane/models/recipients.py | 135 +++++ src/oci/email_data_plane/models/sender.py | 103 ++++ .../models/submit_email_details.py | 297 ++++++++++ .../models/create_ssl_cipher_suite_details.py | 102 ++++ .../load_balancer/models/ssl_cipher_suite.py | 102 ++++ .../models/ssl_cipher_suite_details.py | 102 ++++ .../load_balancer/models/ssl_configuration.py | 2 + .../models/ssl_configuration_details.py | 2 + .../models/update_ssl_cipher_suite_details.py | 16 + .../create_network_load_balancer_details.py | 111 +++- .../models/network_load_balancer.py | 10 +- .../models/network_load_balancer_summary.py | 10 +- .../update_network_load_balancer_details.py | 76 ++- src/oci/opsi/operations_insights_client.py | 350 +++++------ src/oci/version.py | 2 +- 83 files changed, 3331 insertions(+), 480 deletions(-) create mode 100644 docs/api/email/models/oci.email.models.Configuration.rst create mode 100644 docs/api/email_data_plane.rst create mode 100644 docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClient.rst create mode 100644 docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClientCompositeOperations.rst create mode 100644 docs/api/email_data_plane/models/oci.email_data_plane.models.EmailAddress.rst create mode 100644 docs/api/email_data_plane/models/oci.email_data_plane.models.EmailSubmittedResponse.rst create mode 100644 docs/api/email_data_plane/models/oci.email_data_plane.models.Recipients.rst create mode 100644 docs/api/email_data_plane/models/oci.email_data_plane.models.Sender.rst create mode 100644 docs/api/email_data_plane/models/oci.email_data_plane.models.SubmitEmailDetails.rst create mode 100644 examples/showrewards/README.md create mode 100644 examples/showrewards/showrewards.py create mode 100644 src/oci/email/models/configuration.py create mode 100644 src/oci/email_data_plane/__init__.py create mode 100644 src/oci/email_data_plane/email_dp_client.py create mode 100644 src/oci/email_data_plane/email_dp_client_composite_operations.py create mode 100644 src/oci/email_data_plane/models/__init__.py create mode 100644 src/oci/email_data_plane/models/email_address.py create mode 100644 src/oci/email_data_plane/models/email_submitted_response.py create mode 100644 src/oci/email_data_plane/models/recipients.py create mode 100644 src/oci/email_data_plane/models/sender.py create mode 100644 src/oci/email_data_plane/models/submit_email_details.py diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4a56aee2d8..481c9d3972 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,18 @@ Change Log All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +==================== +2.125.1 - 2024-04-02 +==================== + +Added +----- +* Support for assigned private IP and single stack IPV6 feature for Network Load Balancer Service +* Support for Configuration API in Email Delivery Service +* Support for the status field in creating data source resource for Cloud Guard Service +* Support for TLSv1.3 in Load Balancer Service +* Support for sending mails via HTTPS for Email Delivery Service + ==================== 2.125.0 - 2024-03-26 ==================== diff --git a/docs/api/email.rst b/docs/api/email.rst index bdd3941e28..a0885e50b0 100644 --- a/docs/api/email.rst +++ b/docs/api/email.rst @@ -20,6 +20,7 @@ Email oci.email.models.ChangeEmailDomainCompartmentDetails oci.email.models.ChangeSenderCompartmentDetails + oci.email.models.Configuration oci.email.models.CreateDkimDetails oci.email.models.CreateEmailDomainDetails oci.email.models.CreateSenderDetails diff --git a/docs/api/email/models/oci.email.models.Configuration.rst b/docs/api/email/models/oci.email.models.Configuration.rst new file mode 100644 index 0000000000..3240f8924c --- /dev/null +++ b/docs/api/email/models/oci.email.models.Configuration.rst @@ -0,0 +1,11 @@ +Configuration +============= + +.. currentmodule:: oci.email.models + +.. autoclass:: Configuration + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email_data_plane.rst b/docs/api/email_data_plane.rst new file mode 100644 index 0000000000..b4c71a6723 --- /dev/null +++ b/docs/api/email_data_plane.rst @@ -0,0 +1,25 @@ +Email Data Plane +================ + +.. autosummary:: + :toctree: email_data_plane/client + :nosignatures: + :template: autosummary/service_client.rst + + oci.email_data_plane.EmailDPClient + oci.email_data_plane.EmailDPClientCompositeOperations + +-------- + Models +-------- + +.. autosummary:: + :toctree: email_data_plane/models + :nosignatures: + :template: autosummary/model_class.rst + + oci.email_data_plane.models.EmailAddress + oci.email_data_plane.models.EmailSubmittedResponse + oci.email_data_plane.models.Recipients + oci.email_data_plane.models.Sender + oci.email_data_plane.models.SubmitEmailDetails diff --git a/docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClient.rst b/docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClient.rst new file mode 100644 index 0000000000..6b7ac2abfb --- /dev/null +++ b/docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClient.rst @@ -0,0 +1,8 @@ +EmailDPClient +============= + +.. currentmodule:: oci.email_data_plane + +.. autoclass:: EmailDPClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClientCompositeOperations.rst b/docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClientCompositeOperations.rst new file mode 100644 index 0000000000..3e47bdbd6f --- /dev/null +++ b/docs/api/email_data_plane/client/oci.email_data_plane.EmailDPClientCompositeOperations.rst @@ -0,0 +1,8 @@ +EmailDPClientCompositeOperations +================================ + +.. currentmodule:: oci.email_data_plane + +.. autoclass:: EmailDPClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/email_data_plane/models/oci.email_data_plane.models.EmailAddress.rst b/docs/api/email_data_plane/models/oci.email_data_plane.models.EmailAddress.rst new file mode 100644 index 0000000000..f420777b79 --- /dev/null +++ b/docs/api/email_data_plane/models/oci.email_data_plane.models.EmailAddress.rst @@ -0,0 +1,11 @@ +EmailAddress +============ + +.. currentmodule:: oci.email_data_plane.models + +.. autoclass:: EmailAddress + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email_data_plane/models/oci.email_data_plane.models.EmailSubmittedResponse.rst b/docs/api/email_data_plane/models/oci.email_data_plane.models.EmailSubmittedResponse.rst new file mode 100644 index 0000000000..d02d03f1a6 --- /dev/null +++ b/docs/api/email_data_plane/models/oci.email_data_plane.models.EmailSubmittedResponse.rst @@ -0,0 +1,11 @@ +EmailSubmittedResponse +====================== + +.. currentmodule:: oci.email_data_plane.models + +.. autoclass:: EmailSubmittedResponse + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email_data_plane/models/oci.email_data_plane.models.Recipients.rst b/docs/api/email_data_plane/models/oci.email_data_plane.models.Recipients.rst new file mode 100644 index 0000000000..8520353ef6 --- /dev/null +++ b/docs/api/email_data_plane/models/oci.email_data_plane.models.Recipients.rst @@ -0,0 +1,11 @@ +Recipients +========== + +.. currentmodule:: oci.email_data_plane.models + +.. autoclass:: Recipients + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email_data_plane/models/oci.email_data_plane.models.Sender.rst b/docs/api/email_data_plane/models/oci.email_data_plane.models.Sender.rst new file mode 100644 index 0000000000..ba510d14eb --- /dev/null +++ b/docs/api/email_data_plane/models/oci.email_data_plane.models.Sender.rst @@ -0,0 +1,11 @@ +Sender +====== + +.. currentmodule:: oci.email_data_plane.models + +.. autoclass:: Sender + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email_data_plane/models/oci.email_data_plane.models.SubmitEmailDetails.rst b/docs/api/email_data_plane/models/oci.email_data_plane.models.SubmitEmailDetails.rst new file mode 100644 index 0000000000..885abff732 --- /dev/null +++ b/docs/api/email_data_plane/models/oci.email_data_plane.models.SubmitEmailDetails.rst @@ -0,0 +1,11 @@ +SubmitEmailDetails +================== + +.. currentmodule:: oci.email_data_plane.models + +.. autoclass:: SubmitEmailDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/landing.rst b/docs/api/landing.rst index 65db7d96e5..db27f97bea 100644 --- a/docs/api/landing.rst +++ b/docs/api/landing.rst @@ -84,6 +84,7 @@ API Reference * :doc:`Ekm ` * :doc:`Em Warehouse ` * :doc:`Email ` +* :doc:`Email Dp ` * :doc:`Esxi Host ` * :doc:`Event ` * :doc:`Events ` @@ -307,6 +308,7 @@ API Reference dts em_warehouse email + email_data_plane events file_storage fleet_software_update diff --git a/examples/showoci/CHANGELOG.rst b/examples/showoci/CHANGELOG.rst index 4e70c67852..6d7cf5ab32 100644 --- a/examples/showoci/CHANGELOG.rst +++ b/examples/showoci/CHANGELOG.rst @@ -4,12 +4,17 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +===================== +24.04.02 - 24.04.02 +===================== +* Added support for IAM Domains across different compartments + ===================== 24.03.19 - 24.03.19 ===================== * Added -excludelist to generate exclude filter flags * Added certificates, certificate authorities, certificate ca bundle which are part of -sec -* Added Data Safe information including assesments (use -dsa for report), assesments extract to JSON or CSV +* Added Data Safe information including assessments (use -dsa for report), assessments extract to JSON or CSV * Added description for network security rules and security groups ===================== diff --git a/examples/showoci/showoci.py b/examples/showoci/showoci.py index 05a14bf658..202dcb3f01 100644 --- a/examples/showoci/showoci.py +++ b/examples/showoci/showoci.py @@ -128,7 +128,7 @@ import os import time -version = "24.03.19" +version = "24.04.02" ########################################################################## # check OCI version diff --git a/examples/showoci/showoci_data.py b/examples/showoci/showoci_data.py index 969d24fdc2..98f96a6d51 100644 --- a/examples/showoci/showoci_data.py +++ b/examples/showoci/showoci_data.py @@ -20,7 +20,7 @@ class ShowOCIData(object): - version = "24.03.19" + version = "24.04.02" ############################################ # ShowOCIService - Service object to query diff --git a/examples/showoci/showoci_output.py b/examples/showoci/showoci_output.py index 1dd2c154c6..169d63f3fe 100644 --- a/examples/showoci/showoci_output.py +++ b/examples/showoci/showoci_output.py @@ -22,7 +22,7 @@ class ShowOCIOutput(object): - version = "24.03.19" + version = "24.04.02" ########################################################################## # spaces for align @@ -242,9 +242,10 @@ def __print_identity_domains(self, domains): for domain in domains: print(self.taba + domain['display_name'] + " - " + domain['description'] + " - Created: " + domain['time_created']) - print(self.tabs + "URL : " + domain['url']) - print(self.tabs + "License : " + domain['license_type']) - print(self.tabs + "Type : " + domain['type']) + print(self.tabs + "Compartment : " + domain['compartment_path']) + print(self.tabs + "URL : " + domain['url']) + print(self.tabs + "License : " + domain['license_type']) + print(self.tabs + "Type : " + domain['type']) print("") for domain in domains: @@ -4745,7 +4746,10 @@ def __csv_identity_domains(self, domains): 'dynamic_groups': len(var['dynamic_groups']) if var['dynamic_groups'] else 0, 'kmsi_setting': len(var['kmsi_setting']) if var['kmsi_setting'] else 0, 'identity_providers': len(var['identity_providers']) if var['identity_providers'] else 0, - 'authentication_factor_settings': len(var['authentication_factor_settings']) if var['authentication_factor_settings'] else 0 + 'authentication_factor_settings': len(var['authentication_factor_settings']) if var['authentication_factor_settings'] else 0, + 'compartment_id': var['compartment_id'], + 'compartment_path': var['compartment_path'], + 'compartment_name': var['compartment_name'] } self.csv_identity_domains.append(data) @@ -4880,13 +4884,13 @@ def __csv_identity_domains_users(self, users, domain_name, domain_id): 'can_use_smtp_credentials': var['ext_capabilities']['can_use_smtp_credentials'], 'can_use_db_credentials': var['ext_capabilities']['can_use_db_credentials'], 'roles': str(', '.join(x['value'] + ":" + x['type'] for x in var['roles'])), - 'api_keys': str(', '.join(x['ocid'] for x in var['api_keys'])), - 'customer_secret_keys': str(', '.join(x['ocid'] for x in var['customer_secret_keys'])), - 'auth_tokens': str(', '.join(x['ocid'] for x in var['auth_tokens'])), - 'smtp_credentials': str(', '.join(x['ocid'] for x in var['smtp_credentials'])), - 'o_auth2_client_credentials': str(', '.join(x['ocid'] for x in var['o_auth2_client_credentials'])), - 'db_credentials': str(', '.join(x['ocid'] for x in var['db_credentials'])), - 'allow_self_change': str(', '.join(x['ocid'] for x in var['allow_self_change'])) + 'api_keys': str(', '.join(x['ocid'] + ":" + x['time_created'] for x in var['api_keys'])), + 'customer_secret_keys': str(', '.join(x['ocid'] + ":" + x['time_created'] for x in var['customer_secret_keys'])), + 'auth_tokens': str(', '.join(x['ocid'] + ":" + x['time_created'] for x in var['auth_tokens'])), + 'smtp_credentials': str(', '.join(x['ocid'] + ":" + x['time_created'] for x in var['smtp_credentials'])), + 'o_auth2_client_credentials': str(', '.join(x['ocid'] + ":" + x['time_created'] for x in var['o_auth2_client_credentials'])), + 'db_credentials': str(', '.join(x['ocid'] + ":" + x['time_created'] for x in var['db_credentials'])), + 'allow_self_change': var['allow_self_change'] } self.csv_identity_domains_users.append(data) diff --git a/examples/showoci/showoci_service.py b/examples/showoci/showoci_service.py index 77018017a7..9dba3dbee6 100644 --- a/examples/showoci/showoci_service.py +++ b/examples/showoci/showoci_service.py @@ -39,7 +39,7 @@ # class ShowOCIService ########################################################################## class ShowOCIService(object): - version = "24.03.19" + version = "24.04.02" oci_compatible_version = "2.119.1" thread_lock = threading.Lock() @@ -1584,7 +1584,7 @@ def __load_section_identity_main(self): # Load Identity Domains print("") showoci_domains = ShowOCIDomains(self.config, self.signer, self.flags) - domains_data = showoci_domains.load_identity_domains_main() + domains_data = showoci_domains.load_identity_domains_main(self.get_compartments()) self.error += showoci_domains.error self.error_array += showoci_domains.error_array self.warning += showoci_domains.warning @@ -19434,12 +19434,18 @@ def __load_identity_domain_users(self, identity_domain_client, domain_name): ext_credential = var.urn_ietf_params_scim_schemas_oracle_idcs_extension_user_credentials_user if ext_credential and not self.skip_identity_user_credential: - user_value['api_keys'] = self.__get_api_keys(identity_domain_client, var.ocid, ext_credential) - user_value['customer_secret_keys'] = self.__get_customer_secret_keys(identity_domain_client, var.ocid, ext_credential) - user_value['auth_tokens'] = self.__get_auth_tokens(identity_domain_client, var.ocid, ext_credential) - user_value['smtp_credentials'] = self.__get_smtp_credentials(identity_domain_client, var.ocid, ext_credential) - user_value['o_auth2_client_credentials'] = self.__get_o_auth2_client_credentials(identity_domain_client, var.ocid, ext_credential) - user_value['db_credentials'] = self.__get_user_db_credentials(identity_domain_client, var.ocid, ext_credential) + if ext_credential.api_keys: + user_value['api_keys'] = self.__get_api_keys(identity_domain_client, var.ocid, ext_credential) + if ext_credential.customer_secret_keys: + user_value['customer_secret_keys'] = self.__get_customer_secret_keys(identity_domain_client, var.ocid, ext_credential) + if ext_credential.auth_tokens: + user_value['auth_tokens'] = self.__get_auth_tokens(identity_domain_client, var.ocid, ext_credential) + if ext_credential.smtp_credentials: + user_value['smtp_credentials'] = self.__get_smtp_credentials(identity_domain_client, var.ocid, ext_credential) + if ext_credential.o_auth2_client_credentials: + user_value['o_auth2_client_credentials'] = self.__get_o_auth2_client_credentials(identity_domain_client, var.ocid, ext_credential) + if ext_credential.db_credentials: + user_value['db_credentials'] = self.__get_user_db_credentials(identity_domain_client, var.ocid, ext_credential) data.append(user_value) @@ -20396,7 +20402,7 @@ def __load_identity_domain_password_policies(self, identity_domain_client, domai ########################################################################## # Identity Module ########################################################################## - def load_identity_domains_main(self): + def load_identity_domains_main(self, compartments): try: print("Identity Domains...") @@ -20409,87 +20415,90 @@ def load_identity_domains_main(self): if self.proxy: identity_client.base_client.session.proxies = {'https': self.proxy} - # get tenancy id from the config file - tenant_id = self.config['tenancy'] - - # get all domains - list_domains = identity_client.list_domains( - tenant_id, - lifecycle_state='ACTIVE', - retry_strategy=oci.retry.DEFAULT_RETRY_STRATEGY - ).data + # get compartments from the class + for compartment in compartments: - # oci.identity.models.DomainSummary - for domain in list_domains: + # get all domains across all compartments + list_domains = identity_client.list_domains( + compartment['id'], + lifecycle_state='ACTIVE', + retry_strategy=oci.retry.DEFAULT_RETRY_STRATEGY + ).data - # Create Identity Domain Client - identity_domain_client = oci.identity_domains.IdentityDomainsClient( - config=self.config, - signer=self.signer, - service_endpoint=domain.url, - timeout=(self.connection_timeout, self.read_timeout) - ) - if self.proxy: - identity_domain_client.base_client.session.proxies = {'https': self.proxy} - - domain_data = { - 'id': self.get_value(domain.id), - 'display_name': self.get_value(domain.display_name), - 'description': self.get_value(domain.description), - 'url': self.get_value(domain.url), - 'home_region_url': self.get_value(domain.home_region_url), - 'home_region': self.get_value(domain.home_region), - 'type': self.get_value(domain.type), - 'license_type': self.get_value(domain.license_type), - 'is_hidden_on_login': self.get_value(domain.is_hidden_on_login), - 'time_created': self.get_value(domain.time_created)[0:16], - 'lifecycle_state': self.get_value(domain.lifecycle_state), - 'defined_tags': [] if domain.defined_tags is None else domain.defined_tags, - 'freeform_tags': [] if domain.freeform_tags is None else domain.freeform_tags, - 'replica_regions': str(','.join(x.region for x in domain.replica_regions)) if domain.replica_regions else "", - 'users': [], - 'groups': [], - 'dynamic_groups': [], - 'kmsi_setting': [], - 'identity_providers': [], - 'authentication_factor_settings': [], - 'password_policies': [] - } + # oci.identity.models.DomainSummary + for domain in list_domains: + + # Create Identity Domain Client + identity_domain_client = oci.identity_domains.IdentityDomainsClient( + config=self.config, + signer=self.signer, + service_endpoint=domain.url, + timeout=(self.connection_timeout, self.read_timeout) + ) + if self.proxy: + identity_domain_client.base_client.session.proxies = {'https': self.proxy} + + domain_data = { + 'id': self.get_value(domain.id), + 'display_name': self.get_value(domain.display_name), + 'description': self.get_value(domain.description), + 'url': self.get_value(domain.url), + 'home_region_url': self.get_value(domain.home_region_url), + 'home_region': self.get_value(domain.home_region), + 'type': self.get_value(domain.type), + 'license_type': self.get_value(domain.license_type), + 'is_hidden_on_login': self.get_value(domain.is_hidden_on_login), + 'time_created': self.get_value(domain.time_created)[0:16], + 'lifecycle_state': self.get_value(domain.lifecycle_state), + 'defined_tags': [] if domain.defined_tags is None else domain.defined_tags, + 'freeform_tags': [] if domain.freeform_tags is None else domain.freeform_tags, + 'replica_regions': str(','.join(x.region for x in domain.replica_regions)) if domain.replica_regions else "", + 'users': [], + 'groups': [], + 'dynamic_groups': [], + 'kmsi_setting': [], + 'identity_providers': [], + 'authentication_factor_settings': [], + 'password_policies': [], + 'compartment_name': str(compartment['name']), + 'compartment_id': str(compartment['id']), + 'compartment_path': str(compartment['path']) + } - ########################## - # if serial execution - ########################## - if self.skip_threads: - domain_data['users'] = self.__load_identity_domain_users(identity_domain_client, domain.display_name) - domain_data['groups'] = self.__load_identity_domain_groups(identity_domain_client, domain.display_name) - domain_data['dynamic_groups'] = self.__load_identity_domain_dynamic_resource_groups(identity_domain_client, domain.display_name) - domain_data['kmsi_setting'] = self.__load_identity_domain_kmsi_setting(identity_domain_client, domain.display_name) - domain_data['identity_providers'] = self.__load_identity_domain_identity_providers(identity_domain_client, domain.display_name) - domain_data['authentication_factor_settings'] = self.__load_identity_domain_authentication_factor_settings(identity_domain_client, domain.display_name) - domain_data['password_policies'] = self.__load_identity_domain_password_policies(identity_domain_client, domain.display_name) - - ########################## - # if parallel execution - ########################## - else: - with ThreadPoolExecutor(max_workers=8) as executor: - future_users = executor.submit(self.__load_identity_domain_users, identity_domain_client, domain.display_name) - future_groups = executor.submit(self.__load_identity_domain_groups, identity_domain_client, domain.display_name) - future_dynamic_groups = executor.submit(self.__load_identity_domain_dynamic_resource_groups, identity_domain_client, domain.display_name) - future_kmsi_setting = executor.submit(self.__load_identity_domain_kmsi_setting, identity_domain_client, domain.display_name) - future_identity_providers = executor.submit(self.__load_identity_domain_identity_providers, identity_domain_client, domain.display_name) - future_authentication_factor_settings = executor.submit(self.__load_identity_domain_authentication_factor_settings, identity_domain_client, domain.display_name) - future_password_policies = executor.submit(self.__load_identity_domain_password_policies, identity_domain_client, domain.display_name) - - domain_data['users'] = next(as_completed([future_users])).result() - domain_data['groups'] = next(as_completed([future_groups])).result() - domain_data['dynamic_groups'] = next(as_completed([future_dynamic_groups])).result() - domain_data['kmsi_setting'] = next(as_completed([future_kmsi_setting])).result() - domain_data['identity_providers'] = next(as_completed([future_identity_providers])).result() - domain_data['authentication_factor_settings'] = next(as_completed([future_authentication_factor_settings])).result() - domain_data['password_policies'] = next(as_completed([future_password_policies])).result() - - self.data.append(domain_data) + ########################## + # if serial execution + ########################## + if self.skip_threads: + domain_data['users'] = self.__load_identity_domain_users(identity_domain_client, domain.display_name) + domain_data['groups'] = self.__load_identity_domain_groups(identity_domain_client, domain.display_name) + domain_data['dynamic_groups'] = self.__load_identity_domain_dynamic_resource_groups(identity_domain_client, domain.display_name) + domain_data['kmsi_setting'] = self.__load_identity_domain_kmsi_setting(identity_domain_client, domain.display_name) + domain_data['identity_providers'] = self.__load_identity_domain_identity_providers(identity_domain_client, domain.display_name) + domain_data['authentication_factor_settings'] = self.__load_identity_domain_authentication_factor_settings(identity_domain_client, domain.display_name) + domain_data['password_policies'] = self.__load_identity_domain_password_policies(identity_domain_client, domain.display_name) + + ########################## + # if parallel execution + ########################## + else: + with ThreadPoolExecutor(max_workers=8) as executor: + future_users = executor.submit(self.__load_identity_domain_users, identity_domain_client, domain.display_name) + future_groups = executor.submit(self.__load_identity_domain_groups, identity_domain_client, domain.display_name) + future_dynamic_groups = executor.submit(self.__load_identity_domain_dynamic_resource_groups, identity_domain_client, domain.display_name) + future_kmsi_setting = executor.submit(self.__load_identity_domain_kmsi_setting, identity_domain_client, domain.display_name) + future_identity_providers = executor.submit(self.__load_identity_domain_identity_providers, identity_domain_client, domain.display_name) + future_authentication_factor_settings = executor.submit(self.__load_identity_domain_authentication_factor_settings, identity_domain_client, domain.display_name) + future_password_policies = executor.submit(self.__load_identity_domain_password_policies, identity_domain_client, domain.display_name) + + domain_data['users'] = next(as_completed([future_users])).result() + domain_data['groups'] = next(as_completed([future_groups])).result() + domain_data['dynamic_groups'] = next(as_completed([future_dynamic_groups])).result() + domain_data['kmsi_setting'] = next(as_completed([future_kmsi_setting])).result() + domain_data['identity_providers'] = next(as_completed([future_identity_providers])).result() + domain_data['authentication_factor_settings'] = next(as_completed([future_authentication_factor_settings])).result() + domain_data['password_policies'] = next(as_completed([future_password_policies])).result() + + self.data.append(domain_data) print('') return self.data diff --git a/examples/showrewards/README.md b/examples/showrewards/README.md new file mode 100644 index 0000000000..0a52f7049b --- /dev/null +++ b/examples/showrewards/README.md @@ -0,0 +1,167 @@ +## SHOWREWARDS - Oracle Cloud Infrastructure subscruption reporting + +SHOWREWARDS is a support rewards reporting tool which uses the Python SDK to extract tenant subscription and support rewards. +Authentication by User or Compute using instance principals, + +**DISCLAIMER - This is not an official Oracle application, It does not supported by Oracle Support. + +**Developed by Adi Zohar, 2024-2024** + +## Modules Included: +- oci.identity.IdentityClient +- OrganizationSubscriptionClient +- oci.usage.RewardsClient + +## Executing using Cloud Shell: +``` +1. install oci sdk package + pip3 install --user oci + +2. clone the oci sdk repo + git clone https://github.com/oracle/oci-python-sdk + +3. run showrewards.py with delegation token + cd oci-python-sdk/examples/showrewards + python3 showrewards.py -dt +``` + +## Installation of Python 3 incase you don't have Python3 installed: +Please follow [Python Documentation](https://docs.python.org/3/using/index.html) + +## Install OCI SDK Packages: +Please follow [Oracle Python SDK Documentation](https://github.com/oracle/oci-python-sdk) + +## Setup connectivity using Instance Principals + +``` +1. Login to your OCI Cloud console + +2. Create new Dynamic Group : DynShowRewardsGroup + Obtain Compute OCID and add rule - any {ALL {instance.id = 'ocid1.instance.oc1.xxxxxxxxxx'}} + +3. Create new Policy: DynShowRewardsGroupPolicy with Statements: + Allow dynamic group DynShowRewardsGroup to inspect tenancies in tenancy + Allow dynamic group DynShowRewardsGroup to inspect organizations-subscription in tenancy + Allow dynamic group DynShowRewardsGroup to read support-rewards in tenancy +``` + +## Setup connectivity using User + +``` +1. Login to your OCI Cloud console + +2. Create new group : ShowRewardsGroup + +3. Create new Policy: ShowRewardsGroupPolicy with Statements: + Allow group ShowRewardsGroup to inspect tenancies in tenancy + Allow group ShowRewardsGroup to inspect organizations-subscription in tenancy + Allow group ShowRewardsGroup to read support-rewards in tenancy + +4. Create new User : showrewards.user -> Add to ShowRewardsGroup group + +5. Config OCI config file - ~/.oci/config + Please follow SDK config documentation - https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm +``` + +## Copy the Software +Download the showrewards.py from this project + +Execute + +``` +$ python3 showrewards.py + +optional arguments: + -h, --help show this help message and exit + -c CONFIG_FILE OCI CLI Config file + -t CONFIG_PROFILE Config Profile inside the config file + -p PROXY Set Proxy (i.e. www-proxy-server.com:80) + -ip Use Instance Principals for Authentication + -dt Use Delegation Token for Authentication + -include_products Include products per rewards for JSON file only + -f FILE Output to file (as json) + -csv Write to CSV files - rewards.csv, redemption.csv, reward_products.csv if -include_products specificed +``` + +## Below example of reports from demo tenancy (random info generated) + +######################################################################################################################## +# Running Show Rewards # +######################################################################################################################## +Author : Adi Zohar +Disclaimer : This is not an official Oracle application, It does not supported by Oracle ! +Machine : temp-mac (arm64) +App Version : 2024.03.01 +OCI SDK Version : 2.123.0 +Python Version : 3.10.6 +Authentication : Config File +Date/Time : 2024-03-01 22:17:15 +Command Line : -t DEFAULT +Service Filter : UCC +Status Filter : ACTIVE + +######################################################################################################################## +# Fetching data # +######################################################################################################################## + +Connecting to Identity Service... + +Tenant Name : test_tenant +Tenant Id : ocid1.tenancy.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +Home Region : us-ashburn-1 + +#################################################################################################### +# Universal Credits # +#################################################################################################### + +Id : 12345678 +Service Name : Universal Credits +Currency : USD +Time Start : 2023-01-01 00:00 +Time End : 2025-12-31 23:59 +Status : ACTIVE +Total Value : 100 + +##################################################################################### +# Reward Redemptions # +##################################################################################### + +time_invoiced : 2023-05-22 00:00 +time_redeemed : 2023-05-24 18:08 +redemption_email : test@tests.com +redemption_code : 8888888-9999999-0000000-111111111111 +invoice_number : 12345678 +invoice_currency : USD +invoice_total_amount : None +redeemed_rewards : 32,000 +base_rewards : 32,000 +fx_rate : 1 + +##################################################################################### +# Reward Monthly Summary for 2023-05-01 00:00 - 2023-05-31 23:59 # +##################################################################################### + +time_rewards_expired : 2024-06-30 23:59 +time_rewards_earned : 2023-06-01 00:00 +usage_period_key : 12345567 +is_manual : False +usage_amount : 64,200 +eligible_usage_amount : 64,000 +ineligible_usage_amount : 200 +available_rewards : 16,000 +redeemed_rewards : 0 +earned_rewards : 16,000 + +##################################################################################### +# Reward Summary # +##################################################################################### + +tenancy_id : ocid1.tenancy.oc1..xxx +subscription_id : 12344566 +currency : USD +redemption_code : 8888888-9999999-0000000-111111111111 +rewards_rate : 25 +total_rewards_available : 200,000 + + +``` diff --git a/examples/showrewards/showrewards.py b/examples/showrewards/showrewards.py new file mode 100644 index 0000000000..895e3690f6 --- /dev/null +++ b/examples/showrewards/showrewards.py @@ -0,0 +1,549 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +#################################################################################################################### +# showrewards.py +# +# @author: Adi Zohar, Apr 01 2024 +# +# Supports Python 3 +#################################################################################################################### +# Application Command line parameters +# +# -c config - OCI CLI Config +# -t profile - profile inside the config file +# -p proxy - Set Proxy (i.e. www-proxy-server.com:80) +# -ip - Use Instance Principals for Authentication +# -dt - Use Instance Principals with delegation token for cloud shell +# -include_products - Include Extract Product Per Rewards +# -f FILE_NAME - Write to JSON file +# -csv - Write to CSV files - rewards.csv, redemption.csv, reward_products.csv if -include_products specificed +# +#################################################################################################################### +# Modules Included: +# - oci.identity.IdentityClient +# - OrganizationSubscriptionClient +# - oci.usage.RewardsClient +# +# APIs Used: +# - IdentityClient.get_tenancy - Policy TENANCY_INSPECT +# - IdentityClient.list_region_subscriptions - Policy TENANCY_INSPECT +# - OrganizationSubscriptionClient.list_organization_subscriptions - Policy ORGANIZATIONS_SUBSCRIPTION_INSPECT +# - RewardsClient.list_rewards - Policy REWARDS_READ +# - RewardsClient.list_redemptions - Policy REWARDS_READ +# - RewardsClient.list_products - Policy REWARDS_READ +# +# Policies: +# Allow group ShowRewardsGroup to inspect tenancies in tenancy +# Allow group ShowRewardsGroup to inspect organizations-subscription in tenancy +# Allow group ShowRewardsGroup to read support-rewards in tenancy +# +#################################################################################################################### +import sys +import argparse +import datetime +import oci +import os +import platform +import json +import csv + +version = "2024.04.02" + +csv_file_rewards = "rewards.csv" +csv_file_redemption = "redemption.csv" +csv_file_reward_products = "reward_products.csv" + + +########################################################################## +# Print header centered +########################################################################## +def print_header(name, category): + options = {0: 120, 1: 100, 2: 90, 3: 85} + chars = int(options[category]) + print("") + print('#' * chars) + print("#" + name.center(chars - 2, " ") + "#") + print('#' * chars) + + +########################################################################## +# number_format +########################################################################## +def number_format(var): + if str(var).replace(".", "").isnumeric(): + return str("{:,.0f}".format(float(var))).rjust(12) + return var + + +########################################################################## +# Create signer for Authentication +# Input - config_profile and is_instance_principals and is_delegation_token +# Output - config and signer objects +########################################################################## +def create_signer(config_file, config_profile, is_instance_principals, is_delegation_token): + + # if instance principals authentications + if is_instance_principals: + try: + signer = oci.auth.signers.InstancePrincipalsSecurityTokenSigner() + config = {'region': signer.region, 'tenancy': signer.tenancy_id} + return config, signer + + except Exception: + print_header("Error obtaining instance principals certificate, aborting", 0) + raise SystemExit + + # ----------------------------- + # Delegation Token + # ----------------------------- + elif is_delegation_token: + + try: + # check if env variables OCI_CONFIG_FILE, OCI_CONFIG_PROFILE exist and use them + env_config_file = os.environ.get('OCI_CONFIG_FILE') + env_config_section = os.environ.get('OCI_CONFIG_PROFILE') + + # check if file exist + if env_config_file is None or env_config_section is None: + print("*** OCI_CONFIG_FILE and OCI_CONFIG_PROFILE env variables not found, abort. ***") + print("") + raise SystemExit + + config = oci.config.from_file(env_config_file, env_config_section) + delegation_token_location = config["delegation_token_file"] + + with open(delegation_token_location, 'r') as delegation_token_file: + delegation_token = delegation_token_file.read().strip() + # get signer from delegation token + signer = oci.auth.signers.InstancePrincipalsDelegationTokenSigner(delegation_token=delegation_token) + + return config, signer + + except KeyError: + print("* Key Error obtaining delegation_token_file") + raise SystemExit + + except Exception: + raise + + # ----------------------------- + # config file authentication + # ----------------------------- + else: + config = oci.config.from_file( + (config_file if config_file else oci.config.DEFAULT_LOCATION), + (config_profile if config_profile else oci.config.DEFAULT_PROFILE) + ) + signer = oci.signer.Signer( + tenancy=config["tenancy"], + user=config["user"], + fingerprint=config["fingerprint"], + private_key_file_location=config.get("key_file"), + pass_phrase=oci.config.get_config_value_or_default(config, "pass_phrase"), + private_key_content=config.get("key_content") + ) + return config, signer + + +########################################################################## +# create csv file +########################################################################## +def export_to_csv_file(file_name, data): + + try: + # if no data + if len(data) == 0: + return + + # generate fields keys + fields = [] + for dict_ in data: + for key in dict_: + if key not in fields: + fields.append(key) + + with open(file_name, mode='w', newline='') as csv_file: + writer = csv.DictWriter(csv_file, fieldnames=fields) + + # write header + writer.writeheader() + + for row in data: + writer.writerow(row) + + print("CSV: " + file_name + " created") + + except Exception as e: + raise Exception("Error in export_to_csv_file: " + str(e.args)) + + +########################################################################## +# rewards_report Report +########################################################################## +def rewards_csv(data): + csv_redemption = [] + csv_rewards = [] + csv_product = [] + try: + print("") + for sub in data['subscriptions']: + + # redemption + for redemption in sub['redemptions']: + csv_redemption.append({ + 'sub_id': str(sub['id']), + 'service_name': str(sub['service_name']), + 'time_invoiced': str(redemption['time_invoiced']), + 'time_redeemed': str(redemption['time_redeemed']), + 'redemption_email': str(redemption['redemption_email']), + 'redemption_code': str(redemption['redemption_code']), + 'invoice_number': str(redemption['invoice_number']), + 'invoice_currency': str(redemption['invoice_currency']), + 'invoice_total_amount': str(redemption['invoice_total_amount']), + 'redeemed_rewards': str(redemption['redeemed_rewards']), + 'base_rewards': str(redemption['base_rewards']), + 'fx_rate': str(redemption['fx_rate']) + }) + + # rewards + for reward in sub['rewards']: + csv_rewards.append({ + 'sub_id': str(sub['id']), + 'service_name': str(sub['service_name']), + 'time_usage_started': str(reward['time_usage_started']), + 'time_usage_ended': str(reward['time_usage_ended']), + 'time_rewards_expired': str(reward['time_rewards_expired']), + 'time_rewards_earned': str(reward['time_rewards_earned']), + 'usage_period_key': str(reward['usage_period_key']), + 'usage_amount': str(reward['usage_amount']), + 'eligible_usage_amount': str(reward['eligible_usage_amount']), + 'ineligible_usage_amount': str(reward['ineligible_usage_amount']), + 'available_rewards': str(reward['available_rewards']), + 'redeemed_rewards': str(reward['redeemed_rewards']), + 'earned_rewards': str(reward['earned_rewards']), + 'is_manual': str(reward['is_manual']) + }) + + # rewards + for product in reward['products']: + csv_product.append({ + 'sub_id': str(sub['id']), + 'service_name': str(sub['service_name']), + 'time_usage_started': str(reward['time_usage_started']), + 'time_usage_ended': str(reward['time_usage_ended']), + 'usage_period_key': str(reward['usage_period_key']), + 'product_number': str(product['product_number']), + 'product_name': str(product['product_name']), + 'usage_amount': str(product['usage_amount']), + 'earned_rewards': str(product['earned_rewards']), + 'is_eligible_to_earn_rewards': str(product['is_eligible_to_earn_rewards']) + }) + + # Write the files + export_to_csv_file(csv_file_rewards, csv_rewards) + export_to_csv_file(csv_file_redemption, csv_redemption) + export_to_csv_file(csv_file_reward_products, csv_product) + + except Exception as e: + print("\nException Error at 'rewards_csv' - " + str(e)) + + +########################################################################## +# rewards_report Report +########################################################################## +def rewards_report(cmd, config, signer, tenancy): + + status = "Start" + data = { + 'tenant_id': tenancy.id, + 'tenant_name': tenancy.name, + 'subscriptions': [] + } + + try: + osub_org_client = oci.osub_organization_subscription.OrganizationSubscriptionClient(config, signer=signer) + rewards_client = oci.usage.RewardsClient(config, signer=signer) + + if cmd.proxy: + osub_org_client.base_client.session.proxies = {'https': cmd.proxy} + rewards_client.base_client.session.proxies = {'https': cmd.proxy} + + ############################ + # Get Subscription list + ############################ + status = "subscription_list" + subscription_list = osub_org_client.list_organization_subscriptions(tenancy.id, "0") + ucc_sub = [x for x in subscription_list.data if 'Universal' in x.service_name] + + for sub in ucc_sub: + + sub_info = { + 'id': sub.id, + 'service_name': str(sub.service_name), + 'currency': sub.currency.iso_code if sub.currency else "", + 'time_start': str(sub.time_start)[0:16], + 'time_end': str(sub.time_end)[0:16], + 'status': str(sub.status), + 'total_value': str(sub.total_value), + 'redemptions': [], + 'rewards_summary': {}, + 'rewards': [] + } + + print_header(sub.service_name, 1) + print("") + print(f"Id : {sub_info['id']}") + print(f"Service Name : {sub_info['service_name']}") + print(f"Currency : {sub_info['currency']}") + print(f"Time Start : {sub_info['time_start']}") + print(f"Time End : {sub_info['time_end']}") + print(f"Status : {sub_info['status']}") + print(f"Total Value : {number_format(sub_info['total_value'])}") + + ############################ + # Get Redemptions + ############################ + status = "list_redemptions" + redemptions = rewards_client.list_redemptions(tenancy_id=tenancy.id, subscription_id=sub.id).data + + if redemptions: + + if redemptions.items: + print_header("Reward Redemptions", 3) + + # oci.usage.models.RedemptionSummary + for ss in redemptions.items: + + redemption = { + 'time_invoiced': str(ss.time_invoiced)[0:16], + 'time_redeemed': str(ss.time_redeemed)[0:16], + 'redemption_email': str(ss.redemption_email), + 'redemption_code': str(ss.redemption_code), + 'invoice_number': str(ss.invoice_number), + 'invoice_currency': str(ss.invoice_currency), + 'invoice_total_amount': ss.invoice_total_amount, + 'redeemed_rewards': ss.redeemed_rewards, + 'base_rewards': ss.base_rewards, + 'fx_rate': ss.fx_rate + } + + print("") + print(f"time_invoiced : {redemption['time_invoiced']}") + print(f"time_redeemed : {redemption['time_redeemed']}") + print(f"redemption_email : {redemption['redemption_email']}") + print(f"redemption_code : {redemption['redemption_code']}") + print(f"invoice_number : {redemption['invoice_number']}") + print(f"invoice_currency : {redemption['invoice_currency']}") + print(f"invoice_total_amount : {number_format(redemption['invoice_total_amount'])}") + print(f"redeemed_rewards : {number_format(redemption['redeemed_rewards'])}") + print(f"base_rewards : {number_format(redemption['base_rewards'])}") + print(f"fx_rate : {number_format(redemption['fx_rate'])}") + + sub_info['redemptions'].append(redemption) + + ############################ + # Get Rewards Service + ############################ + status = "list_rewards" + rewards = rewards_client.list_rewards(tenancy.id, sub.id).data + + if rewards and rewards.items: + + # oci.usage.models.MonthlyRewardSummary + for ss in rewards.items: + + reward = { + 'time_usage_started': str(ss.time_usage_started)[0:16], + 'time_usage_ended': str(ss.time_usage_ended)[0:16], + 'time_rewards_expired': str(ss.time_rewards_expired)[0:16], + 'time_rewards_earned': str(ss.time_rewards_earned)[0:16], + 'usage_period_key': str(ss.usage_period_key), + 'usage_amount': ss.usage_amount, + 'eligible_usage_amount': ss.eligible_usage_amount, + 'ineligible_usage_amount': ss.ineligible_usage_amount, + 'available_rewards': ss.available_rewards, + 'redeemed_rewards': ss.redeemed_rewards, + 'earned_rewards': ss.earned_rewards, + 'is_manual': ss.is_manual, + 'products': [] + } + + # extract products if flag specified + if cmd.include_products: + status = "list_products" + products = rewards_client.list_products(tenancy.id, sub.id, ss.usage_period_key).data + + for p in products.items: + prd = { + 'product_number': str(p.product_number), + 'product_name': str(p.product_name), + 'usage_amount': p.usage_amount, + 'earned_rewards': p.earned_rewards, + 'is_eligible_to_earn_rewards': str(p.is_eligible_to_earn_rewards) + } + reward['products'].append(prd) + + print_header("Reward Monthly Summary for " + reward['time_usage_started'] + " - " + reward['time_usage_ended'], 3) + print("") + print(f"time_rewards_earned : {reward['time_rewards_earned']}") + print(f"time_rewards_expired : {reward['time_rewards_expired']}") + print(f"usage_period_key : {reward['usage_period_key']}") + print(f"is_manual : {reward['is_manual']}") + print(f"usage_amount : {number_format(reward['usage_amount'])}") + print(f"eligible_usage_amount : {number_format(reward['eligible_usage_amount'])}") + print(f"ineligible_usage_amount : {number_format(reward['ineligible_usage_amount'])}") + print(f"available_rewards : {number_format(reward['available_rewards'])}") + print(f"redeemed_rewards : {number_format(reward['redeemed_rewards'])}") + print(f"earned_rewards : {number_format(reward['earned_rewards'])}") + + if reward['products']: + print(f"products_extracted : {number_format(len(reward['products']))}") + + sub_info['rewards'].append(reward) + + ####################### + # Details Summary + ####################### + status = "rewards.summary" + # oci.usage.models.RewardDetails + ss = rewards.summary + + reward_summary = { + 'tenancy_id': str(ss.tenancy_id), + 'subscription_id': str(ss.subscription_id), + 'currency': str(ss.currency), + 'redemption_code': str(ss.redemption_code), + 'rewards_rate': ss.rewards_rate, + 'total_rewards_available': ss.total_rewards_available + } + + print_header("Reward Summary", 3) + print("") + print(f"tenancy_id : {reward_summary['tenancy_id']}") + print(f"subscription_id : {reward_summary['subscription_id']}") + print(f"currency : {reward_summary['currency']}") + print(f"redemption_code : {reward_summary['redemption_code']}") + print(f"rewards_rate : {number_format(reward_summary['rewards_rate'])}") + print(f"total_rewards_available : {number_format(reward_summary['total_rewards_available'])}") + + sub_info['rewards_summary'] = reward_summary + + # add to data + data['subscriptions'].append(sub_info) + + else: + print("") + print("No Support Rewards...") + + # return the data + return data + + except oci.exceptions.ServiceError as e: + print("\nService Error at 'rewards_report' - " + status + " - " + str(e)) + return data + + except Exception as e: + print("\nException Error at 'rewards_report' - " + status + " - " + str(e)) + return data + + +########################################################################## +# Main Process +########################################################################## +def main(): + + # Get Command Line Parser + parser = argparse.ArgumentParser(usage=argparse.SUPPRESS, formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=80, width=130)) + parser.add_argument('-c', default="", dest='config_file', help='OCI CLI Config file') + parser.add_argument('-t', default="", dest='config_profile', help='Config Profile inside the config file') + parser.add_argument('-p', default="", dest='proxy', help='Set Proxy (i.e. www-proxy-server.com:80) ') + parser.add_argument('-ip', action='store_true', default=False, dest='is_instance_principals', help='Use Instance Principals for Authentication') + parser.add_argument('-dt', action='store_true', default=False, dest='is_delegation_token', help='Use Delegation Token for Authentication') + parser.add_argument('-include_products', action='store_true', default=False, dest='include_products', help='Include products per rewards for JSON file only') + parser.add_argument('-f', type=argparse.FileType('w'), dest='file', help="Output to file (as json)") + parser.add_argument('-csv', action='store_true', default=False, dest='csv', help='Write to CSV files - rewards.csv, redemption.csv, reward_products.csv if -include_products specificed') + + cmd = parser.parse_args() + + if len(sys.argv) < 2: + parser.print_help() + return + + # Start print time info + print_header("Running Show Rewards", 0) + + print("Author : Adi Zohar") + print("Disclaimer : This is not an official Oracle application, It does not supported by Oracle !") + print("Machine : " + platform.node() + " (" + platform.machine() + ")") + print("App Version : " + version) + print("OCI SDK Version : " + oci.version.__version__) + print("Python Version : " + platform.python_version()) + if cmd.is_instance_principals: + print("Authentication : Instance Principals") + elif cmd.is_delegation_token: + print("Authentication : Instance Principals With Delegation Token") + else: + print("Authentication : Config File") + print("Date/Time : " + str(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) + print("Command Line : " + ' '.join(x for x in sys.argv[1:])) + if cmd.file: + print("Writing to file..." + cmd.file.name) + + ############################################ + # create signer + ############################################ + config, signer = create_signer(cmd.config_file, cmd.config_profile, cmd.is_instance_principals, cmd.is_delegation_token) + + print_header("Fetching data", 0) + tenancy = None + try: + print("\nConnecting to Identity Service...\n") + identity = oci.identity.IdentityClient(config, signer=signer) + if cmd.proxy: + identity.base_client.session.proxies = {'https': cmd.proxy} + + tenancy = identity.get_tenancy(config["tenancy"]).data + regions = identity.list_region_subscriptions(tenancy.id).data + + # Set home region for connection + for reg in regions: + if reg.is_home_region: + tenancy_home_region = str(reg.region_name) + + config['region'] = tenancy_home_region + signer.region = tenancy_home_region + + print("Tenant Name : " + str(tenancy.name)) + print("Tenant Id : " + tenancy.id) + print("Home Region : " + tenancy_home_region) + + except Exception as e: + raise RuntimeError("\nError fetching tenant information - " + str(e)) + + ############################################ + # Main + ############################################ + try: + data = rewards_report(cmd, config, signer, tenancy) + + # If write to json file + if cmd.file and data: + with open(cmd.file.name, 'w') as outfile: + json.dump(data, outfile, indent=4, sort_keys=False) + print("") + print("Exported to file " + cmd.file.name) + + # If write to csv file + if cmd.csv and data: + rewards_csv(data) + + except Exception as e: + raise RuntimeError("\nError at main function - " + str(e)) + + +########################################################################## +# Main Process +########################################################################## +main() diff --git a/src/oci/__init__.py b/src/oci/__init__.py index ca023e3b41..50d31123af 100644 --- a/src/oci/__init__.py +++ b/src/oci/__init__.py @@ -19,7 +19,7 @@ else: __all__ = [ "BaseClient", "Error", "Request", "Response", "Signer", "config", "constants", "decorators", "exceptions", "regions", "wait_until", "pagination", "auth", "retry", "fips", "circuit_breaker", "alloy", - "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "application_migration", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "capacity_management", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "desktops", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "events", "file_storage", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_inference", "generic_artifacts_content", "globally_distributed_database", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests" + "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "application_migration", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "capacity_management", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "desktops", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "email_data_plane", "events", "file_storage", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_inference", "generic_artifacts_content", "globally_distributed_database", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests" ] if sys.version_info >= (3, 7) and os.getenv("OCI_PYTHON_SDK_LAZY_IMPORTS_DISABLED", "False").lower() != "true": def __getattr__(x): @@ -30,4 +30,4 @@ def __getattr__(x): return importlib.import_module(__name__ + "." + x) raise AttributeError("module " + __name__ + " has no attribute" + x) else: - from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, application_migration, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, capacity_management, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, desktops, devops, disaster_recovery, dns, dts, em_warehouse, email, events, file_storage, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_inference, generic_artifacts_content, globally_distributed_database, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests + from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, application_migration, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, capacity_management, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, desktops, devops, disaster_recovery, dns, dts, em_warehouse, email, email_data_plane, events, file_storage, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_inference, generic_artifacts_content, globally_distributed_database, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests diff --git a/src/oci/cloud_guard/cloud_guard_client.py b/src/oci/cloud_guard/cloud_guard_client.py index aea538c58d..54a7aadf14 100644 --- a/src/oci/cloud_guard/cloud_guard_client.py +++ b/src/oci/cloud_guard/cloud_guard_client.py @@ -461,7 +461,7 @@ def change_data_source_compartment(self, data_source_id, change_data_source_comp def change_detector_recipe_compartment(self, detector_recipe_id, change_detector_recipe_compartment_details, **kwargs): """ - Moves the DetectorRecipe from current compartment to another. + Moves the detector recipe (DetectorRecipe object), identified by detectorRecipeId, from the current compartment to another compartment. :param str detector_recipe_id: (required) @@ -579,7 +579,7 @@ def change_detector_recipe_compartment(self, detector_recipe_id, change_detector def change_managed_list_compartment(self, managed_list_id, change_managed_list_compartment_details, **kwargs): """ - Moves the ManagedList from current compartment to another. + Moves the managed list (ManagedList object), identified by managedListId, from the current compartment to another compartment. :param str managed_list_id: (required) @@ -1051,7 +1051,7 @@ def change_security_zone_compartment(self, security_zone_id, change_security_zon def create_data_mask_rule(self, create_data_mask_rule_details, **kwargs): """ - Creates a new Data Mask Rule Definition + Creates a new DataMaskRule object definition. :param oci.cloud_guard.models.CreateDataMaskRuleDetails create_data_mask_rule_details: (required) @@ -1241,7 +1241,7 @@ def create_data_source(self, create_data_source_details, **kwargs): def create_detector_recipe(self, create_detector_recipe_details, **kwargs): """ - Creates a DetectorRecipe + Creates a new DetectorRecipe object. :param oci.cloud_guard.models.CreateDetectorRecipeDetails create_detector_recipe_details: (required) @@ -1448,7 +1448,7 @@ def create_detector_recipe_detector_rule(self, detector_recipe_id, create_detect def create_managed_list(self, create_managed_list_details, **kwargs): """ - Creates a new ManagedList. + Creates a new ManagedList object. :param oci.cloud_guard.models.CreateManagedListDetails create_managed_list_details: (required) @@ -2150,7 +2150,7 @@ def create_target_responder_recipe(self, target_id, attach_target_responder_reci def delete_data_mask_rule(self, data_mask_rule_id, **kwargs): """ - Deletes a DataMaskRule identified by dataMaskRuleId + Deletes a DataMaskRule object, identified by dataMaskRuleId. :param str data_mask_rule_id: (required) @@ -2366,7 +2366,7 @@ def delete_data_source(self, data_source_id, **kwargs): def delete_detector_recipe(self, detector_recipe_id, **kwargs): """ - Deletes a DetectorRecipe identified by detectorRecipeId + Deletes a detector recipe (DetectorRecipe object) identified by detectorRecipeId. :param str detector_recipe_id: (required) @@ -2697,7 +2697,7 @@ def delete_detector_recipe_detector_rule_data_source(self, detector_recipe_id, d def delete_managed_list(self, managed_list_id, **kwargs): """ - Deletes a managed list identified by managedListId + Deletes a managed list identified by managedListId. :param str managed_list_id: (required) @@ -3565,7 +3565,7 @@ def execute_responder_execution(self, responder_execution_id, compartment_id, ** def get_condition_metadata_type(self, condition_metadata_type_id, **kwargs): """ - Returns ConditionType with its details. + Returns a ConditionMetatDataType object with its details. :param str condition_metadata_type_id: (required) @@ -3679,7 +3679,7 @@ def get_condition_metadata_type(self, condition_metadata_type_id, **kwargs): def get_configuration(self, compartment_id, **kwargs): """ - GET Cloud Guard Configuration Details for a Tenancy. + Returns the configuration details for a Cloud Guard tenancy, identified by root compartment OCID. :param str compartment_id: (required) @@ -3770,7 +3770,7 @@ def get_configuration(self, compartment_id, **kwargs): def get_data_mask_rule(self, data_mask_rule_id, **kwargs): """ - Returns a DataMaskRule identified by DataMaskRuleId + Returns a DataMaskRule object, identified by DataMaskRuleId. :param str data_mask_rule_id: (required) @@ -3962,7 +3962,7 @@ def get_data_source(self, data_source_id, **kwargs): def get_detector(self, detector_id, **kwargs): """ - Returns a Detector identified by detectorId. + Returns a Detector object, identified by detectorId. :param str detector_id: (required) @@ -4058,7 +4058,7 @@ def get_detector(self, detector_id, **kwargs): def get_detector_recipe(self, detector_recipe_id, **kwargs): """ - Returns a DetectorRecipe identified by detectorRecipeId + Returns a detector recipe (DetectorRecipe object) identified by detectorRecipeId. :param str detector_recipe_id: (required) @@ -4154,7 +4154,7 @@ def get_detector_recipe(self, detector_recipe_id, **kwargs): def get_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule_id, **kwargs): """ - Get DetectorRule by identifier + Returns a detector rule (DetectorRule object) identified by detectorRuleId. :param str detector_recipe_id: (required) @@ -4254,7 +4254,7 @@ def get_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule_id def get_detector_rule(self, detector_id, detector_rule_id, **kwargs): """ - Returns a Detector Rule identified by detectorRuleId + Returns a detector rule (DetectorRule object) identified by detectorRuleId. :param str detector_id: (required) @@ -4354,7 +4354,7 @@ def get_detector_rule(self, detector_id, detector_rule_id, **kwargs): def get_managed_list(self, managed_list_id, **kwargs): """ - Returns a managed list identified by managedListId + Returns a managed list identified by managedListId. :param str managed_list_id: (required) @@ -4450,7 +4450,7 @@ def get_managed_list(self, managed_list_id, **kwargs): def get_problem(self, problem_id, **kwargs): """ - Returns a Problems response + Returns the Problem object identified by a problemId. :param str problem_id: (required) @@ -6014,7 +6014,7 @@ def get_work_request(self, work_request_id, **kwargs): def list_condition_metadata_types(self, compartment_id, **kwargs): """ - Returns a list of condition types. + Returns a list of ConditionMetadataType objects. :param str compartment_id: (required) @@ -6157,7 +6157,7 @@ def list_condition_metadata_types(self, compartment_id, **kwargs): def list_data_mask_rules(self, compartment_id, **kwargs): """ - Returns a list of all Data Mask Rules in the root 'compartmentId' passed. + Returns a list of all DataMaskRule objects in the specified compartmentId (OCID) and its subcompartments. :param str compartment_id: (required) @@ -6713,7 +6713,7 @@ def list_data_sources(self, compartment_id, **kwargs): def list_detector_recipe_detector_rules(self, detector_recipe_id, compartment_id, **kwargs): """ - Returns a list of DetectorRule associated with DetectorRecipe. + Returns a list of detector rules (DetectorRule objects) for a detector recipe (DetectorRecipe object), identified by detectorRecipeId. :param str detector_recipe_id: (required) @@ -6876,7 +6876,7 @@ def list_detector_recipe_detector_rules(self, detector_recipe_id, compartment_id def list_detector_recipes(self, compartment_id, **kwargs): """ - Returns a list of all Detector Recipes in a compartment + Returns a list of all detector recipes (DetectorRecipe objects) in a compartment, identified by compartmentId. The ListDetectorRecipes operation returns only the detector recipes in `compartmentId` passed. The list does not include any subcompartments of the compartmentId passed. @@ -7071,7 +7071,7 @@ def list_detector_recipes(self, compartment_id, **kwargs): def list_detector_rules(self, detector_id, compartment_id, **kwargs): """ - Returns a list of detector rules for the detectorId passed. + Returns a list of detector rules for the DetectorRecipe object identified by detectorId. :param str detector_id: (required) @@ -7234,7 +7234,7 @@ def list_detector_rules(self, detector_id, compartment_id, **kwargs): def list_detectors(self, compartment_id, **kwargs): """ - Returns detector catalog - list of detectors supported by Cloud Guard + Returns a detector catalog (DetectorCollection object) with a list of DetectorSummary objects. :param str compartment_id: (required) @@ -7377,7 +7377,7 @@ def list_detectors(self, compartment_id, **kwargs): def list_impacted_resources(self, problem_id, **kwargs): """ - Returns a list of Impacted Resources for a CloudGuard Problem + Returns a list of impacted resources for a Cloud Guard problem with a specified problem ID. :param str problem_id: (required) @@ -7517,7 +7517,7 @@ def list_impacted_resources(self, problem_id, **kwargs): def list_managed_list_types(self, compartment_id, **kwargs): """ - Returns all ManagedList types supported by Cloud Guard + Returns all managed list types (listType parameter) that Cloud Guard supports. :param str compartment_id: (required) @@ -7660,7 +7660,7 @@ def list_managed_list_types(self, compartment_id, **kwargs): def list_managed_lists(self, compartment_id, **kwargs): """ - Returns a list of ListManagedLists. + Returns a list of all ManagedList objects in a compartment, identified by compartmentId. The ListManagedLists operation returns only the managed lists in `compartmentId` passed. The list does not include any subcompartments of the compartmentId passed. @@ -7695,7 +7695,7 @@ def list_managed_lists(self, compartment_id, **kwargs): :param str list_type: (optional) The type of the ManagedList. - Allowed values are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC" + Allowed values are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION" :param int limit: (optional) The maximum number of items to return. @@ -7785,7 +7785,7 @@ def list_managed_lists(self, compartment_id, **kwargs): ) if 'list_type' in kwargs: - list_type_allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + list_type_allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if kwargs['list_type'] not in list_type_allowed_values: raise ValueError( f"Invalid value for `list_type`, must be one of { list_type_allowed_values }" @@ -7868,7 +7868,7 @@ def list_managed_lists(self, compartment_id, **kwargs): def list_policies(self, compartment_id, **kwargs): """ - Returns the list of global policy statements needed by Cloud Guard when enabling + Returns the list of global policy statements (policy attributes) needed to fully enable Cloud Guard. :param str compartment_id: (required) @@ -7997,7 +7997,7 @@ def list_policies(self, compartment_id, **kwargs): def list_problem_endpoints(self, problem_id, **kwargs): """ - Returns a list of endpoints associated with a cloud guard problem + Returns a list of endpoints associated with a problem, identified by problemId. :param str problem_id: (required) @@ -8277,7 +8277,7 @@ def list_problem_entities(self, problem_id, **kwargs): def list_problem_histories(self, compartment_id, problem_id, **kwargs): """ - Returns a list of Actions done on CloudGuard Problem + Returns a list of actions taken on a Cloud Guard problem. :param str compartment_id: (required) @@ -8421,7 +8421,7 @@ def list_problem_histories(self, compartment_id, problem_id, **kwargs): def list_problems(self, compartment_id, **kwargs): """ - Returns a list of all Problems identified by the Cloud Guard + Returns a list of all Problems identified by Cloud Guard which are currently in the database and meet the filtering criteria. The ListProblems operation returns only the problems in `compartmentId` passed. The list does not include any subcompartments of the compartmentId passed. @@ -13374,7 +13374,7 @@ def request_security_scores(self, compartment_id, **kwargs): def request_summarized_activity_problems(self, compartment_id, **kwargs): """ - Returns the summary of Activity type problems identified by cloud guard, for a given set of dimensions. + Returns the summary of problems generated by OCI Activity Detector rules, identified by parameters specified. The parameter `accessLevel` specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly @@ -13522,7 +13522,7 @@ def request_summarized_activity_problems(self, compartment_id, **kwargs): def request_summarized_problems(self, list_dimensions, compartment_id, **kwargs): """ - Returns the number of problems identified by cloud guard, for a given set of dimensions. + Returns the number of problems matching the key-value pairs in dimensionMap. The parameter `accessLevel` specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly @@ -14214,7 +14214,7 @@ def request_summarized_top_trend_resource_profile_risk_scores(self, compartment_ def request_summarized_trend_problems(self, compartment_id, **kwargs): """ - Returns the number of problems identified by cloud guard, for a given time period. + Returns a ProblemTrendAggregationCollection resource for a compartment, identified by compartmentId, for the specified time period. The ProblemTrendAggregationCollection resource contains a list of ProblemTrendAggregation resources. The parameter `accessLevel` specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly @@ -14971,7 +14971,7 @@ def skip_responder_execution(self, responder_execution_id, compartment_id, **kwa def trigger_responder(self, problem_id, trigger_responder_details, **kwargs): """ - push the problem to responder + Sends the problem identified by problemId to the responder engine, to be processed by rule that\u2019s identified by responderRuleId, in the TriggerResponderDetails resource that\u2019s passed. :param str problem_id: (required) @@ -15089,8 +15089,7 @@ def trigger_responder(self, problem_id, trigger_responder_details, **kwargs): def update_bulk_problem_status(self, update_bulk_problem_status_details, **kwargs): """ - Updates the statuses in bulk for a list of problems - The operation is atomic in nature + Changes the status for all problems listed in the problemIds array, passed through the UpdateBulkProblemStatusDetails resource, from the current status to the status set in UpdateBulkProblemStatusDetails. :param oci.cloud_guard.models.UpdateBulkProblemStatusDetails update_bulk_problem_status_details: (required) @@ -15174,7 +15173,7 @@ def update_bulk_problem_status(self, update_bulk_problem_status_details, **kwarg def update_configuration(self, update_configuration_details, compartment_id, **kwargs): """ - Enable/Disable Cloud Guard. The reporting region cannot be updated once created. + Update configuration details for a Cloud Guard tenancy, identified by root compartment OCID. The reporting region cannot be updated once created. :param oci.cloud_guard.models.UpdateConfigurationDetails update_configuration_details: (required) @@ -15289,7 +15288,7 @@ def update_configuration(self, update_configuration_details, compartment_id, **k def update_data_mask_rule(self, data_mask_rule_id, update_data_mask_rule_details, **kwargs): """ - Updates a DataMaskRule identified by dataMaskRuleId + Updates a data mask rule (DataMaskRule object) identified by dataMaskRuleId. :param str data_mask_rule_id: (required) @@ -15517,7 +15516,7 @@ def update_data_source(self, data_source_id, update_data_source_details, **kwarg def update_detector_recipe(self, detector_recipe_id, update_detector_recipe_details, **kwargs): """ - Updates a detector recipe identified by detectorRecipeId + Updates a detector recipe (DetectorRecipe object) identified by detectorRecipeId. :param str detector_recipe_id: (required) @@ -15637,7 +15636,7 @@ def update_detector_recipe(self, detector_recipe_id, update_detector_recipe_deta def update_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule_id, update_detector_recipe_detector_rule_details, **kwargs): """ - Update the DetectorRule by identifier + Updates a detector rule (DetectorRule object) identified by detectorRuleId. :param str detector_recipe_id: (required) @@ -15751,7 +15750,7 @@ def update_detector_recipe_detector_rule(self, detector_recipe_id, detector_rule def update_managed_list(self, managed_list_id, update_managed_list_details, **kwargs): """ - Updates a managed list identified by managedListId + Updates a ManagedList object, identified by managedList. :param str managed_list_id: (required) @@ -15871,7 +15870,7 @@ def update_managed_list(self, managed_list_id, update_managed_list_details, **kw def update_problem_status(self, problem_id, update_problem_status_details, **kwargs): """ - updates the problem details + Changes the current status of the problem, identified by problemId, to the status specified in the UpdateProblemStatusDetails resource that you pass. :param str problem_id: (required) diff --git a/src/oci/cloud_guard/models/activity_problem_aggregation.py b/src/oci/cloud_guard/models/activity_problem_aggregation.py index e88ba0926b..68ca02c3cb 100644 --- a/src/oci/cloud_guard/models/activity_problem_aggregation.py +++ b/src/oci/cloud_guard/models/activity_problem_aggregation.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ActivityProblemAggregation(object): """ - Provides the dimensions and their corresponding count. + Provides the parameters and their corresponding count. """ def __init__(self, **kwargs): diff --git a/src/oci/cloud_guard/models/condition_metadata_type.py b/src/oci/cloud_guard/models/condition_metadata_type.py index 2410705fa2..b74a936f32 100644 --- a/src/oci/cloud_guard/models/condition_metadata_type.py +++ b/src/oci/cloud_guard/models/condition_metadata_type.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ConditionMetadataType(object): """ - condition type provided by cloud guard + The metadata definition of the requested condition type. """ def __init__(self, **kwargs): diff --git a/src/oci/cloud_guard/models/configuration.py b/src/oci/cloud_guard/models/configuration.py index 8296317e2f..170c2abd25 100644 --- a/src/oci/cloud_guard/models/configuration.py +++ b/src/oci/cloud_guard/models/configuration.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class Configuration(object): """ - Cloud Guard configuration details of a tenancy. + Specifies several key settings for a Cloud Guard tenancy, identified by tenancy root compartment OCID. """ #: A constant which can be used with the status property of a Configuration. diff --git a/src/oci/cloud_guard/models/create_data_source_details.py b/src/oci/cloud_guard/models/create_data_source_details.py index 145a39c6a6..0d48f7867e 100644 --- a/src/oci/cloud_guard/models/create_data_source_details.py +++ b/src/oci/cloud_guard/models/create_data_source_details.py @@ -15,6 +15,14 @@ class CreateDataSourceDetails(object): Creation of Data Source. """ + #: A constant which can be used with the status property of a CreateDataSourceDetails. + #: This constant has a value of "ENABLED" + STATUS_ENABLED = "ENABLED" + + #: A constant which can be used with the status property of a CreateDataSourceDetails. + #: This constant has a value of "DISABLED" + STATUS_DISABLED = "DISABLED" + #: A constant which can be used with the data_source_feed_provider property of a CreateDataSourceDetails. #: This constant has a value of "LOGGINGQUERY" DATA_SOURCE_FEED_PROVIDER_LOGGINGQUERY = "LOGGINGQUERY" @@ -28,6 +36,11 @@ def __init__(self, **kwargs): The value to assign to the display_name property of this CreateDataSourceDetails. :type display_name: str + :param status: + The value to assign to the status property of this CreateDataSourceDetails. + Allowed values for this property are: "ENABLED", "DISABLED" + :type status: str + :param compartment_id: The value to assign to the compartment_id property of this CreateDataSourceDetails. :type compartment_id: str @@ -52,6 +65,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'display_name': 'str', + 'status': 'str', 'compartment_id': 'str', 'data_source_feed_provider': 'str', 'data_source_details': 'DataSourceDetails', @@ -61,6 +75,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'display_name': 'displayName', + 'status': 'status', 'compartment_id': 'compartmentId', 'data_source_feed_provider': 'dataSourceFeedProvider', 'data_source_details': 'dataSourceDetails', @@ -69,6 +84,7 @@ def __init__(self, **kwargs): } self._display_name = None + self._status = None self._compartment_id = None self._data_source_feed_provider = None self._data_source_details = None @@ -99,6 +115,37 @@ def display_name(self, display_name): """ self._display_name = display_name + @property + def status(self): + """ + Gets the status of this CreateDataSourceDetails. + Status of DataSource. Default value is DISABLED. + + Allowed values for this property are: "ENABLED", "DISABLED" + + + :return: The status of this CreateDataSourceDetails. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this CreateDataSourceDetails. + Status of DataSource. Default value is DISABLED. + + + :param status: The status of this CreateDataSourceDetails. + :type: str + """ + allowed_values = ["ENABLED", "DISABLED"] + if not value_allowed_none_or_none_sentinel(status, allowed_values): + raise ValueError( + f"Invalid value for `status`, must be None or one of {allowed_values}" + ) + self._status = status + @property def compartment_id(self): """ diff --git a/src/oci/cloud_guard/models/create_managed_list_details.py b/src/oci/cloud_guard/models/create_managed_list_details.py index 9d8a4230af..8de920193a 100644 --- a/src/oci/cloud_guard/models/create_managed_list_details.py +++ b/src/oci/cloud_guard/models/create_managed_list_details.py @@ -63,6 +63,14 @@ class CreateManagedListDetails(object): #: This constant has a value of "GENERIC" LIST_TYPE_GENERIC = "GENERIC" + #: A constant which can be used with the list_type property of a CreateManagedListDetails. + #: This constant has a value of "FUSION_APPS_ROLE" + LIST_TYPE_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the list_type property of a CreateManagedListDetails. + #: This constant has a value of "FUSION_APPS_PERMISSION" + LIST_TYPE_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + def __init__(self, **kwargs): """ Initializes a new CreateManagedListDetails object with values from keyword arguments. @@ -86,7 +94,7 @@ def __init__(self, **kwargs): :param list_type: The value to assign to the list_type property of this CreateManagedListDetails. - Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC" + Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION" :type list_type: str :param list_items: @@ -243,7 +251,7 @@ def list_type(self): Gets the list_type of this CreateManagedListDetails. type of the list - Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC" + Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION" :return: The list_type of this CreateManagedListDetails. @@ -261,7 +269,7 @@ def list_type(self, list_type): :param list_type: The list_type of this CreateManagedListDetails. :type: str """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if not value_allowed_none_or_none_sentinel(list_type, allowed_values): raise ValueError( f"Invalid value for `list_type`, must be None or one of {allowed_values}" diff --git a/src/oci/cloud_guard/models/data_mask_rule.py b/src/oci/cloud_guard/models/data_mask_rule.py index 34ad527bc8..e6af402b75 100644 --- a/src/oci/cloud_guard/models/data_mask_rule.py +++ b/src/oci/cloud_guard/models/data_mask_rule.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class DataMaskRule(object): """ - Description of DataMaskRule. + A data mask rule specifies the conditions in which the value for a sensitive data field in the UI is to be hidden or displayed when viewed by specified groups of users. The DataMaskRule object contains the parameters for a data mask rule. """ #: A constant which can be used with the data_mask_categories property of a DataMaskRule. diff --git a/src/oci/cloud_guard/models/detector.py b/src/oci/cloud_guard/models/detector.py index 599d347d81..981cf92eca 100644 --- a/src/oci/cloud_guard/models/detector.py +++ b/src/oci/cloud_guard/models/detector.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class Detector(object): """ - A single Detector + Information for a single detector category. For example, IAAS_ACTIVITY_DETECTOR or IAAS_CONFIGURATION_DETECTOR. """ #: A constant which can be used with the lifecycle_state property of a Detector. diff --git a/src/oci/cloud_guard/models/detector_recipe.py b/src/oci/cloud_guard/models/detector_recipe.py index 99b84df032..31ea20c9c4 100644 --- a/src/oci/cloud_guard/models/detector_recipe.py +++ b/src/oci/cloud_guard/models/detector_recipe.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class DetectorRecipe(object): """ - Details of Detector recipe + A detector recipe is a collection of rules that can be configured to trigger problems that appear on the Cloud Guard Problems page. A DetectorRecipe object contains settings for a specific detector recipe, plus a list of the detector rules (DetectorRecipeDetectorRule objects) belonging to the DetectorRecipe object. """ #: A constant which can be used with the owner property of a DetectorRecipe. diff --git a/src/oci/cloud_guard/models/detector_recipe_detector_rule.py b/src/oci/cloud_guard/models/detector_recipe_detector_rule.py index c469f6aa5b..041e777895 100644 --- a/src/oci/cloud_guard/models/detector_recipe_detector_rule.py +++ b/src/oci/cloud_guard/models/detector_recipe_detector_rule.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class DetectorRecipeDetectorRule(object): """ - Detector Recipe Rule + A DetectorRecipeDetectorRule object defines a single recipe rule in the collection for a DetectorRecipe object. """ #: A constant which can be used with the detector property of a DetectorRecipeDetectorRule. @@ -79,6 +79,14 @@ class DetectorRecipeDetectorRule(object): #: This constant has a value of "GENERIC" MANAGED_LIST_TYPES_GENERIC = "GENERIC" + #: A constant which can be used with the managed_list_types property of a DetectorRecipeDetectorRule. + #: This constant has a value of "FUSION_APPS_ROLE" + MANAGED_LIST_TYPES_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the managed_list_types property of a DetectorRecipeDetectorRule. + #: This constant has a value of "FUSION_APPS_PERMISSION" + MANAGED_LIST_TYPES_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the lifecycle_state property of a DetectorRecipeDetectorRule. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" @@ -148,7 +156,7 @@ def __init__(self, **kwargs): :param managed_list_types: The value to assign to the managed_list_types property of this DetectorRecipeDetectorRule. - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type managed_list_types: list[str] @@ -438,7 +446,7 @@ def managed_list_types(self): Gets the managed_list_types of this DetectorRecipeDetectorRule. List of cloudguard managed list types related to this rule - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -457,7 +465,7 @@ def managed_list_types(self, managed_list_types): :param managed_list_types: The managed_list_types of this DetectorRecipeDetectorRule. :type: list[str] """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if managed_list_types: managed_list_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in managed_list_types] self._managed_list_types = managed_list_types diff --git a/src/oci/cloud_guard/models/detector_recipe_detector_rule_summary.py b/src/oci/cloud_guard/models/detector_recipe_detector_rule_summary.py index e851a89afd..e4c3f2c285 100644 --- a/src/oci/cloud_guard/models/detector_recipe_detector_rule_summary.py +++ b/src/oci/cloud_guard/models/detector_recipe_detector_rule_summary.py @@ -79,6 +79,14 @@ class DetectorRecipeDetectorRuleSummary(object): #: This constant has a value of "GENERIC" MANAGED_LIST_TYPES_GENERIC = "GENERIC" + #: A constant which can be used with the managed_list_types property of a DetectorRecipeDetectorRuleSummary. + #: This constant has a value of "FUSION_APPS_ROLE" + MANAGED_LIST_TYPES_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the managed_list_types property of a DetectorRecipeDetectorRuleSummary. + #: This constant has a value of "FUSION_APPS_PERMISSION" + MANAGED_LIST_TYPES_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the lifecycle_state property of a DetectorRecipeDetectorRuleSummary. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" @@ -144,7 +152,7 @@ def __init__(self, **kwargs): :param managed_list_types: The value to assign to the managed_list_types property of this DetectorRecipeDetectorRuleSummary. - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type managed_list_types: list[str] @@ -418,7 +426,7 @@ def managed_list_types(self): Gets the managed_list_types of this DetectorRecipeDetectorRuleSummary. List of cloudguard managed list types related to this rule - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -437,7 +445,7 @@ def managed_list_types(self, managed_list_types): :param managed_list_types: The managed_list_types of this DetectorRecipeDetectorRuleSummary. :type: list[str] """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if managed_list_types: managed_list_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in managed_list_types] self._managed_list_types = managed_list_types diff --git a/src/oci/cloud_guard/models/detector_rule.py b/src/oci/cloud_guard/models/detector_rule.py index 2ebe84b3cb..ea08ea510d 100644 --- a/src/oci/cloud_guard/models/detector_rule.py +++ b/src/oci/cloud_guard/models/detector_rule.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class DetectorRule(object): """ - Detector + Information for a detector rule (DetectorRule object). """ #: A constant which can be used with the detector property of a DetectorRule. @@ -79,6 +79,14 @@ class DetectorRule(object): #: This constant has a value of "GENERIC" MANAGED_LIST_TYPES_GENERIC = "GENERIC" + #: A constant which can be used with the managed_list_types property of a DetectorRule. + #: This constant has a value of "FUSION_APPS_ROLE" + MANAGED_LIST_TYPES_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the managed_list_types property of a DetectorRule. + #: This constant has a value of "FUSION_APPS_PERMISSION" + MANAGED_LIST_TYPES_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the lifecycle_state property of a DetectorRule. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" @@ -148,7 +156,7 @@ def __init__(self, **kwargs): :param managed_list_types: The value to assign to the managed_list_types property of this DetectorRule. - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type managed_list_types: list[str] @@ -424,7 +432,7 @@ def managed_list_types(self): Gets the managed_list_types of this DetectorRule. List of cloudguard managed list types related to this rule - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -443,7 +451,7 @@ def managed_list_types(self, managed_list_types): :param managed_list_types: The managed_list_types of this DetectorRule. :type: list[str] """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if managed_list_types: managed_list_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in managed_list_types] self._managed_list_types = managed_list_types diff --git a/src/oci/cloud_guard/models/detector_rule_summary.py b/src/oci/cloud_guard/models/detector_rule_summary.py index c64226fd35..ccf26495dc 100644 --- a/src/oci/cloud_guard/models/detector_rule_summary.py +++ b/src/oci/cloud_guard/models/detector_rule_summary.py @@ -79,6 +79,14 @@ class DetectorRuleSummary(object): #: This constant has a value of "GENERIC" MANAGED_LIST_TYPES_GENERIC = "GENERIC" + #: A constant which can be used with the managed_list_types property of a DetectorRuleSummary. + #: This constant has a value of "FUSION_APPS_ROLE" + MANAGED_LIST_TYPES_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the managed_list_types property of a DetectorRuleSummary. + #: This constant has a value of "FUSION_APPS_PERMISSION" + MANAGED_LIST_TYPES_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the lifecycle_state property of a DetectorRuleSummary. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" @@ -144,7 +152,7 @@ def __init__(self, **kwargs): :param managed_list_types: The value to assign to the managed_list_types property of this DetectorRuleSummary. - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type managed_list_types: list[str] @@ -404,7 +412,7 @@ def managed_list_types(self): Gets the managed_list_types of this DetectorRuleSummary. List of cloudguard managed list types related to this rule - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -423,7 +431,7 @@ def managed_list_types(self, managed_list_types): :param managed_list_types: The managed_list_types of this DetectorRuleSummary. :type: list[str] """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if managed_list_types: managed_list_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in managed_list_types] self._managed_list_types = managed_list_types diff --git a/src/oci/cloud_guard/models/impacted_resource_summary.py b/src/oci/cloud_guard/models/impacted_resource_summary.py index 761067a42f..43e847f5a6 100644 --- a/src/oci/cloud_guard/models/impacted_resource_summary.py +++ b/src/oci/cloud_guard/models/impacted_resource_summary.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ImpactedResourceSummary(object): """ - Impacted Resource summary Definition. + A summary of detailed information on a resource that\u2019s been impacted by a detected problem. """ def __init__(self, **kwargs): diff --git a/src/oci/cloud_guard/models/managed_list.py b/src/oci/cloud_guard/models/managed_list.py index b1a458177a..038ab15552 100644 --- a/src/oci/cloud_guard/models/managed_list.py +++ b/src/oci/cloud_guard/models/managed_list.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ManagedList(object): """ - A cloud guard list containing one or more items of a list type + A managed list is a reusable list of parameters that makes it easier to set the scope for detector and responder rules. A ManagedList object contains the reusable list of parameters, plus metadata for the list. """ #: A constant which can be used with the list_type property of a ManagedList. @@ -63,6 +63,14 @@ class ManagedList(object): #: This constant has a value of "GENERIC" LIST_TYPE_GENERIC = "GENERIC" + #: A constant which can be used with the list_type property of a ManagedList. + #: This constant has a value of "FUSION_APPS_ROLE" + LIST_TYPE_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the list_type property of a ManagedList. + #: This constant has a value of "FUSION_APPS_PERMISSION" + LIST_TYPE_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the feed_provider property of a ManagedList. #: This constant has a value of "CUSTOMER" FEED_PROVIDER_CUSTOMER = "CUSTOMER" @@ -126,7 +134,7 @@ def __init__(self, **kwargs): :param list_type: The value to assign to the list_type property of this ManagedList. - Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type list_type: str @@ -356,7 +364,7 @@ def list_type(self): **[Required]** Gets the list_type of this ManagedList. type of the list - Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -375,7 +383,7 @@ def list_type(self, list_type): :param list_type: The list_type of this ManagedList. :type: str """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if not value_allowed_none_or_none_sentinel(list_type, allowed_values): list_type = 'UNKNOWN_ENUM_VALUE' self._list_type = list_type diff --git a/src/oci/cloud_guard/models/managed_list_summary.py b/src/oci/cloud_guard/models/managed_list_summary.py index a6c01b3557..ca2c16cc8f 100644 --- a/src/oci/cloud_guard/models/managed_list_summary.py +++ b/src/oci/cloud_guard/models/managed_list_summary.py @@ -63,6 +63,14 @@ class ManagedListSummary(object): #: This constant has a value of "GENERIC" LIST_TYPE_GENERIC = "GENERIC" + #: A constant which can be used with the list_type property of a ManagedListSummary. + #: This constant has a value of "FUSION_APPS_ROLE" + LIST_TYPE_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the list_type property of a ManagedListSummary. + #: This constant has a value of "FUSION_APPS_PERMISSION" + LIST_TYPE_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the feed_provider property of a ManagedListSummary. #: This constant has a value of "CUSTOMER" FEED_PROVIDER_CUSTOMER = "CUSTOMER" @@ -126,7 +134,7 @@ def __init__(self, **kwargs): :param list_type: The value to assign to the list_type property of this ManagedListSummary. - Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type list_type: str @@ -356,7 +364,7 @@ def list_type(self): **[Required]** Gets the list_type of this ManagedListSummary. type of the list - Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -375,7 +383,7 @@ def list_type(self, list_type): :param list_type: The list_type of this ManagedListSummary. :type: str """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if not value_allowed_none_or_none_sentinel(list_type, allowed_values): list_type = 'UNKNOWN_ENUM_VALUE' self._list_type = list_type diff --git a/src/oci/cloud_guard/models/managed_list_type_summary.py b/src/oci/cloud_guard/models/managed_list_type_summary.py index 0b9391765f..40a8ff01a2 100644 --- a/src/oci/cloud_guard/models/managed_list_type_summary.py +++ b/src/oci/cloud_guard/models/managed_list_type_summary.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ManagedListTypeSummary(object): """ - Summary of the ManagedListType. + A managed list type summary (ManagedListTypeSummary object) contains summary information for a managed list type (ManagedListType object). """ #: A constant which can be used with the lifecycle_state property of a ManagedListTypeSummary. diff --git a/src/oci/cloud_guard/models/policy_summary.py b/src/oci/cloud_guard/models/policy_summary.py index 00f4127b68..e1797b0b84 100644 --- a/src/oci/cloud_guard/models/policy_summary.py +++ b/src/oci/cloud_guard/models/policy_summary.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class PolicySummary(object): """ - Global policy statement + A policy summary (PolicySummary object) contains a list of all current global policy statements (policy attributes). """ def __init__(self, **kwargs): diff --git a/src/oci/cloud_guard/models/problem.py b/src/oci/cloud_guard/models/problem.py index 87db5d59df..7b126b0bb9 100644 --- a/src/oci/cloud_guard/models/problem.py +++ b/src/oci/cloud_guard/models/problem.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class Problem(object): """ - Problem Definition. + Problems are at the core of Cloud Guard\u2019s functionality. A Problem object is created whenever an action or a configuration on a resource triggers a rule in a detector that\u2019s attached to the target containing the compartment where the resource is located. Each Problem object contains all the details for a single problem. This is the information for the problem that appears on the Cloud Guard Problems page. """ #: A constant which can be used with the risk_level property of a Problem. diff --git a/src/oci/cloud_guard/models/problem_aggregation.py b/src/oci/cloud_guard/models/problem_aggregation.py index d9bc3f8ff9..1fd7a6ff9a 100644 --- a/src/oci/cloud_guard/models/problem_aggregation.py +++ b/src/oci/cloud_guard/models/problem_aggregation.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ProblemAggregation(object): """ - Provides the dimensions and their corresponding count value. + Provides aggregated information on counts of problems by specified parameters. """ def __init__(self, **kwargs): diff --git a/src/oci/cloud_guard/models/problem_endpoint_summary.py b/src/oci/cloud_guard/models/problem_endpoint_summary.py index 99cbe3279d..3b568f9b65 100644 --- a/src/oci/cloud_guard/models/problem_endpoint_summary.py +++ b/src/oci/cloud_guard/models/problem_endpoint_summary.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ProblemEndpointSummary(object): """ - Problem endpoints summary. + Summary information for endpoints associated with a problem (Problem object). """ def __init__(self, **kwargs): diff --git a/src/oci/cloud_guard/models/problem_trend_aggregation.py b/src/oci/cloud_guard/models/problem_trend_aggregation.py index 4491b4f0de..c88119b685 100644 --- a/src/oci/cloud_guard/models/problem_trend_aggregation.py +++ b/src/oci/cloud_guard/models/problem_trend_aggregation.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class ProblemTrendAggregation(object): """ - Provides the dimensions and their corresponding time and count. + Provides aggregated information on trends for counts of problems by specified parameters. """ def __init__(self, **kwargs): diff --git a/src/oci/cloud_guard/models/target_detector_recipe_detector_rule.py b/src/oci/cloud_guard/models/target_detector_recipe_detector_rule.py index 4b74db1c9a..1d4d1f4532 100644 --- a/src/oci/cloud_guard/models/target_detector_recipe_detector_rule.py +++ b/src/oci/cloud_guard/models/target_detector_recipe_detector_rule.py @@ -79,6 +79,14 @@ class TargetDetectorRecipeDetectorRule(object): #: This constant has a value of "GENERIC" MANAGED_LIST_TYPES_GENERIC = "GENERIC" + #: A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. + #: This constant has a value of "FUSION_APPS_ROLE" + MANAGED_LIST_TYPES_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. + #: This constant has a value of "FUSION_APPS_PERMISSION" + MANAGED_LIST_TYPES_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" @@ -148,7 +156,7 @@ def __init__(self, **kwargs): :param managed_list_types: The value to assign to the managed_list_types property of this TargetDetectorRecipeDetectorRule. - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type managed_list_types: list[str] @@ -431,7 +439,7 @@ def managed_list_types(self): Gets the managed_list_types of this TargetDetectorRecipeDetectorRule. List of cloudguard managed list types related to this rule - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -450,7 +458,7 @@ def managed_list_types(self, managed_list_types): :param managed_list_types: The managed_list_types of this TargetDetectorRecipeDetectorRule. :type: list[str] """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if managed_list_types: managed_list_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in managed_list_types] self._managed_list_types = managed_list_types diff --git a/src/oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.py b/src/oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.py index 013e919fe4..ba7da96fea 100644 --- a/src/oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.py +++ b/src/oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.py @@ -79,6 +79,14 @@ class TargetDetectorRecipeDetectorRuleSummary(object): #: This constant has a value of "GENERIC" MANAGED_LIST_TYPES_GENERIC = "GENERIC" + #: A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRuleSummary. + #: This constant has a value of "FUSION_APPS_ROLE" + MANAGED_LIST_TYPES_FUSION_APPS_ROLE = "FUSION_APPS_ROLE" + + #: A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRuleSummary. + #: This constant has a value of "FUSION_APPS_PERMISSION" + MANAGED_LIST_TYPES_FUSION_APPS_PERMISSION = "FUSION_APPS_PERMISSION" + #: A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRuleSummary. #: This constant has a value of "CREATING" LIFECYCLE_STATE_CREATING = "CREATING" @@ -144,7 +152,7 @@ def __init__(self, **kwargs): :param managed_list_types: The value to assign to the managed_list_types property of this TargetDetectorRecipeDetectorRuleSummary. - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type managed_list_types: list[str] @@ -411,7 +419,7 @@ def managed_list_types(self): Gets the managed_list_types of this TargetDetectorRecipeDetectorRuleSummary. List of cloudguard managed list types related to this rule - Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for items in this list are: "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -430,7 +438,7 @@ def managed_list_types(self, managed_list_types): :param managed_list_types: The managed_list_types of this TargetDetectorRecipeDetectorRuleSummary. :type: list[str] """ - allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC"] + allowed_values = ["CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS", "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS", "GENERIC", "FUSION_APPS_ROLE", "FUSION_APPS_PERMISSION"] if managed_list_types: managed_list_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in managed_list_types] self._managed_list_types = managed_list_types diff --git a/src/oci/email/email_client.py b/src/oci/email/email_client.py index c00e2f5ee6..f8e386d18c 100644 --- a/src/oci/email/email_client.py +++ b/src/oci/email/email_client.py @@ -22,12 +22,11 @@ class EmailClient(object): """ - API for the Email Delivery service. Use this API to send high-volume, application-generated - emails. For more information, see [Overview of the Email Delivery Service](/iaas/Content/Email/Concepts/overview.htm). + Use the Email Delivery API to do the necessary set up to send high-volume and application-generated emails through the OCI Email Delivery service. + For more information, see [Overview of the Email Delivery Service](/iaas/Content/Email/Concepts/overview.htm). - - **Note:** Write actions (POST, UPDATE, DELETE) may take several minutes to propagate and be reflected by the API. - If a subsequent read request fails to reflect your changes, wait a few minutes and try again. + **Note:** Write actions (POST, UPDATE, DELETE) may take several minutes to propagate and be reflected by the API. + If a subsequent read request fails to reflect your changes, wait a few minutes and try again. """ def __init__(self, config, **kwargs): @@ -123,12 +122,12 @@ def __init__(self, config, **kwargs): def change_email_domain_compartment(self, email_domain_id, change_email_domain_compartment_details, **kwargs): """ - Moves a email domain into a different compartment. + Moves an email domain into a different compartment. When provided, If-Match is checked against ETag value of the resource. For information about moving resources between compartments, see `Moving Resources to a Different Compartment`__. - **Note:** All Dkim objects associated with this email domain will also be moved into the provided compartment. + **Note:** All DKIM objects associated with this email domain will also be moved into the provided compartment. __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes @@ -354,10 +353,10 @@ def change_sender_compartment(self, sender_id, change_sender_compartment_details def create_dkim(self, create_dkim_details, **kwargs): """ - Creates a new DKIM for a email domain. - This DKIM will sign all approved senders in the tenancy that are in this email domain. + Creates a new DKIM for an email domain. + This DKIM signs all approved senders in the tenancy that are in this email domain. Best security practices indicate to periodically rotate the DKIM that is doing the signing. - When a second DKIM is applied, all senders will seamlessly pick up the new key + When a second DKIM is applied, all senders seamlessly pick up the new key without interruption in signing. @@ -730,7 +729,7 @@ def delete_dkim(self, dkim_id, **kwargs): will stop signing the domain's outgoing mail. DKIM keys are left in DELETING state for about a day to allow DKIM signatures on in-transit mail to be validated. - Consider instead of deletion creating a new DKIM for this domain so the signing can be rotated to it. + Consider creating a new DKIM for this domain so the signing can be rotated to it instead of deletion. :param str dkim_id: (required) @@ -833,7 +832,7 @@ def delete_dkim(self, dkim_id, **kwargs): def delete_email_domain(self, email_domain_id, **kwargs): """ - Deletes a email domain. + Deletes an email domain. :param str email_domain_id: (required) @@ -1229,6 +1228,97 @@ def get_dkim(self, dkim_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def get_email_configuration(self, compartment_id, **kwargs): + """ + Returns email configuration associated with the specified compartment. + + + :param str compartment_id: (required) + The OCID for the compartment. + + :param str opc_request_id: (optional) + The request ID for tracing from the system + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.email.models.Configuration` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_email_configuration API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/configuration" + method = "GET" + operation_name = "get_email_configuration" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/Configuration/GetEmailConfiguration" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_email_configuration got unknown kwargs: {extra_kwargs!r}") + + query_params = { + "compartmentId": compartment_id + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="Configuration", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="Configuration", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def get_email_domain(self, email_domain_id, **kwargs): """ Retrieves the specified email domain. @@ -1618,7 +1708,7 @@ def get_work_request(self, work_request_id, **kwargs): def list_dkims(self, email_domain_id, **kwargs): """ - Lists DKIMs for a email domain. + Lists DKIMs for an email domain. :param str email_domain_id: (required) @@ -2138,20 +2228,24 @@ def list_suppressions(self, compartment_id, **kwargs): returned list (inclusive). Specifying this parameter without the corresponding `timeCreatedLessThan` parameter will retrieve suppressions created from the given `timeCreatedGreaterThanOrEqualTo` to the current time, in \"YYYY-MM-ddThh:mmZ\" format with a - Z offset, as defined by RFC 3339. + Z offset, as defined by `RFC 3339`__. **Example:** 2016-12-19T16:39:57.600Z + __ https://tools.ietf.org/html/rfc3339 + :param datetime time_created_less_than: (optional) Search for suppressions that were created within a specific date range, using this parameter to specify the latest creation date for the returned list (exclusive). Specifying this parameter without the corresponding `timeCreatedGreaterThanOrEqualTo` parameter will retrieve all suppressions created before the specified end date, in \"YYYY-MM-ddThh:mmZ\" format with a Z offset, as - defined by RFC 3339. + defined by `RFC 3339`__. **Example:** 2016-12-19T16:39:57.600Z + __ https://tools.ietf.org/html/rfc3339 + :param str page: (optional) For list pagination. The value of the opc-next-page response header from the previous \"List\" call. For important details about how pagination works, @@ -2751,7 +2845,7 @@ def update_dkim(self, dkim_id, update_dkim_details, **kwargs): def update_email_domain(self, email_domain_id, update_email_domain_details, **kwargs): """ - Modifies a email domain. + Modifies an email domain. :param str email_domain_id: (required) diff --git a/src/oci/email/models/__init__.py b/src/oci/email/models/__init__.py index 0913daec9f..ec18916199 100644 --- a/src/oci/email/models/__init__.py +++ b/src/oci/email/models/__init__.py @@ -8,6 +8,7 @@ from .change_email_domain_compartment_details import ChangeEmailDomainCompartmentDetails from .change_sender_compartment_details import ChangeSenderCompartmentDetails +from .configuration import Configuration from .create_dkim_details import CreateDkimDetails from .create_email_domain_details import CreateEmailDomainDetails from .create_sender_details import CreateSenderDetails @@ -38,6 +39,7 @@ email_type_mapping = { "ChangeEmailDomainCompartmentDetails": ChangeEmailDomainCompartmentDetails, "ChangeSenderCompartmentDetails": ChangeSenderCompartmentDetails, + "Configuration": Configuration, "CreateDkimDetails": CreateDkimDetails, "CreateEmailDomainDetails": CreateEmailDomainDetails, "CreateSenderDetails": CreateSenderDetails, diff --git a/src/oci/email/models/configuration.py b/src/oci/email/models/configuration.py new file mode 100644 index 0000000000..d91b0d7b7a --- /dev/null +++ b/src/oci/email/models/configuration.py @@ -0,0 +1,138 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20170907 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class Configuration(object): + """ + Tenancy level customer email configuration details. + """ + + def __init__(self, **kwargs): + """ + Initializes a new Configuration object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param compartment_id: + The value to assign to the compartment_id property of this Configuration. + :type compartment_id: str + + :param http_submit_endpoint: + The value to assign to the http_submit_endpoint property of this Configuration. + :type http_submit_endpoint: str + + :param smtp_submit_endpoint: + The value to assign to the smtp_submit_endpoint property of this Configuration. + :type smtp_submit_endpoint: str + + """ + self.swagger_types = { + 'compartment_id': 'str', + 'http_submit_endpoint': 'str', + 'smtp_submit_endpoint': 'str' + } + + self.attribute_map = { + 'compartment_id': 'compartmentId', + 'http_submit_endpoint': 'httpSubmitEndpoint', + 'smtp_submit_endpoint': 'smtpSubmitEndpoint' + } + + self._compartment_id = None + self._http_submit_endpoint = None + self._smtp_submit_endpoint = None + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this Configuration. + The root compartment `OCID`__ (same as the tenancy OCID) + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this Configuration. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this Configuration. + The root compartment `OCID`__ (same as the tenancy OCID) + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this Configuration. + :type: str + """ + self._compartment_id = compartment_id + + @property + def http_submit_endpoint(self): + """ + **[Required]** Gets the http_submit_endpoint of this Configuration. + Endpoint used to submit emails via the HTTP email submission API + + + :return: The http_submit_endpoint of this Configuration. + :rtype: str + """ + return self._http_submit_endpoint + + @http_submit_endpoint.setter + def http_submit_endpoint(self, http_submit_endpoint): + """ + Sets the http_submit_endpoint of this Configuration. + Endpoint used to submit emails via the HTTP email submission API + + + :param http_submit_endpoint: The http_submit_endpoint of this Configuration. + :type: str + """ + self._http_submit_endpoint = http_submit_endpoint + + @property + def smtp_submit_endpoint(self): + """ + **[Required]** Gets the smtp_submit_endpoint of this Configuration. + Endpoint used to submit emails via the standard SMTP submission protocol. Note that TLS 1.2 and standard SMTP authentication is required for submission. + + + :return: The smtp_submit_endpoint of this Configuration. + :rtype: str + """ + return self._smtp_submit_endpoint + + @smtp_submit_endpoint.setter + def smtp_submit_endpoint(self, smtp_submit_endpoint): + """ + Sets the smtp_submit_endpoint of this Configuration. + Endpoint used to submit emails via the standard SMTP submission protocol. Note that TLS 1.2 and standard SMTP authentication is required for submission. + + + :param smtp_submit_endpoint: The smtp_submit_endpoint of this Configuration. + :type: str + """ + self._smtp_submit_endpoint = smtp_submit_endpoint + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/email/models/create_dkim_details.py b/src/oci/email/models/create_dkim_details.py index 690dd80df3..9865210c3e 100644 --- a/src/oci/email/models/create_dkim_details.py +++ b/src/oci/email/models/create_dkim_details.py @@ -71,8 +71,8 @@ def name(self): The DKIM selector. This selector is required to be globally unique for this email domain. If you do not provide the selector, we will generate one for you. If you do provide the selector, we suggest adding a short region indicator - to differentiate from your signing of emails in other regions you may be subscribed to. - Selectors limited to ASCII characters may use alphanumeric, dash (\"-\"), and dot (\".\") characters. + to differentiate from your signing of emails in other regions you might be subscribed to. + Selectors limited to ASCII characters can use alphanumeric, dash (\"-\"), and dot (\".\") characters. Non-ASCII selector names should adopt IDNA2008 normalization (RFC 5891-5892). Avoid entering confidential information. @@ -92,8 +92,8 @@ def name(self, name): The DKIM selector. This selector is required to be globally unique for this email domain. If you do not provide the selector, we will generate one for you. If you do provide the selector, we suggest adding a short region indicator - to differentiate from your signing of emails in other regions you may be subscribed to. - Selectors limited to ASCII characters may use alphanumeric, dash (\"-\"), and dot (\".\") characters. + to differentiate from your signing of emails in other regions you might be subscribed to. + Selectors limited to ASCII characters can use alphanumeric, dash (\"-\"), and dot (\".\") characters. Non-ASCII selector names should adopt IDNA2008 normalization (RFC 5891-5892). Avoid entering confidential information. diff --git a/src/oci/email/models/create_email_domain_details.py b/src/oci/email/models/create_email_domain_details.py index b337df751e..afdced6dce 100644 --- a/src/oci/email/models/create_email_domain_details.py +++ b/src/oci/email/models/create_email_domain_details.py @@ -71,9 +71,11 @@ def name(self): The email domain name must be unique in the region for this tenancy. Domain names limited to ASCII characters use alphanumeric, dash (\"-\"), and dot (\".\") characters. The dash and dot are only allowed between alphanumeric characters. - For details, please see: https://tools.ietf.org/html/rfc5321#section-4.1.2 + For details, see `RFC 5321, section 4.1.2`__ Non-ASCII domain names should adopt IDNA2008 normalization (RFC 5891-5892). + __ https://tools.ietf.org/html/rfc5321#section-4.1.2 + :return: The name of this CreateEmailDomainDetails. :rtype: str @@ -88,9 +90,11 @@ def name(self, name): The email domain name must be unique in the region for this tenancy. Domain names limited to ASCII characters use alphanumeric, dash (\"-\"), and dot (\".\") characters. The dash and dot are only allowed between alphanumeric characters. - For details, please see: https://tools.ietf.org/html/rfc5321#section-4.1.2 + For details, see `RFC 5321, section 4.1.2`__ Non-ASCII domain names should adopt IDNA2008 normalization (RFC 5891-5892). + __ https://tools.ietf.org/html/rfc5321#section-4.1.2 + :param name: The name of this CreateEmailDomainDetails. :type: str diff --git a/src/oci/email/models/dkim.py b/src/oci/email/models/dkim.py index f6cdb41b21..32ac6dd9d7 100644 --- a/src/oci/email/models/dkim.py +++ b/src/oci/email/models/dkim.py @@ -434,7 +434,7 @@ def dns_subdomain_name(self): """ Gets the dns_subdomain_name of this Dkim. The name of the DNS subdomain that must be provisioned to enable email recipients to verify DKIM signatures. - It is usually created with a CNAME record set to the cnameRecordValue + It is usually created with a CNAME record set to the cnameRecordValue. :return: The dns_subdomain_name of this Dkim. @@ -447,7 +447,7 @@ def dns_subdomain_name(self, dns_subdomain_name): """ Sets the dns_subdomain_name of this Dkim. The name of the DNS subdomain that must be provisioned to enable email recipients to verify DKIM signatures. - It is usually created with a CNAME record set to the cnameRecordValue + It is usually created with a CNAME record set to the cnameRecordValue. :param dns_subdomain_name: The dns_subdomain_name of this Dkim. @@ -484,9 +484,9 @@ def txt_record_value(self): """ Gets the txt_record_value of this Dkim. The DNS TXT record value to provision to the DKIM DNS subdomain in place of using a CNAME record. - This is used in cases where a CNAME can not be used, such as when the cnameRecordValue would exceed the maximum length for a DNS entry. - This can also be used by customers who have an existing procedure to directly provision TXT records for DKIM. - Be aware that many DNS APIs will require you to break this string into segments of less than 255 characters. + This is used in cases where a CNAME cannot be used, such as when the cnameRecordValue would exceed the maximum length for a DNS entry. + You can also use this if you have an existing procedure to directly provision TXT records for DKIM. + Many DNS APIs require you to break this string into segments of fewer than 255 characters. :return: The txt_record_value of this Dkim. @@ -499,9 +499,9 @@ def txt_record_value(self, txt_record_value): """ Sets the txt_record_value of this Dkim. The DNS TXT record value to provision to the DKIM DNS subdomain in place of using a CNAME record. - This is used in cases where a CNAME can not be used, such as when the cnameRecordValue would exceed the maximum length for a DNS entry. - This can also be used by customers who have an existing procedure to directly provision TXT records for DKIM. - Be aware that many DNS APIs will require you to break this string into segments of less than 255 characters. + This is used in cases where a CNAME cannot be used, such as when the cnameRecordValue would exceed the maximum length for a DNS entry. + You can also use this if you have an existing procedure to directly provision TXT records for DKIM. + Many DNS APIs require you to break this string into segments of fewer than 255 characters. :param txt_record_value: The txt_record_value of this Dkim. diff --git a/src/oci/email/models/dkim_collection.py b/src/oci/email/models/dkim_collection.py index c701b9c0bb..6d4b93ab54 100644 --- a/src/oci/email/models/dkim_collection.py +++ b/src/oci/email/models/dkim_collection.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class DkimCollection(object): """ - Results of a search. Contains boh DkimSummary items and other information, such as metadata. + Results of a search. Contains both DkimSummary items and other information, such as metadata. """ def __init__(self, **kwargs): diff --git a/src/oci/email/models/email_domain.py b/src/oci/email/models/email_domain.py index 2ede3a97df..957d7ef28f 100644 --- a/src/oci/email/models/email_domain.py +++ b/src/oci/email/models/email_domain.py @@ -12,8 +12,8 @@ @init_model_state_from_kwargs class EmailDomain(object): """ - The properties that define a email domain. - A Email Domain contains configuration used to assert responsibility for emails sent from that domain. + The properties that define an email domain. + An email domain contains configuration used to assert responsibility for emails sent from that domain. """ #: A constant which can be used with the lifecycle_state property of a EmailDomain. @@ -138,7 +138,7 @@ def name(self): **[Required]** Gets the name of this EmailDomain. The name of the email domain in the Internet Domain Name System (DNS). - Example: `example.net` + Example: `mydomain.example.com` :return: The name of this EmailDomain. @@ -152,7 +152,7 @@ def name(self, name): Sets the name of this EmailDomain. The name of the email domain in the Internet Domain Name System (DNS). - Example: `example.net` + Example: `mydomain.example.com` :param name: The name of this EmailDomain. @@ -310,7 +310,7 @@ def is_spf(self, is_spf): def description(self): """ Gets the description of this EmailDomain. - The description of a email domain. + The description of an email domain. :return: The description of this EmailDomain. @@ -322,7 +322,7 @@ def description(self): def description(self, description): """ Sets the description of this EmailDomain. - The description of a email domain. + The description of an email domain. :param description: The description of this EmailDomain. diff --git a/src/oci/email/models/email_domain_collection.py b/src/oci/email/models/email_domain_collection.py index 4164f2326b..60c1d911dc 100644 --- a/src/oci/email/models/email_domain_collection.py +++ b/src/oci/email/models/email_domain_collection.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class EmailDomainCollection(object): """ - Results of an EmailDomain search. Contains boh EmailDomainSummary items and other information, such as metadata. + Results of an EmailDomain search. Contains both EmailDomainSummary items and other information, such as metadata. """ def __init__(self, **kwargs): diff --git a/src/oci/email/models/email_domain_summary.py b/src/oci/email/models/email_domain_summary.py index 064e680474..9f0277242b 100644 --- a/src/oci/email/models/email_domain_summary.py +++ b/src/oci/email/models/email_domain_summary.py @@ -12,8 +12,8 @@ @init_model_state_from_kwargs class EmailDomainSummary(object): """ - The properties that define a email domain. - A Email Domain contains configuration used to assert responsibility for emails sent from that domain. + The properties that define an email domain. + An email domain contains configuration used to assert responsibility for emails sent from that domain. """ def __init__(self, **kwargs): @@ -105,7 +105,7 @@ def name(self): **[Required]** Gets the name of this EmailDomainSummary. The name of the email domain in the Internet Domain Name System (DNS). - Example: `example.net` + Example: `mydomain.example.com` :return: The name of this EmailDomainSummary. @@ -119,7 +119,7 @@ def name(self, name): Sets the name of this EmailDomainSummary. The name of the email domain in the Internet Domain Name System (DNS). - Example: `example.net` + Example: `mydomain.example.com` :param name: The name of this EmailDomainSummary. @@ -241,7 +241,7 @@ def active_dkim_id(self, active_dkim_id): def description(self): """ Gets the description of this EmailDomainSummary. - The description of a email domain. + The description of an email domain. :return: The description of this EmailDomainSummary. @@ -253,7 +253,7 @@ def description(self): def description(self, description): """ Sets the description of this EmailDomainSummary. - The description of a email domain. + The description of an email domain. :param description: The description of this EmailDomainSummary. diff --git a/src/oci/email/models/sender.py b/src/oci/email/models/sender.py index d1f3ffd8a4..cda559c1bb 100644 --- a/src/oci/email/models/sender.py +++ b/src/oci/email/models/sender.py @@ -74,6 +74,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this Sender. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this Sender. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'compartment_id': 'str', @@ -84,7 +88,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'email_domain_id': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -96,7 +101,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'email_domain_id': 'emailDomainId', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._compartment_id = None @@ -108,6 +114,7 @@ def __init__(self, **kwargs): self._email_domain_id = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def compartment_id(self): @@ -246,7 +253,9 @@ def time_created(self): """ Gets the time_created of this Sender. The date and time the approved sender was added in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this Sender. @@ -259,7 +268,9 @@ def time_created(self, time_created): """ Sets the time_created of this Sender. The date and time the approved sender was added in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :param time_created: The time_created of this Sender. @@ -359,6 +370,32 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this Sender. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this Sender. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this Sender. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this Sender. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/email/models/sender_summary.py b/src/oci/email/models/sender_summary.py index c9e815b8a7..b6a065f6a4 100644 --- a/src/oci/email/models/sender_summary.py +++ b/src/oci/email/models/sender_summary.py @@ -15,22 +15,6 @@ class SenderSummary(object): The email addresses and `senderId` representing an approved sender. """ - #: A constant which can be used with the lifecycle_state property of a SenderSummary. - #: This constant has a value of "CREATING" - LIFECYCLE_STATE_CREATING = "CREATING" - - #: A constant which can be used with the lifecycle_state property of a SenderSummary. - #: This constant has a value of "ACTIVE" - LIFECYCLE_STATE_ACTIVE = "ACTIVE" - - #: A constant which can be used with the lifecycle_state property of a SenderSummary. - #: This constant has a value of "DELETING" - LIFECYCLE_STATE_DELETING = "DELETING" - - #: A constant which can be used with the lifecycle_state property of a SenderSummary. - #: This constant has a value of "DELETED" - LIFECYCLE_STATE_DELETED = "DELETED" - def __init__(self, **kwargs): """ Initializes a new SenderSummary object with values from keyword arguments. @@ -50,8 +34,6 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this SenderSummary. - Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -66,6 +48,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this SenderSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this SenderSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'compartment_id': 'str', @@ -74,7 +60,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'str', 'time_created': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -84,7 +71,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'lifecycleState', 'time_created': 'timeCreated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._compartment_id = None @@ -94,6 +82,7 @@ def __init__(self, **kwargs): self._time_created = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def compartment_id(self): @@ -173,9 +162,6 @@ def lifecycle_state(self): Gets the lifecycle_state of this SenderSummary. The current status of the approved sender. - Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'. - Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. - :return: The lifecycle_state of this SenderSummary. :rtype: str @@ -192,9 +178,6 @@ def lifecycle_state(self, lifecycle_state): :param lifecycle_state: The lifecycle_state of this SenderSummary. :type: str """ - allowed_values = ["CREATING", "ACTIVE", "DELETING", "DELETED"] - if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property @@ -202,7 +185,9 @@ def time_created(self): """ Gets the time_created of this SenderSummary. Date time the approved sender was added, in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this SenderSummary. @@ -215,7 +200,9 @@ def time_created(self, time_created): """ Sets the time_created of this SenderSummary. Date time the approved sender was added, in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :param time_created: The time_created of this SenderSummary. @@ -291,6 +278,32 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this SenderSummary. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this SenderSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this SenderSummary. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this SenderSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/email/models/suppression.py b/src/oci/email/models/suppression.py index 0d936993a2..35dca26a94 100644 --- a/src/oci/email/models/suppression.py +++ b/src/oci/email/models/suppression.py @@ -232,7 +232,9 @@ def time_created(self): """ Gets the time_created of this Suppression. The date and time the suppression was added in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this Suppression. @@ -245,7 +247,9 @@ def time_created(self, time_created): """ Sets the time_created of this Suppression. The date and time the suppression was added in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :param time_created: The time_created of this Suppression. @@ -259,7 +263,9 @@ def time_last_suppressed(self): Gets the time_last_suppressed of this Suppression. The last date and time the suppression prevented submission in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :return: The time_last_suppressed of this Suppression. @@ -273,7 +279,9 @@ def time_last_suppressed(self, time_last_suppressed): Sets the time_last_suppressed of this Suppression. The last date and time the suppression prevented submission in \"YYYY-MM-ddThh:mmZ\" - format with a Z offset, as defined by RFC 3339. + format with a Z offset, as defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :param time_last_suppressed: The time_last_suppressed of this Suppression. diff --git a/src/oci/email/models/suppression_summary.py b/src/oci/email/models/suppression_summary.py index 499e0a9e24..2796f5ce97 100644 --- a/src/oci/email/models/suppression_summary.py +++ b/src/oci/email/models/suppression_summary.py @@ -197,7 +197,9 @@ def time_created(self): Gets the time_created of this SuppressionSummary. The date and time a recipient's email address was added to the suppression list, in \"YYYY-MM-ddThh:mmZ\" format with a Z offset, as - defined by RFC 3339. + defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this SuppressionSummary. @@ -211,7 +213,9 @@ def time_created(self, time_created): Sets the time_created of this SuppressionSummary. The date and time a recipient's email address was added to the suppression list, in \"YYYY-MM-ddThh:mmZ\" format with a Z offset, as - defined by RFC 3339. + defined by `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 :param time_created: The time_created of this SuppressionSummary. diff --git a/src/oci/email/models/work_request.py b/src/oci/email/models/work_request.py index dcbe330324..746539d676 100644 --- a/src/oci/email/models/work_request.py +++ b/src/oci/email/models/work_request.py @@ -55,6 +55,14 @@ class WorkRequest(object): #: This constant has a value of "IN_PROGRESS" STATUS_IN_PROGRESS = "IN_PROGRESS" + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "WAITING" + STATUS_WAITING = "WAITING" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "NEEDS_ATTENTION" + STATUS_NEEDS_ATTENTION = "NEEDS_ATTENTION" + #: A constant which can be used with the status property of a WorkRequest. #: This constant has a value of "FAILED" STATUS_FAILED = "FAILED" @@ -84,7 +92,7 @@ def __init__(self, **kwargs): :param status: The value to assign to the status property of this WorkRequest. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str @@ -187,7 +195,7 @@ def status(self): **[Required]** Gets the status of this WorkRequest. Status of current work request. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -206,7 +214,7 @@ def status(self, status): :param status: The status of this WorkRequest. :type: str """ - allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] if not value_allowed_none_or_none_sentinel(status, allowed_values): status = 'UNKNOWN_ENUM_VALUE' self._status = status @@ -239,7 +247,7 @@ def id(self, id): def compartment_id(self): """ **[Required]** Gets the compartment_id of this WorkRequest. - The ocid of the compartment that contains the work request. Work requests should be scoped to + The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used @@ -254,7 +262,7 @@ def compartment_id(self): def compartment_id(self, compartment_id): """ Sets the compartment_id of this WorkRequest. - The ocid of the compartment that contains the work request. Work requests should be scoped to + The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used diff --git a/src/oci/email/models/work_request_error.py b/src/oci/email/models/work_request_error.py index 0672427520..ed48b565a5 100644 --- a/src/oci/email/models/work_request_error.py +++ b/src/oci/email/models/work_request_error.py @@ -53,8 +53,9 @@ def __init__(self, **kwargs): def code(self): """ **[Required]** Gets the code of this WorkRequestError. - A machine-usable code for the error that occured. Error codes are listed on - (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + A machine-usable code for the error that occurred. Refer to `API Errors`__ for a list of error codes. + + __ https://docs.cloud.oracle.com/Content/API/References/apierrors.htm :return: The code of this WorkRequestError. @@ -66,8 +67,9 @@ def code(self): def code(self, code): """ Sets the code of this WorkRequestError. - A machine-usable code for the error that occured. Error codes are listed on - (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + A machine-usable code for the error that occurred. Refer to `API Errors`__ for a list of error codes. + + __ https://docs.cloud.oracle.com/Content/API/References/apierrors.htm :param code: The code of this WorkRequestError. @@ -103,7 +105,7 @@ def message(self, message): def timestamp(self): """ **[Required]** Gets the timestamp of this WorkRequestError. - The time the error occured. An RFC3339 formatted datetime string. + The time the error occurred. An RFC3339 formatted datetime string. :return: The timestamp of this WorkRequestError. @@ -115,7 +117,7 @@ def timestamp(self): def timestamp(self, timestamp): """ Sets the timestamp of this WorkRequestError. - The time the error occured. An RFC3339 formatted datetime string. + The time the error occurred. An RFC3339 formatted datetime string. :param timestamp: The timestamp of this WorkRequestError. diff --git a/src/oci/email/models/work_request_resource.py b/src/oci/email/models/work_request_resource.py index 2d6993b911..e663f0c518 100644 --- a/src/oci/email/models/work_request_resource.py +++ b/src/oci/email/models/work_request_resource.py @@ -35,6 +35,10 @@ class WorkRequestResource(object): #: This constant has a value of "RELATED" ACTION_TYPE_RELATED = "RELATED" + #: A constant which can be used with the action_type property of a WorkRequestResource. + #: This constant has a value of "FAILED" + ACTION_TYPE_FAILED = "FAILED" + def __init__(self, **kwargs): """ Initializes a new WorkRequestResource object with values from keyword arguments. @@ -46,7 +50,7 @@ def __init__(self, **kwargs): :param action_type: The value to assign to the action_type property of this WorkRequestResource. - Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type action_type: str @@ -111,7 +115,7 @@ def action_type(self): work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively. - Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -133,7 +137,7 @@ def action_type(self, action_type): :param action_type: The action_type of this WorkRequestResource. :type: str """ - allowed_values = ["CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED"] + allowed_values = ["CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", "FAILED"] if not value_allowed_none_or_none_sentinel(action_type, allowed_values): action_type = 'UNKNOWN_ENUM_VALUE' self._action_type = action_type diff --git a/src/oci/email/models/work_request_summary.py b/src/oci/email/models/work_request_summary.py index 61059c356e..7b12688bc3 100644 --- a/src/oci/email/models/work_request_summary.py +++ b/src/oci/email/models/work_request_summary.py @@ -55,6 +55,14 @@ class WorkRequestSummary(object): #: This constant has a value of "IN_PROGRESS" STATUS_IN_PROGRESS = "IN_PROGRESS" + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "WAITING" + STATUS_WAITING = "WAITING" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "NEEDS_ATTENTION" + STATUS_NEEDS_ATTENTION = "NEEDS_ATTENTION" + #: A constant which can be used with the status property of a WorkRequestSummary. #: This constant has a value of "FAILED" STATUS_FAILED = "FAILED" @@ -84,7 +92,7 @@ def __init__(self, **kwargs): :param status: The value to assign to the status property of this WorkRequestSummary. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str @@ -187,7 +195,7 @@ def status(self): **[Required]** Gets the status of this WorkRequestSummary. Status of current work request. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -206,7 +214,7 @@ def status(self, status): :param status: The status of this WorkRequestSummary. :type: str """ - allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] if not value_allowed_none_or_none_sentinel(status, allowed_values): status = 'UNKNOWN_ENUM_VALUE' self._status = status @@ -239,7 +247,7 @@ def id(self, id): def compartment_id(self): """ **[Required]** Gets the compartment_id of this WorkRequestSummary. - The ocid of the compartment that contains the work request. Work requests should be scoped to + The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used @@ -254,7 +262,7 @@ def compartment_id(self): def compartment_id(self, compartment_id): """ Sets the compartment_id of this WorkRequestSummary. - The ocid of the compartment that contains the work request. Work requests should be scoped to + The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used diff --git a/src/oci/email_data_plane/__init__.py b/src/oci/email_data_plane/__init__.py new file mode 100644 index 0000000000..d3201fe407 --- /dev/null +++ b/src/oci/email_data_plane/__init__.py @@ -0,0 +1,14 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + +from __future__ import absolute_import + + +from .email_dp_client import EmailDPClient +from .email_dp_client_composite_operations import EmailDPClientCompositeOperations +from . import models + +__all__ = ["EmailDPClient", "EmailDPClientCompositeOperations", "models"] diff --git a/src/oci/email_data_plane/email_dp_client.py b/src/oci/email_data_plane/email_dp_client.py new file mode 100644 index 0000000000..06d8a3e1cd --- /dev/null +++ b/src/oci/email_data_plane/email_dp_client.py @@ -0,0 +1,206 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + +from __future__ import absolute_import + +from oci._vendor import requests # noqa: F401 +from oci._vendor import six + +from oci import retry, circuit_breaker # noqa: F401 +from oci.base_client import BaseClient +from oci.config import get_config_value_or_default, validate_config +from oci.signer import Signer +from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME +from oci.exceptions import InvalidAlloyConfig +from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET +from .models import email_data_plane_type_mapping +missing = Sentinel("Missing") + + +class EmailDPClient(object): + """ + Use the Email Delivery API to send high-volume and application-generated emails. + For more information, see [Overview of the Email Delivery Service](/iaas/Content/Email/Concepts/overview.htm). + """ + + def __init__(self, config, **kwargs): + """ + Creates a new service client + + :param dict config: + Configuration keys and values as per `SDK and Tool Configuration `__. + The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config + the dict using :py:meth:`~oci.config.validate_config` + + :param str service_endpoint: (optional) + The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is + not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit + need to specify a service endpoint. + + :param timeout: (optional) + The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided + as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If + a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. + :type timeout: float or tuple(float, float) + + :param signer: (optional) + The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values + provided in the config parameter. + + One use case for this parameter is for `Instance Principals authentication `__ + by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument + :type signer: :py:class:`~oci.signer.AbstractBaseSigner` + + :param obj retry_strategy: (optional) + A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. + Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. + Any value provided at the operation level will override whatever is specified at the client level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` + is also available. The specifics of the default retry strategy are described `here `__. + + :param obj circuit_breaker_strategy: (optional) + A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). + This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. + The specifics of circuit breaker strategy are described `here `__. + + :param function circuit_breaker_callback: (optional) + Callback function to receive any exceptions triggerred by the circuit breaker. + + :param bool client_level_realm_specific_endpoint_template_enabled: (optional) + A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None. + + :param allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not + allow control characters to be in the response object. + """ + if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("email_data_plane"): + raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service") + + validate_config(config, signer=kwargs.get('signer')) + if 'signer' in kwargs: + signer = kwargs['signer'] + + elif AUTHENTICATION_TYPE_FIELD_NAME in config: + signer = get_signer_from_authentication_type(config) + + else: + signer = Signer( + tenancy=config["tenancy"], + user=config["user"], + fingerprint=config["fingerprint"], + private_key_file_location=config.get("key_file"), + pass_phrase=get_config_value_or_default(config, "pass_phrase"), + private_key_content=config.get("key_content") + ) + + base_client_init_kwargs = { + 'regional_client': True, + 'service_endpoint': kwargs.get('service_endpoint'), + 'base_path': '/20220926', + 'service_endpoint_template': 'https://cell0.submit.email.{region}.oci.{secondLevelDomain}', + 'service_endpoint_template_per_realm': { }, # noqa: E201 E202 + 'skip_deserialization': kwargs.get('skip_deserialization', False), + 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY), + 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled') + } + if 'timeout' in kwargs: + base_client_init_kwargs['timeout'] = kwargs.get('timeout') + if base_client_init_kwargs.get('circuit_breaker_strategy') is None: + base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY + if 'allow_control_chars' in kwargs: + base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') + self.base_client = BaseClient("email_dp", config, signer, email_data_plane_type_mapping, **base_client_init_kwargs) + self.retry_strategy = kwargs.get('retry_strategy') + self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') + + def submit_email(self, submit_email_details, **kwargs): + """ + Submits a formatted email. + + + :param oci.email_data_plane.models.SubmitEmailDetails submit_email_details: (required) + Parameters for submitEmail API. + + :param str opc_request_id: (optional) + The request ID for tracing from the system + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.email_data_plane.models.EmailSubmittedResponse` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use submit_email API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/actions/submitEmail" + method = "POST" + operation_name = "submit_email" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"submit_email got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=submit_email_details, + response_type="EmailSubmittedResponse", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=submit_email_details, + response_type="EmailSubmittedResponse", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) diff --git a/src/oci/email_data_plane/email_dp_client_composite_operations.py b/src/oci/email_data_plane/email_dp_client_composite_operations.py new file mode 100644 index 0000000000..1e1c52e71a --- /dev/null +++ b/src/oci/email_data_plane/email_dp_client_composite_operations.py @@ -0,0 +1,26 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + +import oci # noqa: F401 +from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 + + +class EmailDPClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.email_data_plane.EmailDPClient` and offers convenience methods + for operations that would otherwise need to be chained together. For example, instead of performing an action + on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource + to enter a given state, you can call a single method in this class to accomplish the same functionality + """ + + def __init__(self, client, **kwargs): + """ + Creates a new EmailDPClientCompositeOperations object + + :param EmailDPClient client: + The service client which will be wrapped by this object + """ + self.client = client diff --git a/src/oci/email_data_plane/models/__init__.py b/src/oci/email_data_plane/models/__init__.py new file mode 100644 index 0000000000..5dddc8b0d1 --- /dev/null +++ b/src/oci/email_data_plane/models/__init__.py @@ -0,0 +1,22 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + +from __future__ import absolute_import + +from .email_address import EmailAddress +from .email_submitted_response import EmailSubmittedResponse +from .recipients import Recipients +from .sender import Sender +from .submit_email_details import SubmitEmailDetails + +# Maps type names to classes for email_data_plane services. +email_data_plane_type_mapping = { + "EmailAddress": EmailAddress, + "EmailSubmittedResponse": EmailSubmittedResponse, + "Recipients": Recipients, + "Sender": Sender, + "SubmitEmailDetails": SubmitEmailDetails +} diff --git a/src/oci/email_data_plane/models/email_address.py b/src/oci/email_data_plane/models/email_address.py new file mode 100644 index 0000000000..b87c0667d7 --- /dev/null +++ b/src/oci/email_data_plane/models/email_address.py @@ -0,0 +1,107 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class EmailAddress(object): + """ + Email address Object that holds display name and email address. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EmailAddress object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param email: + The value to assign to the email property of this EmailAddress. + :type email: str + + :param name: + The value to assign to the name property of this EmailAddress. + :type name: str + + """ + self.swagger_types = { + 'email': 'str', + 'name': 'str' + } + + self.attribute_map = { + 'email': 'email', + 'name': 'name' + } + + self._email = None + self._name = None + + @property + def email(self): + """ + **[Required]** Gets the email of this EmailAddress. + ASCII only email address. + + + :return: The email of this EmailAddress. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this EmailAddress. + ASCII only email address. + + + :param email: The email of this EmailAddress. + :type: str + """ + self._email = email + + @property + def name(self): + """ + Gets the name of this EmailAddress. + Display name for the email address. UTF-8 is supported for display name `RFC 2047`__. + + __ https://www.rfc-editor.org/rfc/rfc2047 + + + :return: The name of this EmailAddress. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this EmailAddress. + Display name for the email address. UTF-8 is supported for display name `RFC 2047`__. + + __ https://www.rfc-editor.org/rfc/rfc2047 + + + :param name: The name of this EmailAddress. + :type: str + """ + self._name = name + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/email_data_plane/models/email_submitted_response.py b/src/oci/email_data_plane/models/email_submitted_response.py new file mode 100644 index 0000000000..a4d0eb7a99 --- /dev/null +++ b/src/oci/email_data_plane/models/email_submitted_response.py @@ -0,0 +1,136 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class EmailSubmittedResponse(object): + """ + Response object that is returned to sender upon successfully submitting the email request. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EmailSubmittedResponse object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param message_id: + The value to assign to the message_id property of this EmailSubmittedResponse. + :type message_id: str + + :param envelope_id: + The value to assign to the envelope_id property of this EmailSubmittedResponse. + :type envelope_id: str + + :param suppressed_recipients: + The value to assign to the suppressed_recipients property of this EmailSubmittedResponse. + :type suppressed_recipients: list[oci.email_data_plane.models.EmailAddress] + + """ + self.swagger_types = { + 'message_id': 'str', + 'envelope_id': 'str', + 'suppressed_recipients': 'list[EmailAddress]' + } + + self.attribute_map = { + 'message_id': 'messageId', + 'envelope_id': 'envelopeId', + 'suppressed_recipients': 'suppressedRecipients' + } + + self._message_id = None + self._envelope_id = None + self._suppressed_recipients = None + + @property + def message_id(self): + """ + **[Required]** Gets the message_id of this EmailSubmittedResponse. + The unique ID for the email's Message-ID header used for service log correlation. The submission will return an error if the syntax is not a valid RFC 5322 Message-ID. This will be generated if not provided. + Example: sdiofu234qwermls24fd@mail.example.com + + + :return: The message_id of this EmailSubmittedResponse. + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """ + Sets the message_id of this EmailSubmittedResponse. + The unique ID for the email's Message-ID header used for service log correlation. The submission will return an error if the syntax is not a valid RFC 5322 Message-ID. This will be generated if not provided. + Example: sdiofu234qwermls24fd@mail.example.com + + + :param message_id: The message_id of this EmailSubmittedResponse. + :type: str + """ + self._message_id = message_id + + @property + def envelope_id(self): + """ + **[Required]** Gets the envelope_id of this EmailSubmittedResponse. + Email Delivery generated unique Envelope ID of the email submission. If you need to contact Email Delivery about a particular request, please provide the Envelope ID. + + + :return: The envelope_id of this EmailSubmittedResponse. + :rtype: str + """ + return self._envelope_id + + @envelope_id.setter + def envelope_id(self, envelope_id): + """ + Sets the envelope_id of this EmailSubmittedResponse. + Email Delivery generated unique Envelope ID of the email submission. If you need to contact Email Delivery about a particular request, please provide the Envelope ID. + + + :param envelope_id: The envelope_id of this EmailSubmittedResponse. + :type: str + """ + self._envelope_id = envelope_id + + @property + def suppressed_recipients(self): + """ + **[Required]** Gets the suppressed_recipients of this EmailSubmittedResponse. + Return list of suppressed email addresses. + + + :return: The suppressed_recipients of this EmailSubmittedResponse. + :rtype: list[oci.email_data_plane.models.EmailAddress] + """ + return self._suppressed_recipients + + @suppressed_recipients.setter + def suppressed_recipients(self, suppressed_recipients): + """ + Sets the suppressed_recipients of this EmailSubmittedResponse. + Return list of suppressed email addresses. + + + :param suppressed_recipients: The suppressed_recipients of this EmailSubmittedResponse. + :type: list[oci.email_data_plane.models.EmailAddress] + """ + self._suppressed_recipients = suppressed_recipients + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/email_data_plane/models/recipients.py b/src/oci/email_data_plane/models/recipients.py new file mode 100644 index 0000000000..2ecacf56c9 --- /dev/null +++ b/src/oci/email_data_plane/models/recipients.py @@ -0,0 +1,135 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class Recipients(object): + """ + The destination for the email, composed of To, CC, and BCC fields. + NOTE: At least one of To, CC, and BCC must be provided. And max 50 recipients are allowed across the To:, CC: and BCC: fields. + """ + + def __init__(self, **kwargs): + """ + Initializes a new Recipients object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param to: + The value to assign to the to property of this Recipients. + :type to: list[oci.email_data_plane.models.EmailAddress] + + :param cc: + The value to assign to the cc property of this Recipients. + :type cc: list[oci.email_data_plane.models.EmailAddress] + + :param bcc: + The value to assign to the bcc property of this Recipients. + :type bcc: list[oci.email_data_plane.models.EmailAddress] + + """ + self.swagger_types = { + 'to': 'list[EmailAddress]', + 'cc': 'list[EmailAddress]', + 'bcc': 'list[EmailAddress]' + } + + self.attribute_map = { + 'to': 'to', + 'cc': 'cc', + 'bcc': 'bcc' + } + + self._to = None + self._cc = None + self._bcc = None + + @property + def to(self): + """ + Gets the to of this Recipients. + Array of To address. + + + :return: The to of this Recipients. + :rtype: list[oci.email_data_plane.models.EmailAddress] + """ + return self._to + + @to.setter + def to(self, to): + """ + Sets the to of this Recipients. + Array of To address. + + + :param to: The to of this Recipients. + :type: list[oci.email_data_plane.models.EmailAddress] + """ + self._to = to + + @property + def cc(self): + """ + Gets the cc of this Recipients. + Array of CC address. + + + :return: The cc of this Recipients. + :rtype: list[oci.email_data_plane.models.EmailAddress] + """ + return self._cc + + @cc.setter + def cc(self, cc): + """ + Sets the cc of this Recipients. + Array of CC address. + + + :param cc: The cc of this Recipients. + :type: list[oci.email_data_plane.models.EmailAddress] + """ + self._cc = cc + + @property + def bcc(self): + """ + Gets the bcc of this Recipients. + Array of BCC address. Bcc headers can only be viewed by non bcc recipients. + + + :return: The bcc of this Recipients. + :rtype: list[oci.email_data_plane.models.EmailAddress] + """ + return self._bcc + + @bcc.setter + def bcc(self, bcc): + """ + Sets the bcc of this Recipients. + Array of BCC address. Bcc headers can only be viewed by non bcc recipients. + + + :param bcc: The bcc of this Recipients. + :type: list[oci.email_data_plane.models.EmailAddress] + """ + self._bcc = bcc + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/email_data_plane/models/sender.py b/src/oci/email_data_plane/models/sender.py new file mode 100644 index 0000000000..cb1afc0a7e --- /dev/null +++ b/src/oci/email_data_plane/models/sender.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class Sender(object): + """ + The envelope and the header from email address details, that is sending the email. Email address must be an approved sender. + """ + + def __init__(self, **kwargs): + """ + Initializes a new Sender object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param sender_address: + The value to assign to the sender_address property of this Sender. + :type sender_address: oci.email_data_plane.models.EmailAddress + + :param compartment_id: + The value to assign to the compartment_id property of this Sender. + :type compartment_id: str + + """ + self.swagger_types = { + 'sender_address': 'EmailAddress', + 'compartment_id': 'str' + } + + self.attribute_map = { + 'sender_address': 'senderAddress', + 'compartment_id': 'compartmentId' + } + + self._sender_address = None + self._compartment_id = None + + @property + def sender_address(self): + """ + **[Required]** Gets the sender_address of this Sender. + + :return: The sender_address of this Sender. + :rtype: oci.email_data_plane.models.EmailAddress + """ + return self._sender_address + + @sender_address.setter + def sender_address(self, sender_address): + """ + Sets the sender_address of this Sender. + + :param sender_address: The sender_address of this Sender. + :type: oci.email_data_plane.models.EmailAddress + """ + self._sender_address = sender_address + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this Sender. + The `OCID`__ of the compartment that contains the approved sender resource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this Sender. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this Sender. + The `OCID`__ of the compartment that contains the approved sender resource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this Sender. + :type: str + """ + self._compartment_id = compartment_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/email_data_plane/models/submit_email_details.py b/src/oci/email_data_plane/models/submit_email_details.py new file mode 100644 index 0000000000..03ec21974c --- /dev/null +++ b/src/oci/email_data_plane/models/submit_email_details.py @@ -0,0 +1,297 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220926 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class SubmitEmailDetails(object): + """ + Details that are required by the sender to submit a request to send email. + """ + + def __init__(self, **kwargs): + """ + Initializes a new SubmitEmailDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param message_id: + The value to assign to the message_id property of this SubmitEmailDetails. + :type message_id: str + + :param sender: + The value to assign to the sender property of this SubmitEmailDetails. + :type sender: oci.email_data_plane.models.Sender + + :param recipients: + The value to assign to the recipients property of this SubmitEmailDetails. + :type recipients: oci.email_data_plane.models.Recipients + + :param subject: + The value to assign to the subject property of this SubmitEmailDetails. + :type subject: str + + :param body_html: + The value to assign to the body_html property of this SubmitEmailDetails. + :type body_html: str + + :param body_text: + The value to assign to the body_text property of this SubmitEmailDetails. + :type body_text: str + + :param reply_to: + The value to assign to the reply_to property of this SubmitEmailDetails. + :type reply_to: list[oci.email_data_plane.models.EmailAddress] + + :param header_fields: + The value to assign to the header_fields property of this SubmitEmailDetails. + :type header_fields: dict(str, str) + + """ + self.swagger_types = { + 'message_id': 'str', + 'sender': 'Sender', + 'recipients': 'Recipients', + 'subject': 'str', + 'body_html': 'str', + 'body_text': 'str', + 'reply_to': 'list[EmailAddress]', + 'header_fields': 'dict(str, str)' + } + + self.attribute_map = { + 'message_id': 'messageId', + 'sender': 'sender', + 'recipients': 'recipients', + 'subject': 'subject', + 'body_html': 'bodyHtml', + 'body_text': 'bodyText', + 'reply_to': 'replyTo', + 'header_fields': 'headerFields' + } + + self._message_id = None + self._sender = None + self._recipients = None + self._subject = None + self._body_html = None + self._body_text = None + self._reply_to = None + self._header_fields = None + + @property + def message_id(self): + """ + Gets the message_id of this SubmitEmailDetails. + The unique ID for the email's Message-ID header used for service log correlation. The submission will return an error if the syntax is not a valid `RFC 5322`__ Message-ID. This will be generated if not provided. + Example: sdiofu234qwermls24fd@mail.example.com + + __ https://www.rfc-editor.org/rfc/rfc5322 + + + :return: The message_id of this SubmitEmailDetails. + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """ + Sets the message_id of this SubmitEmailDetails. + The unique ID for the email's Message-ID header used for service log correlation. The submission will return an error if the syntax is not a valid `RFC 5322`__ Message-ID. This will be generated if not provided. + Example: sdiofu234qwermls24fd@mail.example.com + + __ https://www.rfc-editor.org/rfc/rfc5322 + + + :param message_id: The message_id of this SubmitEmailDetails. + :type: str + """ + self._message_id = message_id + + @property + def sender(self): + """ + **[Required]** Gets the sender of this SubmitEmailDetails. + + :return: The sender of this SubmitEmailDetails. + :rtype: oci.email_data_plane.models.Sender + """ + return self._sender + + @sender.setter + def sender(self, sender): + """ + Sets the sender of this SubmitEmailDetails. + + :param sender: The sender of this SubmitEmailDetails. + :type: oci.email_data_plane.models.Sender + """ + self._sender = sender + + @property + def recipients(self): + """ + **[Required]** Gets the recipients of this SubmitEmailDetails. + + :return: The recipients of this SubmitEmailDetails. + :rtype: oci.email_data_plane.models.Recipients + """ + return self._recipients + + @recipients.setter + def recipients(self, recipients): + """ + Sets the recipients of this SubmitEmailDetails. + + :param recipients: The recipients of this SubmitEmailDetails. + :type: oci.email_data_plane.models.Recipients + """ + self._recipients = recipients + + @property + def subject(self): + """ + **[Required]** Gets the subject of this SubmitEmailDetails. + A short summary of the content, which will appear in the recipient's inbox. UTF-8 supported `RFC 2047`__. + + __ https://www.rfc-editor.org/rfc/rfc2047 + + + :return: The subject of this SubmitEmailDetails. + :rtype: str + """ + return self._subject + + @subject.setter + def subject(self, subject): + """ + Sets the subject of this SubmitEmailDetails. + A short summary of the content, which will appear in the recipient's inbox. UTF-8 supported `RFC 2047`__. + + __ https://www.rfc-editor.org/rfc/rfc2047 + + + :param subject: The subject of this SubmitEmailDetails. + :type: str + """ + self._subject = subject + + @property + def body_html(self): + """ + Gets the body_html of this SubmitEmailDetails. + HTML body content in UTF-8. + NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided. + + + :return: The body_html of this SubmitEmailDetails. + :rtype: str + """ + return self._body_html + + @body_html.setter + def body_html(self, body_html): + """ + Sets the body_html of this SubmitEmailDetails. + HTML body content in UTF-8. + NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided. + + + :param body_html: The body_html of this SubmitEmailDetails. + :type: str + """ + self._body_html = body_html + + @property + def body_text(self): + """ + Gets the body_text of this SubmitEmailDetails. + Text body content. + NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided. + + + :return: The body_text of this SubmitEmailDetails. + :rtype: str + """ + return self._body_text + + @body_text.setter + def body_text(self, body_text): + """ + Sets the body_text of this SubmitEmailDetails. + Text body content. + NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided. + + + :param body_text: The body_text of this SubmitEmailDetails. + :type: str + """ + self._body_text = body_text + + @property + def reply_to(self): + """ + Gets the reply_to of this SubmitEmailDetails. + The email address for the recipient to reply to. If left blank, defaults to the sender address. + + + :return: The reply_to of this SubmitEmailDetails. + :rtype: list[oci.email_data_plane.models.EmailAddress] + """ + return self._reply_to + + @reply_to.setter + def reply_to(self, reply_to): + """ + Sets the reply_to of this SubmitEmailDetails. + The email address for the recipient to reply to. If left blank, defaults to the sender address. + + + :param reply_to: The reply_to of this SubmitEmailDetails. + :type: list[oci.email_data_plane.models.EmailAddress] + """ + self._reply_to = reply_to + + @property + def header_fields(self): + """ + Gets the header_fields of this SubmitEmailDetails. + The header used by the customer for the email sent. Reserved headers are not allowed e.g \"subject\", \"from\", and \"to\" etc. + Example: `{\"bar-key\": \"value\"}` + + + :return: The header_fields of this SubmitEmailDetails. + :rtype: dict(str, str) + """ + return self._header_fields + + @header_fields.setter + def header_fields(self, header_fields): + """ + Sets the header_fields of this SubmitEmailDetails. + The header used by the customer for the email sent. Reserved headers are not allowed e.g \"subject\", \"from\", and \"to\" etc. + Example: `{\"bar-key\": \"value\"}` + + + :param header_fields: The header_fields of this SubmitEmailDetails. + :type: dict(str, str) + """ + self._header_fields = header_fields + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/load_balancer/models/create_ssl_cipher_suite_details.py b/src/oci/load_balancer/models/create_ssl_cipher_suite_details.py index 55da321f84..1c61751d2c 100644 --- a/src/oci/load_balancer/models/create_ssl_cipher_suite_details.py +++ b/src/oci/load_balancer/models/create_ssl_cipher_suite_details.py @@ -180,6 +180,80 @@ class CreateSSLCipherSuiteDetails(object): \"RC4-SHA\" \"SEED-SHA\" + * __oci-default-http2-ssl-cipher-suite-v1__ + + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"DHE-RSA-AES256-GCM-SHA384\" + \"DHE-RSA-AES128-GCM-SHA256\" + + * __oci-default-http2-tls-13-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-default-http2-tls-12-13-ssl-cipher-suite-v1__ + + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"DHE-RSA-AES256-GCM-SHA384\" + \"DHE-RSA-AES128-GCM-SHA256\" + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-tls-13-recommended-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-tls-12-13-wider-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-SHA256\" + \"ECDHE-RSA-AES128-SHA256\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-SHA384\" + \"ECDHE-RSA-AES256-SHA384\" + \"AES128-GCM-SHA256\" + \"AES128-SHA256\" + \"AES256-GCM-SHA384\" + \"AES256-SHA256\" + + * __oci-tls-11-12-13-wider-ssl-cipher-suite-v1__ + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-SHA256\" + \"ECDHE-RSA-AES128-SHA256\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-SHA384\" + \"ECDHE-RSA-AES256-SHA384\" + \"AES128-GCM-SHA256\" + \"AES128-SHA256\" + \"AES256-GCM-SHA384\" + \"AES256-SHA256\" + \"ECDHE-ECDSA-AES128-SHA\" + \"ECDHE-RSA-AES128-SHA\" + \"ECDHE-RSA-AES256-SHA\" + \"ECDHE-ECDSA-AES256-SHA\" + \"AES128-SHA\" + \"AES256-SHA\" + __ https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails __ https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite """ @@ -225,6 +299,12 @@ def name(self): * oci-compatible-ssl-cipher-suite-v1 * oci-wider-compatible-ssl-cipher-suite-v1 * oci-customized-ssl-cipher-suite + * oci-default-http2-ssl-cipher-suite-v1 + * oci-default-http2-tls-13-ssl-cipher-suite-v1 + * oci-default-http2-tls-12-13-ssl-cipher-suite-v1 + * oci-tls-13-recommended-ssl-cipher-suite-v1 + * oci-tls-12-13-wider-ssl-cipher-suite-v1 + * oci-tls-11-12-13-wider-ssl-cipher-suite-v1 example: `example_cipher_suite` @@ -248,6 +328,12 @@ def name(self, name): * oci-compatible-ssl-cipher-suite-v1 * oci-wider-compatible-ssl-cipher-suite-v1 * oci-customized-ssl-cipher-suite + * oci-default-http2-ssl-cipher-suite-v1 + * oci-default-http2-tls-13-ssl-cipher-suite-v1 + * oci-default-http2-tls-12-13-ssl-cipher-suite-v1 + * oci-tls-13-recommended-ssl-cipher-suite-v1 + * oci-tls-12-13-wider-ssl-cipher-suite-v1 + * oci-tls-11-12-13-wider-ssl-cipher-suite-v1 example: `example_cipher_suite` @@ -265,6 +351,14 @@ def ciphers(self): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" @@ -382,6 +476,14 @@ def ciphers(self, ciphers): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" diff --git a/src/oci/load_balancer/models/ssl_cipher_suite.py b/src/oci/load_balancer/models/ssl_cipher_suite.py index 5a94367f53..e0c6c75b75 100644 --- a/src/oci/load_balancer/models/ssl_cipher_suite.py +++ b/src/oci/load_balancer/models/ssl_cipher_suite.py @@ -180,6 +180,80 @@ class SSLCipherSuite(object): \"RC4-SHA\" \"SEED-SHA\" + * __oci-default-http2-ssl-cipher-suite-v1__ + + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"DHE-RSA-AES256-GCM-SHA384\" + \"DHE-RSA-AES128-GCM-SHA256\" + + * __oci-default-http2-tls-13-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-default-http2-tls-12-13-ssl-cipher-suite-v1__ + + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"DHE-RSA-AES256-GCM-SHA384\" + \"DHE-RSA-AES128-GCM-SHA256\" + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-tls-13-recommended-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-tls-12-13-wider-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-SHA256\" + \"ECDHE-RSA-AES128-SHA256\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-SHA384\" + \"ECDHE-RSA-AES256-SHA384\" + \"AES128-GCM-SHA256\" + \"AES128-SHA256\" + \"AES256-GCM-SHA384\" + \"AES256-SHA256\" + + * __oci-tls-11-12-13-wider-ssl-cipher-suite-v1__ + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-SHA256\" + \"ECDHE-RSA-AES128-SHA256\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-SHA384\" + \"ECDHE-RSA-AES256-SHA384\" + \"AES128-GCM-SHA256\" + \"AES128-SHA256\" + \"AES256-GCM-SHA384\" + \"AES256-SHA256\" + \"ECDHE-ECDSA-AES128-SHA\" + \"ECDHE-RSA-AES128-SHA\" + \"ECDHE-RSA-AES256-SHA\" + \"ECDHE-ECDSA-AES256-SHA\" + \"AES128-SHA\" + \"AES256-SHA\" + __ https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails __ https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite """ @@ -225,6 +299,12 @@ def name(self): * oci-compatible-ssl-cipher-suite-v1 * oci-wider-compatible-ssl-cipher-suite-v1 * oci-customized-ssl-cipher-suite + * oci-default-http2-ssl-cipher-suite-v1 + * oci-default-http2-tls-13-ssl-cipher-suite-v1 + * oci-default-http2-tls-12-13-ssl-cipher-suite-v1 + * oci-tls-13-recommended-ssl-cipher-suite-v1 + * oci-tls-12-13-wider-ssl-cipher-suite-v1 + * oci-tls-11-12-13-wider-ssl-cipher-suite-v1 example: `example_cipher_suite` @@ -248,6 +328,12 @@ def name(self, name): * oci-compatible-ssl-cipher-suite-v1 * oci-wider-compatible-ssl-cipher-suite-v1 * oci-customized-ssl-cipher-suite + * oci-default-http2-ssl-cipher-suite-v1 + * oci-default-http2-tls-13-ssl-cipher-suite-v1 + * oci-default-http2-tls-12-13-ssl-cipher-suite-v1 + * oci-tls-13-recommended-ssl-cipher-suite-v1 + * oci-tls-12-13-wider-ssl-cipher-suite-v1 + * oci-tls-11-12-13-wider-ssl-cipher-suite-v1 example: `example_cipher_suite` @@ -265,6 +351,14 @@ def ciphers(self): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" @@ -382,6 +476,14 @@ def ciphers(self, ciphers): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" diff --git a/src/oci/load_balancer/models/ssl_cipher_suite_details.py b/src/oci/load_balancer/models/ssl_cipher_suite_details.py index 8edbb4d5c1..004917568b 100644 --- a/src/oci/load_balancer/models/ssl_cipher_suite_details.py +++ b/src/oci/load_balancer/models/ssl_cipher_suite_details.py @@ -180,6 +180,80 @@ class SSLCipherSuiteDetails(object): \"RC4-SHA\" \"SEED-SHA\" + * __oci-default-http2-ssl-cipher-suite-v1__ + + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"DHE-RSA-AES256-GCM-SHA384\" + \"DHE-RSA-AES128-GCM-SHA256\" + + * __oci-default-http2-tls-13-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-default-http2-tls-12-13-ssl-cipher-suite-v1__ + + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"DHE-RSA-AES256-GCM-SHA384\" + \"DHE-RSA-AES128-GCM-SHA256\" + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-tls-13-recommended-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + + * __oci-tls-12-13-wider-ssl-cipher-suite-v1__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-SHA256\" + \"ECDHE-RSA-AES128-SHA256\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-SHA384\" + \"ECDHE-RSA-AES256-SHA384\" + \"AES128-GCM-SHA256\" + \"AES128-SHA256\" + \"AES256-GCM-SHA384\" + \"AES256-SHA256\" + + * __oci-tls-11-12-13-wider-ssl-cipher-suite-v1__ + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"ECDHE-ECDSA-AES128-GCM-SHA256\" + \"ECDHE-RSA-AES128-GCM-SHA256\" + \"ECDHE-ECDSA-AES128-SHA256\" + \"ECDHE-RSA-AES128-SHA256\" + \"ECDHE-ECDSA-AES256-GCM-SHA384\" + \"ECDHE-RSA-AES256-GCM-SHA384\" + \"ECDHE-ECDSA-AES256-SHA384\" + \"ECDHE-RSA-AES256-SHA384\" + \"AES128-GCM-SHA256\" + \"AES128-SHA256\" + \"AES256-GCM-SHA384\" + \"AES256-SHA256\" + \"ECDHE-ECDSA-AES128-SHA\" + \"ECDHE-RSA-AES128-SHA\" + \"ECDHE-RSA-AES256-SHA\" + \"ECDHE-ECDSA-AES256-SHA\" + \"AES128-SHA\" + \"AES256-SHA\" + __ https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/datatypes/SSLConfigurationDetails __ https://docs.cloud.oracle.com/api/#/en/loadbalancer/20170115/SSLCipherSuite/CreateSSLCipherSuite """ @@ -225,6 +299,12 @@ def name(self): * oci-compatible-ssl-cipher-suite-v1 * oci-wider-compatible-ssl-cipher-suite-v1 * oci-customized-ssl-cipher-suite + * oci-default-http2-ssl-cipher-suite-v1 + * oci-default-http2-tls-13-ssl-cipher-suite-v1 + * oci-default-http2-tls-12-13-ssl-cipher-suite-v1 + * oci-tls-13-recommended-ssl-cipher-suite-v1 + * oci-tls-12-13-wider-ssl-cipher-suite-v1 + * oci-tls-11-12-13-wider-ssl-cipher-suite-v1 example: `example_cipher_suite` @@ -248,6 +328,12 @@ def name(self, name): * oci-compatible-ssl-cipher-suite-v1 * oci-wider-compatible-ssl-cipher-suite-v1 * oci-customized-ssl-cipher-suite + * oci-default-http2-ssl-cipher-suite-v1 + * oci-default-http2-tls-13-ssl-cipher-suite-v1 + * oci-default-http2-tls-12-13-ssl-cipher-suite-v1 + * oci-tls-13-recommended-ssl-cipher-suite-v1 + * oci-tls-12-13-wider-ssl-cipher-suite-v1 + * oci-tls-11-12-13-wider-ssl-cipher-suite-v1 example: `example_cipher_suite` @@ -265,6 +351,14 @@ def ciphers(self): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" @@ -382,6 +476,14 @@ def ciphers(self, ciphers): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" diff --git a/src/oci/load_balancer/models/ssl_configuration.py b/src/oci/load_balancer/models/ssl_configuration.py index 51be5de2f5..1ca624c488 100644 --- a/src/oci/load_balancer/models/ssl_configuration.py +++ b/src/oci/load_balancer/models/ssl_configuration.py @@ -366,6 +366,7 @@ def protocols(self): * TLSv1 * TLSv1.1 * TLSv1.2 + * TLSv1.3 If this field is not specified, TLSv1.2 is the default. @@ -401,6 +402,7 @@ def protocols(self, protocols): * TLSv1 * TLSv1.1 * TLSv1.2 + * TLSv1.3 If this field is not specified, TLSv1.2 is the default. diff --git a/src/oci/load_balancer/models/ssl_configuration_details.py b/src/oci/load_balancer/models/ssl_configuration_details.py index 47f4191ffe..f6253a74ed 100644 --- a/src/oci/load_balancer/models/ssl_configuration_details.py +++ b/src/oci/load_balancer/models/ssl_configuration_details.py @@ -253,6 +253,7 @@ def protocols(self): * TLSv1 * TLSv1.1 * TLSv1.2 + * TLSv1.3 If this field is not specified, TLSv1.2 is the default. @@ -288,6 +289,7 @@ def protocols(self, protocols): * TLSv1 * TLSv1.1 * TLSv1.2 + * TLSv1.3 If this field is not specified, TLSv1.2 is the default. diff --git a/src/oci/load_balancer/models/update_ssl_cipher_suite_details.py b/src/oci/load_balancer/models/update_ssl_cipher_suite_details.py index 093b30ee40..36315f37de 100644 --- a/src/oci/load_balancer/models/update_ssl_cipher_suite_details.py +++ b/src/oci/load_balancer/models/update_ssl_cipher_suite_details.py @@ -45,6 +45,14 @@ def ciphers(self): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" @@ -162,6 +170,14 @@ def ciphers(self, ciphers): The following ciphers are valid values for this property: + * __TLSv1.3 ciphers__ + + \"TLS-AES-128-GCM-SHA256\" + \"TLS-AES-256-GCM-SHA384\" + \"TLS-CHACHA20-POLY1305-SHA256\" + \"TLS-AES-128-CCM-SHA256\" + \"TLS-AES-128-CCM-8-SHA256\" + * __TLSv1.2 ciphers__ \"AES128-GCM-SHA256\" diff --git a/src/oci/network_load_balancer/models/create_network_load_balancer_details.py b/src/oci/network_load_balancer/models/create_network_load_balancer_details.py index 14587626e0..65f831afc1 100644 --- a/src/oci/network_load_balancer/models/create_network_load_balancer_details.py +++ b/src/oci/network_load_balancer/models/create_network_load_balancer_details.py @@ -37,6 +37,10 @@ class CreateNetworkLoadBalancerDetails(object): #: This constant has a value of "IPV4_AND_IPV6" NLB_IP_VERSION_IPV4_AND_IPV6 = "IPV4_AND_IPV6" + #: A constant which can be used with the nlb_ip_version property of a CreateNetworkLoadBalancerDetails. + #: This constant has a value of "IPV6" + NLB_IP_VERSION_IPV6 = "IPV6" + def __init__(self, **kwargs): """ Initializes a new CreateNetworkLoadBalancerDetails object with values from keyword arguments. @@ -76,9 +80,21 @@ def __init__(self, **kwargs): :param nlb_ip_version: The value to assign to the nlb_ip_version property of this CreateNetworkLoadBalancerDetails. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6" + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6" :type nlb_ip_version: str + :param subnet_ipv6_cidr: + The value to assign to the subnet_ipv6_cidr property of this CreateNetworkLoadBalancerDetails. + :type subnet_ipv6_cidr: str + + :param assigned_private_ipv4: + The value to assign to the assigned_private_ipv4 property of this CreateNetworkLoadBalancerDetails. + :type assigned_private_ipv4: str + + :param assigned_ipv6: + The value to assign to the assigned_ipv6 property of this CreateNetworkLoadBalancerDetails. + :type assigned_ipv6: str + :param listeners: The value to assign to the listeners property of this CreateNetworkLoadBalancerDetails. :type listeners: dict(str, ListenerDetails) @@ -106,6 +122,9 @@ def __init__(self, **kwargs): 'subnet_id': 'str', 'network_security_group_ids': 'list[str]', 'nlb_ip_version': 'str', + 'subnet_ipv6_cidr': 'str', + 'assigned_private_ipv4': 'str', + 'assigned_ipv6': 'str', 'listeners': 'dict(str, ListenerDetails)', 'backend_sets': 'dict(str, BackendSetDetails)', 'freeform_tags': 'dict(str, str)', @@ -122,6 +141,9 @@ def __init__(self, **kwargs): 'subnet_id': 'subnetId', 'network_security_group_ids': 'networkSecurityGroupIds', 'nlb_ip_version': 'nlbIpVersion', + 'subnet_ipv6_cidr': 'subnetIpv6Cidr', + 'assigned_private_ipv4': 'assignedPrivateIpv4', + 'assigned_ipv6': 'assignedIpv6', 'listeners': 'listeners', 'backend_sets': 'backendSets', 'freeform_tags': 'freeformTags', @@ -137,6 +159,9 @@ def __init__(self, **kwargs): self._subnet_id = None self._network_security_group_ids = None self._nlb_ip_version = None + self._subnet_ipv6_cidr = None + self._assigned_private_ipv4 = None + self._assigned_ipv6 = None self._listeners = None self._backend_sets = None self._freeform_tags = None @@ -410,7 +435,7 @@ def nlb_ip_version(self): Gets the nlb_ip_version of this CreateNetworkLoadBalancerDetails. IP version associated with the NLB. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6" + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6" :return: The nlb_ip_version of this CreateNetworkLoadBalancerDetails. @@ -428,13 +453,93 @@ def nlb_ip_version(self, nlb_ip_version): :param nlb_ip_version: The nlb_ip_version of this CreateNetworkLoadBalancerDetails. :type: str """ - allowed_values = ["IPV4", "IPV4_AND_IPV6"] + allowed_values = ["IPV4", "IPV4_AND_IPV6", "IPV6"] if not value_allowed_none_or_none_sentinel(nlb_ip_version, allowed_values): raise ValueError( f"Invalid value for `nlb_ip_version`, must be None or one of {allowed_values}" ) self._nlb_ip_version = nlb_ip_version + @property + def subnet_ipv6_cidr(self): + """ + Gets the subnet_ipv6_cidr of this CreateNetworkLoadBalancerDetails. + IPv6 subnet prefix selection. If Ipv6 subnet prefix is passed, Nlb Ipv6 Address would be assign within the cidr block. NLB has to be dual or single stack ipv6 to support this. + + + :return: The subnet_ipv6_cidr of this CreateNetworkLoadBalancerDetails. + :rtype: str + """ + return self._subnet_ipv6_cidr + + @subnet_ipv6_cidr.setter + def subnet_ipv6_cidr(self, subnet_ipv6_cidr): + """ + Sets the subnet_ipv6_cidr of this CreateNetworkLoadBalancerDetails. + IPv6 subnet prefix selection. If Ipv6 subnet prefix is passed, Nlb Ipv6 Address would be assign within the cidr block. NLB has to be dual or single stack ipv6 to support this. + + + :param subnet_ipv6_cidr: The subnet_ipv6_cidr of this CreateNetworkLoadBalancerDetails. + :type: str + """ + self._subnet_ipv6_cidr = subnet_ipv6_cidr + + @property + def assigned_private_ipv4(self): + """ + Gets the assigned_private_ipv4 of this CreateNetworkLoadBalancerDetails. + Private IP address to be assigned to the network load balancer being created. + This IP address has to be in the CIDR range of the subnet where network load balancer is being created + Example: \"10.0.0.1\" + + + :return: The assigned_private_ipv4 of this CreateNetworkLoadBalancerDetails. + :rtype: str + """ + return self._assigned_private_ipv4 + + @assigned_private_ipv4.setter + def assigned_private_ipv4(self, assigned_private_ipv4): + """ + Sets the assigned_private_ipv4 of this CreateNetworkLoadBalancerDetails. + Private IP address to be assigned to the network load balancer being created. + This IP address has to be in the CIDR range of the subnet where network load balancer is being created + Example: \"10.0.0.1\" + + + :param assigned_private_ipv4: The assigned_private_ipv4 of this CreateNetworkLoadBalancerDetails. + :type: str + """ + self._assigned_private_ipv4 = assigned_private_ipv4 + + @property + def assigned_ipv6(self): + """ + Gets the assigned_ipv6 of this CreateNetworkLoadBalancerDetails. + IPv6 address to be assigned to the network load balancer being created. + This IP address has to be part of one of the prefixes supported by the subnet. + Example: \"2607:9b80:9a0a:9a7e:abcd:ef01:2345:6789\" + + + :return: The assigned_ipv6 of this CreateNetworkLoadBalancerDetails. + :rtype: str + """ + return self._assigned_ipv6 + + @assigned_ipv6.setter + def assigned_ipv6(self, assigned_ipv6): + """ + Sets the assigned_ipv6 of this CreateNetworkLoadBalancerDetails. + IPv6 address to be assigned to the network load balancer being created. + This IP address has to be part of one of the prefixes supported by the subnet. + Example: \"2607:9b80:9a0a:9a7e:abcd:ef01:2345:6789\" + + + :param assigned_ipv6: The assigned_ipv6 of this CreateNetworkLoadBalancerDetails. + :type: str + """ + self._assigned_ipv6 = assigned_ipv6 + @property def listeners(self): """ diff --git a/src/oci/network_load_balancer/models/network_load_balancer.py b/src/oci/network_load_balancer/models/network_load_balancer.py index 6980eb513a..3cb7e89ca5 100644 --- a/src/oci/network_load_balancer/models/network_load_balancer.py +++ b/src/oci/network_load_balancer/models/network_load_balancer.py @@ -61,6 +61,10 @@ class NetworkLoadBalancer(object): #: This constant has a value of "IPV4_AND_IPV6" NLB_IP_VERSION_IPV4_AND_IPV6 = "IPV4_AND_IPV6" + #: A constant which can be used with the nlb_ip_version property of a NetworkLoadBalancer. + #: This constant has a value of "IPV6" + NLB_IP_VERSION_IPV6 = "IPV6" + def __init__(self, **kwargs): """ Initializes a new NetworkLoadBalancer object with values from keyword arguments. @@ -90,7 +94,7 @@ def __init__(self, **kwargs): :param nlb_ip_version: The value to assign to the nlb_ip_version property of this NetworkLoadBalancer. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type nlb_ip_version: str @@ -357,7 +361,7 @@ def nlb_ip_version(self): Gets the nlb_ip_version of this NetworkLoadBalancer. IP version associated with the NLB. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -376,7 +380,7 @@ def nlb_ip_version(self, nlb_ip_version): :param nlb_ip_version: The nlb_ip_version of this NetworkLoadBalancer. :type: str """ - allowed_values = ["IPV4", "IPV4_AND_IPV6"] + allowed_values = ["IPV4", "IPV4_AND_IPV6", "IPV6"] if not value_allowed_none_or_none_sentinel(nlb_ip_version, allowed_values): nlb_ip_version = 'UNKNOWN_ENUM_VALUE' self._nlb_ip_version = nlb_ip_version diff --git a/src/oci/network_load_balancer/models/network_load_balancer_summary.py b/src/oci/network_load_balancer/models/network_load_balancer_summary.py index e516670a05..39d2186ee5 100644 --- a/src/oci/network_load_balancer/models/network_load_balancer_summary.py +++ b/src/oci/network_load_balancer/models/network_load_balancer_summary.py @@ -47,6 +47,10 @@ class NetworkLoadBalancerSummary(object): #: This constant has a value of "IPV4_AND_IPV6" NLB_IP_VERSION_IPV4_AND_IPV6 = "IPV4_AND_IPV6" + #: A constant which can be used with the nlb_ip_version property of a NetworkLoadBalancerSummary. + #: This constant has a value of "IPV6" + NLB_IP_VERSION_IPV6 = "IPV6" + def __init__(self, **kwargs): """ Initializes a new NetworkLoadBalancerSummary object with values from keyword arguments. @@ -76,7 +80,7 @@ def __init__(self, **kwargs): :param nlb_ip_version: The value to assign to the nlb_ip_version property of this NetworkLoadBalancerSummary. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type nlb_ip_version: str @@ -343,7 +347,7 @@ def nlb_ip_version(self): Gets the nlb_ip_version of this NetworkLoadBalancerSummary. IP version associated with the NLB. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -362,7 +366,7 @@ def nlb_ip_version(self, nlb_ip_version): :param nlb_ip_version: The nlb_ip_version of this NetworkLoadBalancerSummary. :type: str """ - allowed_values = ["IPV4", "IPV4_AND_IPV6"] + allowed_values = ["IPV4", "IPV4_AND_IPV6", "IPV6"] if not value_allowed_none_or_none_sentinel(nlb_ip_version, allowed_values): nlb_ip_version = 'UNKNOWN_ENUM_VALUE' self._nlb_ip_version = nlb_ip_version diff --git a/src/oci/network_load_balancer/models/update_network_load_balancer_details.py b/src/oci/network_load_balancer/models/update_network_load_balancer_details.py index 6328a56ea7..470b5856c1 100644 --- a/src/oci/network_load_balancer/models/update_network_load_balancer_details.py +++ b/src/oci/network_load_balancer/models/update_network_load_balancer_details.py @@ -25,6 +25,10 @@ class UpdateNetworkLoadBalancerDetails(object): #: This constant has a value of "IPV4_AND_IPV6" NLB_IP_VERSION_IPV4_AND_IPV6 = "IPV4_AND_IPV6" + #: A constant which can be used with the nlb_ip_version property of a UpdateNetworkLoadBalancerDetails. + #: This constant has a value of "IPV6" + NLB_IP_VERSION_IPV6 = "IPV6" + def __init__(self, **kwargs): """ Initializes a new UpdateNetworkLoadBalancerDetails object with values from keyword arguments. @@ -44,9 +48,17 @@ def __init__(self, **kwargs): :param nlb_ip_version: The value to assign to the nlb_ip_version property of this UpdateNetworkLoadBalancerDetails. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6" + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6" :type nlb_ip_version: str + :param subnet_ipv6_cidr: + The value to assign to the subnet_ipv6_cidr property of this UpdateNetworkLoadBalancerDetails. + :type subnet_ipv6_cidr: str + + :param assigned_ipv6: + The value to assign to the assigned_ipv6 property of this UpdateNetworkLoadBalancerDetails. + :type assigned_ipv6: str + :param freeform_tags: The value to assign to the freeform_tags property of this UpdateNetworkLoadBalancerDetails. :type freeform_tags: dict(str, str) @@ -61,6 +73,8 @@ def __init__(self, **kwargs): 'is_preserve_source_destination': 'bool', 'is_symmetric_hash_enabled': 'bool', 'nlb_ip_version': 'str', + 'subnet_ipv6_cidr': 'str', + 'assigned_ipv6': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } @@ -70,6 +84,8 @@ def __init__(self, **kwargs): 'is_preserve_source_destination': 'isPreserveSourceDestination', 'is_symmetric_hash_enabled': 'isSymmetricHashEnabled', 'nlb_ip_version': 'nlbIpVersion', + 'subnet_ipv6_cidr': 'subnetIpv6Cidr', + 'assigned_ipv6': 'assignedIpv6', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } @@ -78,6 +94,8 @@ def __init__(self, **kwargs): self._is_preserve_source_destination = None self._is_symmetric_hash_enabled = None self._nlb_ip_version = None + self._subnet_ipv6_cidr = None + self._assigned_ipv6 = None self._freeform_tags = None self._defined_tags = None @@ -169,7 +187,7 @@ def nlb_ip_version(self): Gets the nlb_ip_version of this UpdateNetworkLoadBalancerDetails. IP version associated with the NLB. - Allowed values for this property are: "IPV4", "IPV4_AND_IPV6" + Allowed values for this property are: "IPV4", "IPV4_AND_IPV6", "IPV6" :return: The nlb_ip_version of this UpdateNetworkLoadBalancerDetails. @@ -187,13 +205,65 @@ def nlb_ip_version(self, nlb_ip_version): :param nlb_ip_version: The nlb_ip_version of this UpdateNetworkLoadBalancerDetails. :type: str """ - allowed_values = ["IPV4", "IPV4_AND_IPV6"] + allowed_values = ["IPV4", "IPV4_AND_IPV6", "IPV6"] if not value_allowed_none_or_none_sentinel(nlb_ip_version, allowed_values): raise ValueError( f"Invalid value for `nlb_ip_version`, must be None or one of {allowed_values}" ) self._nlb_ip_version = nlb_ip_version + @property + def subnet_ipv6_cidr(self): + """ + Gets the subnet_ipv6_cidr of this UpdateNetworkLoadBalancerDetails. + IPv6 subnet prefix selection. If Ipv6 subnet prefix is passed, Nlb Ipv6 Address would be assign within the cidr block. NLB has to be dual or single stack ipv6 to support this. + + + :return: The subnet_ipv6_cidr of this UpdateNetworkLoadBalancerDetails. + :rtype: str + """ + return self._subnet_ipv6_cidr + + @subnet_ipv6_cidr.setter + def subnet_ipv6_cidr(self, subnet_ipv6_cidr): + """ + Sets the subnet_ipv6_cidr of this UpdateNetworkLoadBalancerDetails. + IPv6 subnet prefix selection. If Ipv6 subnet prefix is passed, Nlb Ipv6 Address would be assign within the cidr block. NLB has to be dual or single stack ipv6 to support this. + + + :param subnet_ipv6_cidr: The subnet_ipv6_cidr of this UpdateNetworkLoadBalancerDetails. + :type: str + """ + self._subnet_ipv6_cidr = subnet_ipv6_cidr + + @property + def assigned_ipv6(self): + """ + Gets the assigned_ipv6 of this UpdateNetworkLoadBalancerDetails. + IPv6 address to be assigned to the network load balancer being created. + This IP address has to be part of one of the prefixes supported by the subnet. + Example: \"2607:9b80:9a0a:9a7e:abcd:ef01:2345:6789\" + + + :return: The assigned_ipv6 of this UpdateNetworkLoadBalancerDetails. + :rtype: str + """ + return self._assigned_ipv6 + + @assigned_ipv6.setter + def assigned_ipv6(self, assigned_ipv6): + """ + Sets the assigned_ipv6 of this UpdateNetworkLoadBalancerDetails. + IPv6 address to be assigned to the network load balancer being created. + This IP address has to be part of one of the prefixes supported by the subnet. + Example: \"2607:9b80:9a0a:9a7e:abcd:ef01:2345:6789\" + + + :param assigned_ipv6: The assigned_ipv6 of this UpdateNetworkLoadBalancerDetails. + :type: str + """ + self._assigned_ipv6 = assigned_ipv6 + @property def freeform_tags(self): """ diff --git a/src/oci/opsi/operations_insights_client.py b/src/oci/opsi/operations_insights_client.py index d35ee7b5ce..ab065e5347 100644 --- a/src/oci/opsi/operations_insights_client.py +++ b/src/oci/opsi/operations_insights_client.py @@ -170,7 +170,7 @@ def add_exadata_insight_members(self, add_exadata_insight_members_details, exada resource_path = "/exadataInsights/{exadataInsightId}/actions/addMembers" method = "POST" operation_name = "add_exadata_insight_members" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/AddExadataInsightMembers" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -290,7 +290,7 @@ def change_autonomous_database_insight_advanced_features(self, change_autonomous resource_path = "/databaseInsights/{databaseInsightId}/actions/changeAutonomousDatabaseInsightAdvancedFeatures" method = "POST" operation_name = "change_autonomous_database_insight_advanced_features" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeAutonomousDatabaseInsightAdvancedFeatures" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -410,7 +410,7 @@ def change_awr_hub_source_compartment(self, awr_hub_source_id, change_awr_hub_so resource_path = "/awrHubSources/{awrHubSourceId}/actions/changeCompartment" method = "POST" operation_name = "change_awr_hub_source_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/ChangeAwrHubSourceCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -530,7 +530,7 @@ def change_database_insight_compartment(self, database_insight_id, change_databa resource_path = "/databaseInsights/{databaseInsightId}/actions/changeCompartment" method = "POST" operation_name = "change_database_insight_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeDatabaseInsightCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -642,7 +642,7 @@ def change_enterprise_manager_bridge_compartment(self, enterprise_manager_bridge resource_path = "/enterpriseManagerBridges/{enterpriseManagerBridgeId}/actions/changeCompartment" method = "POST" operation_name = "change_enterprise_manager_bridge_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ChangeEnterpriseManagerBridgeCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -759,7 +759,7 @@ def change_exadata_insight_compartment(self, exadata_insight_id, change_exadata_ resource_path = "/exadataInsights/{exadataInsightId}/actions/changeCompartment" method = "POST" operation_name = "change_exadata_insight_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ChangeExadataInsightCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -879,7 +879,7 @@ def change_host_insight_compartment(self, host_insight_id, change_host_insight_c resource_path = "/hostInsights/{hostInsightId}/actions/changeCompartment" method = "POST" operation_name = "change_host_insight_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ChangeHostInsightCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -999,7 +999,7 @@ def change_news_report_compartment(self, news_report_id, change_news_report_comp resource_path = "/newsReports/{newsReportId}/actions/changeCompartment" method = "POST" operation_name = "change_news_report_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/ChangeNewsReportCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1121,7 +1121,7 @@ def change_operations_insights_private_endpoint_compartment(self, operations_ins resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}/actions/changeCompartment" method = "POST" operation_name = "change_operations_insights_private_endpoint_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/ChangeOperationsInsightsPrivateEndpointCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1241,7 +1241,7 @@ def change_operations_insights_warehouse_compartment(self, operations_insights_w resource_path = "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/changeCompartment" method = "POST" operation_name = "change_operations_insights_warehouse_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/ChangeOperationsInsightsWarehouseCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1363,7 +1363,7 @@ def change_opsi_configuration_compartment(self, opsi_configuration_id, change_op resource_path = "/opsiConfigurations/{opsiConfigurationId}/actions/changeCompartment" method = "POST" operation_name = "change_opsi_configuration_compartment" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/ChangeOpsiConfigurationCompartment" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1483,7 +1483,7 @@ def change_pe_comanaged_database_insight(self, database_insight_id, change_pe_co resource_path = "/databaseInsights/{databaseInsightId}/actions/changePeComanagedDatabaseInsightDetails" method = "POST" operation_name = "change_pe_comanaged_database_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangePeComanagedDatabaseInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1596,7 +1596,7 @@ def create_awr_hub(self, create_awr_hub_details, **kwargs): resource_path = "/awrHubs" method = "POST" operation_name = "create_awr_hub" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/CreateAwrHub" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1696,7 +1696,7 @@ def create_awr_hub_source(self, create_awr_hub_source_details, **kwargs): resource_path = "/awrHubSources" method = "POST" operation_name = "create_awr_hub_source" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/CreateAwrHubSource" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1796,7 +1796,7 @@ def create_database_insight(self, create_database_insight_details, **kwargs): resource_path = "/databaseInsights" method = "POST" operation_name = "create_database_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/CreateDatabaseInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1896,7 +1896,7 @@ def create_enterprise_manager_bridge(self, create_enterprise_manager_bridge_deta resource_path = "/enterpriseManagerBridges" method = "POST" operation_name = "create_enterprise_manager_bridge" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/CreateEnterpriseManagerBridge" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1996,7 +1996,7 @@ def create_exadata_insight(self, create_exadata_insight_details, **kwargs): resource_path = "/exadataInsights" method = "POST" operation_name = "create_exadata_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/CreateExadataInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2096,7 +2096,7 @@ def create_host_insight(self, create_host_insight_details, **kwargs): resource_path = "/hostInsights" method = "POST" operation_name = "create_host_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/CreateHostInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2196,7 +2196,7 @@ def create_news_report(self, create_news_report_details, **kwargs): resource_path = "/newsReports" method = "POST" operation_name = "create_news_report" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/CreateNewsReport" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2297,7 +2297,7 @@ def create_operations_insights_private_endpoint(self, create_operations_insights resource_path = "/operationsInsightsPrivateEndpoints" method = "POST" operation_name = "create_operations_insights_private_endpoint" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/CreateOperationsInsightsPrivateEndpoint" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2399,7 +2399,7 @@ def create_operations_insights_warehouse(self, create_operations_insights_wareho resource_path = "/operationsInsightsWarehouses" method = "POST" operation_name = "create_operations_insights_warehouse" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/CreateOperationsInsightsWarehouse" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2500,7 +2500,7 @@ def create_operations_insights_warehouse_user(self, create_operations_insights_w resource_path = "/operationsInsightsWarehouseUsers" method = "POST" operation_name = "create_operations_insights_warehouse_user" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/CreateOperationsInsightsWarehouseUser" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2619,7 +2619,7 @@ def create_opsi_configuration(self, create_opsi_configuration_details, **kwargs) resource_path = "/opsiConfigurations" method = "POST" operation_name = "create_opsi_configuration" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/CreateOpsiConfiguration" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2754,7 +2754,7 @@ def delete_awr_hub(self, awr_hub_id, **kwargs): resource_path = "/awrHubs/{awrHubId}" method = "DELETE" operation_name = "delete_awr_hub" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/DeleteAwrHub" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2861,7 +2861,7 @@ def delete_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): resource_path = "/awrHubObjects/awrHubSources/{awrHubSourceId}/o/{objectName}" method = "DELETE" operation_name = "delete_awr_hub_object" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/DeleteAwrHubObject" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2966,7 +2966,7 @@ def delete_awr_hub_source(self, awr_hub_source_id, **kwargs): resource_path = "/awrHubSources/{awrHubSourceId}" method = "DELETE" operation_name = "delete_awr_hub_source" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/DeleteAwrHubSource" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3070,7 +3070,7 @@ def delete_database_insight(self, database_insight_id, **kwargs): resource_path = "/databaseInsights/{databaseInsightId}" method = "DELETE" operation_name = "delete_database_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DeleteDatabaseInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3174,7 +3174,7 @@ def delete_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwarg resource_path = "/enterpriseManagerBridges/{enterpriseManagerBridgeId}" method = "DELETE" operation_name = "delete_enterprise_manager_bridge" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/DeleteEnterpriseManagerBridge" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3278,7 +3278,7 @@ def delete_exadata_insight(self, exadata_insight_id, **kwargs): resource_path = "/exadataInsights/{exadataInsightId}" method = "DELETE" operation_name = "delete_exadata_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/DeleteExadataInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3382,7 +3382,7 @@ def delete_host_insight(self, host_insight_id, **kwargs): resource_path = "/hostInsights/{hostInsightId}" method = "DELETE" operation_name = "delete_host_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/DeleteHostInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3486,7 +3486,7 @@ def delete_news_report(self, news_report_id, **kwargs): resource_path = "/newsReports/{newsReportId}" method = "DELETE" operation_name = "delete_news_report" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/DeleteNewsReport" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3592,7 +3592,7 @@ def delete_operations_insights_private_endpoint(self, operations_insights_privat resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}" method = "DELETE" operation_name = "delete_operations_insights_private_endpoint" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/DeleteOperationsInsightsPrivateEndpoint" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3699,7 +3699,7 @@ def delete_operations_insights_warehouse(self, operations_insights_warehouse_id, resource_path = "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}" method = "DELETE" operation_name = "delete_operations_insights_warehouse" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/DeleteOperationsInsightsWarehouse" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3803,7 +3803,7 @@ def delete_operations_insights_warehouse_user(self, operations_insights_warehous resource_path = "/operationsInsightsWarehouseUsers/{operationsInsightsWarehouseUserId}" method = "DELETE" operation_name = "delete_operations_insights_warehouse_user" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/DeleteOperationsInsightsWarehouseUser" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3909,7 +3909,7 @@ def delete_opsi_configuration(self, opsi_configuration_id, **kwargs): resource_path = "/opsiConfigurations/{opsiConfigurationId}" method = "DELETE" operation_name = "delete_opsi_configuration" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/DeleteOpsiConfiguration" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4021,7 +4021,7 @@ def disable_autonomous_database_insight_advanced_features(self, database_insight resource_path = "/databaseInsights/{databaseInsightId}/actions/disableAutonomousDatabaseInsightAdvancedFeatures" method = "POST" operation_name = "disable_autonomous_database_insight_advanced_features" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DisableAutonomousDatabaseInsightAdvancedFeatures" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4136,7 +4136,7 @@ def disable_awr_hub_source(self, awr_hub_source_id, **kwargs): resource_path = "/awrHubSources/{awrHubSourceId}/actions/disable" method = "POST" operation_name = "disable_awr_hub_source" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/DisableAwrHubSource" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4251,7 +4251,7 @@ def disable_database_insight(self, database_insight_id, **kwargs): resource_path = "/databaseInsights/{databaseInsightId}/actions/disable" method = "POST" operation_name = "disable_database_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DisableDatabaseInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4366,7 +4366,7 @@ def disable_exadata_insight(self, exadata_insight_id, **kwargs): resource_path = "/exadataInsights/{exadataInsightId}/actions/disable" method = "POST" operation_name = "disable_exadata_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/DisableExadataInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4481,7 +4481,7 @@ def disable_host_insight(self, host_insight_id, **kwargs): resource_path = "/hostInsights/{hostInsightId}/actions/disable" method = "POST" operation_name = "disable_host_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/DisableHostInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4594,7 +4594,7 @@ def download_operations_insights_warehouse_wallet(self, operations_insights_ware resource_path = "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/downloadWarehouseWallet" method = "POST" operation_name = "download_operations_insights_warehouse_wallet" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/DownloadOperationsInsightsWarehouseWallet" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4714,7 +4714,7 @@ def enable_autonomous_database_insight_advanced_features(self, enable_autonomous resource_path = "/databaseInsights/{databaseInsightId}/actions/enableAutonomousDatabaseInsightAdvancedFeatures" method = "POST" operation_name = "enable_autonomous_database_insight_advanced_features" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/EnableAutonomousDatabaseInsightAdvancedFeatures" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4831,7 +4831,7 @@ def enable_awr_hub_source(self, awr_hub_source_id, **kwargs): resource_path = "/awrHubSources/{awrHubSourceId}/actions/enable" method = "POST" operation_name = "enable_awr_hub_source" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/EnableAwrHubSource" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4949,7 +4949,7 @@ def enable_database_insight(self, enable_database_insight_details, database_insi resource_path = "/databaseInsights/{databaseInsightId}/actions/enable" method = "POST" operation_name = "enable_database_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/EnableDatabaseInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5069,7 +5069,7 @@ def enable_exadata_insight(self, enable_exadata_insight_details, exadata_insight resource_path = "/exadataInsights/{exadataInsightId}/actions/enable" method = "POST" operation_name = "enable_exadata_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/EnableExadataInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5189,7 +5189,7 @@ def enable_host_insight(self, enable_host_insight_details, host_insight_id, **kw resource_path = "/hostInsights/{hostInsightId}/actions/enable" method = "POST" operation_name = "enable_host_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/EnableHostInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5325,7 +5325,7 @@ def get_awr_database_report(self, awr_hub_id, awr_source_database_identifier, ** resource_path = "/awrHubs/{awrHubId}/awrDatabaseReport" method = "GET" operation_name = "get_awr_database_report" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrDatabaseReport" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5489,7 +5489,7 @@ def get_awr_database_sql_report(self, awr_hub_id, awr_source_database_identifier resource_path = "/awrHubs/{awrHubId}/awrDatabaseSqlReport" method = "GET" operation_name = "get_awr_database_sql_report" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrDatabaseSqlReport" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5615,7 +5615,7 @@ def get_awr_hub(self, awr_hub_id, **kwargs): resource_path = "/awrHubs/{awrHubId}" method = "GET" operation_name = "get_awr_hub" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrHub" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5717,7 +5717,7 @@ def get_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): resource_path = "/awrHubObjects/awrHubSources/{awrHubSourceId}/o/{objectName}" method = "GET" operation_name = "get_awr_hub_object" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/GetAwrHubObject" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5817,7 +5817,7 @@ def get_awr_hub_source(self, awr_hub_source_id, **kwargs): resource_path = "/awrHubSources/{awrHubSourceId}" method = "GET" operation_name = "get_awr_hub_source" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/GetAwrHubSource" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5940,7 +5940,7 @@ def get_awr_report(self, awr_hub_id, awr_source_database_identifier, **kwargs): resource_path = "/awrHubs/{awrHubId}/awrReport" method = "GET" operation_name = "get_awr_report" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrReport" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6065,7 +6065,7 @@ def get_database_insight(self, database_insight_id, **kwargs): resource_path = "/databaseInsights/{databaseInsightId}" method = "GET" operation_name = "get_database_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/GetDatabaseInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6164,7 +6164,7 @@ def get_enterprise_manager_bridge(self, enterprise_manager_bridge_id, **kwargs): resource_path = "/enterpriseManagerBridges/{enterpriseManagerBridgeId}" method = "GET" operation_name = "get_enterprise_manager_bridge" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/GetEnterpriseManagerBridge" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6263,7 +6263,7 @@ def get_exadata_insight(self, exadata_insight_id, **kwargs): resource_path = "/exadataInsights/{exadataInsightId}" method = "GET" operation_name = "get_exadata_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/GetExadataInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6362,7 +6362,7 @@ def get_host_insight(self, host_insight_id, **kwargs): resource_path = "/hostInsights/{hostInsightId}" method = "GET" operation_name = "get_host_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/GetHostInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6461,7 +6461,7 @@ def get_news_report(self, news_report_id, **kwargs): resource_path = "/newsReports/{newsReportId}" method = "GET" operation_name = "get_news_report" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/GetNewsReport" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6562,7 +6562,7 @@ def get_operations_insights_private_endpoint(self, operations_insights_private_e resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}" method = "GET" operation_name = "get_operations_insights_private_endpoint" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/GetOperationsInsightsPrivateEndpoint" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6662,7 +6662,7 @@ def get_operations_insights_warehouse(self, operations_insights_warehouse_id, ** resource_path = "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}" method = "GET" operation_name = "get_operations_insights_warehouse" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/GetOperationsInsightsWarehouse" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6761,7 +6761,7 @@ def get_operations_insights_warehouse_user(self, operations_insights_warehouse_u resource_path = "/operationsInsightsWarehouseUsers/{operationsInsightsWarehouseUserId}" method = "GET" operation_name = "get_operations_insights_warehouse_user" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/GetOperationsInsightsWarehouseUser" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -6883,7 +6883,7 @@ def get_opsi_configuration(self, opsi_configuration_id, **kwargs): resource_path = "/opsiConfigurations/{opsiConfigurationId}" method = "GET" operation_name = "get_opsi_configuration" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/GetOpsiConfiguration" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7025,7 +7025,7 @@ def get_opsi_data_object(self, compartment_id, opsi_data_object_identifier, **kw resource_path = "/opsiDataObjects/{opsiDataObjectIdentifier}" method = "GET" operation_name = "get_opsi_data_object" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/GetOpsiDataObject" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7131,7 +7131,7 @@ def get_work_request(self, work_request_id, **kwargs): resource_path = "/workRequests/{workRequestId}" method = "GET" operation_name = "get_work_request" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/GetWorkRequest" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7233,7 +7233,7 @@ def head_awr_hub_object(self, awr_hub_source_id, object_name, **kwargs): resource_path = "/awrHubObjects/awrHubSources/{awrHubSourceId}/o/{objectName}" method = "HEAD" operation_name = "head_awr_hub_object" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/HeadAwrHubObject" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7355,7 +7355,7 @@ def ingest_addm_reports(self, ingest_addm_reports_details, **kwargs): resource_path = "/databaseInsights/actions/ingestAddmReports" method = "POST" operation_name = "ingest_addm_reports" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestAddmReports" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7482,7 +7482,7 @@ def ingest_database_configuration(self, ingest_database_configuration_details, * resource_path = "/databaseInsights/actions/ingestDatabaseConfiguration" method = "POST" operation_name = "ingest_database_configuration" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestDatabaseConfiguration" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7604,7 +7604,7 @@ def ingest_host_configuration(self, id, ingest_host_configuration_details, **kwa resource_path = "/hostInsights/actions/ingestHostConfiguration" method = "POST" operation_name = "ingest_host_configuration" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/IngestHostConfiguration" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7723,7 +7723,7 @@ def ingest_host_metrics(self, id, ingest_host_metrics_details, **kwargs): resource_path = "/hostInsights/actions/ingestHostMetrics" method = "POST" operation_name = "ingest_host_metrics" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/IngestHostMetrics" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7853,7 +7853,7 @@ def ingest_sql_bucket(self, ingest_sql_bucket_details, **kwargs): resource_path = "/databaseInsights/actions/ingestSqlBucket" method = "POST" operation_name = "ingest_sql_bucket" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlBucket" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -7988,7 +7988,7 @@ def ingest_sql_plan_lines(self, ingest_sql_plan_lines_details, **kwargs): resource_path = "/databaseInsights/actions/ingestSqlPlanLines" method = "POST" operation_name = "ingest_sql_plan_lines" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlPlanLines" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -8118,7 +8118,7 @@ def ingest_sql_stats(self, ingest_sql_stats_details, **kwargs): resource_path = "/databaseInsights/actions/ingestSqlStatsMetric" method = "POST" operation_name = "ingest_sql_stats" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlStats" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -8252,7 +8252,7 @@ def ingest_sql_text(self, ingest_sql_text_details, **kwargs): resource_path = "/databaseInsights/actions/ingestSqlText" method = "POST" operation_name = "ingest_sql_text" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlText" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -8424,7 +8424,7 @@ def list_addm_db_finding_categories(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbFindingCategories" method = "GET" operation_name = "list_addm_db_finding_categories" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbFindingCategories" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -8639,7 +8639,7 @@ def list_addm_db_findings_time_series(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbFindingsTimeSeries" method = "GET" operation_name = "list_addm_db_findings_time_series" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbFindingsTimeSeries" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -8843,7 +8843,7 @@ def list_addm_db_parameter_categories(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbParameterCategories" method = "GET" operation_name = "list_addm_db_parameter_categories" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbParameterCategories" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -9039,7 +9039,7 @@ def list_addm_db_recommendation_categories(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbRecommendationCategories" method = "GET" operation_name = "list_addm_db_recommendation_categories" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbRecommendationCategories" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -9270,7 +9270,7 @@ def list_addm_db_recommendations_time_series(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbRecommendationsTimeSeries" method = "GET" operation_name = "list_addm_db_recommendations_time_series" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbRecommendationsTimeSeries" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -9495,7 +9495,7 @@ def list_addm_dbs(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbs" method = "GET" operation_name = "list_addm_dbs" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbs" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -9677,7 +9677,7 @@ def list_awr_database_snapshots(self, awr_hub_id, awr_source_database_identifier resource_path = "/awrHubs/{awrHubId}/awrDatabaseSnapshots" method = "GET" operation_name = "list_awr_database_snapshots" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrDatabaseSnapshots" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -9850,7 +9850,7 @@ def list_awr_databases(self, awr_hub_id, **kwargs): resource_path = "/awrHubs/{awrHubId}/awrDatabases" method = "GET" operation_name = "list_awr_databases" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrDatabases" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -10026,7 +10026,7 @@ def list_awr_hub_objects(self, awr_hub_source_id, **kwargs): resource_path = "/awrHubObjects/awrHubSources/{awrHubSourceId}/o" method = "GET" operation_name = "list_awr_hub_objects" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/ListAwrHubObjects" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -10207,7 +10207,7 @@ def list_awr_hub_sources(self, awr_hub_id, **kwargs): resource_path = "/awrHubSources" method = "GET" operation_name = "list_awr_hub_sources" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/ListAwrHubSources" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -10401,7 +10401,7 @@ def list_awr_hubs(self, operations_insights_warehouse_id, **kwargs): resource_path = "/awrHubs" method = "GET" operation_name = "list_awr_hubs" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrHubs" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -10569,7 +10569,7 @@ def list_awr_snapshots(self, awr_hub_id, awr_source_database_identifier, **kwarg resource_path = "/awrHubs/{awrHubId}/awrSnapshots" method = "GET" operation_name = "list_awr_snapshots" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrSnapshots" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -10791,7 +10791,7 @@ def list_database_configurations(self, **kwargs): resource_path = "/databaseInsights/databaseConfigurations" method = "GET" operation_name = "list_database_configurations" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListDatabaseConfigurations" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -11016,7 +11016,7 @@ def list_database_insights(self, **kwargs): resource_path = "/databaseInsights" method = "GET" operation_name = "list_database_insights" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListDatabaseInsights" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -11228,7 +11228,7 @@ def list_enterprise_manager_bridges(self, **kwargs): resource_path = "/enterpriseManagerBridges" method = "GET" operation_name = "list_enterprise_manager_bridges" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ListEnterpriseManagerBridges" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -11423,7 +11423,7 @@ def list_exadata_configurations(self, **kwargs): resource_path = "/exadataInsights/exadataConfigurations" method = "GET" operation_name = "list_exadata_configurations" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ListExadataConfigurations" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -11606,7 +11606,7 @@ def list_exadata_insights(self, **kwargs): resource_path = "/exadataInsights" method = "GET" operation_name = "list_exadata_insights" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ListExadataInsights" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -11841,7 +11841,7 @@ def list_host_configurations(self, **kwargs): resource_path = "/hostInsights/hostConfigurations" method = "GET" operation_name = "list_host_configurations" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostConfigurations" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -12057,7 +12057,7 @@ def list_host_insights(self, **kwargs): resource_path = "/hostInsights" method = "GET" operation_name = "list_host_insights" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostInsights" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -12288,7 +12288,7 @@ def list_hosted_entities(self, compartment_id, id, **kwargs): resource_path = "/hostInsights/hostedEntities" method = "GET" operation_name = "list_hosted_entities" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostedEntities" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -12459,7 +12459,7 @@ def list_importable_agent_entities(self, compartment_id, **kwargs): resource_path = "/importableAgentEntities" method = "GET" operation_name = "list_importable_agent_entities" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListImportableAgentEntities" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -12609,7 +12609,7 @@ def list_importable_compute_entities(self, compartment_id, **kwargs): resource_path = "/importableComputeEntities" method = "GET" operation_name = "list_importable_compute_entities" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListImportableComputeEntities" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -12750,7 +12750,7 @@ def list_importable_enterprise_manager_entities(self, enterprise_manager_bridge_ resource_path = "/enterpriseManagerBridges/{enterpriseManagerBridgeId}/importableEnterpriseManagerEntities" method = "GET" operation_name = "list_importable_enterprise_manager_entities" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ListImportableEnterpriseManagerEntities" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -12909,7 +12909,7 @@ def list_news_reports(self, **kwargs): resource_path = "/newsReports" method = "GET" operation_name = "list_news_reports" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReport/ListNewsReports" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -13100,7 +13100,7 @@ def list_operations_insights_private_endpoints(self, **kwargs): resource_path = "/operationsInsightsPrivateEndpoints" method = "GET" operation_name = "list_operations_insights_private_endpoints" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/ListOperationsInsightsPrivateEndpoints" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -13279,7 +13279,7 @@ def list_operations_insights_warehouse_users(self, operations_insights_warehouse resource_path = "/operationsInsightsWarehouseUsers" method = "GET" operation_name = "list_operations_insights_warehouse_users" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/ListOperationsInsightsWarehouseUsers" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -13451,7 +13451,7 @@ def list_operations_insights_warehouses(self, **kwargs): resource_path = "/operationsInsightsWarehouses" method = "GET" operation_name = "list_operations_insights_warehouses" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/ListOperationsInsightsWarehouses" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -13623,7 +13623,7 @@ def list_opsi_configurations(self, compartment_id, **kwargs): resource_path = "/opsiConfigurations" method = "GET" operation_name = "list_opsi_configurations" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/ListOpsiConfigurations" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -13803,7 +13803,7 @@ def list_opsi_data_objects(self, compartment_id, **kwargs): resource_path = "/opsiDataObjects" method = "GET" operation_name = "list_opsi_data_objects" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/ListOpsiDataObjects" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -13963,7 +13963,7 @@ def list_sql_plans(self, compartment_id, sql_identifier, plan_hash, **kwargs): resource_path = "/databaseInsights/sqlPlans" method = "GET" operation_name = "list_sql_plans" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlPlans" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -14126,7 +14126,7 @@ def list_sql_searches(self, compartment_id, sql_identifier, **kwargs): resource_path = "/databaseInsights/sqlSearches" method = "GET" operation_name = "list_sql_searches" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlSearches" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -14290,7 +14290,7 @@ def list_sql_texts(self, compartment_id, sql_identifier, **kwargs): resource_path = "/databaseInsights/sqlTexts" method = "GET" operation_name = "list_sql_texts" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlTexts" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -14450,7 +14450,7 @@ def list_warehouse_data_objects(self, warehouse_type, warehouse_id, **kwargs): resource_path = "/{warehouseType}/{warehouseId}/dataObjects" method = "GET" operation_name = "list_warehouse_data_objects" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiWarehouseDataObjects/ListWarehouseDataObjects" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -14628,7 +14628,7 @@ def list_work_request_errors(self, work_request_id, **kwargs): resource_path = "/workRequests/{workRequestId}/errors" method = "GET" operation_name = "list_work_request_errors" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequestErrors" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -14781,7 +14781,7 @@ def list_work_request_logs(self, work_request_id, **kwargs): resource_path = "/workRequests/{workRequestId}/logs" method = "GET" operation_name = "list_work_request_logs" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequestLogs" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -14950,7 +14950,7 @@ def list_work_requests(self, **kwargs): resource_path = "/workRequests" method = "GET" operation_name = "list_work_requests" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequests" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -15100,7 +15100,7 @@ def put_awr_hub_object(self, put_awr_hub_object_body, awr_hub_source_id, object_ resource_path = "/awrHubObjects/awrHubSources/{awrHubSourceId}/o/{objectName}" method = "PUT" operation_name = "put_awr_hub_object" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/PutAwrHubObject" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -15247,7 +15247,7 @@ def query_opsi_data_object_data(self, compartment_id, query_opsi_data_object_dat resource_path = "/opsiDataObjects/actions/queryData" method = "POST" operation_name = "query_opsi_data_object_data" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/QueryOpsiDataObjectData" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -15374,7 +15374,7 @@ def query_warehouse_data_object_data(self, warehouse_type, warehouse_id, query_w resource_path = "/{warehouseType}/{warehouseId}/actions/queryData" method = "POST" operation_name = "query_warehouse_data_object_data" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiWarehouseDataObjects/QueryWarehouseDataObjectData" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -15491,7 +15491,7 @@ def rotate_operations_insights_warehouse_wallet(self, operations_insights_wareho resource_path = "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/actions/rotateWarehouseWallet" method = "POST" operation_name = "rotate_operations_insights_warehouse_wallet" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/RotateOperationsInsightsWarehouseWallet" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -15675,7 +15675,7 @@ def summarize_addm_db_findings(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbFindings" method = "GET" operation_name = "summarize_addm_db_findings" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbFindings" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -15905,7 +15905,7 @@ def summarize_addm_db_parameter_changes(self, compartment_id, name, **kwargs): resource_path = "/databaseInsights/addmDbParameterChanges" method = "GET" operation_name = "summarize_addm_db_parameter_changes" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbParameterChanges" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -16156,7 +16156,7 @@ def summarize_addm_db_parameters(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbParameters" method = "GET" operation_name = "summarize_addm_db_parameters" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbParameters" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -16427,7 +16427,7 @@ def summarize_addm_db_recommendations(self, compartment_id, **kwargs): resource_path = "/databaseInsights/addmDbRecommendations" method = "GET" operation_name = "summarize_addm_db_recommendations" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbRecommendations" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -16647,7 +16647,7 @@ def summarize_addm_db_schema_objects(self, compartment_id, object_identifier, ** resource_path = "/databaseInsights/addmDbSchemaObjects" method = "GET" operation_name = "summarize_addm_db_schema_objects" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbSchemaObjects" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -16837,7 +16837,7 @@ def summarize_addm_db_sql_statements(self, compartment_id, sql_identifier, **kwa resource_path = "/databaseInsights/addmDbSqlStatements" method = "GET" operation_name = "summarize_addm_db_sql_statements" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbSqlStatements" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -17011,7 +17011,7 @@ def summarize_awr_database_cpu_usages(self, awr_hub_id, awr_source_database_iden resource_path = "/awrHubs/{awrHubId}/awrDatabaseCpuUsages" method = "GET" operation_name = "summarize_awr_database_cpu_usages" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseCpuUsages" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -17209,7 +17209,7 @@ def summarize_awr_database_metrics(self, awr_hub_id, awr_source_database_identif resource_path = "/awrHubs/{awrHubId}/awrDatabaseMetrics" method = "GET" operation_name = "summarize_awr_database_metrics" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseMetrics" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -17403,7 +17403,7 @@ def summarize_awr_database_parameter_changes(self, awr_hub_id, awr_source_databa resource_path = "/awrHubs/{awrHubId}/awrDatabaseParameterChanges" method = "GET" operation_name = "summarize_awr_database_parameter_changes" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseParameterChanges" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -17621,7 +17621,7 @@ def summarize_awr_database_parameters(self, awr_hub_id, awr_source_database_iden resource_path = "/awrHubs/{awrHubId}/awrDatabaseParameters" method = "GET" operation_name = "summarize_awr_database_parameters" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseParameters" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -17825,7 +17825,7 @@ def summarize_awr_database_snapshot_ranges(self, awr_hub_id, **kwargs): resource_path = "/awrHubs/{awrHubId}/awrDatabaseSnapshotRanges" method = "GET" operation_name = "summarize_awr_database_snapshot_ranges" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseSnapshotRanges" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -18009,7 +18009,7 @@ def summarize_awr_database_sysstats(self, awr_hub_id, awr_source_database_identi resource_path = "/awrHubs/{awrHubId}/awrDatabaseSysstats" method = "GET" operation_name = "summarize_awr_database_sysstats" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseSysstats" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -18188,7 +18188,7 @@ def summarize_awr_database_top_wait_events(self, awr_hub_id, awr_source_database resource_path = "/awrHubs/{awrHubId}/awrDatabaseTopWaitEvents" method = "GET" operation_name = "summarize_awr_database_top_wait_events" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseTopWaitEvents" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -18393,7 +18393,7 @@ def summarize_awr_database_wait_event_buckets(self, awr_hub_id, awr_source_datab resource_path = "/awrHubs/{awrHubId}/awrDatabaseWaitEventBuckets" method = "GET" operation_name = "summarize_awr_database_wait_event_buckets" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseWaitEventBuckets" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -18594,7 +18594,7 @@ def summarize_awr_database_wait_events(self, awr_hub_id, awr_source_database_ide resource_path = "/awrHubs/{awrHubId}/awrDatabaseWaitEvents" method = "GET" operation_name = "summarize_awr_database_wait_events" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseWaitEvents" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -18777,7 +18777,7 @@ def summarize_awr_sources_summaries(self, awr_hub_id, **kwargs): resource_path = "/awrHubs/{awrHubId}/awrSourcesSummary" method = "GET" operation_name = "summarize_awr_sources_summaries" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrSourcesSummaries" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -18943,7 +18943,7 @@ def summarize_configuration_items(self, **kwargs): resource_path = "/opsiConfigurations/configurationItems" method = "GET" operation_name = "summarize_configuration_items" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/SummarizeConfigurationItems" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -19190,7 +19190,7 @@ def summarize_database_insight_resource_capacity_trend(self, compartment_id, res resource_path = "/databaseInsights/resourceCapacityTrend" method = "GET" operation_name = "summarize_database_insight_resource_capacity_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceCapacityTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -19498,7 +19498,7 @@ def summarize_database_insight_resource_forecast_trend(self, compartment_id, res resource_path = "/databaseInsights/resourceForecastTrend" method = "GET" operation_name = "summarize_database_insight_resource_forecast_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceForecastTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -19804,7 +19804,7 @@ def summarize_database_insight_resource_statistics(self, compartment_id, resourc resource_path = "/databaseInsights/resourceStatistics" method = "GET" operation_name = "summarize_database_insight_resource_statistics" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceStatistics" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -20072,7 +20072,7 @@ def summarize_database_insight_resource_usage(self, compartment_id, resource_met resource_path = "/databaseInsights/resourceUsageSummary" method = "GET" operation_name = "summarize_database_insight_resource_usage" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUsage" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -20318,7 +20318,7 @@ def summarize_database_insight_resource_usage_trend(self, compartment_id, resour resource_path = "/databaseInsights/resourceUsageTrend" method = "GET" operation_name = "summarize_database_insight_resource_usage_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUsageTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -20578,7 +20578,7 @@ def summarize_database_insight_resource_utilization_insight(self, compartment_id resource_path = "/databaseInsights/resourceUtilizationInsight" method = "GET" operation_name = "summarize_database_insight_resource_utilization_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUtilizationInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -20770,7 +20770,7 @@ def summarize_database_insight_tablespace_usage_trend(self, compartment_id, **kw resource_path = "/databaseInsights/tablespaceUsageTrend" method = "GET" operation_name = "summarize_database_insight_tablespace_usage_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightTablespaceUsageTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -20968,7 +20968,7 @@ def summarize_exadata_insight_resource_capacity_trend(self, resource_type, resou resource_path = "/exadataInsights/resourceCapacityTrend" method = "GET" operation_name = "summarize_exadata_insight_resource_capacity_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceCapacityTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -21196,7 +21196,7 @@ def summarize_exadata_insight_resource_capacity_trend_aggregated(self, resource_ resource_path = "/exadataInsights/resourceCapacityTrendAggregated" method = "GET" operation_name = "summarize_exadata_insight_resource_capacity_trend_aggregated" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceCapacityTrendAggregated" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -21447,7 +21447,7 @@ def summarize_exadata_insight_resource_forecast_trend(self, resource_type, resou resource_path = "/exadataInsights/resourceForecastTrend" method = "GET" operation_name = "summarize_exadata_insight_resource_forecast_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceForecastTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -21713,7 +21713,7 @@ def summarize_exadata_insight_resource_forecast_trend_aggregated(self, resource_ resource_path = "/exadataInsights/resourceForecastTrendAggregated" method = "GET" operation_name = "summarize_exadata_insight_resource_forecast_trend_aggregated" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceForecastTrendAggregated" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -21930,7 +21930,7 @@ def summarize_exadata_insight_resource_statistics(self, exadata_insight_id, reso resource_path = "/exadataInsights/resourceStatistics" method = "GET" operation_name = "summarize_exadata_insight_resource_statistics" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceStatistics" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -22165,7 +22165,7 @@ def summarize_exadata_insight_resource_usage(self, compartment_id, resource_type resource_path = "/exadataInsights/resourceUsageSummary" method = "GET" operation_name = "summarize_exadata_insight_resource_usage" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUsage" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -22391,7 +22391,7 @@ def summarize_exadata_insight_resource_usage_aggregated(self, compartment_id, re resource_path = "/exadataInsights/resourceUsageSummaryAggregated" method = "GET" operation_name = "summarize_exadata_insight_resource_usage_aggregated" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUsageAggregated" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -22604,7 +22604,7 @@ def summarize_exadata_insight_resource_utilization_insight(self, compartment_id, resource_path = "/exadataInsights/resourceUtilizationInsight" method = "GET" operation_name = "summarize_exadata_insight_resource_utilization_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUtilizationInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -22762,7 +22762,7 @@ def summarize_exadata_members(self, exadata_insight_id, **kwargs): resource_path = "/exadataInsights/exadataMembers" method = "GET" operation_name = "summarize_exadata_members" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataMembers" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -22916,7 +22916,7 @@ def summarize_host_insight_disk_statistics(self, compartment_id, id, **kwargs): resource_path = "/hostInsights/diskStatistics" method = "GET" operation_name = "summarize_host_insight_disk_statistics" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightDiskStatistics" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -23077,7 +23077,7 @@ def summarize_host_insight_host_recommendation(self, compartment_id, id, resourc resource_path = "/hostInsights/hostRecommendation" method = "GET" operation_name = "summarize_host_insight_host_recommendation" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightHostRecommendation" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -23244,7 +23244,7 @@ def summarize_host_insight_network_usage_trend(self, compartment_id, id, **kwarg resource_path = "/hostInsights/networkUsageTrend" method = "GET" operation_name = "summarize_host_insight_network_usage_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightNetworkUsageTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -23477,7 +23477,7 @@ def summarize_host_insight_resource_capacity_trend(self, compartment_id, resourc resource_path = "/hostInsights/resourceCapacityTrend" method = "GET" operation_name = "summarize_host_insight_resource_capacity_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceCapacityTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -23777,7 +23777,7 @@ def summarize_host_insight_resource_forecast_trend(self, compartment_id, resourc resource_path = "/hostInsights/resourceForecastTrend" method = "GET" operation_name = "summarize_host_insight_resource_forecast_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceForecastTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -24076,7 +24076,7 @@ def summarize_host_insight_resource_statistics(self, compartment_id, resource_me resource_path = "/hostInsights/resourceStatistics" method = "GET" operation_name = "summarize_host_insight_resource_statistics" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceStatistics" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -24335,7 +24335,7 @@ def summarize_host_insight_resource_usage(self, compartment_id, resource_metric, resource_path = "/hostInsights/resourceUsageSummary" method = "GET" operation_name = "summarize_host_insight_resource_usage" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUsage" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -24572,7 +24572,7 @@ def summarize_host_insight_resource_usage_trend(self, compartment_id, resource_m resource_path = "/hostInsights/resourceUsageTrend" method = "GET" operation_name = "summarize_host_insight_resource_usage_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUsageTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -24823,7 +24823,7 @@ def summarize_host_insight_resource_utilization_insight(self, compartment_id, re resource_path = "/hostInsights/resourceUtilizationInsight" method = "GET" operation_name = "summarize_host_insight_resource_utilization_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUtilizationInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -25014,7 +25014,7 @@ def summarize_host_insight_storage_usage_trend(self, compartment_id, id, **kwarg resource_path = "/hostInsights/storageUsageTrend" method = "GET" operation_name = "summarize_host_insight_storage_usage_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightStorageUsageTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -25196,7 +25196,7 @@ def summarize_host_insight_top_processes_usage(self, compartment_id, id, resourc resource_path = "/hostInsights/topProcessesUsage" method = "GET" operation_name = "summarize_host_insight_top_processes_usage" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightTopProcessesUsage" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -25381,7 +25381,7 @@ def summarize_host_insight_top_processes_usage_trend(self, compartment_id, id, r resource_path = "/hostInsights/topProcessesUsageTrend" method = "GET" operation_name = "summarize_host_insight_top_processes_usage_trend" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightTopProcessesUsageTrend" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -25503,7 +25503,7 @@ def summarize_operations_insights_warehouse_resource_usage(self, operations_insi resource_path = "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}/resourceUsageSummary" method = "GET" operation_name = "summarize_operations_insights_warehouse_resource_usage" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/SummarizeOperationsInsightsWarehouseResourceUsage" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -25692,7 +25692,7 @@ def summarize_sql_insights(self, compartment_id, **kwargs): resource_path = "/databaseInsights/sqlInsights" method = "GET" operation_name = "summarize_sql_insights" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlInsights" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -25871,7 +25871,7 @@ def summarize_sql_plan_insights(self, compartment_id, sql_identifier, **kwargs): resource_path = "/databaseInsights/sqlPlanInsights" method = "GET" operation_name = "summarize_sql_plan_insights" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlPlanInsights" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -26021,7 +26021,7 @@ def summarize_sql_response_time_distributions(self, compartment_id, sql_identifi resource_path = "/databaseInsights/sqlResponseTimeDistributions" method = "GET" operation_name = "summarize_sql_response_time_distributions" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlResponseTimeDistributions" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -26247,7 +26247,7 @@ def summarize_sql_statistics(self, compartment_id, **kwargs): resource_path = "/databaseInsights/sqlStatistics" method = "GET" operation_name = "summarize_sql_statistics" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatistics" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -26500,7 +26500,7 @@ def summarize_sql_statistics_time_series(self, compartment_id, sql_identifier, * resource_path = "/databaseInsights/sqlStatisticsTimeSeries" method = "GET" operation_name = "summarize_sql_statistics_time_series" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatisticsTimeSeries" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -26668,7 +26668,7 @@ def summarize_sql_statistics_time_series_by_plan(self, compartment_id, sql_ident resource_path = "/databaseInsights/sqlStatisticsTimeSeriesByPlan" method = "GET" operation_name = "summarize_sql_statistics_time_series_by_plan" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatisticsTimeSeriesByPlan" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -26783,7 +26783,7 @@ def update_awr_hub(self, awr_hub_id, update_awr_hub_details, **kwargs): resource_path = "/awrHubs/{awrHubId}" method = "PUT" operation_name = "update_awr_hub" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/UpdateAwrHub" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -26892,7 +26892,7 @@ def update_awr_hub_source(self, update_awr_hub_source_details, awr_hub_source_id resource_path = "/awrHubSources/{awrHubSourceId}" method = "PUT" operation_name = "update_awr_hub_source" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/UpdateAwrHubSource" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27001,7 +27001,7 @@ def update_database_insight(self, database_insight_id, update_database_insight_d resource_path = "/databaseInsights/{databaseInsightId}" method = "PUT" operation_name = "update_database_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/UpdateDatabaseInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27110,7 +27110,7 @@ def update_enterprise_manager_bridge(self, enterprise_manager_bridge_id, update_ resource_path = "/enterpriseManagerBridges/{enterpriseManagerBridgeId}" method = "PUT" operation_name = "update_enterprise_manager_bridge" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/UpdateEnterpriseManagerBridge" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27219,7 +27219,7 @@ def update_exadata_insight(self, exadata_insight_id, update_exadata_insight_deta resource_path = "/exadataInsights/{exadataInsightId}" method = "PUT" operation_name = "update_exadata_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/UpdateExadataInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27328,7 +27328,7 @@ def update_host_insight(self, host_insight_id, update_host_insight_details, **kw resource_path = "/hostInsights/{hostInsightId}" method = "PUT" operation_name = "update_host_insight" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/UpdateHostInsight" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27437,7 +27437,7 @@ def update_news_report(self, news_report_id, update_news_report_details, **kwarg resource_path = "/newsReports/{newsReportId}" method = "PUT" operation_name = "update_news_report" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/UpdateNewsReport" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27548,7 +27548,7 @@ def update_operations_insights_private_endpoint(self, operations_insights_privat resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}" method = "PUT" operation_name = "update_operations_insights_private_endpoint" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/UpdateOperationsInsightsPrivateEndpoint" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27658,7 +27658,7 @@ def update_operations_insights_warehouse(self, operations_insights_warehouse_id, resource_path = "/operationsInsightsWarehouses/{operationsInsightsWarehouseId}" method = "PUT" operation_name = "update_operations_insights_warehouse" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/UpdateOperationsInsightsWarehouse" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27767,7 +27767,7 @@ def update_operations_insights_warehouse_user(self, operations_insights_warehous resource_path = "/operationsInsightsWarehouseUsers/{operationsInsightsWarehouseUserId}" method = "PUT" operation_name = "update_operations_insights_warehouse_user" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/UpdateOperationsInsightsWarehouseUser" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -27878,7 +27878,7 @@ def update_opsi_configuration(self, opsi_configuration_id, update_opsi_configura resource_path = "/opsiConfigurations/{opsiConfigurationId}" method = "PUT" operation_name = "update_opsi_configuration" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/UpdateOpsiConfiguration" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ diff --git a/src/oci/version.py b/src/oci/version.py index 71f4f7d58e..7f4c53320d 100644 --- a/src/oci/version.py +++ b/src/oci/version.py @@ -2,4 +2,4 @@ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -__version__ = "2.125.0" +__version__ = "2.125.1"