oci 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/api_client.rb +1 -3
- data/lib/oci/apigateway/api_gateway_client.rb +619 -0
- data/lib/oci/apigateway/api_gateway_client_composite_operations.rb +198 -0
- data/lib/oci/apigateway/apigateway.rb +10 -0
- data/lib/oci/apigateway/models/api.rb +340 -0
- data/lib/oci/apigateway/models/api_collection.rb +150 -0
- data/lib/oci/apigateway/models/api_summary.rb +342 -0
- data/lib/oci/apigateway/models/api_validation_detail.rb +191 -0
- data/lib/oci/apigateway/models/api_validation_details.rb +192 -0
- data/lib/oci/apigateway/models/api_validation_result.rb +182 -0
- data/lib/oci/apigateway/models/api_validations.rb +150 -0
- data/lib/oci/{log_analytics/models/create_namespace_details.rb → apigateway/models/change_api_compartment_details.rb} +5 -3
- data/lib/oci/apigateway/models/create_api_details.rb +222 -0
- data/lib/oci/apigateway/models/update_api_details.rb +206 -0
- data/lib/oci/apigateway/models/work_request.rb +4 -0
- data/lib/oci/application_migration/application_migration.rb +2 -0
- data/lib/oci/application_migration/application_migration_client.rb +169 -52
- data/lib/oci/application_migration/application_migration_client_composite_operations.rb +447 -0
- data/lib/oci/application_migration/models/authorization_details.rb +4 -2
- data/lib/oci/application_migration/models/change_compartment_details.rb +2 -2
- data/lib/oci/application_migration/models/configuration_field.rb +9 -7
- data/lib/oci/application_migration/models/create_migration_details.rb +54 -12
- data/lib/oci/application_migration/models/create_source_details.rb +13 -8
- data/lib/oci/application_migration/models/discovery_details.rb +2 -2
- data/lib/oci/application_migration/models/ics_discovery_details.rb +4 -3
- data/lib/oci/application_migration/models/internal_authorization_details.rb +1 -1
- data/lib/oci/application_migration/models/internal_source_details.rb +2 -2
- data/lib/oci/application_migration/models/jcs_discovery_details.rb +5 -3
- data/lib/oci/application_migration/models/migration.rb +111 -18
- data/lib/oci/application_migration/models/migration_summary.rb +63 -15
- data/lib/oci/application_migration/models/oac_discovery_details.rb +3 -3
- data/lib/oci/application_migration/models/ocic_authorization_details.rb +1 -1
- data/lib/oci/application_migration/models/ocic_source_details.rb +8 -3
- data/lib/oci/application_migration/models/oic_discovery_details.rb +4 -3
- data/lib/oci/application_migration/models/pcs_discovery_details.rb +4 -3
- data/lib/oci/application_migration/models/soacs_discovery_details.rb +5 -3
- data/lib/oci/application_migration/models/source.rb +41 -13
- data/lib/oci/application_migration/models/source_application.rb +6 -6
- data/lib/oci/application_migration/models/source_application_summary.rb +7 -6
- data/lib/oci/application_migration/models/source_details.rb +10 -2
- data/lib/oci/application_migration/models/source_summary.rb +36 -14
- data/lib/oci/application_migration/models/target_database_types.rb +11 -0
- data/lib/oci/application_migration/models/update_migration_details.rb +15 -7
- data/lib/oci/application_migration/models/update_source_details.rb +7 -7
- data/lib/oci/application_migration/models/work_request.rb +54 -3
- data/lib/oci/application_migration/models/work_request_error.rb +1 -1
- data/lib/oci/application_migration/models/work_request_log_entry.rb +2 -2
- data/lib/oci/application_migration/models/work_request_resource.rb +1 -1
- data/lib/oci/application_migration/models/work_request_summary.rb +54 -3
- data/lib/oci/auth/signers/instance_principals_delegation_token_signer.rb +1 -1
- data/lib/oci/compute_instance_agent/compute_instance_agent.rb +39 -0
- data/lib/oci/compute_instance_agent/compute_instance_agent_client.rb +522 -0
- data/lib/oci/compute_instance_agent/compute_instance_agent_client_composite_operations.rb +25 -0
- data/lib/oci/compute_instance_agent/models/create_instance_agent_command_details.rb +205 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command.rb +256 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_content.rb +159 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_content_info.rb +236 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution.rb +321 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_content.rb +218 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_tuple_details.rb +198 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_uri_details.rb +170 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_text_details.rb +180 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_summary.rb +321 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_details.rb +197 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_tuple_details.rb +190 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_uri_details.rb +162 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_text_details.rb +145 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_details.rb +197 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_tuple_details.rb +190 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_uri_details.rb +162 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_text_details.rb +172 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_summary.rb +224 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_target.rb +154 -0
- data/lib/oci/compute_instance_agent/util.rb +3 -0
- data/lib/oci/container_engine/container_engine_client.rb +0 -11
- data/lib/oci/container_engine/models/create_node_shape_config_details.rb +19 -4
- data/lib/oci/container_engine/models/node_shape_config.rb +19 -4
- data/lib/oci/container_engine/models/update_node_shape_config_details.rb +19 -4
- data/lib/oci/core/core.rb +4 -0
- data/lib/oci/core/models/add_vcn_cidr_details.rb +155 -0
- data/lib/oci/core/models/create_vcn_details.rb +24 -2
- data/lib/oci/core/models/create_vlan_details.rb +1 -0
- data/lib/oci/core/models/image_memory_constraints.rb +17 -17
- data/lib/oci/core/models/modify_vcn_cidr_details.rb +172 -0
- data/lib/oci/core/models/remove_vcn_cidr_details.rb +155 -0
- data/lib/oci/core/models/subnet.rb +1 -0
- data/lib/oci/core/models/update_subnet_details.rb +27 -4
- data/lib/oci/core/models/update_vlan_details.rb +25 -4
- data/lib/oci/core/models/vcn.rb +18 -2
- data/lib/oci/core/models/vcn_dns_resolver_association.rb +206 -0
- data/lib/oci/core/virtual_network_client.rb +289 -4
- data/lib/oci/data_catalog/data_catalog.rb +30 -0
- data/lib/oci/data_catalog/data_catalog_client.rb +1763 -112
- data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +413 -0
- data/lib/oci/data_catalog/models/attribute.rb +15 -1
- data/lib/oci/data_catalog/models/connection.rb +15 -1
- data/lib/oci/data_catalog/models/create_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_connection_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_custom_property_details.rb +324 -0
- data/lib/oci/data_catalog/models/create_data_asset_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_entity_details.rb +43 -1
- data/lib/oci/data_catalog/models/create_folder_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_glossary_details.rb +18 -4
- data/lib/oci/data_catalog/models/create_namespace_details.rb +182 -0
- data/lib/oci/data_catalog/models/create_pattern_details.rb +243 -0
- data/lib/oci/data_catalog/models/create_term_details.rb +18 -4
- data/lib/oci/data_catalog/models/custom_property.rb +506 -0
- data/lib/oci/data_catalog/models/custom_property_collection.rb +161 -0
- data/lib/oci/data_catalog/models/custom_property_data_type.rb +14 -0
- data/lib/oci/data_catalog/models/custom_property_get_usage.rb +327 -0
- data/lib/oci/data_catalog/models/custom_property_set_usage.rb +188 -0
- data/lib/oci/data_catalog/models/custom_property_summary.rb +432 -0
- data/lib/oci/data_catalog/models/custom_property_type_usage.rb +178 -0
- data/lib/oci/data_catalog/models/data_asset.rb +29 -1
- data/lib/oci/{log_analytics/models/string_list_details.rb → data_catalog/models/data_selector_pattern_details.rb} +11 -10
- data/lib/oci/data_catalog/models/derived_logical_entities.rb +178 -0
- data/lib/oci/data_catalog/models/entity.rb +43 -1
- data/lib/oci/data_catalog/models/entity_summary.rb +29 -1
- data/lib/oci/data_catalog/models/faceted_search_aggregation.rb +160 -0
- data/lib/oci/data_catalog/models/faceted_search_custom_property.rb +174 -0
- data/lib/oci/data_catalog/models/faceted_search_date_filter_request.rb +186 -0
- data/lib/oci/data_catalog/models/faceted_search_filter_request.rb +168 -0
- data/lib/oci/data_catalog/models/faceted_search_sort_request.rb +181 -0
- data/lib/oci/data_catalog/models/faceted_search_string_filter_request.rb +160 -0
- data/lib/oci/data_catalog/models/folder.rb +15 -1
- data/lib/oci/data_catalog/models/glossary.rb +73 -1
- data/lib/oci/data_catalog/models/glossary_summary.rb +62 -4
- data/lib/oci/data_catalog/models/namespace.rb +290 -0
- data/lib/oci/data_catalog/models/namespace_collection.rb +161 -0
- data/lib/oci/data_catalog/models/namespace_summary.rb +247 -0
- data/lib/oci/data_catalog/models/pattern.rb +368 -0
- data/lib/oci/data_catalog/models/pattern_collection.rb +162 -0
- data/lib/oci/data_catalog/models/pattern_summary.rb +258 -0
- data/lib/oci/data_catalog/models/search_criteria.rb +47 -4
- data/lib/oci/data_catalog/models/search_result.rb +28 -4
- data/lib/oci/data_catalog/models/search_result_collection.rb +28 -4
- data/lib/oci/data_catalog/models/term.rb +18 -4
- data/lib/oci/data_catalog/models/type.rb +18 -4
- data/lib/oci/{log_analytics/models/register_entity_types_details.rb → data_catalog/models/type_custom_property_details.rb} +13 -13
- data/lib/oci/data_catalog/models/update_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_connection_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_custom_property_details.rb +291 -0
- data/lib/oci/data_catalog/models/update_data_asset_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_entity_details.rb +43 -1
- data/lib/oci/data_catalog/models/update_folder_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_glossary_details.rb +18 -4
- data/lib/oci/data_catalog/models/update_namespace_details.rb +182 -0
- data/lib/oci/data_catalog/models/update_pattern_details.rb +243 -0
- data/lib/oci/data_catalog/models/update_term_details.rb +18 -4
- data/lib/oci/data_catalog/models/validate_pattern_details.rb +187 -0
- data/lib/oci/data_catalog/models/validate_pattern_result.rb +184 -0
- data/lib/oci/data_integration/models/source.rb +1 -0
- data/lib/oci/database/database.rb +19 -0
- data/lib/oci/database/database_client.rb +1112 -8
- data/lib/oci/database/database_client_composite_operations.rb +281 -0
- data/lib/oci/database/models/autonomous_container_database.rb +80 -4
- data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +480 -0
- data/lib/oci/database/models/autonomous_container_database_summary.rb +80 -4
- data/lib/oci/database/models/autonomous_database.rb +141 -8
- data/lib/oci/database/models/autonomous_database_backup.rb +32 -4
- data/lib/oci/database/models/autonomous_database_backup_config.rb +189 -0
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +32 -4
- data/lib/oci/database/models/autonomous_database_dataguard_association.rb +468 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +141 -8
- data/lib/oci/database/models/autonomous_db_version_summary.rb +46 -4
- data/lib/oci/{log_analytics/models/query.rb → database/models/change_key_store_compartment_details.rb} +5 -3
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +138 -5
- data/lib/oci/database/models/create_autonomous_database_base.rb +30 -5
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +5 -1
- data/lib/oci/database/models/create_data_guard_association_details.rb +15 -1
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +24 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_vm_cluster_details.rb +24 -4
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +5 -1
- data/lib/oci/database/models/create_database_details.rb +15 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +1 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +1 -1
- data/lib/oci/database/models/create_key_store_details.rb +217 -0
- data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/database.rb +1 -0
- data/lib/oci/database/models/database_software_image.rb +18 -4
- data/lib/oci/database/models/database_software_image_summary.rb +18 -4
- data/lib/oci/database/models/database_summary.rb +1 -0
- data/lib/oci/database/models/database_upgrade_history_entry.rb +352 -0
- data/lib/oci/database/models/database_upgrade_history_entry_summary.rb +355 -0
- data/lib/oci/database/models/database_upgrade_source_base.rb +188 -0
- data/lib/oci/database/models/database_upgrade_with_database_software_image_details.rb +164 -0
- data/lib/oci/database/models/database_upgrade_with_db_home_details.rb +164 -0
- data/lib/oci/database/models/database_upgrade_with_db_version_details.rb +164 -0
- data/lib/oci/database/models/db_system.rb +1 -0
- data/lib/oci/database/models/db_system_summary.rb +1 -0
- data/lib/oci/database/models/db_version_summary.rb +18 -4
- data/lib/oci/database/models/key_store.rb +300 -0
- data/lib/oci/database/models/key_store_associated_database_details.rb +164 -0
- data/lib/oci/database/models/key_store_summary.rb +303 -0
- data/lib/oci/database/models/key_store_type_details.rb +185 -0
- data/lib/oci/database/models/key_store_type_from_oracle_key_vault_details.rb +204 -0
- data/lib/oci/database/models/maintenance_run.rb +18 -4
- data/lib/oci/database/models/maintenance_run_summary.rb +18 -4
- data/lib/oci/database/models/peer_autonomous_container_database_backup_config.rb +172 -0
- data/lib/oci/database/models/update.rb +1 -0
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +17 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +30 -5
- data/lib/oci/database/models/update_database_details.rb +43 -1
- data/lib/oci/database/models/update_history_entry.rb +1 -0
- data/lib/oci/database/models/update_history_entry_summary.rb +1 -0
- data/lib/oci/database/models/update_key_store_details.rb +187 -0
- data/lib/oci/database/models/update_summary.rb +1 -0
- data/lib/oci/database/models/upgrade_database_details.rb +179 -0
- data/lib/oci/dns/dns.rb +24 -0
- data/lib/oci/dns/dns_client.rb +1695 -175
- data/lib/oci/dns/dns_client_composite_operations.rb +240 -0
- data/lib/oci/{log_analytics/models/service_tenancy.rb → dns/models/attached_view.rb} +13 -12
- data/lib/oci/dns/models/attached_view_details.rb +155 -0
- data/lib/oci/dns/models/change_resolver_compartment_details.rb +156 -0
- data/lib/oci/{log_analytics/models/query_work_request_resource.rb → dns/models/change_view_compartment_details.rb} +5 -3
- data/lib/oci/dns/models/create_resolver_endpoint_details.rb +261 -0
- data/lib/oci/dns/models/create_resolver_vnic_endpoint_details.rb +203 -0
- data/lib/oci/dns/models/create_view_details.rb +210 -0
- data/lib/oci/dns/models/create_zone_details.rb +41 -2
- data/lib/oci/dns/models/migration_replacement.rb +1 -1
- data/lib/oci/dns/models/record.rb +1 -2
- data/lib/oci/dns/models/record_collection.rb +1 -0
- data/lib/oci/dns/models/record_details.rb +1 -2
- data/lib/oci/dns/models/record_operation.rb +1 -2
- data/lib/oci/dns/models/resolver.rb +393 -0
- data/lib/oci/dns/models/resolver_endpoint.rb +371 -0
- data/lib/oci/dns/models/resolver_endpoint_summary.rb +371 -0
- data/lib/oci/{log_analytics/models/generate_agent_object_name_details.rb → dns/models/resolver_forward_rule.rb} +42 -51
- data/lib/oci/dns/models/resolver_forward_rule_details.rb +187 -0
- data/lib/oci/dns/models/resolver_rule.rb +222 -0
- data/lib/oci/dns/models/resolver_rule_details.rb +215 -0
- data/lib/oci/dns/models/resolver_summary.rb +357 -0
- data/lib/oci/dns/models/resolver_vnic_endpoint.rb +220 -0
- data/lib/oci/dns/models/resolver_vnic_endpoint_summary.rb +205 -0
- data/lib/oci/dns/models/rr_set.rb +1 -0
- data/lib/oci/{log_analytics/models/sort_orders.rb → dns/models/scope.rb} +4 -4
- data/lib/oci/dns/models/steering_policy.rb +12 -12
- data/lib/oci/dns/models/steering_policy_answer.rb +1 -1
- data/lib/oci/dns/models/steering_policy_attachment.rb +10 -10
- data/lib/oci/dns/models/steering_policy_attachment_summary.rb +10 -10
- data/lib/oci/dns/models/steering_policy_summary.rb +10 -10
- data/lib/oci/dns/models/tsig_key.rb +10 -10
- data/lib/oci/dns/models/tsig_key_summary.rb +9 -9
- data/lib/oci/dns/models/update_resolver_details.rb +221 -0
- data/lib/oci/dns/models/update_resolver_endpoint_details.rb +188 -0
- data/lib/oci/dns/models/update_resolver_vnic_endpoint_details.rb +166 -0
- data/lib/oci/dns/models/update_view_details.rb +196 -0
- data/lib/oci/{log_analytics/models/log_analytics.rb → dns/models/view.rb} +105 -77
- data/lib/oci/dns/models/view_summary.rb +321 -0
- data/lib/oci/dns/models/zone.rb +75 -14
- data/lib/oci/dns/models/zone_summary.rb +76 -15
- data/lib/oci/functions/functions_management_client.rb +1 -1
- data/lib/oci/functions/models/application.rb +21 -2
- data/lib/oci/functions/models/application_summary.rb +1 -1
- data/lib/oci/functions/models/create_application_details.rb +20 -1
- data/lib/oci/functions/models/function.rb +1 -1
- data/lib/oci/functions/models/function_summary.rb +1 -1
- data/lib/oci/functions/models/update_application_details.rb +20 -1
- data/lib/oci/identity/identity.rb +5 -0
- data/lib/oci/identity/identity_client.rb +152 -23
- data/lib/oci/identity/identity_client_composite_operations.rb +48 -0
- data/lib/oci/identity/models/bulk_edit_operation_details.rb +193 -0
- data/lib/oci/identity/models/bulk_edit_resource.rb +175 -0
- data/lib/oci/identity/models/bulk_edit_tags_details.rb +181 -0
- data/lib/oci/identity/models/bulk_edit_tags_resource_type.rb +175 -0
- data/lib/oci/identity/models/bulk_edit_tags_resource_type_collection.rb +151 -0
- data/lib/oci/identity/models/customer_secret_key.rb +3 -3
- data/lib/oci/identity/models/tagging_work_request.rb +4 -0
- data/lib/oci/identity/models/tagging_work_request_summary.rb +4 -0
- data/lib/oci/identity/models/user.rb +54 -4
- data/lib/oci/identity/models/work_request_resource.rb +1 -0
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/models/add_http_request_header_rule.rb +2 -1
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
- data/lib/oci/load_balancer/models/ip_address.rb +17 -4
- data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +0 -2
- data/lib/oci/{log_analytics/models/log_analytics_collection_warning.rb → load_balancer/models/reserved_ip.rb} +2 -4
- data/lib/oci/load_balancer/models/update_load_balancer_shape_details.rb +7 -6
- data/lib/oci/log_analytics/log_analytics.rb +0 -15
- data/lib/oci/log_analytics/log_analytics_client.rb +193 -180
- data/lib/oci/log_analytics/log_analytics_client_composite_operations.rb +68 -17
- data/lib/oci/log_analytics/models/abstract_command_descriptor.rb +1 -1
- data/lib/oci/log_analytics/models/archiving_configuration.rb +3 -3
- data/lib/oci/log_analytics/models/bucket_range.rb +1 -1
- data/lib/oci/log_analytics/models/change_log_analytics_object_collection_rule_compartment_details.rb +1 -1
- data/lib/oci/log_analytics/models/char_encoding_collection.rb +2 -2
- data/lib/oci/log_analytics/models/create_log_analytics_object_collection_rule_details.rb +4 -6
- data/lib/oci/log_analytics/models/estimate_purge_data_size_details.rb +6 -6
- data/lib/oci/log_analytics/models/estimate_purge_data_size_result.rb +1 -1
- data/lib/oci/log_analytics/models/export_content.rb +1 -0
- data/lib/oci/log_analytics/models/extract_log_field_results.rb +1 -1
- data/lib/oci/log_analytics/models/extract_log_header_details.rb +1 -1
- data/lib/oci/log_analytics/models/extract_log_header_results.rb +1 -1
- data/lib/oci/log_analytics/models/file_validation_response.rb +3 -3
- data/lib/oci/log_analytics/models/filter.rb +1 -1
- data/lib/oci/log_analytics/models/filter_details.rb +1 -1
- data/lib/oci/log_analytics/models/label_source_summary.rb +1 -1
- data/lib/oci/log_analytics/models/log_analytics_entity_summary.rb +36 -4
- data/lib/oci/log_analytics/models/log_analytics_field_summary.rb +1 -1
- data/lib/oci/log_analytics/models/log_analytics_import_custom_content.rb +0 -1
- data/lib/oci/log_analytics/models/log_analytics_lookup.rb +0 -2
- data/lib/oci/log_analytics/models/log_analytics_object_collection_rule.rb +4 -6
- data/lib/oci/log_analytics/models/log_analytics_object_collection_rule_summary.rb +1 -3
- data/lib/oci/log_analytics/models/log_analytics_parser_filter.rb +3 -3
- data/lib/oci/log_analytics/models/namespace.rb +5 -4
- data/lib/oci/log_analytics/models/namespace_collection.rb +2 -2
- data/lib/oci/log_analytics/models/namespace_summary.rb +5 -4
- data/lib/oci/log_analytics/models/parsed_content.rb +2 -2
- data/lib/oci/log_analytics/models/parsed_field.rb +1 -1
- data/lib/oci/log_analytics/models/purge_storage_data_details.rb +6 -6
- data/lib/oci/log_analytics/models/query_aggregation.rb +1 -1
- data/lib/oci/log_analytics/models/query_details.rb +5 -5
- data/lib/oci/log_analytics/models/recall_archived_data_details.rb +5 -5
- data/lib/oci/log_analytics/models/release_recalled_data_details.rb +5 -5
- data/lib/oci/log_analytics/models/scope_filter.rb +1 -1
- data/lib/oci/log_analytics/models/source_validate_details.rb +1 -1
- data/lib/oci/log_analytics/models/source_validate_results.rb +1 -1
- data/lib/oci/log_analytics/models/storage.rb +2 -2
- data/lib/oci/log_analytics/models/storage_usage.rb +4 -4
- data/lib/oci/log_analytics/models/storage_work_request.rb +14 -14
- data/lib/oci/log_analytics/models/storage_work_request_collection.rb +2 -2
- data/lib/oci/log_analytics/models/storage_work_request_summary.rb +14 -14
- data/lib/oci/log_analytics/models/timezone_collection.rb +2 -2
- data/lib/oci/log_analytics/models/update_log_analytics_object_collection_rule_details.rb +3 -3
- data/lib/oci/log_analytics/models/update_storage_details.rb +1 -1
- data/lib/oci/log_analytics/models/upload.rb +1 -1
- data/lib/oci/log_analytics/models/upload_collection.rb +1 -1
- data/lib/oci/log_analytics/models/upload_file_collection.rb +1 -1
- data/lib/oci/log_analytics/models/upload_summary.rb +1 -1
- data/lib/oci/log_analytics/models/upload_warning_summary.rb +1 -1
- data/lib/oci/log_analytics/models/work_request_error_collection.rb +2 -2
- data/lib/oci/log_analytics/models/work_request_log.rb +3 -3
- data/lib/oci/log_analytics/models/work_request_log_collection.rb +2 -2
- data/lib/oci/logging/logging_management_client.rb +52 -52
- data/lib/oci/logging/logging_management_client_composite_operations.rb +128 -7
- data/lib/oci/logging/models/category.rb +4 -4
- data/lib/oci/logging/models/change_log_group_compartment_details.rb +2 -2
- data/lib/oci/logging/models/change_log_log_group_details.rb +1 -1
- data/lib/oci/logging/models/change_unified_agent_configuration_compartment_details.rb +2 -2
- data/lib/oci/logging/models/create_log_details.rb +3 -3
- data/lib/oci/logging/models/create_log_group_details.rb +1 -1
- data/lib/oci/logging/models/create_log_saved_search_details.rb +2 -16
- data/lib/oci/logging/models/create_unified_agent_configuration_details.rb +1 -1
- data/lib/oci/logging/models/grok_pattern.rb +6 -6
- data/lib/oci/logging/models/log.rb +5 -5
- data/lib/oci/logging/models/log_group.rb +3 -3
- data/lib/oci/logging/models/log_group_summary.rb +43 -5
- data/lib/oci/logging/models/log_included_search.rb +1 -1
- data/lib/oci/logging/models/log_included_search_summary.rb +1 -1
- data/lib/oci/logging/models/log_saved_search.rb +44 -19
- data/lib/oci/logging/models/log_saved_search_lifecycle_state.rb +5 -1
- data/lib/oci/logging/models/log_saved_search_summary.rb +63 -17
- data/lib/oci/logging/models/log_saved_search_summary_collection.rb +1 -1
- data/lib/oci/logging/models/log_summary.rb +4 -4
- data/lib/oci/logging/models/parameter.rb +2 -2
- data/lib/oci/logging/models/resource_type.rb +2 -2
- data/lib/oci/logging/models/service_summary.rb +6 -6
- data/lib/oci/logging/models/source.rb +1 -1
- data/lib/oci/logging/models/unified_agent_apache2_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_apache_error_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_configuration.rb +2 -2
- data/lib/oci/logging/models/unified_agent_configuration_collection.rb +1 -1
- data/lib/oci/logging/models/unified_agent_configuration_summary.rb +4 -4
- data/lib/oci/logging/models/unified_agent_csv_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_grok_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_logging_destination.rb +1 -1
- data/lib/oci/logging/models/unified_agent_logging_source.rb +2 -2
- data/lib/oci/logging/models/unified_agent_multiline_grok_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_multiline_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_none_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_parser.rb +7 -7
- data/lib/oci/logging/models/unified_agent_regex_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_service_configuration_details.rb +1 -1
- data/lib/oci/logging/models/unified_agent_syslog_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_tail_log_source.rb +1 -1
- data/lib/oci/logging/models/unified_agent_tsv_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_windows_event_source.rb +1 -1
- data/lib/oci/logging/models/unified_json_parser.rb +1 -1
- data/lib/oci/logging/models/update_configuration_details.rb +1 -1
- data/lib/oci/logging/models/update_log_details.rb +3 -3
- data/lib/oci/logging/models/update_log_group_details.rb +1 -1
- data/lib/oci/logging/models/update_log_saved_search_details.rb +2 -16
- data/lib/oci/logging/models/update_unified_agent_configuration_details.rb +2 -2
- data/lib/oci/logging/models/work_request.rb +2 -2
- data/lib/oci/logging/models/work_request_error.rb +3 -3
- data/lib/oci/logging/models/work_request_log.rb +1 -1
- data/lib/oci/logging/models/work_request_resource.rb +3 -3
- data/lib/oci/loggingingestion/logging_client.rb +3 -3
- data/lib/oci/loggingingestion/models/log_entry.rb +4 -5
- data/lib/oci/loggingingestion/models/log_entry_batch.rb +7 -7
- data/lib/oci/loggingsearch/log_search_client.rb +3 -3
- data/lib/oci/loggingsearch/models/field_info.rb +1 -1
- data/lib/oci/loggingsearch/models/search_logs_details.rb +2 -2
- data/lib/oci/loggingsearch/models/search_result.rb +2 -2
- data/lib/oci/management_dashboard/dashx_apis_client.rb +31 -32
- data/lib/oci/management_dashboard/models/change_management_dashboards_compartment_details.rb +2 -2
- data/lib/oci/management_dashboard/models/change_management_saved_searches_compartment_details.rb +2 -2
- data/lib/oci/management_dashboard/models/create_management_dashboard_details.rb +18 -18
- data/lib/oci/management_dashboard/models/create_management_saved_search_details.rb +15 -15
- data/lib/oci/management_dashboard/models/management_dashboard.rb +23 -23
- data/lib/oci/management_dashboard/models/management_dashboard_export_details.rb +1 -1
- data/lib/oci/management_dashboard/models/management_dashboard_for_import_export_details.rb +19 -19
- data/lib/oci/management_dashboard/models/management_dashboard_import_details.rb +1 -1
- data/lib/oci/management_dashboard/models/management_dashboard_summary.rb +14 -14
- data/lib/oci/management_dashboard/models/management_dashboard_tile_details.rb +14 -12
- data/lib/oci/management_dashboard/models/management_saved_search.rb +19 -19
- data/lib/oci/management_dashboard/models/management_saved_search_for_import_details.rb +15 -15
- data/lib/oci/management_dashboard/models/management_saved_search_summary.rb +46 -18
- data/lib/oci/management_dashboard/models/update_management_dashboard_details.rb +17 -17
- data/lib/oci/management_dashboard/models/update_management_saved_search_details.rb +15 -15
- data/lib/oci/mysql/db_system_client.rb +611 -2
- data/lib/oci/mysql/db_system_client_composite_operations.rb +345 -0
- data/lib/oci/mysql/models/add_analytics_cluster_details.rb +173 -0
- data/lib/oci/mysql/models/analytics_cluster.rb +282 -0
- data/lib/oci/mysql/models/analytics_cluster_memory_estimate.rb +236 -0
- data/lib/oci/mysql/models/analytics_cluster_memory_estimate_status.rb +15 -0
- data/lib/oci/mysql/models/analytics_cluster_node.rb +222 -0
- data/lib/oci/mysql/models/analytics_cluster_schema_memory_estimate.rb +172 -0
- data/lib/oci/mysql/models/analytics_cluster_summary.rb +215 -0
- data/lib/oci/mysql/models/analytics_cluster_table_memory_estimate.rb +236 -0
- data/lib/oci/mysql/models/db_system.rb +31 -1
- data/lib/oci/mysql/models/db_system_summary.rb +31 -1
- data/lib/oci/mysql/models/shape_summary.rb +46 -4
- data/lib/oci/mysql/models/update_analytics_cluster_details.rb +179 -0
- data/lib/oci/mysql/models/work_request.rb +7 -0
- data/lib/oci/mysql/models/work_request_operation_type.rb +8 -1
- data/lib/oci/mysql/models/work_request_summary.rb +7 -0
- data/lib/oci/mysql/mysql.rb +9 -0
- data/lib/oci/mysql/mysqlaas_client.rb +14 -0
- data/lib/oci/nosql/models/create_table_details.rb +15 -1
- data/lib/oci/nosql/models/table.rb +55 -4
- data/lib/oci/nosql/models/table_collection.rb +32 -4
- data/lib/oci/nosql/models/table_summary.rb +54 -4
- data/lib/oci/nosql/nosql_client.rb +6 -6
- data/lib/oci/object_storage/models/object_lifecycle_rule.rb +6 -0
- data/lib/oci/ocvp/models/create_esxi_host_details.rb +4 -2
- data/lib/oci/ocvp/models/create_sddc_details.rb +35 -3
- data/lib/oci/ocvp/models/sddc.rb +89 -1
- data/lib/oci/ocvp/models/sddc_summary.rb +29 -1
- data/lib/oci/ocvp/models/update_esxi_host_details.rb +3 -1
- data/lib/oci/ocvp/models/update_sddc_details.rb +17 -1
- data/lib/oci/opsi/models/database_details.rb +210 -0
- data/lib/oci/opsi/models/database_insight_summary.rb +286 -0
- data/lib/oci/opsi/models/database_insights.rb +154 -0
- data/lib/oci/opsi/models/database_insights_collection.rb +150 -0
- data/lib/oci/opsi/models/historical_data_item.rb +165 -0
- data/lib/oci/opsi/models/ingest_sql_bucket_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_sql_bucket_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_sql_plan_lines_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_sql_plan_lines_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_sql_text_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_sql_text_response_details.rb +152 -0
- data/lib/oci/opsi/models/projected_data_item.rb +195 -0
- data/lib/oci/opsi/models/resource_capacity_trend_aggregation.rb +180 -0
- data/lib/oci/opsi/models/resource_insight_current_utilization.rb +160 -0
- data/lib/oci/opsi/models/resource_insight_projected_utilization.rb +160 -0
- data/lib/oci/opsi/models/resource_insight_projected_utilization_item.rb +164 -0
- data/lib/oci/opsi/models/resource_statistics.rb +219 -0
- data/lib/oci/opsi/models/resource_statistics_aggregation.rb +166 -0
- data/lib/oci/opsi/models/resource_usage_trend_aggregation.rb +176 -0
- data/lib/oci/opsi/models/sort_order.rb +11 -0
- data/lib/oci/opsi/models/sql_bucket.rb +307 -0
- data/lib/oci/opsi/models/sql_insight_aggregation.rb +202 -0
- data/lib/oci/opsi/models/sql_insight_aggregation_collection.rb +199 -0
- data/lib/oci/opsi/models/sql_insight_thresholds.rb +243 -0
- data/lib/oci/opsi/models/sql_inventory.rb +182 -0
- data/lib/oci/opsi/models/sql_plan_collection.rb +180 -0
- data/lib/oci/opsi/models/sql_plan_insight_aggregation.rb +210 -0
- data/lib/oci/opsi/models/sql_plan_insight_aggregation_collection.rb +218 -0
- data/lib/oci/opsi/models/sql_plan_insights.rb +177 -0
- data/lib/oci/opsi/models/sql_plan_line.rb +673 -0
- data/lib/oci/opsi/models/sql_plan_summary.rb +169 -0
- data/lib/oci/opsi/models/sql_response_time_distribution_aggregation.rb +168 -0
- data/lib/oci/opsi/models/sql_response_time_distribution_aggregation_collection.rb +208 -0
- data/lib/oci/opsi/models/sql_search_collection.rb +209 -0
- data/lib/oci/opsi/models/sql_search_summary.rb +224 -0
- data/lib/oci/opsi/models/sql_statistic_aggregation.rb +189 -0
- data/lib/oci/opsi/models/sql_statistic_aggregation_collection.rb +179 -0
- data/lib/oci/opsi/models/sql_statistics.rb +402 -0
- data/lib/oci/opsi/models/sql_statistics_time_series.rb +162 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_aggregation.rb +165 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_aggregation_collection.rb +223 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation.rb +165 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.rb +237 -0
- data/lib/oci/opsi/models/sql_text.rb +248 -0
- data/lib/oci/opsi/models/sql_text_collection.rb +151 -0
- data/lib/oci/opsi/models/sql_text_summary.rb +184 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.rb +270 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +302 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.rb +249 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.rb +275 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.rb +270 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.rb +232 -0
- data/lib/oci/opsi/models/usage_unit.rb +13 -0
- data/lib/oci/opsi/operations_insights_client.rb +2008 -0
- data/lib/oci/opsi/operations_insights_client_composite_operations.rb +25 -0
- data/lib/oci/opsi/opsi.rb +72 -0
- data/lib/oci/opsi/util.rb +3 -0
- data/lib/oci/optimizer/models/action.rb +192 -0
- data/lib/oci/optimizer/models/action_type.rb +10 -0
- data/lib/oci/optimizer/models/bulk_apply_recommendations_details.rb +197 -0
- data/lib/oci/optimizer/models/category.rb +298 -0
- data/lib/oci/optimizer/models/category_collection.rb +151 -0
- data/lib/oci/optimizer/models/category_summary.rb +298 -0
- data/lib/oci/optimizer/models/create_profile_details.rb +227 -0
- data/lib/oci/{log_analytics/models/log_analytics_summary.rb → optimizer/models/enrollment_status.rb} +81 -63
- data/lib/oci/optimizer/models/enrollment_status_collection.rb +151 -0
- data/lib/oci/optimizer/models/enrollment_status_summary.rb +279 -0
- data/lib/oci/optimizer/models/history_collection.rb +151 -0
- data/lib/oci/optimizer/models/history_summary.rb +429 -0
- data/lib/oci/optimizer/models/importance.rb +14 -0
- data/lib/oci/{log_analytics/models/field_map.rb → optimizer/models/level_configuration.rb} +19 -24
- data/lib/oci/optimizer/models/levels_configuration.rb +150 -0
- data/lib/oci/optimizer/models/lifecycle_state.rb +18 -0
- data/lib/oci/optimizer/models/operation_status.rb +15 -0
- data/lib/oci/optimizer/models/operation_type.rb +10 -0
- data/lib/oci/optimizer/models/optimizer_enrollment_status.rb +11 -0
- data/lib/oci/optimizer/models/profile.rb +305 -0
- data/lib/oci/optimizer/models/profile_collection.rb +151 -0
- data/lib/oci/optimizer/models/profile_summary.rb +303 -0
- data/lib/oci/optimizer/models/recommendation.rb +409 -0
- data/lib/oci/optimizer/models/recommendation_collection.rb +151 -0
- data/lib/oci/optimizer/models/recommendation_count.rb +183 -0
- data/lib/oci/optimizer/models/recommendation_summary.rb +409 -0
- data/lib/oci/optimizer/models/resource_action.rb +450 -0
- data/lib/oci/optimizer/models/resource_action_collection.rb +151 -0
- data/lib/oci/optimizer/models/resource_action_summary.rb +450 -0
- data/lib/oci/optimizer/models/resource_count.rb +182 -0
- data/lib/oci/optimizer/models/sort_order.rb +11 -0
- data/lib/oci/optimizer/models/status.rb +13 -0
- data/lib/oci/{log_analytics/models/agent_upload.rb → optimizer/models/supported_level.rb} +3 -3
- data/lib/oci/optimizer/models/supported_levels.rb +153 -0
- data/lib/oci/optimizer/models/update_enrollment_status_details.rb +166 -0
- data/lib/oci/optimizer/models/update_profile_details.rb +202 -0
- data/lib/oci/optimizer/models/update_recommendation_details.rb +183 -0
- data/lib/oci/optimizer/models/update_resource_action_details.rb +183 -0
- data/lib/oci/optimizer/models/work_request.rb +300 -0
- data/lib/oci/optimizer/models/work_request_action_type.rb +14 -0
- data/lib/oci/optimizer/models/work_request_collection.rb +151 -0
- data/lib/oci/optimizer/models/work_request_error.rb +173 -0
- data/lib/oci/optimizer/models/work_request_error_collection.rb +151 -0
- data/lib/oci/optimizer/models/work_request_log_entry.rb +161 -0
- data/lib/oci/optimizer/models/work_request_log_entry_collection.rb +151 -0
- data/lib/oci/{log_analytics/models/out_of_box_entity_type_details.rb → optimizer/models/work_request_resource.rb} +60 -57
- data/lib/oci/optimizer/optimizer.rb +66 -0
- data/lib/oci/optimizer/optimizer_client.rb +1652 -0
- data/lib/oci/optimizer/optimizer_client_composite_operations.rb +314 -0
- data/lib/oci/optimizer/util.rb +3 -0
- data/lib/oci/regions.rb +5 -1
- data/lib/oci/sch/models/service_connector.rb +1 -1
- data/lib/oci/sch/models/source_details.rb +1 -1
- data/lib/oci/sch/models/target_details.rb +1 -1
- data/lib/oci/sch/models/task_details.rb +1 -1
- data/lib/oci/sch/models/work_request.rb +1 -1
- data/lib/oci/sch/service_connector_client.rb +8 -8
- data/lib/oci/signer.rb +3 -1
- data/lib/oci/tenant_manager_control_plane/link_client.rb +287 -0
- data/lib/oci/tenant_manager_control_plane/link_client_composite_operations.rb +65 -0
- data/lib/oci/tenant_manager_control_plane/models/action_type.rb +14 -0
- data/lib/oci/tenant_manager_control_plane/models/create_sender_invitation_details.rb +228 -0
- data/lib/oci/tenant_manager_control_plane/models/lifecycle_state.rb +15 -0
- data/lib/oci/tenant_manager_control_plane/models/link.rb +258 -0
- data/lib/oci/tenant_manager_control_plane/models/link_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/link_summary.rb +258 -0
- data/lib/oci/tenant_manager_control_plane/models/operation_status.rb +15 -0
- data/lib/oci/tenant_manager_control_plane/models/operation_type.rb +12 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation.rb +367 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_status.rb +15 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_summary.rb +367 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation.rb +366 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation_status.rb +14 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation_summary.rb +366 -0
- data/lib/oci/tenant_manager_control_plane/models/sort_order.rb +11 -0
- data/lib/oci/tenant_manager_control_plane/models/update_recipient_invitation_details.rb +186 -0
- data/lib/oci/tenant_manager_control_plane/models/update_sender_invitation_details.rb +186 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request.rb +307 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_error.rb +173 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_error_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry.rb +160 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_resource.rb +219 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_summary.rb +307 -0
- data/lib/oci/tenant_manager_control_plane/recipient_invitation_client.rb +425 -0
- data/lib/oci/tenant_manager_control_plane/recipient_invitation_client_composite_operations.rb +153 -0
- data/lib/oci/tenant_manager_control_plane/sender_invitation_client.rb +435 -0
- data/lib/oci/tenant_manager_control_plane/sender_invitation_client_composite_operations.rb +163 -0
- data/lib/oci/tenant_manager_control_plane/tenant_manager_control_plane.rb +52 -0
- data/lib/oci/tenant_manager_control_plane/util.rb +3 -0
- data/lib/oci/tenant_manager_control_plane/work_request_client.rb +356 -0
- data/lib/oci/tenant_manager_control_plane/work_request_client_composite_operations.rb +25 -0
- data/lib/oci/usage_api/models/configuration.rb +3 -3
- data/lib/oci/usage_api/models/configuration_aggregation.rb +2 -2
- data/lib/oci/usage_api/models/dimension.rb +3 -3
- data/lib/oci/usage_api/models/filter.rb +1 -1
- data/lib/oci/usage_api/models/request_summarized_usages_details.rb +12 -12
- data/lib/oci/usage_api/models/tag.rb +3 -3
- data/lib/oci/usage_api/models/usage_aggregation.rb +1 -1
- data/lib/oci/usage_api/models/usage_summary.rb +47 -19
- data/lib/oci/usage_api/usageapi_client.rb +4 -4
- data/lib/oci/version.rb +1 -1
- metadata +273 -17
- data/lib/oci/log_analytics/models/attribute.rb +0 -435
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
# 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.
|
|
3
|
+
|
|
4
|
+
module OCI
|
|
5
|
+
module TenantManagerControlPlane::Models
|
|
6
|
+
RECIPIENT_INVITATION_STATUS_ENUM = [
|
|
7
|
+
RECIPIENT_INVITATION_STATUS_PENDING = 'PENDING'.freeze,
|
|
8
|
+
RECIPIENT_INVITATION_STATUS_CANCELED = 'CANCELED'.freeze,
|
|
9
|
+
RECIPIENT_INVITATION_STATUS_ACCEPTED = 'ACCEPTED'.freeze,
|
|
10
|
+
RECIPIENT_INVITATION_STATUS_IGNORED = 'IGNORED'.freeze,
|
|
11
|
+
RECIPIENT_INVITATION_STATUS_EXPIRED = 'EXPIRED'.freeze,
|
|
12
|
+
RECIPIENT_INVITATION_STATUS_FAILED = 'FAILED'.freeze
|
|
13
|
+
].freeze
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
# 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.
|
|
3
|
+
|
|
4
|
+
require 'date'
|
|
5
|
+
require 'logger'
|
|
6
|
+
|
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
8
|
+
module OCI
|
|
9
|
+
# The summary of the invitation model that the recipient owns.
|
|
10
|
+
class TenantManagerControlPlane::Models::RecipientInvitationSummary
|
|
11
|
+
LIFECYCLE_STATE_ENUM = [
|
|
12
|
+
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
|
13
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
|
14
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
|
15
|
+
LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
|
|
16
|
+
LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
|
|
17
|
+
LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
|
|
18
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
19
|
+
].freeze
|
|
20
|
+
|
|
21
|
+
STATUS_ENUM = [
|
|
22
|
+
STATUS_PENDING = 'PENDING'.freeze,
|
|
23
|
+
STATUS_CANCELED = 'CANCELED'.freeze,
|
|
24
|
+
STATUS_ACCEPTED = 'ACCEPTED'.freeze,
|
|
25
|
+
STATUS_IGNORED = 'IGNORED'.freeze,
|
|
26
|
+
STATUS_EXPIRED = 'EXPIRED'.freeze,
|
|
27
|
+
STATUS_FAILED = 'FAILED'.freeze,
|
|
28
|
+
STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
29
|
+
].freeze
|
|
30
|
+
|
|
31
|
+
# **[Required]** OCID of the recipient invitation.
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :id
|
|
34
|
+
|
|
35
|
+
# **[Required]** OCID of the recipient tenancy.
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :compartment_id
|
|
38
|
+
|
|
39
|
+
# **[Required]** A user-created name to describe the invitation.
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :display_name
|
|
42
|
+
|
|
43
|
+
# **[Required]** OCID of the corresponding sender invitation.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :sender_invitation_id
|
|
46
|
+
|
|
47
|
+
# **[Required]** OCID of the sender tenancy.
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :sender_tenancy_id
|
|
50
|
+
|
|
51
|
+
# **[Required]** Lifecycle state of the recipient invitation.
|
|
52
|
+
# @return [String]
|
|
53
|
+
attr_reader :lifecycle_state
|
|
54
|
+
|
|
55
|
+
# **[Required]** Status of the recipient invitation.
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_reader :status
|
|
58
|
+
|
|
59
|
+
# **[Required]** Date-time when this recipient invitation was created.
|
|
60
|
+
# @return [DateTime]
|
|
61
|
+
attr_accessor :time_created
|
|
62
|
+
|
|
63
|
+
# Date-time when this recipient invitation was last updated.
|
|
64
|
+
# @return [DateTime]
|
|
65
|
+
attr_accessor :time_updated
|
|
66
|
+
|
|
67
|
+
# Email address of the recipient.
|
|
68
|
+
# @return [String]
|
|
69
|
+
attr_accessor :recipient_email_address
|
|
70
|
+
|
|
71
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
|
72
|
+
# Example: `{\"bar-key\": \"value\"}`
|
|
73
|
+
#
|
|
74
|
+
# @return [Hash<String, String>]
|
|
75
|
+
attr_accessor :freeform_tags
|
|
76
|
+
|
|
77
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
78
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
|
|
79
|
+
#
|
|
80
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
81
|
+
attr_accessor :defined_tags
|
|
82
|
+
|
|
83
|
+
# Usage of system tag keys. These predefined keys are scoped to namespaces.
|
|
84
|
+
# Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
|
|
85
|
+
#
|
|
86
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
87
|
+
attr_accessor :system_tags
|
|
88
|
+
|
|
89
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
90
|
+
def self.attribute_map
|
|
91
|
+
{
|
|
92
|
+
# rubocop:disable Style/SymbolLiteral
|
|
93
|
+
'id': :'id',
|
|
94
|
+
'compartment_id': :'compartmentId',
|
|
95
|
+
'display_name': :'displayName',
|
|
96
|
+
'sender_invitation_id': :'senderInvitationId',
|
|
97
|
+
'sender_tenancy_id': :'senderTenancyId',
|
|
98
|
+
'lifecycle_state': :'lifecycleState',
|
|
99
|
+
'status': :'status',
|
|
100
|
+
'time_created': :'timeCreated',
|
|
101
|
+
'time_updated': :'timeUpdated',
|
|
102
|
+
'recipient_email_address': :'recipientEmailAddress',
|
|
103
|
+
'freeform_tags': :'freeformTags',
|
|
104
|
+
'defined_tags': :'definedTags',
|
|
105
|
+
'system_tags': :'systemTags'
|
|
106
|
+
# rubocop:enable Style/SymbolLiteral
|
|
107
|
+
}
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Attribute type mapping.
|
|
111
|
+
def self.swagger_types
|
|
112
|
+
{
|
|
113
|
+
# rubocop:disable Style/SymbolLiteral
|
|
114
|
+
'id': :'String',
|
|
115
|
+
'compartment_id': :'String',
|
|
116
|
+
'display_name': :'String',
|
|
117
|
+
'sender_invitation_id': :'String',
|
|
118
|
+
'sender_tenancy_id': :'String',
|
|
119
|
+
'lifecycle_state': :'String',
|
|
120
|
+
'status': :'String',
|
|
121
|
+
'time_created': :'DateTime',
|
|
122
|
+
'time_updated': :'DateTime',
|
|
123
|
+
'recipient_email_address': :'String',
|
|
124
|
+
'freeform_tags': :'Hash<String, String>',
|
|
125
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
126
|
+
'system_tags': :'Hash<String, Hash<String, Object>>'
|
|
127
|
+
# rubocop:enable Style/SymbolLiteral
|
|
128
|
+
}
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
132
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
# Initializes the object
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
|
138
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
139
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
140
|
+
# @option attributes [String] :sender_invitation_id The value to assign to the {#sender_invitation_id} property
|
|
141
|
+
# @option attributes [String] :sender_tenancy_id The value to assign to the {#sender_tenancy_id} property
|
|
142
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
143
|
+
# @option attributes [String] :status The value to assign to the {#status} property
|
|
144
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
145
|
+
# @option attributes [DateTime] :time_updated The value to assign to the {#time_updated} property
|
|
146
|
+
# @option attributes [String] :recipient_email_address The value to assign to the {#recipient_email_address} property
|
|
147
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
148
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
149
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :system_tags The value to assign to the {#system_tags} property
|
|
150
|
+
def initialize(attributes = {})
|
|
151
|
+
return unless attributes.is_a?(Hash)
|
|
152
|
+
|
|
153
|
+
# convert string to symbol for hash key
|
|
154
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
155
|
+
|
|
156
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
|
157
|
+
|
|
158
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
159
|
+
|
|
160
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
161
|
+
|
|
162
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
163
|
+
|
|
164
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
165
|
+
|
|
166
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
167
|
+
|
|
168
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
169
|
+
|
|
170
|
+
self.sender_invitation_id = attributes[:'senderInvitationId'] if attributes[:'senderInvitationId']
|
|
171
|
+
|
|
172
|
+
raise 'You cannot provide both :senderInvitationId and :sender_invitation_id' if attributes.key?(:'senderInvitationId') && attributes.key?(:'sender_invitation_id')
|
|
173
|
+
|
|
174
|
+
self.sender_invitation_id = attributes[:'sender_invitation_id'] if attributes[:'sender_invitation_id']
|
|
175
|
+
|
|
176
|
+
self.sender_tenancy_id = attributes[:'senderTenancyId'] if attributes[:'senderTenancyId']
|
|
177
|
+
|
|
178
|
+
raise 'You cannot provide both :senderTenancyId and :sender_tenancy_id' if attributes.key?(:'senderTenancyId') && attributes.key?(:'sender_tenancy_id')
|
|
179
|
+
|
|
180
|
+
self.sender_tenancy_id = attributes[:'sender_tenancy_id'] if attributes[:'sender_tenancy_id']
|
|
181
|
+
|
|
182
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
183
|
+
|
|
184
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
185
|
+
|
|
186
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
187
|
+
|
|
188
|
+
self.status = attributes[:'status'] if attributes[:'status']
|
|
189
|
+
|
|
190
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
191
|
+
|
|
192
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
193
|
+
|
|
194
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
|
195
|
+
|
|
196
|
+
self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']
|
|
197
|
+
|
|
198
|
+
raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')
|
|
199
|
+
|
|
200
|
+
self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']
|
|
201
|
+
|
|
202
|
+
self.recipient_email_address = attributes[:'recipientEmailAddress'] if attributes[:'recipientEmailAddress']
|
|
203
|
+
|
|
204
|
+
raise 'You cannot provide both :recipientEmailAddress and :recipient_email_address' if attributes.key?(:'recipientEmailAddress') && attributes.key?(:'recipient_email_address')
|
|
205
|
+
|
|
206
|
+
self.recipient_email_address = attributes[:'recipient_email_address'] if attributes[:'recipient_email_address']
|
|
207
|
+
|
|
208
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
209
|
+
|
|
210
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
211
|
+
|
|
212
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
213
|
+
|
|
214
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
215
|
+
|
|
216
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
217
|
+
|
|
218
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
219
|
+
|
|
220
|
+
self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']
|
|
221
|
+
|
|
222
|
+
raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags')
|
|
223
|
+
|
|
224
|
+
self.system_tags = attributes[:'system_tags'] if attributes[:'system_tags']
|
|
225
|
+
end
|
|
226
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
227
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
228
|
+
|
|
229
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
230
|
+
# @param [Object] lifecycle_state Object to be assigned
|
|
231
|
+
def lifecycle_state=(lifecycle_state)
|
|
232
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
233
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
|
234
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
235
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
|
236
|
+
else
|
|
237
|
+
@lifecycle_state = lifecycle_state
|
|
238
|
+
end
|
|
239
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
243
|
+
# @param [Object] status Object to be assigned
|
|
244
|
+
def status=(status)
|
|
245
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
246
|
+
if status && !STATUS_ENUM.include?(status)
|
|
247
|
+
OCI.logger.debug("Unknown value for 'status' [" + status + "]. Mapping to 'STATUS_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
248
|
+
@status = STATUS_UNKNOWN_ENUM_VALUE
|
|
249
|
+
else
|
|
250
|
+
@status = status
|
|
251
|
+
end
|
|
252
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
# Checks equality by comparing each attribute.
|
|
259
|
+
# @param [Object] other the other object to be compared
|
|
260
|
+
def ==(other)
|
|
261
|
+
return true if equal?(other)
|
|
262
|
+
|
|
263
|
+
self.class == other.class &&
|
|
264
|
+
id == other.id &&
|
|
265
|
+
compartment_id == other.compartment_id &&
|
|
266
|
+
display_name == other.display_name &&
|
|
267
|
+
sender_invitation_id == other.sender_invitation_id &&
|
|
268
|
+
sender_tenancy_id == other.sender_tenancy_id &&
|
|
269
|
+
lifecycle_state == other.lifecycle_state &&
|
|
270
|
+
status == other.status &&
|
|
271
|
+
time_created == other.time_created &&
|
|
272
|
+
time_updated == other.time_updated &&
|
|
273
|
+
recipient_email_address == other.recipient_email_address &&
|
|
274
|
+
freeform_tags == other.freeform_tags &&
|
|
275
|
+
defined_tags == other.defined_tags &&
|
|
276
|
+
system_tags == other.system_tags
|
|
277
|
+
end
|
|
278
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
279
|
+
|
|
280
|
+
# @see the `==` method
|
|
281
|
+
# @param [Object] other the other object to be compared
|
|
282
|
+
def eql?(other)
|
|
283
|
+
self == other
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
# Calculates hash code according to all attributes.
|
|
290
|
+
# @return [Fixnum] Hash code
|
|
291
|
+
def hash
|
|
292
|
+
[id, compartment_id, display_name, sender_invitation_id, sender_tenancy_id, lifecycle_state, status, time_created, time_updated, recipient_email_address, freeform_tags, defined_tags, system_tags].hash
|
|
293
|
+
end
|
|
294
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
295
|
+
|
|
296
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
# Builds the object from hash
|
|
300
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
301
|
+
# @return [Object] Returns the model itself
|
|
302
|
+
def build_from_hash(attributes)
|
|
303
|
+
return nil unless attributes.is_a?(Hash)
|
|
304
|
+
|
|
305
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
306
|
+
if type =~ /^Array<(.*)>/i
|
|
307
|
+
# check to ensure the input is an array given that the the attribute
|
|
308
|
+
# is documented as an array but the input is not
|
|
309
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
310
|
+
public_method("#{key}=").call(
|
|
311
|
+
attributes[self.class.attribute_map[key]]
|
|
312
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
313
|
+
)
|
|
314
|
+
end
|
|
315
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
316
|
+
public_method("#{key}=").call(
|
|
317
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
318
|
+
)
|
|
319
|
+
end
|
|
320
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
self
|
|
324
|
+
end
|
|
325
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
326
|
+
|
|
327
|
+
# Returns the string representation of the object
|
|
328
|
+
# @return [String] String presentation of the object
|
|
329
|
+
def to_s
|
|
330
|
+
to_hash.to_s
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Returns the object in the form of hash
|
|
334
|
+
# @return [Hash] Returns the object in the form of hash
|
|
335
|
+
def to_hash
|
|
336
|
+
hash = {}
|
|
337
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
338
|
+
value = public_method(attr).call
|
|
339
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
340
|
+
|
|
341
|
+
hash[param] = _to_hash(value)
|
|
342
|
+
end
|
|
343
|
+
hash
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
private
|
|
347
|
+
|
|
348
|
+
# Outputs non-array value in the form of hash
|
|
349
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
350
|
+
# @param [Object] value Any valid value
|
|
351
|
+
# @return [Hash] Returns the value in the form of hash
|
|
352
|
+
def _to_hash(value)
|
|
353
|
+
if value.is_a?(Array)
|
|
354
|
+
value.compact.map { |v| _to_hash(v) }
|
|
355
|
+
elsif value.is_a?(Hash)
|
|
356
|
+
{}.tap do |hash|
|
|
357
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
358
|
+
end
|
|
359
|
+
elsif value.respond_to? :to_hash
|
|
360
|
+
value.to_hash
|
|
361
|
+
else
|
|
362
|
+
value
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
end
|
|
367
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
# 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.
|
|
3
|
+
|
|
4
|
+
require 'date'
|
|
5
|
+
require 'logger'
|
|
6
|
+
|
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
8
|
+
module OCI
|
|
9
|
+
# The invitation model that the sender owns.
|
|
10
|
+
class TenantManagerControlPlane::Models::SenderInvitation
|
|
11
|
+
LIFECYCLE_STATE_ENUM = [
|
|
12
|
+
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
|
13
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
|
14
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
|
15
|
+
LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
|
|
16
|
+
LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
|
|
17
|
+
LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
|
|
18
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
19
|
+
].freeze
|
|
20
|
+
|
|
21
|
+
STATUS_ENUM = [
|
|
22
|
+
STATUS_PENDING = 'PENDING'.freeze,
|
|
23
|
+
STATUS_CANCELED = 'CANCELED'.freeze,
|
|
24
|
+
STATUS_ACCEPTED = 'ACCEPTED'.freeze,
|
|
25
|
+
STATUS_EXPIRED = 'EXPIRED'.freeze,
|
|
26
|
+
STATUS_FAILED = 'FAILED'.freeze,
|
|
27
|
+
STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
28
|
+
].freeze
|
|
29
|
+
|
|
30
|
+
# **[Required]** OCID of the sender invitation.
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :id
|
|
33
|
+
|
|
34
|
+
# **[Required]** OCID of the sender tenancy.
|
|
35
|
+
# @return [String]
|
|
36
|
+
attr_accessor :compartment_id
|
|
37
|
+
|
|
38
|
+
# OCID of the corresponding recipient invitation.
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :recipient_invitation_id
|
|
41
|
+
|
|
42
|
+
# **[Required]** OCID of the recipient tenancy.
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :recipient_tenancy_id
|
|
45
|
+
|
|
46
|
+
# **[Required]** Lifecycle state of the sender invitation.
|
|
47
|
+
# @return [String]
|
|
48
|
+
attr_reader :lifecycle_state
|
|
49
|
+
|
|
50
|
+
# **[Required]** Status of the sender invitation.
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_reader :status
|
|
53
|
+
|
|
54
|
+
# A user-created name to describe the invitation.
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :display_name
|
|
57
|
+
|
|
58
|
+
# **[Required]** Date-time when this sender invitation was created.
|
|
59
|
+
# @return [DateTime]
|
|
60
|
+
attr_accessor :time_created
|
|
61
|
+
|
|
62
|
+
# Date-time when this sender invitation was last updated.
|
|
63
|
+
# @return [DateTime]
|
|
64
|
+
attr_accessor :time_updated
|
|
65
|
+
|
|
66
|
+
# Email address of the recipient.
|
|
67
|
+
# @return [String]
|
|
68
|
+
attr_accessor :recipient_email_address
|
|
69
|
+
|
|
70
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
|
71
|
+
# Example: `{\"bar-key\": \"value\"}`
|
|
72
|
+
#
|
|
73
|
+
# @return [Hash<String, String>]
|
|
74
|
+
attr_accessor :freeform_tags
|
|
75
|
+
|
|
76
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
77
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
|
|
78
|
+
#
|
|
79
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
80
|
+
attr_accessor :defined_tags
|
|
81
|
+
|
|
82
|
+
# Usage of system tag keys. These predefined keys are scoped to namespaces.
|
|
83
|
+
# Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
|
|
84
|
+
#
|
|
85
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
86
|
+
attr_accessor :system_tags
|
|
87
|
+
|
|
88
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
89
|
+
def self.attribute_map
|
|
90
|
+
{
|
|
91
|
+
# rubocop:disable Style/SymbolLiteral
|
|
92
|
+
'id': :'id',
|
|
93
|
+
'compartment_id': :'compartmentId',
|
|
94
|
+
'recipient_invitation_id': :'recipientInvitationId',
|
|
95
|
+
'recipient_tenancy_id': :'recipientTenancyId',
|
|
96
|
+
'lifecycle_state': :'lifecycleState',
|
|
97
|
+
'status': :'status',
|
|
98
|
+
'display_name': :'displayName',
|
|
99
|
+
'time_created': :'timeCreated',
|
|
100
|
+
'time_updated': :'timeUpdated',
|
|
101
|
+
'recipient_email_address': :'recipientEmailAddress',
|
|
102
|
+
'freeform_tags': :'freeformTags',
|
|
103
|
+
'defined_tags': :'definedTags',
|
|
104
|
+
'system_tags': :'systemTags'
|
|
105
|
+
# rubocop:enable Style/SymbolLiteral
|
|
106
|
+
}
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Attribute type mapping.
|
|
110
|
+
def self.swagger_types
|
|
111
|
+
{
|
|
112
|
+
# rubocop:disable Style/SymbolLiteral
|
|
113
|
+
'id': :'String',
|
|
114
|
+
'compartment_id': :'String',
|
|
115
|
+
'recipient_invitation_id': :'String',
|
|
116
|
+
'recipient_tenancy_id': :'String',
|
|
117
|
+
'lifecycle_state': :'String',
|
|
118
|
+
'status': :'String',
|
|
119
|
+
'display_name': :'String',
|
|
120
|
+
'time_created': :'DateTime',
|
|
121
|
+
'time_updated': :'DateTime',
|
|
122
|
+
'recipient_email_address': :'String',
|
|
123
|
+
'freeform_tags': :'Hash<String, String>',
|
|
124
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
125
|
+
'system_tags': :'Hash<String, Hash<String, Object>>'
|
|
126
|
+
# rubocop:enable Style/SymbolLiteral
|
|
127
|
+
}
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
131
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
# Initializes the object
|
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
136
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
|
137
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
138
|
+
# @option attributes [String] :recipient_invitation_id The value to assign to the {#recipient_invitation_id} property
|
|
139
|
+
# @option attributes [String] :recipient_tenancy_id The value to assign to the {#recipient_tenancy_id} property
|
|
140
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
141
|
+
# @option attributes [String] :status The value to assign to the {#status} property
|
|
142
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
143
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
144
|
+
# @option attributes [DateTime] :time_updated The value to assign to the {#time_updated} property
|
|
145
|
+
# @option attributes [String] :recipient_email_address The value to assign to the {#recipient_email_address} property
|
|
146
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
147
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
148
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :system_tags The value to assign to the {#system_tags} property
|
|
149
|
+
def initialize(attributes = {})
|
|
150
|
+
return unless attributes.is_a?(Hash)
|
|
151
|
+
|
|
152
|
+
# convert string to symbol for hash key
|
|
153
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
154
|
+
|
|
155
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
|
156
|
+
|
|
157
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
158
|
+
|
|
159
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
160
|
+
|
|
161
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
162
|
+
|
|
163
|
+
self.recipient_invitation_id = attributes[:'recipientInvitationId'] if attributes[:'recipientInvitationId']
|
|
164
|
+
|
|
165
|
+
raise 'You cannot provide both :recipientInvitationId and :recipient_invitation_id' if attributes.key?(:'recipientInvitationId') && attributes.key?(:'recipient_invitation_id')
|
|
166
|
+
|
|
167
|
+
self.recipient_invitation_id = attributes[:'recipient_invitation_id'] if attributes[:'recipient_invitation_id']
|
|
168
|
+
|
|
169
|
+
self.recipient_tenancy_id = attributes[:'recipientTenancyId'] if attributes[:'recipientTenancyId']
|
|
170
|
+
|
|
171
|
+
raise 'You cannot provide both :recipientTenancyId and :recipient_tenancy_id' if attributes.key?(:'recipientTenancyId') && attributes.key?(:'recipient_tenancy_id')
|
|
172
|
+
|
|
173
|
+
self.recipient_tenancy_id = attributes[:'recipient_tenancy_id'] if attributes[:'recipient_tenancy_id']
|
|
174
|
+
|
|
175
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
176
|
+
|
|
177
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
178
|
+
|
|
179
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
180
|
+
|
|
181
|
+
self.status = attributes[:'status'] if attributes[:'status']
|
|
182
|
+
|
|
183
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
184
|
+
|
|
185
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
186
|
+
|
|
187
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
188
|
+
|
|
189
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
190
|
+
|
|
191
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
192
|
+
|
|
193
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
|
194
|
+
|
|
195
|
+
self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']
|
|
196
|
+
|
|
197
|
+
raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')
|
|
198
|
+
|
|
199
|
+
self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']
|
|
200
|
+
|
|
201
|
+
self.recipient_email_address = attributes[:'recipientEmailAddress'] if attributes[:'recipientEmailAddress']
|
|
202
|
+
|
|
203
|
+
raise 'You cannot provide both :recipientEmailAddress and :recipient_email_address' if attributes.key?(:'recipientEmailAddress') && attributes.key?(:'recipient_email_address')
|
|
204
|
+
|
|
205
|
+
self.recipient_email_address = attributes[:'recipient_email_address'] if attributes[:'recipient_email_address']
|
|
206
|
+
|
|
207
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
208
|
+
|
|
209
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
210
|
+
|
|
211
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
212
|
+
|
|
213
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
214
|
+
|
|
215
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
216
|
+
|
|
217
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
218
|
+
|
|
219
|
+
self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']
|
|
220
|
+
|
|
221
|
+
raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags')
|
|
222
|
+
|
|
223
|
+
self.system_tags = attributes[:'system_tags'] if attributes[:'system_tags']
|
|
224
|
+
end
|
|
225
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
226
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
227
|
+
|
|
228
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
229
|
+
# @param [Object] lifecycle_state Object to be assigned
|
|
230
|
+
def lifecycle_state=(lifecycle_state)
|
|
231
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
232
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
|
233
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
234
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
|
235
|
+
else
|
|
236
|
+
@lifecycle_state = lifecycle_state
|
|
237
|
+
end
|
|
238
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
242
|
+
# @param [Object] status Object to be assigned
|
|
243
|
+
def status=(status)
|
|
244
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
245
|
+
if status && !STATUS_ENUM.include?(status)
|
|
246
|
+
OCI.logger.debug("Unknown value for 'status' [" + status + "]. Mapping to 'STATUS_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
247
|
+
@status = STATUS_UNKNOWN_ENUM_VALUE
|
|
248
|
+
else
|
|
249
|
+
@status = status
|
|
250
|
+
end
|
|
251
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
# Checks equality by comparing each attribute.
|
|
258
|
+
# @param [Object] other the other object to be compared
|
|
259
|
+
def ==(other)
|
|
260
|
+
return true if equal?(other)
|
|
261
|
+
|
|
262
|
+
self.class == other.class &&
|
|
263
|
+
id == other.id &&
|
|
264
|
+
compartment_id == other.compartment_id &&
|
|
265
|
+
recipient_invitation_id == other.recipient_invitation_id &&
|
|
266
|
+
recipient_tenancy_id == other.recipient_tenancy_id &&
|
|
267
|
+
lifecycle_state == other.lifecycle_state &&
|
|
268
|
+
status == other.status &&
|
|
269
|
+
display_name == other.display_name &&
|
|
270
|
+
time_created == other.time_created &&
|
|
271
|
+
time_updated == other.time_updated &&
|
|
272
|
+
recipient_email_address == other.recipient_email_address &&
|
|
273
|
+
freeform_tags == other.freeform_tags &&
|
|
274
|
+
defined_tags == other.defined_tags &&
|
|
275
|
+
system_tags == other.system_tags
|
|
276
|
+
end
|
|
277
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
278
|
+
|
|
279
|
+
# @see the `==` method
|
|
280
|
+
# @param [Object] other the other object to be compared
|
|
281
|
+
def eql?(other)
|
|
282
|
+
self == other
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
# Calculates hash code according to all attributes.
|
|
289
|
+
# @return [Fixnum] Hash code
|
|
290
|
+
def hash
|
|
291
|
+
[id, compartment_id, recipient_invitation_id, recipient_tenancy_id, lifecycle_state, status, display_name, time_created, time_updated, recipient_email_address, freeform_tags, defined_tags, system_tags].hash
|
|
292
|
+
end
|
|
293
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
294
|
+
|
|
295
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
# Builds the object from hash
|
|
299
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
300
|
+
# @return [Object] Returns the model itself
|
|
301
|
+
def build_from_hash(attributes)
|
|
302
|
+
return nil unless attributes.is_a?(Hash)
|
|
303
|
+
|
|
304
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
305
|
+
if type =~ /^Array<(.*)>/i
|
|
306
|
+
# check to ensure the input is an array given that the the attribute
|
|
307
|
+
# is documented as an array but the input is not
|
|
308
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
309
|
+
public_method("#{key}=").call(
|
|
310
|
+
attributes[self.class.attribute_map[key]]
|
|
311
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
312
|
+
)
|
|
313
|
+
end
|
|
314
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
315
|
+
public_method("#{key}=").call(
|
|
316
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
317
|
+
)
|
|
318
|
+
end
|
|
319
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
self
|
|
323
|
+
end
|
|
324
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
325
|
+
|
|
326
|
+
# Returns the string representation of the object
|
|
327
|
+
# @return [String] String presentation of the object
|
|
328
|
+
def to_s
|
|
329
|
+
to_hash.to_s
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Returns the object in the form of hash
|
|
333
|
+
# @return [Hash] Returns the object in the form of hash
|
|
334
|
+
def to_hash
|
|
335
|
+
hash = {}
|
|
336
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
337
|
+
value = public_method(attr).call
|
|
338
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
339
|
+
|
|
340
|
+
hash[param] = _to_hash(value)
|
|
341
|
+
end
|
|
342
|
+
hash
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
private
|
|
346
|
+
|
|
347
|
+
# Outputs non-array value in the form of hash
|
|
348
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
349
|
+
# @param [Object] value Any valid value
|
|
350
|
+
# @return [Hash] Returns the value in the form of hash
|
|
351
|
+
def _to_hash(value)
|
|
352
|
+
if value.is_a?(Array)
|
|
353
|
+
value.compact.map { |v| _to_hash(v) }
|
|
354
|
+
elsif value.is_a?(Hash)
|
|
355
|
+
{}.tap do |hash|
|
|
356
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
357
|
+
end
|
|
358
|
+
elsif value.respond_to? :to_hash
|
|
359
|
+
value.to_hash
|
|
360
|
+
else
|
|
361
|
+
value
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|