oci 2.11.0 → 2.12.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 +1 -0
- data/lib/oci.rb +1 -0
- data/lib/oci/analytics/analytics_client.rb +15 -0
- data/lib/oci/announcements_service/announcement_client.rb +4 -0
- data/lib/oci/apigateway/api_gateway_client.rb +15 -0
- data/lib/oci/apigateway/deployment_client.rb +6 -0
- data/lib/oci/apigateway/gateway_client.rb +6 -0
- data/lib/oci/apigateway/work_requests_client.rb +5 -0
- data/lib/oci/application_migration/application_migration_client.rb +19 -0
- data/lib/oci/audit/audit_client.rb +4 -1
- data/lib/oci/audit/models/audit_event.rb +8 -7
- data/lib/oci/audit/models/data.rb +0 -107
- data/lib/oci/audit/models/identity.rb +0 -17
- data/lib/oci/audit/models/request.rb +0 -46
- data/lib/oci/audit/models/response.rb +0 -34
- data/lib/oci/audit/models/state_change.rb +0 -9
- data/lib/oci/auth/signers/ephemeral_resource_principals_signer.rb +0 -1
- data/lib/oci/auth/signers/resource_principals_signer.rb +1 -1
- data/lib/oci/autoscaling/auto_scaling_client.rb +11 -0
- data/lib/oci/bds/bds_client.rb +16 -0
- data/lib/oci/blockchain/blockchain.rb +1 -0
- data/lib/oci/blockchain/blockchain_platform_client.rb +57 -0
- data/lib/oci/blockchain/models/blockchain_platform.rb +36 -3
- data/lib/oci/blockchain/models/blockchain_platform_by_hostname.rb +1 -1
- data/lib/oci/blockchain/models/blockchain_platform_summary.rb +1 -1
- data/lib/oci/blockchain/models/create_blockchain_platform_details.rb +2 -2
- data/lib/oci/blockchain/models/scaled_blockchain_platform_preview.rb +1 -1
- data/lib/oci/blockchain/models/work_request.rb +1 -0
- data/lib/oci/blockchain/models/work_request_resource.rb +18 -4
- data/lib/oci/blockchain/models/work_request_resource_sub_type_detail.rb +206 -0
- data/lib/oci/blockchain/models/work_request_summary.rb +1 -0
- data/lib/oci/budget/budget_client.rb +10 -0
- data/lib/oci/cims/incident_client.rb +7 -0
- data/lib/oci/cims/user_client.rb +1 -0
- data/lib/oci/cloud_guard/cloud_guard_client.rb +82 -0
- data/lib/oci/cloud_guard/models/rule_summary.rb +1 -0
- data/lib/oci/compute_instance_agent/compute_instance_agent_client.rb +6 -0
- data/lib/oci/container_engine/container_engine_client.rb +18 -0
- data/lib/oci/core/blockstorage_client.rb +53 -0
- data/lib/oci/core/compute_client.rb +71 -0
- data/lib/oci/core/compute_management_client.rb +28 -0
- data/lib/oci/core/virtual_network_client.rb +194 -0
- data/lib/oci/data_catalog/data_catalog.rb +5 -0
- data/lib/oci/data_catalog/data_catalog_client.rb +307 -4
- data/lib/oci/data_catalog/models/attribute.rb +45 -4
- data/lib/oci/data_catalog/models/attribute_summary.rb +45 -4
- data/lib/oci/data_catalog/models/faceted_search_aggregation.rb +55 -4
- data/lib/oci/{database/models/create_autonomous_data_warehouse_backup_details.rb → data_catalog/models/rule_attribute.rb} +25 -18
- data/lib/oci/data_catalog/models/rule_collection.rb +161 -0
- data/lib/oci/data_catalog/models/rule_origin_type.rb +12 -0
- data/lib/oci/data_catalog/models/rule_summary.rb +439 -0
- data/lib/oci/data_catalog/models/rule_type.rb +12 -0
- data/lib/oci/data_catalog/models/search_result_collection.rb +18 -4
- data/lib/oci/data_flow/data_flow_client.rb +24 -0
- data/lib/oci/data_integration/data_integration_client.rb +92 -0
- data/lib/oci/data_safe/data_safe.rb +8 -0
- data/lib/oci/data_safe/data_safe_client.rb +606 -13
- data/lib/oci/data_safe/data_safe_client_composite_operations.rb +198 -0
- data/lib/oci/data_safe/models/change_on_prem_connector_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/create_data_safe_private_endpoint_details.rb +1 -1
- data/lib/oci/{database/models/update_autonomous_data_warehouse_details.rb → data_safe/models/create_on_prem_connector_details.rb} +27 -49
- data/lib/oci/data_safe/models/data_safe_configuration.rb +5 -5
- data/lib/oci/data_safe/models/data_safe_private_endpoint.rb +2 -2
- data/lib/oci/data_safe/models/data_safe_private_endpoint_summary.rb +1 -1
- data/lib/oci/data_safe/models/enable_data_safe_configuration_details.rb +6 -40
- data/lib/oci/{database/models/generate_autonomous_data_warehouse_wallet_details.rb → data_safe/models/generate_on_prem_connector_configuration_details.rb} +3 -4
- data/lib/oci/{database/models/autonomous_data_warehouse_backup_summary.rb → data_safe/models/on_prem_connector.rb} +98 -98
- data/lib/oci/data_safe/models/on_prem_connector_lifecycle_state.rb +16 -0
- data/lib/oci/{database/models/autonomous_data_warehouse_backup.rb → data_safe/models/on_prem_connector_summary.rb} +90 -99
- data/lib/oci/data_safe/models/service_list.rb +1 -0
- data/lib/oci/data_safe/models/update_data_safe_private_endpoint_details.rb +1 -1
- data/lib/oci/data_safe/models/update_on_prem_connector_details.rb +198 -0
- data/lib/oci/data_safe/models/update_on_prem_connector_wallet_details.rb +156 -0
- data/lib/oci/data_safe/models/work_request.rb +11 -6
- data/lib/oci/data_safe/models/work_request_error.rb +3 -4
- data/lib/oci/data_safe/models/work_request_log_entry.rb +3 -3
- data/lib/oci/data_safe/models/work_request_summary.rb +13 -8
- data/lib/oci/data_science/data_science_client.rb +34 -0
- data/lib/oci/database/database.rb +4 -8
- data/lib/oci/database/database_client.rb +523 -766
- data/lib/oci/database/database_client_composite_operations.rb +1299 -330
- data/lib/oci/database/models/activate_exadata_infrastructure_details.rb +2 -1
- data/lib/oci/database/models/autonomous_container_database.rb +3 -3
- data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +2 -2
- data/lib/oci/database/models/autonomous_container_database_summary.rb +3 -3
- data/lib/oci/database/models/autonomous_data_warehouse.rb +8 -21
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +8 -21
- data/lib/oci/database/models/autonomous_database.rb +35 -3
- data/lib/oci/database/models/autonomous_database_apex.rb +169 -0
- data/lib/oci/database/models/autonomous_database_dataguard_association.rb +2 -2
- data/lib/oci/database/models/autonomous_database_summary.rb +35 -3
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +2 -0
- data/lib/oci/database/models/autonomous_db_version_summary.rb +2 -0
- data/lib/oci/database/models/backup.rb +19 -5
- data/lib/oci/database/models/backup_summary.rb +19 -5
- data/lib/oci/database/models/change_cloud_exadata_infrastructure_compartment_details.rb +1 -1
- data/lib/oci/database/models/change_cloud_vm_cluster_compartment_details.rb +1 -1
- data/lib/oci/database/models/cloud_exadata_infrastructure.rb +2 -1
- data/lib/oci/database/models/cloud_exadata_infrastructure_summary.rb +2 -1
- data/lib/oci/database/models/cloud_vm_cluster.rb +1 -1
- data/lib/oci/database/models/cloud_vm_cluster_summary.rb +1 -1
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +1 -1
- data/lib/oci/database/models/create_autonomous_database_base.rb +7 -3
- data/lib/oci/database/models/create_cloud_exadata_infrastructure_details.rb +1 -1
- data/lib/oci/database/models/create_cloud_vm_cluster_details.rb +2 -1
- data/lib/oci/database/models/create_database_base.rb +33 -4
- data/lib/oci/database/models/create_database_from_backup.rb +9 -1
- data/lib/oci/database/models/create_db_home_base.rb +30 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_database_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +9 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.rb +9 -1
- data/lib/oci/database/models/create_exadata_infrastructure_details.rb +16 -2
- data/lib/oci/database/models/create_new_database_details.rb +9 -1
- data/lib/oci/database/models/create_vm_cluster_details.rb +2 -1
- data/lib/oci/database/models/database.rb +16 -2
- data/lib/oci/database/models/database_summary.rb +16 -2
- data/lib/oci/database/models/db_home.rb +16 -2
- data/lib/oci/database/models/db_home_summary.rb +16 -2
- data/lib/oci/database/models/db_system.rb +16 -2
- data/lib/oci/database/models/db_system_summary.rb +16 -2
- data/lib/oci/database/models/exadata_db_system_migration.rb +1 -1
- data/lib/oci/database/models/exadata_db_system_migration_summary.rb +1 -1
- data/lib/oci/database/models/exadata_infrastructure.rb +15 -1
- data/lib/oci/database/models/exadata_infrastructure_summary.rb +18 -2
- data/lib/oci/database/models/flex_component_collection.rb +150 -0
- data/lib/oci/database/models/flex_component_summary.rb +197 -0
- data/lib/oci/database/models/generate_recommended_network_details.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +30 -1
- data/lib/oci/database/models/launch_db_system_details.rb +9 -1
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +9 -1
- data/lib/oci/database/models/launch_db_system_from_database_details.rb +9 -1
- data/lib/oci/database/models/launch_db_system_from_db_system_details.rb +9 -1
- data/lib/oci/database/models/maintenance_run.rb +2 -1
- data/lib/oci/database/models/maintenance_run_summary.rb +2 -1
- data/lib/oci/database/models/migrate_vault_key_details.rb +170 -0
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +1 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +6 -2
- data/lib/oci/database/models/update_cloud_exadata_infrastructure_details.rb +1 -1
- data/lib/oci/database/models/update_cloud_vm_cluster_details.rb +3 -2
- data/lib/oci/database/models/update_database_details.rb +1 -1
- data/lib/oci/database/models/update_details.rb +1 -1
- data/lib/oci/database/models/update_exadata_infrastructure_details.rb +16 -2
- data/lib/oci/database/models/update_history_entry_summary.rb +2 -1
- data/lib/oci/database/models/update_summary.rb +1 -1
- data/lib/oci/database/models/update_vm_cluster_details.rb +3 -1
- data/lib/oci/database/models/update_vm_cluster_network_details.rb +1 -1
- data/lib/oci/database/models/vm_cluster.rb +2 -1
- data/lib/oci/database/models/vm_cluster_network_details.rb +1 -1
- data/lib/oci/database/models/vm_cluster_network_summary.rb +2 -1
- data/lib/oci/database/models/vm_cluster_summary.rb +1 -0
- data/lib/oci/database/models/vm_network_details.rb +2 -1
- data/lib/oci/dns/dns_client.rb +49 -0
- data/lib/oci/dts/appliance_export_job_client.rb +6 -0
- data/lib/oci/dts/shipping_vendors_client.rb +1 -0
- data/lib/oci/dts/transfer_appliance_client.rb +8 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client.rb +3 -0
- data/lib/oci/dts/transfer_device_client.rb +5 -0
- data/lib/oci/dts/transfer_job_client.rb +6 -0
- data/lib/oci/dts/transfer_package_client.rb +7 -0
- data/lib/oci/email/email_client.rb +10 -0
- data/lib/oci/events/events_client.rb +6 -0
- data/lib/oci/file_storage/file_storage_client.rb +25 -0
- data/lib/oci/functions/functions_invoke_client.rb +1 -0
- data/lib/oci/functions/functions_management_client.rb +11 -0
- data/lib/oci/healthchecks/health_checks_client.rb +17 -0
- data/lib/oci/identity/identity_client.rb +120 -0
- data/lib/oci/identity/models/saml2_identity_provider.rb +12 -1
- data/lib/oci/integration/integration.rb +3 -0
- data/lib/oci/integration/integration_instance_client.rb +12 -0
- data/lib/oci/integration/models/create_custom_endpoint_details.rb +167 -0
- data/lib/oci/integration/models/create_integration_instance_details.rb +44 -1
- data/lib/oci/integration/models/custom_endpoint_details.rb +180 -0
- data/lib/oci/integration/models/integration_instance.rb +43 -1
- data/lib/oci/integration/models/integration_instance_summary.rb +43 -1
- data/lib/oci/integration/models/update_custom_endpoint_details.rb +167 -0
- data/lib/oci/integration/models/update_integration_instance_details.rb +47 -4
- data/lib/oci/key_management/kms_crypto_client.rb +4 -0
- data/lib/oci/key_management/kms_management_client.rb +31 -0
- data/lib/oci/key_management/kms_vault_client.rb +11 -0
- data/lib/oci/limits/limits_client.rb +4 -0
- data/lib/oci/limits/quotas_client.rb +5 -0
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +56 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +14 -1
- data/lib/oci/load_balancer/models/shape_details.rb +180 -0
- data/lib/oci/load_balancer/models/ssl_configuration.rb +1 -1
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +1 -1
- data/lib/oci/load_balancer/models/update_load_balancer_shape_details.rb +22 -4
- data/lib/oci/log_analytics/log_analytics_client.rb +126 -0
- data/lib/oci/logging/logging_management_client.rb +32 -0
- data/lib/oci/loggingingestion/logging_client.rb +1 -0
- data/lib/oci/loggingsearch/log_search_client.rb +1 -0
- data/lib/oci/management_agent/management_agent.rb +2 -0
- data/lib/oci/management_agent/management_agent_client.rb +101 -0
- data/lib/oci/management_agent/models/availability_history_summary.rb +217 -0
- data/lib/oci/management_agent/models/availability_status.rb +12 -0
- data/lib/oci/management_agent/models/management_agent.rb +35 -1
- data/lib/oci/management_agent/models/management_agent_summary.rb +49 -1
- data/lib/oci/management_dashboard/dashx_apis_client.rb +14 -0
- data/lib/oci/marketplace/marketplace_client.rb +16 -0
- data/lib/oci/monitoring/monitoring_client.rb +12 -0
- data/lib/oci/mysql/channels_client.rb +625 -0
- data/lib/oci/mysql/channels_client_composite_operations.rb +271 -0
- data/lib/oci/mysql/db_backups_client.rb +11 -0
- data/lib/oci/mysql/db_system_client.rb +17 -0
- data/lib/oci/mysql/models/backup.rb +16 -3
- data/lib/oci/mysql/models/backup_summary.rb +17 -3
- data/lib/oci/mysql/models/ca_certificate.rb +189 -0
- data/lib/oci/mysql/models/channel.rb +340 -0
- data/lib/oci/mysql/models/channel_source.rb +189 -0
- data/lib/oci/mysql/models/channel_source_mysql.rb +230 -0
- data/lib/oci/mysql/models/channel_summary.rb +304 -0
- data/lib/oci/mysql/models/channel_target.rb +189 -0
- data/lib/oci/mysql/models/channel_target_db_system.rb +193 -0
- data/lib/oci/mysql/models/configuration.rb +2 -2
- data/lib/oci/mysql/models/configuration_summary.rb +2 -2
- data/lib/oci/mysql/models/configuration_variables.rb +30 -15
- data/lib/oci/mysql/models/create_backup_details.rb +2 -2
- data/lib/oci/mysql/models/create_backup_policy_details.rb +3 -0
- data/lib/oci/mysql/models/create_channel_details.rb +248 -0
- data/lib/oci/mysql/models/create_channel_source_details.rb +170 -0
- data/lib/oci/mysql/models/create_channel_source_from_mysql_details.rb +224 -0
- data/lib/oci/mysql/models/create_channel_target_details.rb +170 -0
- data/lib/oci/mysql/models/create_channel_target_from_db_system_details.rb +193 -0
- data/lib/oci/mysql/models/create_configuration_details.rb +2 -3
- data/lib/oci/mysql/models/create_db_system_details.rb +1 -1
- data/lib/oci/mysql/models/create_db_system_source_details.rb +1 -0
- data/lib/oci/mysql/models/create_db_system_source_from_none_details.rb +146 -0
- data/lib/oci/mysql/models/db_system.rb +15 -3
- data/lib/oci/mysql/models/db_system_snapshot.rb +437 -0
- data/lib/oci/mysql/models/db_system_source.rb +1 -0
- data/lib/oci/mysql/models/db_system_source_from_none.rb +146 -0
- data/lib/oci/mysql/models/db_system_summary.rb +2 -2
- data/lib/oci/mysql/models/pem_ca_certificate.rb +158 -0
- data/lib/oci/mysql/models/update_backup_details.rb +2 -2
- data/lib/oci/mysql/models/update_backup_policy_details.rb +3 -0
- data/lib/oci/mysql/models/update_channel_details.rb +234 -0
- data/lib/oci/mysql/models/update_channel_source_details.rb +171 -0
- data/lib/oci/mysql/models/update_channel_source_from_mysql_details.rb +224 -0
- data/lib/oci/mysql/models/update_channel_target_details.rb +170 -0
- data/lib/oci/mysql/models/update_channel_target_from_db_system_details.rb +179 -0
- data/lib/oci/mysql/models/update_configuration_details.rb +2 -2
- data/lib/oci/mysql/mysql.rb +23 -0
- data/lib/oci/mysql/mysqlaas_client.rb +7 -0
- data/lib/oci/mysql/work_requests_client.rb +4 -0
- data/lib/oci/nosql/nosql_client.rb +22 -0
- data/lib/oci/object_storage/models/object_lifecycle_rule.rb +11 -9
- data/lib/oci/object_storage/object_storage_client.rb +55 -6
- data/lib/oci/oce/oce_instance_client.rb +10 -0
- data/lib/oci/ocvp/esxi_host_client.rb +5 -0
- data/lib/oci/ocvp/sddc_client.rb +7 -0
- data/lib/oci/ocvp/work_request_client.rb +4 -0
- data/lib/oci/oda/oda_client.rb +12 -0
- data/lib/oci/ons/notification_control_plane_client.rb +6 -0
- data/lib/oci/ons/notification_data_plane_client.rb +10 -0
- data/lib/oci/opsi/models/sql_insight_aggregation.rb +2 -1
- data/lib/oci/opsi/models/sql_insight_thresholds.rb +21 -4
- data/lib/oci/opsi/operations_insights_client.rb +22 -3
- data/lib/oci/optimizer/optimizer_client.rb +22 -0
- data/lib/oci/os_management/os_management_client.rb +53 -0
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/resource_manager/models/configuration_source_provider.rb +5 -1
- data/lib/oci/resource_manager/models/configuration_source_provider_summary.rb +3 -1
- data/lib/oci/resource_manager/models/create_configuration_source_provider_details.rb +4 -1
- data/lib/oci/resource_manager/models/create_github_access_token_configuration_source_provider_details.rb +200 -0
- data/lib/oci/resource_manager/models/create_gitlab_access_token_configuration_source_provider_details.rb +3 -3
- data/lib/oci/resource_manager/models/github_access_token_configuration_source_provider.rb +198 -0
- data/lib/oci/resource_manager/models/github_access_token_configuration_source_provider_summary.rb +198 -0
- data/lib/oci/resource_manager/models/gitlab_access_token_configuration_source_provider.rb +2 -2
- data/lib/oci/resource_manager/models/gitlab_access_token_configuration_source_provider_summary.rb +2 -2
- data/lib/oci/resource_manager/models/update_configuration_source_provider_details.rb +4 -1
- data/lib/oci/resource_manager/models/update_github_access_token_configuration_source_provider_details.rb +196 -0
- data/lib/oci/resource_manager/models/update_gitlab_access_token_configuration_source_provider_details.rb +3 -3
- data/lib/oci/resource_manager/resource_manager.rb +4 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +36 -2
- data/lib/oci/resource_search/resource_search_client.rb +3 -0
- data/lib/oci/rover/models/change_rover_cluster_compartment_details.rb +155 -0
- data/lib/oci/{database/models/autonomous_data_warehouse_console_token_details.rb → rover/models/change_rover_entitlement_compartment_details.rb} +13 -23
- data/lib/oci/rover/models/change_rover_node_compartment_details.rb +155 -0
- data/lib/oci/rover/models/create_rover_cluster_details.rb +459 -0
- data/lib/oci/rover/models/create_rover_entitlement_details.rb +320 -0
- data/lib/oci/rover/models/create_rover_node_details.rb +501 -0
- data/lib/oci/rover/models/enclosure_type.rb +11 -0
- data/lib/oci/rover/models/lifecycle_state.rb +15 -0
- data/lib/oci/rover/models/node_type.rb +11 -0
- data/lib/oci/rover/models/rover_cluster.rb +610 -0
- data/lib/oci/rover/models/rover_cluster_certificate.rb +150 -0
- data/lib/oci/{database/models/restore_autonomous_data_warehouse_details.rb → rover/models/rover_cluster_collection.rb} +11 -12
- data/lib/oci/{database/models/create_autonomous_data_warehouse_details.rb → rover/models/rover_cluster_summary.rb} +99 -84
- data/lib/oci/rover/models/rover_entitlement.rb +363 -0
- data/lib/oci/rover/models/rover_entitlement_collection.rb +150 -0
- data/lib/oci/rover/models/rover_entitlement_summary.rb +285 -0
- data/lib/oci/rover/models/rover_node.rb +661 -0
- data/lib/oci/rover/models/rover_node_action_set_key_details.rb +154 -0
- data/lib/oci/rover/models/rover_node_certificate.rb +150 -0
- data/lib/oci/rover/models/rover_node_collection.rb +150 -0
- data/lib/oci/rover/models/rover_node_encryption_key.rb +154 -0
- data/lib/oci/rover/models/rover_node_get_rpt.rb +168 -0
- data/lib/oci/rover/models/rover_node_set_key.rb +154 -0
- data/lib/oci/rover/models/rover_node_summary.rb +323 -0
- data/lib/oci/rover/models/rover_workload.rb +264 -0
- data/lib/oci/rover/models/shipping_address.rb +276 -0
- data/lib/oci/rover/models/sort_orders.rb +11 -0
- data/lib/oci/rover/models/update_rover_cluster_details.rb +445 -0
- data/lib/oci/rover/models/update_rover_entitlement_details.rb +306 -0
- data/lib/oci/rover/models/update_rover_node_details.rb +487 -0
- data/lib/oci/rover/rover.rb +54 -0
- data/lib/oci/rover/rover_cluster_client.rb +549 -0
- data/lib/oci/rover/rover_cluster_client_composite_operations.rb +144 -0
- data/lib/oci/rover/rover_entitlement_client.rb +514 -0
- data/lib/oci/rover/rover_entitlement_client_composite_operations.rb +144 -0
- data/lib/oci/rover/rover_node_client.rb +738 -0
- data/lib/oci/rover/rover_node_client_composite_operations.rb +144 -0
- data/lib/oci/rover/util.rb +3 -0
- data/lib/oci/sch/service_connector_client.rb +12 -0
- data/lib/oci/secrets/secrets_client.rb +2 -0
- data/lib/oci/streaming/stream_admin_client.rb +18 -0
- data/lib/oci/streaming/stream_client.rb +8 -0
- data/lib/oci/tenant_manager_control_plane/link_client.rb +3 -0
- data/lib/oci/tenant_manager_control_plane/recipient_invitation_client.rb +5 -0
- data/lib/oci/tenant_manager_control_plane/sender_invitation_client.rb +5 -0
- data/lib/oci/tenant_manager_control_plane/work_request_client.rb +4 -0
- data/lib/oci/usage_api/usageapi_client.rb +2 -0
- data/lib/oci/vault/vaults_client.rb +11 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/redirect_client.rb +6 -0
- data/lib/oci/waas/waas_client.rb +66 -0
- data/lib/oci/work_requests/work_request_client.rb +4 -0
- metadata +91 -10
|
@@ -124,6 +124,55 @@ module OCI
|
|
|
124
124
|
# rubocop:disable Layout/EmptyLines
|
|
125
125
|
|
|
126
126
|
|
|
127
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_on_prem_connector} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
|
128
|
+
# to enter the given state(s).
|
|
129
|
+
#
|
|
130
|
+
# @param [OCI::DataSafe::Models::CreateOnPremConnectorDetails] create_on_prem_connector_details The details used to create a new on-premises connector.
|
|
131
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
|
132
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_on_prem_connector}
|
|
133
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
134
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
135
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
136
|
+
#
|
|
137
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
|
138
|
+
def create_on_prem_connector_and_wait_for_state(create_on_prem_connector_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
139
|
+
operation_result = @service_client.create_on_prem_connector(create_on_prem_connector_details, base_operation_opts)
|
|
140
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
|
141
|
+
|
|
142
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
143
|
+
|
|
144
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
145
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
146
|
+
|
|
147
|
+
begin
|
|
148
|
+
if use_util
|
|
149
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
|
150
|
+
@service_client,
|
|
151
|
+
wait_for_resource_id,
|
|
152
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
153
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
154
|
+
)
|
|
155
|
+
else
|
|
156
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
157
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
158
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
159
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
160
|
+
)
|
|
161
|
+
end
|
|
162
|
+
result_to_return = waiter_result
|
|
163
|
+
|
|
164
|
+
return result_to_return
|
|
165
|
+
rescue StandardError
|
|
166
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
170
|
+
# rubocop:enable Layout/EmptyLines
|
|
171
|
+
|
|
172
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
173
|
+
# rubocop:disable Layout/EmptyLines
|
|
174
|
+
|
|
175
|
+
|
|
127
176
|
# Calls {OCI::DataSafe::DataSafeClient#delete_data_safe_private_endpoint} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
|
128
177
|
# to enter the given state(s).
|
|
129
178
|
#
|
|
@@ -173,6 +222,55 @@ module OCI
|
|
|
173
222
|
# rubocop:disable Layout/EmptyLines
|
|
174
223
|
|
|
175
224
|
|
|
225
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_on_prem_connector} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
|
226
|
+
# to enter the given state(s).
|
|
227
|
+
#
|
|
228
|
+
# @param [String] on_prem_connector_id The OCID of the on-premises connector.
|
|
229
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
|
230
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_on_prem_connector}
|
|
231
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
232
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
233
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
234
|
+
#
|
|
235
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
|
236
|
+
def delete_on_prem_connector_and_wait_for_state(on_prem_connector_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
237
|
+
operation_result = @service_client.delete_on_prem_connector(on_prem_connector_id, base_operation_opts)
|
|
238
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
|
239
|
+
|
|
240
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
241
|
+
|
|
242
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
243
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
244
|
+
|
|
245
|
+
begin
|
|
246
|
+
if use_util
|
|
247
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
|
248
|
+
@service_client,
|
|
249
|
+
wait_for_resource_id,
|
|
250
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
251
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
252
|
+
)
|
|
253
|
+
else
|
|
254
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
255
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
256
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
257
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
258
|
+
)
|
|
259
|
+
end
|
|
260
|
+
result_to_return = waiter_result
|
|
261
|
+
|
|
262
|
+
return result_to_return
|
|
263
|
+
rescue StandardError
|
|
264
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
268
|
+
# rubocop:enable Layout/EmptyLines
|
|
269
|
+
|
|
270
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
271
|
+
# rubocop:disable Layout/EmptyLines
|
|
272
|
+
|
|
273
|
+
|
|
176
274
|
# Calls {OCI::DataSafe::DataSafeClient#enable_data_safe_configuration} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
|
177
275
|
# to enter the given state(s).
|
|
178
276
|
#
|
|
@@ -267,6 +365,106 @@ module OCI
|
|
|
267
365
|
end
|
|
268
366
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
269
367
|
# rubocop:enable Layout/EmptyLines
|
|
368
|
+
|
|
369
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
370
|
+
# rubocop:disable Layout/EmptyLines
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_on_prem_connector} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
|
374
|
+
# to enter the given state(s).
|
|
375
|
+
#
|
|
376
|
+
# @param [String] on_prem_connector_id The OCID of the on-premises connector.
|
|
377
|
+
# @param [OCI::DataSafe::Models::UpdateOnPremConnectorDetails] update_on_prem_connector_details The details used to update a on-premises connector.
|
|
378
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
|
379
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_on_prem_connector}
|
|
380
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
381
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
382
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
383
|
+
#
|
|
384
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
|
385
|
+
def update_on_prem_connector_and_wait_for_state(on_prem_connector_id, update_on_prem_connector_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
386
|
+
operation_result = @service_client.update_on_prem_connector(on_prem_connector_id, update_on_prem_connector_details, base_operation_opts)
|
|
387
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
|
388
|
+
|
|
389
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
390
|
+
|
|
391
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
392
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
393
|
+
|
|
394
|
+
begin
|
|
395
|
+
if use_util
|
|
396
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
|
397
|
+
@service_client,
|
|
398
|
+
wait_for_resource_id,
|
|
399
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
400
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
401
|
+
)
|
|
402
|
+
else
|
|
403
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
404
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
405
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
406
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
407
|
+
)
|
|
408
|
+
end
|
|
409
|
+
result_to_return = waiter_result
|
|
410
|
+
|
|
411
|
+
return result_to_return
|
|
412
|
+
rescue StandardError
|
|
413
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
417
|
+
# rubocop:enable Layout/EmptyLines
|
|
418
|
+
|
|
419
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
420
|
+
# rubocop:disable Layout/EmptyLines
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_on_prem_connector_wallet} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
|
424
|
+
# to enter the given state(s).
|
|
425
|
+
#
|
|
426
|
+
# @param [OCI::DataSafe::Models::UpdateOnPremConnectorWalletDetails] update_on_prem_connector_wallet_details The details used to update an on-premises connector's wallet.
|
|
427
|
+
# @param [String] on_prem_connector_id The OCID of the on-premises connector.
|
|
428
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
|
429
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_on_prem_connector_wallet}
|
|
430
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
431
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
432
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
433
|
+
#
|
|
434
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
|
435
|
+
def update_on_prem_connector_wallet_and_wait_for_state(update_on_prem_connector_wallet_details, on_prem_connector_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
436
|
+
operation_result = @service_client.update_on_prem_connector_wallet(update_on_prem_connector_wallet_details, on_prem_connector_id, base_operation_opts)
|
|
437
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
|
438
|
+
|
|
439
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
440
|
+
|
|
441
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
442
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
443
|
+
|
|
444
|
+
begin
|
|
445
|
+
if use_util
|
|
446
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
|
447
|
+
@service_client,
|
|
448
|
+
wait_for_resource_id,
|
|
449
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
450
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
451
|
+
)
|
|
452
|
+
else
|
|
453
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
454
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
455
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
456
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
457
|
+
)
|
|
458
|
+
end
|
|
459
|
+
result_to_return = waiter_result
|
|
460
|
+
|
|
461
|
+
return result_to_return
|
|
462
|
+
rescue StandardError
|
|
463
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
467
|
+
# rubocop:enable Layout/EmptyLines
|
|
270
468
|
end
|
|
271
469
|
end
|
|
272
470
|
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
7
|
+
module OCI
|
|
8
|
+
# The details used to change the compartment of a on-premises connector.
|
|
9
|
+
class DataSafe::Models::ChangeOnPremConnectorCompartmentDetails
|
|
10
|
+
# **[Required]** The OCID of the new compartment where you want to move the on-premises connector.
|
|
11
|
+
# @return [String]
|
|
12
|
+
attr_accessor :compartment_id
|
|
13
|
+
|
|
14
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
15
|
+
def self.attribute_map
|
|
16
|
+
{
|
|
17
|
+
# rubocop:disable Style/SymbolLiteral
|
|
18
|
+
'compartment_id': :'compartmentId'
|
|
19
|
+
# rubocop:enable Style/SymbolLiteral
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Attribute type mapping.
|
|
24
|
+
def self.swagger_types
|
|
25
|
+
{
|
|
26
|
+
# rubocop:disable Style/SymbolLiteral
|
|
27
|
+
'compartment_id': :'String'
|
|
28
|
+
# rubocop:enable Style/SymbolLiteral
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
33
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Initializes the object
|
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
38
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
39
|
+
def initialize(attributes = {})
|
|
40
|
+
return unless attributes.is_a?(Hash)
|
|
41
|
+
|
|
42
|
+
# convert string to symbol for hash key
|
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
44
|
+
|
|
45
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
46
|
+
|
|
47
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
48
|
+
|
|
49
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
50
|
+
end
|
|
51
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
52
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
53
|
+
|
|
54
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Checks equality by comparing each attribute.
|
|
58
|
+
# @param [Object] other the other object to be compared
|
|
59
|
+
def ==(other)
|
|
60
|
+
return true if equal?(other)
|
|
61
|
+
|
|
62
|
+
self.class == other.class &&
|
|
63
|
+
compartment_id == other.compartment_id
|
|
64
|
+
end
|
|
65
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
66
|
+
|
|
67
|
+
# @see the `==` method
|
|
68
|
+
# @param [Object] other the other object to be compared
|
|
69
|
+
def eql?(other)
|
|
70
|
+
self == other
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# Calculates hash code according to all attributes.
|
|
77
|
+
# @return [Fixnum] Hash code
|
|
78
|
+
def hash
|
|
79
|
+
[compartment_id].hash
|
|
80
|
+
end
|
|
81
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
82
|
+
|
|
83
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Builds the object from hash
|
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
+
# @return [Object] Returns the model itself
|
|
89
|
+
def build_from_hash(attributes)
|
|
90
|
+
return nil unless attributes.is_a?(Hash)
|
|
91
|
+
|
|
92
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
93
|
+
if type =~ /^Array<(.*)>/i
|
|
94
|
+
# check to ensure the input is an array given that the the attribute
|
|
95
|
+
# is documented as an array but the input is not
|
|
96
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
97
|
+
public_method("#{key}=").call(
|
|
98
|
+
attributes[self.class.attribute_map[key]]
|
|
99
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
103
|
+
public_method("#{key}=").call(
|
|
104
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
self
|
|
111
|
+
end
|
|
112
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
113
|
+
|
|
114
|
+
# Returns the string representation of the object
|
|
115
|
+
# @return [String] String presentation of the object
|
|
116
|
+
def to_s
|
|
117
|
+
to_hash.to_s
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Returns the object in the form of hash
|
|
121
|
+
# @return [Hash] Returns the object in the form of hash
|
|
122
|
+
def to_hash
|
|
123
|
+
hash = {}
|
|
124
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
125
|
+
value = public_method(attr).call
|
|
126
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
127
|
+
|
|
128
|
+
hash[param] = _to_hash(value)
|
|
129
|
+
end
|
|
130
|
+
hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
private
|
|
134
|
+
|
|
135
|
+
# Outputs non-array value in the form of hash
|
|
136
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
137
|
+
# @param [Object] value Any valid value
|
|
138
|
+
# @return [Hash] Returns the value in the form of hash
|
|
139
|
+
def _to_hash(value)
|
|
140
|
+
if value.is_a?(Array)
|
|
141
|
+
value.compact.map { |v| _to_hash(v) }
|
|
142
|
+
elsif value.is_a?(Hash)
|
|
143
|
+
{}.tap do |hash|
|
|
144
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
145
|
+
end
|
|
146
|
+
elsif value.respond_to? :to_hash
|
|
147
|
+
value.to_hash
|
|
148
|
+
else
|
|
149
|
+
value
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -45,7 +45,7 @@ module OCI
|
|
|
45
45
|
|
|
46
46
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)
|
|
47
47
|
#
|
|
48
|
-
# Example: `{\"
|
|
48
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
49
49
|
#
|
|
50
50
|
# @return [Hash<String, Hash<String, Object>>]
|
|
51
51
|
attr_accessor :defined_tags
|
|
@@ -5,38 +5,30 @@ require 'date'
|
|
|
5
5
|
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
7
7
|
module OCI
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
#
|
|
12
|
-
class Database::Models::UpdateAutonomousDataWarehouseDetails
|
|
13
|
-
# The number of CPU cores to be made available to the database.
|
|
14
|
-
# @return [Integer]
|
|
15
|
-
attr_accessor :cpu_core_count
|
|
16
|
-
|
|
17
|
-
# Size, in terabytes, of the data volume that will be attached to the database.
|
|
18
|
-
#
|
|
19
|
-
# @return [Integer]
|
|
20
|
-
attr_accessor :data_storage_size_in_tbs
|
|
21
|
-
|
|
22
|
-
# The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
|
|
8
|
+
# The details used to create a new on-premises connector.
|
|
9
|
+
class DataSafe::Models::CreateOnPremConnectorDetails
|
|
10
|
+
# The display name of the on-premises connector. The name does not have to be unique, and it's changeable.
|
|
23
11
|
# @return [String]
|
|
24
12
|
attr_accessor :display_name
|
|
25
13
|
|
|
26
|
-
# The
|
|
14
|
+
# **[Required]** The OCID of the compartment where you want to create the on-premises connector.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :compartment_id
|
|
17
|
+
|
|
18
|
+
# The description of the on-premises connector.
|
|
27
19
|
# @return [String]
|
|
28
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :description
|
|
29
21
|
|
|
30
|
-
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
|
31
|
-
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
22
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)
|
|
32
23
|
#
|
|
33
24
|
# Example: `{\"Department\": \"Finance\"}`
|
|
34
25
|
#
|
|
35
26
|
# @return [Hash<String, String>]
|
|
36
27
|
attr_accessor :freeform_tags
|
|
37
28
|
|
|
38
|
-
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
39
|
-
#
|
|
29
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)
|
|
30
|
+
#
|
|
31
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
40
32
|
#
|
|
41
33
|
# @return [Hash<String, Hash<String, Object>>]
|
|
42
34
|
attr_accessor :defined_tags
|
|
@@ -45,10 +37,9 @@ module OCI
|
|
|
45
37
|
def self.attribute_map
|
|
46
38
|
{
|
|
47
39
|
# rubocop:disable Style/SymbolLiteral
|
|
48
|
-
'cpu_core_count': :'cpuCoreCount',
|
|
49
|
-
'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
|
|
50
40
|
'display_name': :'displayName',
|
|
51
|
-
'
|
|
41
|
+
'compartment_id': :'compartmentId',
|
|
42
|
+
'description': :'description',
|
|
52
43
|
'freeform_tags': :'freeformTags',
|
|
53
44
|
'defined_tags': :'definedTags'
|
|
54
45
|
# rubocop:enable Style/SymbolLiteral
|
|
@@ -59,10 +50,9 @@ module OCI
|
|
|
59
50
|
def self.swagger_types
|
|
60
51
|
{
|
|
61
52
|
# rubocop:disable Style/SymbolLiteral
|
|
62
|
-
'cpu_core_count': :'Integer',
|
|
63
|
-
'data_storage_size_in_tbs': :'Integer',
|
|
64
53
|
'display_name': :'String',
|
|
65
|
-
'
|
|
54
|
+
'compartment_id': :'String',
|
|
55
|
+
'description': :'String',
|
|
66
56
|
'freeform_tags': :'Hash<String, String>',
|
|
67
57
|
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
|
68
58
|
# rubocop:enable Style/SymbolLiteral
|
|
@@ -75,10 +65,9 @@ module OCI
|
|
|
75
65
|
|
|
76
66
|
# Initializes the object
|
|
77
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
-
# @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
|
|
79
|
-
# @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
|
|
80
68
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
81
|
-
# @option attributes [String] :
|
|
69
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
70
|
+
# @option attributes [String] :description The value to assign to the {#description} property
|
|
82
71
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
83
72
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
84
73
|
def initialize(attributes = {})
|
|
@@ -87,29 +76,19 @@ module OCI
|
|
|
87
76
|
# convert string to symbol for hash key
|
|
88
77
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
89
78
|
|
|
90
|
-
self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
|
|
91
|
-
|
|
92
|
-
raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
|
|
93
|
-
|
|
94
|
-
self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
|
|
95
|
-
|
|
96
|
-
self.data_storage_size_in_tbs = attributes[:'dataStorageSizeInTBs'] if attributes[:'dataStorageSizeInTBs']
|
|
97
|
-
|
|
98
|
-
raise 'You cannot provide both :dataStorageSizeInTBs and :data_storage_size_in_tbs' if attributes.key?(:'dataStorageSizeInTBs') && attributes.key?(:'data_storage_size_in_tbs')
|
|
99
|
-
|
|
100
|
-
self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
|
|
101
|
-
|
|
102
79
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
103
80
|
|
|
104
81
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
105
82
|
|
|
106
83
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
107
84
|
|
|
108
|
-
self.
|
|
85
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
86
|
+
|
|
87
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
109
88
|
|
|
110
|
-
|
|
89
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
111
90
|
|
|
112
|
-
self.
|
|
91
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
|
113
92
|
|
|
114
93
|
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
115
94
|
|
|
@@ -135,10 +114,9 @@ module OCI
|
|
|
135
114
|
return true if equal?(other)
|
|
136
115
|
|
|
137
116
|
self.class == other.class &&
|
|
138
|
-
cpu_core_count == other.cpu_core_count &&
|
|
139
|
-
data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
|
|
140
117
|
display_name == other.display_name &&
|
|
141
|
-
|
|
118
|
+
compartment_id == other.compartment_id &&
|
|
119
|
+
description == other.description &&
|
|
142
120
|
freeform_tags == other.freeform_tags &&
|
|
143
121
|
defined_tags == other.defined_tags
|
|
144
122
|
end
|
|
@@ -156,7 +134,7 @@ module OCI
|
|
|
156
134
|
# Calculates hash code according to all attributes.
|
|
157
135
|
# @return [Fixnum] Hash code
|
|
158
136
|
def hash
|
|
159
|
-
[
|
|
137
|
+
[display_name, compartment_id, description, freeform_tags, defined_tags].hash
|
|
160
138
|
end
|
|
161
139
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
162
140
|
|