oci 2.11.0 → 2.12.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 +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
@@ -136,6 +136,10 @@ module OCI
|
|
136
136
|
# @return [String]
|
137
137
|
attr_accessor :domain
|
138
138
|
|
139
|
+
# The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
|
140
|
+
# @return [String]
|
141
|
+
attr_accessor :kms_key_id
|
142
|
+
|
139
143
|
# The Oracle Database version of the DB system.
|
140
144
|
# @return [String]
|
141
145
|
attr_accessor :version
|
@@ -176,7 +180,7 @@ module OCI
|
|
176
180
|
# @return [DateTime]
|
177
181
|
attr_accessor :time_created
|
178
182
|
|
179
|
-
# Additional information about the current
|
183
|
+
# Additional information about the current lifecycle state.
|
180
184
|
# @return [String]
|
181
185
|
attr_accessor :lifecycle_details
|
182
186
|
|
@@ -287,6 +291,7 @@ module OCI
|
|
287
291
|
'time_zone': :'timeZone',
|
288
292
|
'hostname': :'hostname',
|
289
293
|
'domain': :'domain',
|
294
|
+
'kms_key_id': :'kmsKeyId',
|
290
295
|
'version': :'version',
|
291
296
|
'cpu_core_count': :'cpuCoreCount',
|
292
297
|
'cluster_name': :'clusterName',
|
@@ -336,6 +341,7 @@ module OCI
|
|
336
341
|
'time_zone': :'String',
|
337
342
|
'hostname': :'String',
|
338
343
|
'domain': :'String',
|
344
|
+
'kms_key_id': :'String',
|
339
345
|
'version': :'String',
|
340
346
|
'cpu_core_count': :'Integer',
|
341
347
|
'cluster_name': :'String',
|
@@ -387,6 +393,7 @@ module OCI
|
|
387
393
|
# @option attributes [String] :time_zone The value to assign to the {#time_zone} property
|
388
394
|
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
389
395
|
# @option attributes [String] :domain The value to assign to the {#domain} property
|
396
|
+
# @option attributes [String] :kms_key_id The value to assign to the {#kms_key_id} property
|
390
397
|
# @option attributes [String] :version The value to assign to the {#version} property
|
391
398
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
|
392
399
|
# @option attributes [String] :cluster_name The value to assign to the {#cluster_name} property
|
@@ -493,6 +500,12 @@ module OCI
|
|
493
500
|
|
494
501
|
self.domain = attributes[:'domain'] if attributes[:'domain']
|
495
502
|
|
503
|
+
self.kms_key_id = attributes[:'kmsKeyId'] if attributes[:'kmsKeyId']
|
504
|
+
|
505
|
+
raise 'You cannot provide both :kmsKeyId and :kms_key_id' if attributes.key?(:'kmsKeyId') && attributes.key?(:'kms_key_id')
|
506
|
+
|
507
|
+
self.kms_key_id = attributes[:'kms_key_id'] if attributes[:'kms_key_id']
|
508
|
+
|
496
509
|
self.version = attributes[:'version'] if attributes[:'version']
|
497
510
|
|
498
511
|
self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
|
@@ -724,6 +737,7 @@ module OCI
|
|
724
737
|
time_zone == other.time_zone &&
|
725
738
|
hostname == other.hostname &&
|
726
739
|
domain == other.domain &&
|
740
|
+
kms_key_id == other.kms_key_id &&
|
727
741
|
version == other.version &&
|
728
742
|
cpu_core_count == other.cpu_core_count &&
|
729
743
|
cluster_name == other.cluster_name &&
|
@@ -765,7 +779,7 @@ module OCI
|
|
765
779
|
# Calculates hash code according to all attributes.
|
766
780
|
# @return [Fixnum] Hash code
|
767
781
|
def hash
|
768
|
-
[id, compartment_id, display_name, availability_domain, fault_domains, subnet_id, backup_subnet_id, nsg_ids, backup_network_nsg_ids, shape, db_system_options, ssh_public_keys, time_zone, hostname, domain, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, maintenance_window, last_maintenance_run_id, next_maintenance_run_id, freeform_tags, defined_tags, source_db_system_id, point_in_time_data_disk_clone_timestamp].hash
|
782
|
+
[id, compartment_id, display_name, availability_domain, fault_domains, subnet_id, backup_subnet_id, nsg_ids, backup_network_nsg_ids, shape, db_system_options, ssh_public_keys, time_zone, hostname, domain, kms_key_id, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, maintenance_window, last_maintenance_run_id, next_maintenance_run_id, freeform_tags, defined_tags, source_db_system_id, point_in_time_data_disk_clone_timestamp].hash
|
769
783
|
end
|
770
784
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
771
785
|
|
@@ -5,7 +5,7 @@ require 'date'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
7
7
|
module OCI
|
8
|
-
# Information about the Exadata DB system migration. The migration is used to move the system to the Exadata infrastructure resource model.
|
8
|
+
# Information about the Exadata DB system migration. The migration is used to move the Exadata Cloud Service instance from the DB system resource model to the new cloud Exadata infrastructure resource model.
|
9
9
|
#
|
10
10
|
class Database::Models::ExadataDbSystemMigration
|
11
11
|
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
@@ -5,7 +5,7 @@ require 'date'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
7
7
|
module OCI
|
8
|
-
# Information about Exadata DB system migration. The migration is used to move the system to the Exadata infrastructure resource model.
|
8
|
+
# Information about the Exadata DB system migration. The migration is used to move the Exadata Cloud Service instance from the DB system resource model to the new cloud Exadata infrastructure resource model.
|
9
9
|
#
|
10
10
|
class Database::Models::ExadataDbSystemMigrationSummary
|
11
11
|
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
@@ -19,6 +19,7 @@ module OCI
|
|
19
19
|
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
20
20
|
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
21
21
|
LIFECYCLE_STATE_DISCONNECTED = 'DISCONNECTED'.freeze,
|
22
|
+
LIFECYCLE_STATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS'.freeze,
|
22
23
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
23
24
|
].freeze
|
24
25
|
|
@@ -132,6 +133,9 @@ module OCI
|
|
132
133
|
# @return [Array<OCI::Database::Models::ExadataInfrastructureContact>]
|
133
134
|
attr_accessor :contacts
|
134
135
|
|
136
|
+
# @return [OCI::Database::Models::MaintenanceWindow]
|
137
|
+
attr_accessor :maintenance_window
|
138
|
+
|
135
139
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
136
140
|
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
137
141
|
#
|
@@ -177,6 +181,7 @@ module OCI
|
|
177
181
|
'lifecycle_details': :'lifecycleDetails',
|
178
182
|
'csi_number': :'csiNumber',
|
179
183
|
'contacts': :'contacts',
|
184
|
+
'maintenance_window': :'maintenanceWindow',
|
180
185
|
'freeform_tags': :'freeformTags',
|
181
186
|
'defined_tags': :'definedTags'
|
182
187
|
# rubocop:enable Style/SymbolLiteral
|
@@ -214,6 +219,7 @@ module OCI
|
|
214
219
|
'lifecycle_details': :'String',
|
215
220
|
'csi_number': :'String',
|
216
221
|
'contacts': :'Array<OCI::Database::Models::ExadataInfrastructureContact>',
|
222
|
+
'maintenance_window': :'OCI::Database::Models::MaintenanceWindow',
|
217
223
|
'freeform_tags': :'Hash<String, String>',
|
218
224
|
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
219
225
|
# rubocop:enable Style/SymbolLiteral
|
@@ -253,6 +259,7 @@ module OCI
|
|
253
259
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
254
260
|
# @option attributes [String] :csi_number The value to assign to the {#csi_number} property
|
255
261
|
# @option attributes [Array<OCI::Database::Models::ExadataInfrastructureContact>] :contacts The value to assign to the {#contacts} property
|
262
|
+
# @option attributes [OCI::Database::Models::MaintenanceWindow] :maintenance_window The value to assign to the {#maintenance_window} property
|
256
263
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
257
264
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
258
265
|
def initialize(attributes = {})
|
@@ -400,6 +407,12 @@ module OCI
|
|
400
407
|
|
401
408
|
self.contacts = attributes[:'contacts'] if attributes[:'contacts']
|
402
409
|
|
410
|
+
self.maintenance_window = attributes[:'maintenanceWindow'] if attributes[:'maintenanceWindow']
|
411
|
+
|
412
|
+
raise 'You cannot provide both :maintenanceWindow and :maintenance_window' if attributes.key?(:'maintenanceWindow') && attributes.key?(:'maintenance_window')
|
413
|
+
|
414
|
+
self.maintenance_window = attributes[:'maintenance_window'] if attributes[:'maintenance_window']
|
415
|
+
|
403
416
|
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
404
417
|
|
405
418
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
@@ -464,6 +477,7 @@ module OCI
|
|
464
477
|
lifecycle_details == other.lifecycle_details &&
|
465
478
|
csi_number == other.csi_number &&
|
466
479
|
contacts == other.contacts &&
|
480
|
+
maintenance_window == other.maintenance_window &&
|
467
481
|
freeform_tags == other.freeform_tags &&
|
468
482
|
defined_tags == other.defined_tags
|
469
483
|
end
|
@@ -481,7 +495,7 @@ module OCI
|
|
481
495
|
# Calculates hash code according to all attributes.
|
482
496
|
# @return [Fixnum] Hash code
|
483
497
|
def hash
|
484
|
-
[id, compartment_id, lifecycle_state, display_name, shape, time_zone, cpus_enabled, max_cpu_count, memory_size_in_gbs, max_memory_in_gbs, db_node_storage_size_in_gbs, max_db_node_storage_in_g_bs, data_storage_size_in_tbs, max_data_storage_in_t_bs, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_network_cidr, infini_band_network_cidr, corporate_proxy, dns_server, ntp_server, time_created, lifecycle_details, csi_number, contacts, freeform_tags, defined_tags].hash
|
498
|
+
[id, compartment_id, lifecycle_state, display_name, shape, time_zone, cpus_enabled, max_cpu_count, memory_size_in_gbs, max_memory_in_gbs, db_node_storage_size_in_gbs, max_db_node_storage_in_g_bs, data_storage_size_in_tbs, max_data_storage_in_t_bs, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_network_cidr, infini_band_network_cidr, corporate_proxy, dns_server, ntp_server, time_created, lifecycle_details, csi_number, contacts, maintenance_window, freeform_tags, defined_tags].hash
|
485
499
|
end
|
486
500
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
487
501
|
|
@@ -6,7 +6,9 @@ require 'logger'
|
|
6
6
|
|
7
7
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
8
|
module OCI
|
9
|
-
# Details of the Exadata Cloud@Customer infrastructure.
|
9
|
+
# Details of the Exadata Cloud@Customer infrastructure. Applies to Exadata Cloud@Customer instances only.
|
10
|
+
# See {#cloud_exadata_infrastructure_summary cloud_exadata_infrastructure_summary} for details of the cloud Exadata infrastructure resource used by Exadata Cloud Service instances.
|
11
|
+
#
|
10
12
|
class Database::Models::ExadataInfrastructureSummary
|
11
13
|
LIFECYCLE_STATE_ENUM = [
|
12
14
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
@@ -19,6 +21,7 @@ module OCI
|
|
19
21
|
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
20
22
|
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
21
23
|
LIFECYCLE_STATE_DISCONNECTED = 'DISCONNECTED'.freeze,
|
24
|
+
LIFECYCLE_STATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS'.freeze,
|
22
25
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
23
26
|
].freeze
|
24
27
|
|
@@ -132,6 +135,9 @@ module OCI
|
|
132
135
|
# @return [Array<OCI::Database::Models::ExadataInfrastructureContact>]
|
133
136
|
attr_accessor :contacts
|
134
137
|
|
138
|
+
# @return [OCI::Database::Models::MaintenanceWindow]
|
139
|
+
attr_accessor :maintenance_window
|
140
|
+
|
135
141
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
136
142
|
# For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
137
143
|
#
|
@@ -177,6 +183,7 @@ module OCI
|
|
177
183
|
'lifecycle_details': :'lifecycleDetails',
|
178
184
|
'csi_number': :'csiNumber',
|
179
185
|
'contacts': :'contacts',
|
186
|
+
'maintenance_window': :'maintenanceWindow',
|
180
187
|
'freeform_tags': :'freeformTags',
|
181
188
|
'defined_tags': :'definedTags'
|
182
189
|
# rubocop:enable Style/SymbolLiteral
|
@@ -214,6 +221,7 @@ module OCI
|
|
214
221
|
'lifecycle_details': :'String',
|
215
222
|
'csi_number': :'String',
|
216
223
|
'contacts': :'Array<OCI::Database::Models::ExadataInfrastructureContact>',
|
224
|
+
'maintenance_window': :'OCI::Database::Models::MaintenanceWindow',
|
217
225
|
'freeform_tags': :'Hash<String, String>',
|
218
226
|
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
219
227
|
# rubocop:enable Style/SymbolLiteral
|
@@ -253,6 +261,7 @@ module OCI
|
|
253
261
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
254
262
|
# @option attributes [String] :csi_number The value to assign to the {#csi_number} property
|
255
263
|
# @option attributes [Array<OCI::Database::Models::ExadataInfrastructureContact>] :contacts The value to assign to the {#contacts} property
|
264
|
+
# @option attributes [OCI::Database::Models::MaintenanceWindow] :maintenance_window The value to assign to the {#maintenance_window} property
|
256
265
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
257
266
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
258
267
|
def initialize(attributes = {})
|
@@ -403,6 +412,12 @@ module OCI
|
|
403
412
|
|
404
413
|
self.contacts = attributes[:'contacts'] if attributes[:'contacts']
|
405
414
|
|
415
|
+
self.maintenance_window = attributes[:'maintenanceWindow'] if attributes[:'maintenanceWindow']
|
416
|
+
|
417
|
+
raise 'You cannot provide both :maintenanceWindow and :maintenance_window' if attributes.key?(:'maintenanceWindow') && attributes.key?(:'maintenance_window')
|
418
|
+
|
419
|
+
self.maintenance_window = attributes[:'maintenance_window'] if attributes[:'maintenance_window']
|
420
|
+
|
406
421
|
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
407
422
|
|
408
423
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
@@ -467,6 +482,7 @@ module OCI
|
|
467
482
|
lifecycle_details == other.lifecycle_details &&
|
468
483
|
csi_number == other.csi_number &&
|
469
484
|
contacts == other.contacts &&
|
485
|
+
maintenance_window == other.maintenance_window &&
|
470
486
|
freeform_tags == other.freeform_tags &&
|
471
487
|
defined_tags == other.defined_tags
|
472
488
|
end
|
@@ -484,7 +500,7 @@ module OCI
|
|
484
500
|
# Calculates hash code according to all attributes.
|
485
501
|
# @return [Fixnum] Hash code
|
486
502
|
def hash
|
487
|
-
[id, compartment_id, lifecycle_state, display_name, shape, time_zone, cpus_enabled, max_cpu_count, memory_size_in_gbs, max_memory_in_gbs, db_node_storage_size_in_gbs, max_db_node_storage_in_g_bs, data_storage_size_in_tbs, max_data_storage_in_t_bs, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_network_cidr, infini_band_network_cidr, corporate_proxy, dns_server, ntp_server, time_created, lifecycle_details, csi_number, contacts, freeform_tags, defined_tags].hash
|
503
|
+
[id, compartment_id, lifecycle_state, display_name, shape, time_zone, cpus_enabled, max_cpu_count, memory_size_in_gbs, max_memory_in_gbs, db_node_storage_size_in_gbs, max_db_node_storage_in_g_bs, data_storage_size_in_tbs, max_data_storage_in_t_bs, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_network_cidr, infini_band_network_cidr, corporate_proxy, dns_server, ntp_server, time_created, lifecycle_details, csi_number, contacts, maintenance_window, freeform_tags, defined_tags].hash
|
488
504
|
end
|
489
505
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
490
506
|
|
@@ -0,0 +1,150 @@
|
|
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
|
+
# Results of a FlexComponent lists. Contains FlexComponentSummary items.
|
9
|
+
class Database::Models::FlexComponentCollection
|
10
|
+
# This attribute is required.
|
11
|
+
# @return [Array<OCI::Database::Models::FlexComponentSummary>]
|
12
|
+
attr_accessor :items
|
13
|
+
|
14
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
15
|
+
def self.attribute_map
|
16
|
+
{
|
17
|
+
# rubocop:disable Style/SymbolLiteral
|
18
|
+
'items': :'items'
|
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
|
+
'items': :'Array<OCI::Database::Models::FlexComponentSummary>'
|
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 [Array<OCI::Database::Models::FlexComponentSummary>] :items The value to assign to the {#items} 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.items = attributes[:'items'] if attributes[:'items']
|
46
|
+
end
|
47
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
48
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
49
|
+
|
50
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
51
|
+
|
52
|
+
|
53
|
+
# Checks equality by comparing each attribute.
|
54
|
+
# @param [Object] other the other object to be compared
|
55
|
+
def ==(other)
|
56
|
+
return true if equal?(other)
|
57
|
+
|
58
|
+
self.class == other.class &&
|
59
|
+
items == other.items
|
60
|
+
end
|
61
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
62
|
+
|
63
|
+
# @see the `==` method
|
64
|
+
# @param [Object] other the other object to be compared
|
65
|
+
def eql?(other)
|
66
|
+
self == other
|
67
|
+
end
|
68
|
+
|
69
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
70
|
+
|
71
|
+
|
72
|
+
# Calculates hash code according to all attributes.
|
73
|
+
# @return [Fixnum] Hash code
|
74
|
+
def hash
|
75
|
+
[items].hash
|
76
|
+
end
|
77
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
78
|
+
|
79
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
80
|
+
|
81
|
+
|
82
|
+
# Builds the object from hash
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
# @return [Object] Returns the model itself
|
85
|
+
def build_from_hash(attributes)
|
86
|
+
return nil unless attributes.is_a?(Hash)
|
87
|
+
|
88
|
+
self.class.swagger_types.each_pair do |key, type|
|
89
|
+
if type =~ /^Array<(.*)>/i
|
90
|
+
# check to ensure the input is an array given that the the attribute
|
91
|
+
# is documented as an array but the input is not
|
92
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
+
public_method("#{key}=").call(
|
94
|
+
attributes[self.class.attribute_map[key]]
|
95
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
96
|
+
)
|
97
|
+
end
|
98
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
99
|
+
public_method("#{key}=").call(
|
100
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
101
|
+
)
|
102
|
+
end
|
103
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
104
|
+
end
|
105
|
+
|
106
|
+
self
|
107
|
+
end
|
108
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
109
|
+
|
110
|
+
# Returns the string representation of the object
|
111
|
+
# @return [String] String presentation of the object
|
112
|
+
def to_s
|
113
|
+
to_hash.to_s
|
114
|
+
end
|
115
|
+
|
116
|
+
# Returns the object in the form of hash
|
117
|
+
# @return [Hash] Returns the object in the form of hash
|
118
|
+
def to_hash
|
119
|
+
hash = {}
|
120
|
+
self.class.attribute_map.each_pair do |attr, param|
|
121
|
+
value = public_method(attr).call
|
122
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
123
|
+
|
124
|
+
hash[param] = _to_hash(value)
|
125
|
+
end
|
126
|
+
hash
|
127
|
+
end
|
128
|
+
|
129
|
+
private
|
130
|
+
|
131
|
+
# Outputs non-array value in the form of hash
|
132
|
+
# For object, use to_hash. Otherwise, just return the value
|
133
|
+
# @param [Object] value Any valid value
|
134
|
+
# @return [Hash] Returns the value in the form of hash
|
135
|
+
def _to_hash(value)
|
136
|
+
if value.is_a?(Array)
|
137
|
+
value.compact.map { |v| _to_hash(v) }
|
138
|
+
elsif value.is_a?(Hash)
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
141
|
+
end
|
142
|
+
elsif value.respond_to? :to_hash
|
143
|
+
value.to_hash
|
144
|
+
else
|
145
|
+
value
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,197 @@
|
|
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 Flex Components for a DB system. The Flex Component determines resources to allocate to the DB system - CPU cores, memory and storage for Flex shapes.
|
9
|
+
#
|
10
|
+
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator.
|
11
|
+
# If you're an administrator who needs to write policies to give users access,
|
12
|
+
# see [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
13
|
+
#
|
14
|
+
class Database::Models::FlexComponentSummary
|
15
|
+
# **[Required]** The name of the Flex Component used for the DB system.
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# The minimum number of CPU cores that can be enabled on the DB Server for this Flex Component.
|
20
|
+
# @return [Integer]
|
21
|
+
attr_accessor :minimum_core_count
|
22
|
+
|
23
|
+
# The maximum number of CPU cores that can ben enabled on the DB Server for this Flex Component.
|
24
|
+
# @return [Integer]
|
25
|
+
attr_accessor :available_core_count
|
26
|
+
|
27
|
+
# The maximum storage that can be enabled on the Storage Server for this Flex Component.
|
28
|
+
# @return [Integer]
|
29
|
+
attr_accessor :available_db_storage_in_gbs
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
# rubocop:disable Style/SymbolLiteral
|
35
|
+
'name': :'name',
|
36
|
+
'minimum_core_count': :'minimumCoreCount',
|
37
|
+
'available_core_count': :'availableCoreCount',
|
38
|
+
'available_db_storage_in_gbs': :'availableDbStorageInGBs'
|
39
|
+
# rubocop:enable Style/SymbolLiteral
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
def self.swagger_types
|
45
|
+
{
|
46
|
+
# rubocop:disable Style/SymbolLiteral
|
47
|
+
'name': :'String',
|
48
|
+
'minimum_core_count': :'Integer',
|
49
|
+
'available_core_count': :'Integer',
|
50
|
+
'available_db_storage_in_gbs': :'Integer'
|
51
|
+
# rubocop:enable Style/SymbolLiteral
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
56
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
57
|
+
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
# @option attributes [String] :name The value to assign to the {#name} property
|
62
|
+
# @option attributes [Integer] :minimum_core_count The value to assign to the {#minimum_core_count} property
|
63
|
+
# @option attributes [Integer] :available_core_count The value to assign to the {#available_core_count} property
|
64
|
+
# @option attributes [Integer] :available_db_storage_in_gbs The value to assign to the {#available_db_storage_in_gbs} property
|
65
|
+
def initialize(attributes = {})
|
66
|
+
return unless attributes.is_a?(Hash)
|
67
|
+
|
68
|
+
# convert string to symbol for hash key
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
70
|
+
|
71
|
+
self.name = attributes[:'name'] if attributes[:'name']
|
72
|
+
|
73
|
+
self.minimum_core_count = attributes[:'minimumCoreCount'] if attributes[:'minimumCoreCount']
|
74
|
+
|
75
|
+
raise 'You cannot provide both :minimumCoreCount and :minimum_core_count' if attributes.key?(:'minimumCoreCount') && attributes.key?(:'minimum_core_count')
|
76
|
+
|
77
|
+
self.minimum_core_count = attributes[:'minimum_core_count'] if attributes[:'minimum_core_count']
|
78
|
+
|
79
|
+
self.available_core_count = attributes[:'availableCoreCount'] if attributes[:'availableCoreCount']
|
80
|
+
|
81
|
+
raise 'You cannot provide both :availableCoreCount and :available_core_count' if attributes.key?(:'availableCoreCount') && attributes.key?(:'available_core_count')
|
82
|
+
|
83
|
+
self.available_core_count = attributes[:'available_core_count'] if attributes[:'available_core_count']
|
84
|
+
|
85
|
+
self.available_db_storage_in_gbs = attributes[:'availableDbStorageInGBs'] if attributes[:'availableDbStorageInGBs']
|
86
|
+
|
87
|
+
raise 'You cannot provide both :availableDbStorageInGBs and :available_db_storage_in_gbs' if attributes.key?(:'availableDbStorageInGBs') && attributes.key?(:'available_db_storage_in_gbs')
|
88
|
+
|
89
|
+
self.available_db_storage_in_gbs = attributes[:'available_db_storage_in_gbs'] if attributes[:'available_db_storage_in_gbs']
|
90
|
+
end
|
91
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
92
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
93
|
+
|
94
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
95
|
+
|
96
|
+
|
97
|
+
# Checks equality by comparing each attribute.
|
98
|
+
# @param [Object] other the other object to be compared
|
99
|
+
def ==(other)
|
100
|
+
return true if equal?(other)
|
101
|
+
|
102
|
+
self.class == other.class &&
|
103
|
+
name == other.name &&
|
104
|
+
minimum_core_count == other.minimum_core_count &&
|
105
|
+
available_core_count == other.available_core_count &&
|
106
|
+
available_db_storage_in_gbs == other.available_db_storage_in_gbs
|
107
|
+
end
|
108
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
109
|
+
|
110
|
+
# @see the `==` method
|
111
|
+
# @param [Object] other the other object to be compared
|
112
|
+
def eql?(other)
|
113
|
+
self == other
|
114
|
+
end
|
115
|
+
|
116
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
117
|
+
|
118
|
+
|
119
|
+
# Calculates hash code according to all attributes.
|
120
|
+
# @return [Fixnum] Hash code
|
121
|
+
def hash
|
122
|
+
[name, minimum_core_count, available_core_count, available_db_storage_in_gbs].hash
|
123
|
+
end
|
124
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
125
|
+
|
126
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
127
|
+
|
128
|
+
|
129
|
+
# Builds the object from hash
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
# @return [Object] Returns the model itself
|
132
|
+
def build_from_hash(attributes)
|
133
|
+
return nil unless attributes.is_a?(Hash)
|
134
|
+
|
135
|
+
self.class.swagger_types.each_pair do |key, type|
|
136
|
+
if type =~ /^Array<(.*)>/i
|
137
|
+
# check to ensure the input is an array given that the the attribute
|
138
|
+
# is documented as an array but the input is not
|
139
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
140
|
+
public_method("#{key}=").call(
|
141
|
+
attributes[self.class.attribute_map[key]]
|
142
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
143
|
+
)
|
144
|
+
end
|
145
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
|
+
public_method("#{key}=").call(
|
147
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
148
|
+
)
|
149
|
+
end
|
150
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
151
|
+
end
|
152
|
+
|
153
|
+
self
|
154
|
+
end
|
155
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
156
|
+
|
157
|
+
# Returns the string representation of the object
|
158
|
+
# @return [String] String presentation of the object
|
159
|
+
def to_s
|
160
|
+
to_hash.to_s
|
161
|
+
end
|
162
|
+
|
163
|
+
# Returns the object in the form of hash
|
164
|
+
# @return [Hash] Returns the object in the form of hash
|
165
|
+
def to_hash
|
166
|
+
hash = {}
|
167
|
+
self.class.attribute_map.each_pair do |attr, param|
|
168
|
+
value = public_method(attr).call
|
169
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
170
|
+
|
171
|
+
hash[param] = _to_hash(value)
|
172
|
+
end
|
173
|
+
hash
|
174
|
+
end
|
175
|
+
|
176
|
+
private
|
177
|
+
|
178
|
+
# Outputs non-array value in the form of hash
|
179
|
+
# For object, use to_hash. Otherwise, just return the value
|
180
|
+
# @param [Object] value Any valid value
|
181
|
+
# @return [Hash] Returns the value in the form of hash
|
182
|
+
def _to_hash(value)
|
183
|
+
if value.is_a?(Array)
|
184
|
+
value.compact.map { |v| _to_hash(v) }
|
185
|
+
elsif value.is_a?(Hash)
|
186
|
+
{}.tap do |hash|
|
187
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
188
|
+
end
|
189
|
+
elsif value.respond_to? :to_hash
|
190
|
+
value.to_hash
|
191
|
+
else
|
192
|
+
value
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
197
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|