oci 2.10.0 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,314 @@
|
|
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
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
5
|
+
module OCI
|
6
|
+
# This class provides a wrapper around {OCI::Optimizer::OptimizerClient} and offers convenience methods
|
7
|
+
# for operations that would otherwise need to be chained together. For example, instead of performing an action
|
8
|
+
# on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
9
|
+
# to enter a given state, you can call a single method in this class to accomplish the same functionality
|
10
|
+
class Optimizer::OptimizerClientCompositeOperations
|
11
|
+
# The {OCI::Optimizer::OptimizerClient} used to communicate with the service_client
|
12
|
+
#
|
13
|
+
# @return [OCI::Optimizer::OptimizerClient]
|
14
|
+
attr_reader :service_client
|
15
|
+
|
16
|
+
# Initializes a new OptimizerClientCompositeOperations
|
17
|
+
#
|
18
|
+
# @param [OCI::Optimizer::OptimizerClient] service_client The client used to communicate with the service.
|
19
|
+
# Defaults to a new service client created via {OCI::Optimizer::OptimizerClient#initialize} with no arguments
|
20
|
+
def initialize(service_client = OCI::Optimizer::OptimizerClient.new)
|
21
|
+
@service_client = service_client
|
22
|
+
end
|
23
|
+
|
24
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
25
|
+
# rubocop:disable Layout/EmptyLines
|
26
|
+
|
27
|
+
|
28
|
+
# Calls {OCI::Optimizer::OptimizerClient#bulk_apply_recommendations} and then waits for the {OCI::Optimizer::Models::WorkRequest}
|
29
|
+
# to enter the given state(s).
|
30
|
+
#
|
31
|
+
# @param [String] recommendation_id The unique OCID associated with the recommendation.
|
32
|
+
# @param [OCI::Optimizer::Models::BulkApplyRecommendationsDetails] bulk_apply_recommendations_details Details about bulk recommendation actions.
|
33
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Optimizer::Models::WorkRequest#status}
|
34
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Optimizer::OptimizerClient#bulk_apply_recommendations}
|
35
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
36
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
37
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
38
|
+
#
|
39
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::Optimizer::Models::WorkRequest}
|
40
|
+
def bulk_apply_recommendations_and_wait_for_state(recommendation_id, bulk_apply_recommendations_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
41
|
+
operation_result = @service_client.bulk_apply_recommendations(recommendation_id, bulk_apply_recommendations_details, base_operation_opts)
|
42
|
+
use_util = OCI::Optimizer::Util.respond_to?(:wait_on_work_request)
|
43
|
+
|
44
|
+
return operation_result if wait_for_states.empty? && !use_util
|
45
|
+
|
46
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
47
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
48
|
+
|
49
|
+
begin
|
50
|
+
if use_util
|
51
|
+
waiter_result = OCI::Optimizer::Util.wait_on_work_request(
|
52
|
+
@service_client,
|
53
|
+
wait_for_resource_id,
|
54
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
55
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
56
|
+
)
|
57
|
+
else
|
58
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
59
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
60
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
61
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
62
|
+
)
|
63
|
+
end
|
64
|
+
result_to_return = waiter_result
|
65
|
+
|
66
|
+
return result_to_return
|
67
|
+
rescue StandardError
|
68
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
69
|
+
end
|
70
|
+
end
|
71
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
72
|
+
# rubocop:enable Layout/EmptyLines
|
73
|
+
|
74
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
75
|
+
# rubocop:disable Layout/EmptyLines
|
76
|
+
|
77
|
+
|
78
|
+
# Calls {OCI::Optimizer::OptimizerClient#create_profile} and then waits for the {OCI::Optimizer::Models::Profile} acted upon
|
79
|
+
# to enter the given state(s).
|
80
|
+
#
|
81
|
+
# @param [OCI::Optimizer::Models::CreateProfileDetails] create_profile_details Details for creating the profile.
|
82
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Optimizer::Models::Profile#lifecycle_state}
|
83
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Optimizer::OptimizerClient#create_profile}
|
84
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
85
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
86
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
87
|
+
#
|
88
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Optimizer::Models::Profile}
|
89
|
+
def create_profile_and_wait_for_state(create_profile_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
90
|
+
operation_result = @service_client.create_profile(create_profile_details, base_operation_opts)
|
91
|
+
|
92
|
+
return operation_result if wait_for_states.empty?
|
93
|
+
|
94
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
95
|
+
wait_for_resource_id = operation_result.data.id
|
96
|
+
|
97
|
+
begin
|
98
|
+
waiter_result = @service_client.get_profile(wait_for_resource_id).wait_until(
|
99
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
100
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
101
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
102
|
+
)
|
103
|
+
result_to_return = waiter_result
|
104
|
+
|
105
|
+
return result_to_return
|
106
|
+
rescue StandardError
|
107
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
108
|
+
end
|
109
|
+
end
|
110
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
111
|
+
# rubocop:enable Layout/EmptyLines
|
112
|
+
|
113
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
114
|
+
# rubocop:disable Layout/EmptyLines
|
115
|
+
|
116
|
+
|
117
|
+
# Calls {OCI::Optimizer::OptimizerClient#delete_profile} and then waits for the {OCI::Optimizer::Models::Profile} acted upon
|
118
|
+
# to enter the given state(s).
|
119
|
+
#
|
120
|
+
# @param [String] profile_id The unique OCID of the profile.
|
121
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Optimizer::Models::Profile#lifecycle_state}
|
122
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Optimizer::OptimizerClient#delete_profile}
|
123
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
124
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
125
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
126
|
+
#
|
127
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type nil
|
128
|
+
def delete_profile_and_wait_for_state(profile_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
129
|
+
initial_get_result = @service_client.get_profile(profile_id)
|
130
|
+
operation_result = @service_client.delete_profile(profile_id, base_operation_opts)
|
131
|
+
|
132
|
+
return operation_result if wait_for_states.empty?
|
133
|
+
|
134
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
135
|
+
|
136
|
+
begin
|
137
|
+
waiter_result = initial_get_result.wait_until(
|
138
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
139
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
140
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
|
141
|
+
succeed_on_not_found: true
|
142
|
+
)
|
143
|
+
result_to_return = waiter_result
|
144
|
+
|
145
|
+
return result_to_return
|
146
|
+
rescue StandardError
|
147
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
148
|
+
end
|
149
|
+
end
|
150
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
151
|
+
# rubocop:enable Layout/EmptyLines
|
152
|
+
|
153
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
154
|
+
# rubocop:disable Layout/EmptyLines
|
155
|
+
|
156
|
+
|
157
|
+
# Calls {OCI::Optimizer::OptimizerClient#update_enrollment_status} and then waits for the {OCI::Optimizer::Models::EnrollmentStatus} acted upon
|
158
|
+
# to enter the given state(s).
|
159
|
+
#
|
160
|
+
# @param [String] enrollment_status_id The unique OCID associated with the enrollment status.
|
161
|
+
# @param [OCI::Optimizer::Models::UpdateEnrollmentStatusDetails] update_enrollment_status_details The request object for updating the enrollment status.
|
162
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Optimizer::Models::EnrollmentStatus#lifecycle_state}
|
163
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Optimizer::OptimizerClient#update_enrollment_status}
|
164
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
165
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
166
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
167
|
+
#
|
168
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Optimizer::Models::EnrollmentStatus}
|
169
|
+
def update_enrollment_status_and_wait_for_state(enrollment_status_id, update_enrollment_status_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
170
|
+
operation_result = @service_client.update_enrollment_status(enrollment_status_id, update_enrollment_status_details, base_operation_opts)
|
171
|
+
|
172
|
+
return operation_result if wait_for_states.empty?
|
173
|
+
|
174
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
175
|
+
wait_for_resource_id = operation_result.data.id
|
176
|
+
|
177
|
+
begin
|
178
|
+
waiter_result = @service_client.get_enrollment_status(wait_for_resource_id).wait_until(
|
179
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
180
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
181
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
182
|
+
)
|
183
|
+
result_to_return = waiter_result
|
184
|
+
|
185
|
+
return result_to_return
|
186
|
+
rescue StandardError
|
187
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
188
|
+
end
|
189
|
+
end
|
190
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
191
|
+
# rubocop:enable Layout/EmptyLines
|
192
|
+
|
193
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
194
|
+
# rubocop:disable Layout/EmptyLines
|
195
|
+
|
196
|
+
|
197
|
+
# Calls {OCI::Optimizer::OptimizerClient#update_profile} and then waits for the {OCI::Optimizer::Models::Profile} acted upon
|
198
|
+
# to enter the given state(s).
|
199
|
+
#
|
200
|
+
# @param [String] profile_id The unique OCID of the profile.
|
201
|
+
# @param [OCI::Optimizer::Models::UpdateProfileDetails] update_profile_details The profile information to use for the update.
|
202
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Optimizer::Models::Profile#lifecycle_state}
|
203
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Optimizer::OptimizerClient#update_profile}
|
204
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
205
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
206
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
207
|
+
#
|
208
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Optimizer::Models::Profile}
|
209
|
+
def update_profile_and_wait_for_state(profile_id, update_profile_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
210
|
+
operation_result = @service_client.update_profile(profile_id, update_profile_details, base_operation_opts)
|
211
|
+
|
212
|
+
return operation_result if wait_for_states.empty?
|
213
|
+
|
214
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
215
|
+
wait_for_resource_id = operation_result.data.id
|
216
|
+
|
217
|
+
begin
|
218
|
+
waiter_result = @service_client.get_profile(wait_for_resource_id).wait_until(
|
219
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
220
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
221
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
222
|
+
)
|
223
|
+
result_to_return = waiter_result
|
224
|
+
|
225
|
+
return result_to_return
|
226
|
+
rescue StandardError
|
227
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
228
|
+
end
|
229
|
+
end
|
230
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
231
|
+
# rubocop:enable Layout/EmptyLines
|
232
|
+
|
233
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
234
|
+
# rubocop:disable Layout/EmptyLines
|
235
|
+
|
236
|
+
|
237
|
+
# Calls {OCI::Optimizer::OptimizerClient#update_recommendation} and then waits for the {OCI::Optimizer::Models::Recommendation} acted upon
|
238
|
+
# to enter the given state(s).
|
239
|
+
#
|
240
|
+
# @param [String] recommendation_id The unique OCID associated with the recommendation.
|
241
|
+
# @param [OCI::Optimizer::Models::UpdateRecommendationDetails] update_recommendation_details The request object for udpating the recommendation details.
|
242
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Optimizer::Models::Recommendation#lifecycle_state}
|
243
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Optimizer::OptimizerClient#update_recommendation}
|
244
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
245
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
246
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
247
|
+
#
|
248
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Optimizer::Models::Recommendation}
|
249
|
+
def update_recommendation_and_wait_for_state(recommendation_id, update_recommendation_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
250
|
+
operation_result = @service_client.update_recommendation(recommendation_id, update_recommendation_details, base_operation_opts)
|
251
|
+
|
252
|
+
return operation_result if wait_for_states.empty?
|
253
|
+
|
254
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
255
|
+
wait_for_resource_id = operation_result.data.id
|
256
|
+
|
257
|
+
begin
|
258
|
+
waiter_result = @service_client.get_recommendation(wait_for_resource_id).wait_until(
|
259
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
260
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
261
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
262
|
+
)
|
263
|
+
result_to_return = waiter_result
|
264
|
+
|
265
|
+
return result_to_return
|
266
|
+
rescue StandardError
|
267
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
268
|
+
end
|
269
|
+
end
|
270
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
271
|
+
# rubocop:enable Layout/EmptyLines
|
272
|
+
|
273
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
274
|
+
# rubocop:disable Layout/EmptyLines
|
275
|
+
|
276
|
+
|
277
|
+
# Calls {OCI::Optimizer::OptimizerClient#update_resource_action} and then waits for the {OCI::Optimizer::Models::ResourceAction} acted upon
|
278
|
+
# to enter the given state(s).
|
279
|
+
#
|
280
|
+
# @param [String] resource_action_id The unique OCID associated with the resource action.
|
281
|
+
# @param [OCI::Optimizer::Models::UpdateResourceActionDetails] update_resource_action_details The resource action information to be updated.
|
282
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Optimizer::Models::ResourceAction#lifecycle_state}
|
283
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Optimizer::OptimizerClient#update_resource_action}
|
284
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
285
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
286
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
287
|
+
#
|
288
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Optimizer::Models::ResourceAction}
|
289
|
+
def update_resource_action_and_wait_for_state(resource_action_id, update_resource_action_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
290
|
+
operation_result = @service_client.update_resource_action(resource_action_id, update_resource_action_details, base_operation_opts)
|
291
|
+
|
292
|
+
return operation_result if wait_for_states.empty?
|
293
|
+
|
294
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
295
|
+
wait_for_resource_id = operation_result.data.id
|
296
|
+
|
297
|
+
begin
|
298
|
+
waiter_result = @service_client.get_resource_action(wait_for_resource_id).wait_until(
|
299
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
300
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
301
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
302
|
+
)
|
303
|
+
result_to_return = waiter_result
|
304
|
+
|
305
|
+
return result_to_return
|
306
|
+
rescue StandardError
|
307
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
308
|
+
end
|
309
|
+
end
|
310
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
311
|
+
# rubocop:enable Layout/EmptyLines
|
312
|
+
end
|
313
|
+
end
|
314
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,3 @@
|
|
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
|
+
|
data/lib/oci/regions.rb
CHANGED
@@ -32,9 +32,11 @@ module OCI
|
|
32
32
|
|
33
33
|
REGION_SA_SAOPAULO_1 = 'sa-saopaulo-1'.freeze,
|
34
34
|
|
35
|
-
|
35
|
+
REGION_UK_CARDIFF_1 = 'uk-cardiff-1'.freeze,
|
36
36
|
REGION_UK_LONDON_1 = 'uk-london-1'.freeze,
|
37
|
+
|
37
38
|
REGION_UK_GOV_CARDIFF_1 = 'uk-gov-cardiff-1'.freeze,
|
39
|
+
REGION_UK_GOV_LONDON_1 = 'uk-gov-london-1'.freeze,
|
38
40
|
|
39
41
|
REGION_US_PHOENIX_1 = 'us-phoenix-1'.freeze,
|
40
42
|
REGION_US_ASHBURN_1 = 'us-ashburn-1'.freeze,
|
@@ -51,6 +53,7 @@ module OCI
|
|
51
53
|
'ams': REGION_EU_AMSTERDAM_1,
|
52
54
|
'bom': REGION_AP_MUMBAI_1,
|
53
55
|
'brs': REGION_UK_GOV_CARDIFF_1,
|
56
|
+
'cwl': REGION_UK_CARDIFF_1,
|
54
57
|
'dxb': REGION_ME_DUBAI_1,
|
55
58
|
'fra': REGION_EU_FRANKFURT_1,
|
56
59
|
'gru': REGION_SA_SAOPAULO_1,
|
@@ -97,6 +100,7 @@ module OCI
|
|
97
100
|
|
98
101
|
'sa-saopaulo-1': 'oc1'.freeze,
|
99
102
|
|
103
|
+
'uk-cardiff-1': 'oc1'.freeze,
|
100
104
|
'uk-london-1': 'oc1'.freeze,
|
101
105
|
|
102
106
|
'uk-gov-london-1': 'oc4'.freeze,
|
@@ -8,7 +8,7 @@ require 'logger'
|
|
8
8
|
module OCI
|
9
9
|
# The configuration details of the flow defined by the service connector.
|
10
10
|
# For more information about flows defined by service connectors, see
|
11
|
-
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/service-connector-hub/
|
11
|
+
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/overview.htm).
|
12
12
|
#
|
13
13
|
class Sch::Models::ServiceConnector
|
14
14
|
LIFECYCLE_STATE_ENUM = [
|
@@ -9,7 +9,7 @@ module OCI
|
|
9
9
|
# An object that represents the source of the flow defined by the service connector.
|
10
10
|
# An example source is the VCNFlow logs within the NetworkLogs group.
|
11
11
|
# For more information about flows defined by service connectors, see
|
12
|
-
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/service-connector-hub/
|
12
|
+
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/overview.htm).
|
13
13
|
#
|
14
14
|
# This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
|
15
15
|
class Sch::Models::SourceDetails
|
@@ -9,7 +9,7 @@ module OCI
|
|
9
9
|
# An object that represents the target of the flow defined by the service connector.
|
10
10
|
# An example target is a stream.
|
11
11
|
# For more information about flows defined by service connectors, see
|
12
|
-
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/service-connector-hub/
|
12
|
+
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/overview.htm).
|
13
13
|
#
|
14
14
|
# This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
|
15
15
|
class Sch::Models::TargetDetails
|
@@ -9,7 +9,7 @@ module OCI
|
|
9
9
|
# An object that represents a task within the flow defined by the service connector.
|
10
10
|
# An example task is a filter for error logs.
|
11
11
|
# For more information about flows defined by service connectors, see
|
12
|
-
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/service-connector-hub/
|
12
|
+
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/overview.htm).
|
13
13
|
#
|
14
14
|
# This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
|
15
15
|
class Sch::Models::TaskDetails
|
@@ -14,7 +14,7 @@ module OCI
|
|
14
14
|
# the request. WorkRequest objects provide visibility for
|
15
15
|
# in-progress work flows. For more information about work
|
16
16
|
# requests, see
|
17
|
-
# [Viewing the State of a Work Request](https://docs.cloud.oracle.com/iaas/service-connector-hub/
|
17
|
+
# [Viewing the State of a Work Request](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/workrequests.htm).
|
18
18
|
#
|
19
19
|
class Sch::Models::WorkRequest
|
20
20
|
OPERATION_TYPE_ENUM = [
|
@@ -8,7 +8,7 @@ require 'logger'
|
|
8
8
|
module OCI
|
9
9
|
# Use the Service Connector Hub API to transfer data between services in Oracle Cloud Infrastructure.
|
10
10
|
# For more information about Service Connector Hub, see
|
11
|
-
# [Service Connector Hub Overview](/iaas/service-connector-hub/
|
11
|
+
# [Service Connector Hub Overview](/iaas/Content/service-connector-hub/overview.htm).
|
12
12
|
class Sch::ServiceConnectorClient
|
13
13
|
# Client used to make HTTP requests.
|
14
14
|
# @return [OCI::ApiClient]
|
@@ -104,9 +104,9 @@ module OCI
|
|
104
104
|
#
|
105
105
|
# After you send your request, the service connector's state is temporarily
|
106
106
|
# UPDATING. When the state changes to ACTIVE, data begins transferring from the
|
107
|
-
# source service to the target service. For instructions on
|
108
|
-
#
|
109
|
-
# [To activate
|
107
|
+
# source service to the target service. For instructions on activating service
|
108
|
+
# connectors, see
|
109
|
+
# [To activate a service connector](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/managingconnectors.htm#activate).
|
110
110
|
#
|
111
111
|
# @param [String] service_connector_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service connector.
|
112
112
|
#
|
@@ -251,7 +251,7 @@ module OCI
|
|
251
251
|
# A service connector is a logically defined flow for moving data from
|
252
252
|
# a source service to a destination service in Oracle Cloud Infrastructure.
|
253
253
|
# For general information about service connectors, see
|
254
|
-
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/service-connector-hub/
|
254
|
+
# [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/overview.htm).
|
255
255
|
#
|
256
256
|
# For purposes of access control, you must provide the
|
257
257
|
# [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where
|
@@ -264,7 +264,7 @@ module OCI
|
|
264
264
|
# CREATING. When the state changes to ACTIVE, data begins transferring from the
|
265
265
|
# source service to the target service. For instructions on deactivating and
|
266
266
|
# activating service connectors, see
|
267
|
-
# [To activate or deactivate a service connector](https://docs.cloud.oracle.com/iaas/service-connector-hub/
|
267
|
+
# [To activate or deactivate a service connector](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/overview.htm).
|
268
268
|
#
|
269
269
|
# @param [OCI::Sch::Models::CreateServiceConnectorDetails] create_service_connector_details Configuration details for the new service connector.
|
270
270
|
#
|
@@ -331,8 +331,8 @@ module OCI
|
|
331
331
|
#
|
332
332
|
# After you send your request, the service connector's state is temporarily
|
333
333
|
# UPDATING and any data transfer stops. The state then changes to INACTIVE.
|
334
|
-
# For instructions on deactivating
|
335
|
-
# [To
|
334
|
+
# For instructions on deactivating service connectors, see
|
335
|
+
# [To deactivate a service connector](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/managingconnectors.htm#deactivate).
|
336
336
|
#
|
337
337
|
# @param [String] service_connector_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service connector.
|
338
338
|
#
|
data/lib/oci/signer.rb
CHANGED
@@ -46,8 +46,10 @@ module OCI
|
|
46
46
|
case config.authentication_type
|
47
47
|
when 'instance_principal'
|
48
48
|
unless config.delegation_token_file.nil?
|
49
|
+
raise 'Delegation Token File not exist' unless File.exist?(File.expand_path(config.delegation_token_file))
|
50
|
+
|
49
51
|
delegation_token = File.read(File.expand_path(config.delegation_token_file)).to_s.strip
|
50
|
-
signer ||= OCI::Auth::Signers::InstancePrincipalsDelegationTokenSigner.new(delegation_token) unless
|
52
|
+
signer ||= OCI::Auth::Signers::InstancePrincipalsDelegationTokenSigner.new(delegation_token) unless delegation_token.nil?
|
51
53
|
end
|
52
54
|
when 'resource_principal'
|
53
55
|
signer ||= OCI::Auth::Signers.resource_principals_signer
|