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
|
@@ -114,6 +114,7 @@ module OCI
|
|
|
114
114
|
# then a retry of the original creation request might be rejected).
|
|
115
115
|
#
|
|
116
116
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::AcceptedAgreement AcceptedAgreement}
|
|
117
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/create_accepted_agreement.rb.html) to see an example of how to use create_accepted_agreement API.
|
|
117
118
|
def create_accepted_agreement(create_accepted_agreement_details, opts = {})
|
|
118
119
|
logger.debug 'Calling operation MarketplaceClient#create_accepted_agreement.' if logger
|
|
119
120
|
|
|
@@ -178,6 +179,7 @@ module OCI
|
|
|
178
179
|
# deleted only if the etag you provide matches the resource's current etag value.
|
|
179
180
|
#
|
|
180
181
|
# @return [Response] A Response object with data of type nil
|
|
182
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/delete_accepted_agreement.rb.html) to see an example of how to use delete_accepted_agreement API.
|
|
181
183
|
def delete_accepted_agreement(accepted_agreement_id, opts = {})
|
|
182
184
|
logger.debug 'Calling operation MarketplaceClient#delete_accepted_agreement.' if logger
|
|
183
185
|
|
|
@@ -235,6 +237,7 @@ module OCI
|
|
|
235
237
|
# please provide the request ID.
|
|
236
238
|
#
|
|
237
239
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::AcceptedAgreement AcceptedAgreement}
|
|
240
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/get_accepted_agreement.rb.html) to see an example of how to use get_accepted_agreement API.
|
|
238
241
|
def get_accepted_agreement(accepted_agreement_id, opts = {})
|
|
239
242
|
logger.debug 'Calling operation MarketplaceClient#get_accepted_agreement.' if logger
|
|
240
243
|
|
|
@@ -295,6 +298,7 @@ module OCI
|
|
|
295
298
|
#
|
|
296
299
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
297
300
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::Agreement Agreement}
|
|
301
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/get_agreement.rb.html) to see an example of how to use get_agreement API.
|
|
298
302
|
def get_agreement(listing_id, package_version, agreement_id, opts = {})
|
|
299
303
|
logger.debug 'Calling operation MarketplaceClient#get_agreement.' if logger
|
|
300
304
|
|
|
@@ -371,6 +375,7 @@ module OCI
|
|
|
371
375
|
#
|
|
372
376
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
373
377
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::Listing Listing}
|
|
378
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/get_listing.rb.html) to see an example of how to use get_listing API.
|
|
374
379
|
def get_listing(listing_id, opts = {})
|
|
375
380
|
logger.debug 'Calling operation MarketplaceClient#get_listing.' if logger
|
|
376
381
|
|
|
@@ -443,6 +448,7 @@ module OCI
|
|
|
443
448
|
#
|
|
444
449
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
445
450
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::ListingPackage ListingPackage}
|
|
451
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/get_package.rb.html) to see an example of how to use get_package API.
|
|
446
452
|
def get_package(listing_id, package_version, opts = {})
|
|
447
453
|
logger.debug 'Calling operation MarketplaceClient#get_package.' if logger
|
|
448
454
|
|
|
@@ -517,6 +523,7 @@ module OCI
|
|
|
517
523
|
# (default to 30)
|
|
518
524
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
519
525
|
# @return [Response] A Response object with data of type Array<{OCI::Marketplace::Models::AcceptedAgreementSummary AcceptedAgreementSummary}>
|
|
526
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_accepted_agreements.rb.html) to see an example of how to use list_accepted_agreements API.
|
|
520
527
|
def list_accepted_agreements(compartment_id, opts = {})
|
|
521
528
|
logger.debug 'Calling operation MarketplaceClient#list_accepted_agreements.' if logger
|
|
522
529
|
|
|
@@ -594,6 +601,7 @@ module OCI
|
|
|
594
601
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
595
602
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
596
603
|
# @return [Response] A Response object with data of type Array<{OCI::Marketplace::Models::AgreementSummary AgreementSummary}>
|
|
604
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_agreements.rb.html) to see an example of how to use list_agreements API.
|
|
597
605
|
def list_agreements(listing_id, package_version, opts = {})
|
|
598
606
|
logger.debug 'Calling operation MarketplaceClient#list_agreements.' if logger
|
|
599
607
|
|
|
@@ -659,6 +667,7 @@ module OCI
|
|
|
659
667
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
660
668
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
661
669
|
# @return [Response] A Response object with data of type Array<{OCI::Marketplace::Models::CategorySummary CategorySummary}>
|
|
670
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_categories.rb.html) to see an example of how to use list_categories API.
|
|
662
671
|
def list_categories(opts = {})
|
|
663
672
|
logger.debug 'Calling operation MarketplaceClient#list_categories.' if logger
|
|
664
673
|
|
|
@@ -754,6 +763,7 @@ module OCI
|
|
|
754
763
|
# (default to false)
|
|
755
764
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
756
765
|
# @return [Response] A Response object with data of type Array<{OCI::Marketplace::Models::ListingSummary ListingSummary}>
|
|
766
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_listings.rb.html) to see an example of how to use list_listings API.
|
|
757
767
|
def list_listings(opts = {})
|
|
758
768
|
logger.debug 'Calling operation MarketplaceClient#list_listings.' if logger
|
|
759
769
|
|
|
@@ -865,6 +875,7 @@ module OCI
|
|
|
865
875
|
# Allowed values are: ASC, DESC
|
|
866
876
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
867
877
|
# @return [Response] A Response object with data of type Array<{OCI::Marketplace::Models::ListingPackageSummary ListingPackageSummary}>
|
|
878
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_packages.rb.html) to see an example of how to use list_packages API.
|
|
868
879
|
def list_packages(listing_id, opts = {})
|
|
869
880
|
logger.debug 'Calling operation MarketplaceClient#list_packages.' if logger
|
|
870
881
|
|
|
@@ -940,6 +951,7 @@ module OCI
|
|
|
940
951
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
941
952
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
942
953
|
# @return [Response] A Response object with data of type Array<{OCI::Marketplace::Models::PublisherSummary PublisherSummary}>
|
|
954
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_publishers.rb.html) to see an example of how to use list_publishers API.
|
|
943
955
|
def list_publishers(opts = {})
|
|
944
956
|
logger.debug 'Calling operation MarketplaceClient#list_publishers.' if logger
|
|
945
957
|
|
|
@@ -998,6 +1010,7 @@ module OCI
|
|
|
998
1010
|
#
|
|
999
1011
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
1000
1012
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::ReportTypeCollection ReportTypeCollection}
|
|
1013
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_report_types.rb.html) to see an example of how to use list_report_types API.
|
|
1001
1014
|
def list_report_types(compartment_id, opts = {})
|
|
1002
1015
|
logger.debug 'Calling operation MarketplaceClient#list_report_types.' if logger
|
|
1003
1016
|
|
|
@@ -1057,6 +1070,7 @@ module OCI
|
|
|
1057
1070
|
#
|
|
1058
1071
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
|
1059
1072
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::ReportCollection ReportCollection}
|
|
1073
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_reports.rb.html) to see an example of how to use list_reports API.
|
|
1060
1074
|
def list_reports(report_type, date, compartment_id, opts = {})
|
|
1061
1075
|
logger.debug 'Calling operation MarketplaceClient#list_reports.' if logger
|
|
1062
1076
|
|
|
@@ -1118,6 +1132,7 @@ module OCI
|
|
|
1118
1132
|
#
|
|
1119
1133
|
# @option opts [String] :compartment_id The unique identifier for the compartment.
|
|
1120
1134
|
# @return [Response] A Response object with data of type Array<{OCI::Marketplace::Models::TaxSummary TaxSummary}>
|
|
1135
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/list_taxes.rb.html) to see an example of how to use list_taxes API.
|
|
1121
1136
|
def list_taxes(listing_id, opts = {})
|
|
1122
1137
|
logger.debug 'Calling operation MarketplaceClient#list_taxes.' if logger
|
|
1123
1138
|
|
|
@@ -1185,6 +1200,7 @@ module OCI
|
|
|
1185
1200
|
# deleted only if the etag you provide matches the resource's current etag value.
|
|
1186
1201
|
#
|
|
1187
1202
|
# @return [Response] A Response object with data of type {OCI::Marketplace::Models::AcceptedAgreement AcceptedAgreement}
|
|
1203
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/marketplace/update_accepted_agreement.rb.html) to see an example of how to use update_accepted_agreement API.
|
|
1188
1204
|
def update_accepted_agreement(accepted_agreement_id, update_accepted_agreement_details, opts = {})
|
|
1189
1205
|
logger.debug 'Calling operation MarketplaceClient#update_accepted_agreement.' if logger
|
|
1190
1206
|
|
|
@@ -124,6 +124,7 @@ module OCI
|
|
|
124
124
|
# might be rejected.
|
|
125
125
|
#
|
|
126
126
|
# @return [Response] A Response object with data of type nil
|
|
127
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/change_alarm_compartment.rb.html) to see an example of how to use change_alarm_compartment API.
|
|
127
128
|
def change_alarm_compartment(alarm_id, change_alarm_compartment_details, opts = {})
|
|
128
129
|
logger.debug 'Calling operation MonitoringClient#change_alarm_compartment.' if logger
|
|
129
130
|
|
|
@@ -194,6 +195,7 @@ module OCI
|
|
|
194
195
|
# might be rejected.
|
|
195
196
|
#
|
|
196
197
|
# @return [Response] A Response object with data of type {OCI::Monitoring::Models::Alarm Alarm}
|
|
198
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/create_alarm.rb.html) to see an example of how to use create_alarm API.
|
|
197
199
|
def create_alarm(create_alarm_details, opts = {})
|
|
198
200
|
logger.debug 'Calling operation MonitoringClient#create_alarm.' if logger
|
|
199
201
|
|
|
@@ -261,6 +263,7 @@ module OCI
|
|
|
261
263
|
# request, please provide the complete request ID.
|
|
262
264
|
#
|
|
263
265
|
# @return [Response] A Response object with data of type nil
|
|
266
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/delete_alarm.rb.html) to see an example of how to use delete_alarm API.
|
|
264
267
|
def delete_alarm(alarm_id, opts = {})
|
|
265
268
|
logger.debug 'Calling operation MonitoringClient#delete_alarm.' if logger
|
|
266
269
|
|
|
@@ -323,6 +326,7 @@ module OCI
|
|
|
323
326
|
# request, please provide the complete request ID.
|
|
324
327
|
#
|
|
325
328
|
# @return [Response] A Response object with data of type {OCI::Monitoring::Models::Alarm Alarm}
|
|
329
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/get_alarm.rb.html) to see an example of how to use get_alarm API.
|
|
326
330
|
def get_alarm(alarm_id, opts = {})
|
|
327
331
|
logger.debug 'Calling operation MonitoringClient#get_alarm.' if logger
|
|
328
332
|
|
|
@@ -409,6 +413,7 @@ module OCI
|
|
|
409
413
|
# Example: `2019-01-02T01:00:00.789Z`
|
|
410
414
|
#
|
|
411
415
|
# @return [Response] A Response object with data of type {OCI::Monitoring::Models::AlarmHistoryCollection AlarmHistoryCollection}
|
|
416
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/get_alarm_history.rb.html) to see an example of how to use get_alarm_history API.
|
|
412
417
|
def get_alarm_history(alarm_id, opts = {})
|
|
413
418
|
logger.debug 'Calling operation MonitoringClient#get_alarm_history.' if logger
|
|
414
419
|
|
|
@@ -515,6 +520,7 @@ module OCI
|
|
|
515
520
|
# compartmentId. Default is false.
|
|
516
521
|
#
|
|
517
522
|
# @return [Response] A Response object with data of type Array<{OCI::Monitoring::Models::AlarmSummary AlarmSummary}>
|
|
523
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/list_alarms.rb.html) to see an example of how to use list_alarms API.
|
|
518
524
|
def list_alarms(compartment_id, opts = {})
|
|
519
525
|
logger.debug 'Calling operation MonitoringClient#list_alarms.' if logger
|
|
520
526
|
|
|
@@ -629,6 +635,7 @@ module OCI
|
|
|
629
635
|
#
|
|
630
636
|
# Allowed values are: ASC, DESC
|
|
631
637
|
# @return [Response] A Response object with data of type Array<{OCI::Monitoring::Models::AlarmStatusSummary AlarmStatusSummary}>
|
|
638
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/list_alarms_status.rb.html) to see an example of how to use list_alarms_status API.
|
|
632
639
|
def list_alarms_status(compartment_id, opts = {})
|
|
633
640
|
logger.debug 'Calling operation MonitoringClient#list_alarms_status.' if logger
|
|
634
641
|
|
|
@@ -725,6 +732,7 @@ module OCI
|
|
|
725
732
|
# compartmentId. Default is false.
|
|
726
733
|
#
|
|
727
734
|
# @return [Response] A Response object with data of type Array<{OCI::Monitoring::Models::Metric Metric}>
|
|
735
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/list_metrics.rb.html) to see an example of how to use list_metrics API.
|
|
728
736
|
def list_metrics(compartment_id, list_metrics_details, opts = {})
|
|
729
737
|
logger.debug 'Calling operation MonitoringClient#list_metrics.' if logger
|
|
730
738
|
|
|
@@ -803,6 +811,7 @@ module OCI
|
|
|
803
811
|
# request, please provide the complete request ID.
|
|
804
812
|
#
|
|
805
813
|
# @return [Response] A Response object with data of type {OCI::Monitoring::Models::PostMetricDataResponseDetails PostMetricDataResponseDetails}
|
|
814
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/post_metric_data.rb.html) to see an example of how to use post_metric_data API.
|
|
806
815
|
def post_metric_data(post_metric_data_details, opts = {})
|
|
807
816
|
logger.debug 'Calling operation MonitoringClient#post_metric_data.' if logger
|
|
808
817
|
|
|
@@ -868,6 +877,7 @@ module OCI
|
|
|
868
877
|
# request, please provide the complete request ID.
|
|
869
878
|
#
|
|
870
879
|
# @return [Response] A Response object with data of type nil
|
|
880
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/remove_alarm_suppression.rb.html) to see an example of how to use remove_alarm_suppression API.
|
|
871
881
|
def remove_alarm_suppression(alarm_id, opts = {})
|
|
872
882
|
logger.debug 'Calling operation MonitoringClient#remove_alarm_suppression.' if logger
|
|
873
883
|
|
|
@@ -940,6 +950,7 @@ module OCI
|
|
|
940
950
|
# compartmentId. Default is false.
|
|
941
951
|
#
|
|
942
952
|
# @return [Response] A Response object with data of type Array<{OCI::Monitoring::Models::MetricData MetricData}>
|
|
953
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/summarize_metrics_data.rb.html) to see an example of how to use summarize_metrics_data API.
|
|
943
954
|
def summarize_metrics_data(compartment_id, summarize_metrics_data_details, opts = {})
|
|
944
955
|
logger.debug 'Calling operation MonitoringClient#summarize_metrics_data.' if logger
|
|
945
956
|
|
|
@@ -1009,6 +1020,7 @@ module OCI
|
|
|
1009
1020
|
# request, please provide the complete request ID.
|
|
1010
1021
|
#
|
|
1011
1022
|
# @return [Response] A Response object with data of type {OCI::Monitoring::Models::Alarm Alarm}
|
|
1023
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/monitoring/update_alarm.rb.html) to see an example of how to use update_alarm API.
|
|
1012
1024
|
def update_alarm(alarm_id, update_alarm_details, opts = {})
|
|
1013
1025
|
logger.debug 'Calling operation MonitoringClient#update_alarm.' if logger
|
|
1014
1026
|
|
|
@@ -0,0 +1,625 @@
|
|
|
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 'uri'
|
|
5
|
+
require 'logger'
|
|
6
|
+
|
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
8
|
+
module OCI
|
|
9
|
+
# The API for the MySQL Database Service
|
|
10
|
+
class Mysql::ChannelsClient
|
|
11
|
+
# Client used to make HTTP requests.
|
|
12
|
+
# @return [OCI::ApiClient]
|
|
13
|
+
attr_reader :api_client
|
|
14
|
+
|
|
15
|
+
# Fully qualified endpoint URL
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_reader :endpoint
|
|
18
|
+
|
|
19
|
+
# The default retry configuration to apply to all operations in this service client. This can be overridden
|
|
20
|
+
# on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
|
21
|
+
# will not perform any retries
|
|
22
|
+
# @return [OCI::Retry::RetryConfig]
|
|
23
|
+
attr_reader :retry_config
|
|
24
|
+
|
|
25
|
+
# The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_reader :region
|
|
28
|
+
|
|
29
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Creates a new ChannelsClient.
|
|
33
|
+
# Notes:
|
|
34
|
+
# If a config is not specified, then the global OCI.config will be used.
|
|
35
|
+
#
|
|
36
|
+
# This client is not thread-safe
|
|
37
|
+
#
|
|
38
|
+
# Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
|
|
39
|
+
# region. A region may be specified in the config or via or the region parameter. If specified in both, then the
|
|
40
|
+
# region parameter will be used.
|
|
41
|
+
# @param [Config] config A Config object.
|
|
42
|
+
# @param [String] region A region used to determine the service endpoint. This will usually
|
|
43
|
+
# correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
|
|
44
|
+
# @param [String] endpoint The fully qualified endpoint URL
|
|
45
|
+
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
|
46
|
+
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
|
47
|
+
# so that the instance principals signer can be provided to the client
|
|
48
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
|
49
|
+
# the details for the proxy can be provided in this parameter
|
|
50
|
+
# @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
|
|
51
|
+
# apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
|
52
|
+
# will not perform any retries
|
|
53
|
+
def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
|
54
|
+
# If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
|
|
55
|
+
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
|
56
|
+
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
|
57
|
+
# pass it to this constructor.
|
|
58
|
+
#
|
|
59
|
+
# If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
|
|
60
|
+
# so try and load the config from the default file.
|
|
61
|
+
config = OCI::Config.validate_and_build_config_with_signer(config, signer)
|
|
62
|
+
|
|
63
|
+
signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?
|
|
64
|
+
|
|
65
|
+
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
|
66
|
+
@retry_config = retry_config
|
|
67
|
+
|
|
68
|
+
if endpoint
|
|
69
|
+
@endpoint = endpoint + '/20190415'
|
|
70
|
+
else
|
|
71
|
+
region ||= config.region
|
|
72
|
+
region ||= signer.region if signer.respond_to?(:region)
|
|
73
|
+
self.region = region
|
|
74
|
+
end
|
|
75
|
+
logger.info "ChannelsClient endpoint set to '#{@endpoint}'." if logger
|
|
76
|
+
end
|
|
77
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
|
78
|
+
|
|
79
|
+
# Set the region that will be used to determine the service endpoint.
|
|
80
|
+
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
|
81
|
+
# but may be an arbitrary string.
|
|
82
|
+
def region=(new_region)
|
|
83
|
+
@region = new_region
|
|
84
|
+
|
|
85
|
+
raise 'A region must be specified.' unless @region
|
|
86
|
+
|
|
87
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://mysql.{region}.ocp.{secondLevelDomain}') + '/20190415'
|
|
88
|
+
logger.info "ChannelsClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# @return [Logger] The logger for this client. May be nil.
|
|
92
|
+
def logger
|
|
93
|
+
@api_client.config.logger
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
97
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
98
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# Creates a Channel to establish replication from a source to a target.
|
|
102
|
+
#
|
|
103
|
+
# @param [OCI::Mysql::Models::CreateChannelDetails] create_channel_details The parameters of the request to create the Channel.
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
106
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
107
|
+
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
|
|
108
|
+
# contact Oracle about a specific request, please provide the request
|
|
109
|
+
# ID that you supplied in this header with the request.
|
|
110
|
+
#
|
|
111
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
|
|
112
|
+
# of a timeout or server error without risk of executing that same action
|
|
113
|
+
# again. Retry tokens expire after 24 hours, but can be invalidated before
|
|
114
|
+
# then due to conflicting operations (for example, if a resource has been
|
|
115
|
+
# deleted and purged from the system, then a retry of the original
|
|
116
|
+
# creation request may be rejected).
|
|
117
|
+
#
|
|
118
|
+
# @return [Response] A Response object with data of type {OCI::Mysql::Models::Channel Channel}
|
|
119
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/create_channel.rb.html) to see an example of how to use create_channel API.
|
|
120
|
+
def create_channel(create_channel_details, opts = {})
|
|
121
|
+
logger.debug 'Calling operation ChannelsClient#create_channel.' if logger
|
|
122
|
+
|
|
123
|
+
raise "Missing the required parameter 'create_channel_details' when calling create_channel." if create_channel_details.nil?
|
|
124
|
+
|
|
125
|
+
path = '/channels'
|
|
126
|
+
operation_signing_strategy = :standard
|
|
127
|
+
|
|
128
|
+
# rubocop:disable Style/NegatedIf
|
|
129
|
+
# Query Params
|
|
130
|
+
query_params = {}
|
|
131
|
+
|
|
132
|
+
# Header Params
|
|
133
|
+
header_params = {}
|
|
134
|
+
header_params[:accept] = 'application/json'
|
|
135
|
+
header_params[:'content-type'] = 'application/json'
|
|
136
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
137
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
138
|
+
# rubocop:enable Style/NegatedIf
|
|
139
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
140
|
+
|
|
141
|
+
post_body = @api_client.object_to_http_body(create_channel_details)
|
|
142
|
+
|
|
143
|
+
# rubocop:disable Metrics/BlockLength
|
|
144
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ChannelsClient#create_channel') do
|
|
145
|
+
@api_client.call_api(
|
|
146
|
+
:POST,
|
|
147
|
+
path,
|
|
148
|
+
endpoint,
|
|
149
|
+
header_params: header_params,
|
|
150
|
+
query_params: query_params,
|
|
151
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
152
|
+
body: post_body,
|
|
153
|
+
return_type: 'OCI::Mysql::Models::Channel'
|
|
154
|
+
)
|
|
155
|
+
end
|
|
156
|
+
# rubocop:enable Metrics/BlockLength
|
|
157
|
+
end
|
|
158
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
159
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
160
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
161
|
+
|
|
162
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
163
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
164
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
# Deletes the specified Channel.
|
|
168
|
+
# @param [String] channel_id The Channel [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
169
|
+
# @param [Hash] opts the optional parameters
|
|
170
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
171
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
172
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a
|
|
173
|
+
# resource, set the `If-Match` header to the value of the etag from a
|
|
174
|
+
# previous GET or POST response for that resource. The resource will be
|
|
175
|
+
# updated or deleted only if the etag you provide matches the resource's
|
|
176
|
+
# current etag value.
|
|
177
|
+
#
|
|
178
|
+
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
|
|
179
|
+
# contact Oracle about a specific request, please provide the request
|
|
180
|
+
# ID that you supplied in this header with the request.
|
|
181
|
+
#
|
|
182
|
+
# @return [Response] A Response object with data of type nil
|
|
183
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/delete_channel.rb.html) to see an example of how to use delete_channel API.
|
|
184
|
+
def delete_channel(channel_id, opts = {})
|
|
185
|
+
logger.debug 'Calling operation ChannelsClient#delete_channel.' if logger
|
|
186
|
+
|
|
187
|
+
raise "Missing the required parameter 'channel_id' when calling delete_channel." if channel_id.nil?
|
|
188
|
+
raise "Parameter value for 'channel_id' must not be blank" if OCI::Internal::Util.blank_string?(channel_id)
|
|
189
|
+
|
|
190
|
+
path = '/channels/{channelId}'.sub('{channelId}', channel_id.to_s)
|
|
191
|
+
operation_signing_strategy = :standard
|
|
192
|
+
|
|
193
|
+
# rubocop:disable Style/NegatedIf
|
|
194
|
+
# Query Params
|
|
195
|
+
query_params = {}
|
|
196
|
+
|
|
197
|
+
# Header Params
|
|
198
|
+
header_params = {}
|
|
199
|
+
header_params[:accept] = 'application/json'
|
|
200
|
+
header_params[:'content-type'] = 'application/json'
|
|
201
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
202
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
203
|
+
# rubocop:enable Style/NegatedIf
|
|
204
|
+
|
|
205
|
+
post_body = nil
|
|
206
|
+
|
|
207
|
+
# rubocop:disable Metrics/BlockLength
|
|
208
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ChannelsClient#delete_channel') do
|
|
209
|
+
@api_client.call_api(
|
|
210
|
+
:DELETE,
|
|
211
|
+
path,
|
|
212
|
+
endpoint,
|
|
213
|
+
header_params: header_params,
|
|
214
|
+
query_params: query_params,
|
|
215
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
216
|
+
body: post_body
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
# rubocop:enable Metrics/BlockLength
|
|
220
|
+
end
|
|
221
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
222
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
223
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
224
|
+
|
|
225
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
226
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
227
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
# Gets the full details of the specified Channel, including the user-specified
|
|
231
|
+
# configuration parameters (passwords are omitted), as well as information about
|
|
232
|
+
# the state of the Channel, its sources and targets.
|
|
233
|
+
#
|
|
234
|
+
# @param [String] channel_id The Channel [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
235
|
+
# @param [Hash] opts the optional parameters
|
|
236
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
237
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
238
|
+
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
|
|
239
|
+
# contact Oracle about a specific request, please provide the request
|
|
240
|
+
# ID that you supplied in this header with the request.
|
|
241
|
+
#
|
|
242
|
+
# @option opts [String] :if_none_match For conditional requests. In the GET call for a resource, set the
|
|
243
|
+
# `If-None-Match` header to the value of the ETag from a previous GET (or
|
|
244
|
+
# POST or PUT) response for that resource. The server will return with
|
|
245
|
+
# either a 304 Not Modified response if the resource has not changed, or a
|
|
246
|
+
# 200 OK response with the updated representation.
|
|
247
|
+
#
|
|
248
|
+
# @return [Response] A Response object with data of type {OCI::Mysql::Models::Channel Channel}
|
|
249
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/get_channel.rb.html) to see an example of how to use get_channel API.
|
|
250
|
+
def get_channel(channel_id, opts = {})
|
|
251
|
+
logger.debug 'Calling operation ChannelsClient#get_channel.' if logger
|
|
252
|
+
|
|
253
|
+
raise "Missing the required parameter 'channel_id' when calling get_channel." if channel_id.nil?
|
|
254
|
+
raise "Parameter value for 'channel_id' must not be blank" if OCI::Internal::Util.blank_string?(channel_id)
|
|
255
|
+
|
|
256
|
+
path = '/channels/{channelId}'.sub('{channelId}', channel_id.to_s)
|
|
257
|
+
operation_signing_strategy = :standard
|
|
258
|
+
|
|
259
|
+
# rubocop:disable Style/NegatedIf
|
|
260
|
+
# Query Params
|
|
261
|
+
query_params = {}
|
|
262
|
+
|
|
263
|
+
# Header Params
|
|
264
|
+
header_params = {}
|
|
265
|
+
header_params[:accept] = 'application/json'
|
|
266
|
+
header_params[:'content-type'] = 'application/json'
|
|
267
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
268
|
+
header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
|
|
269
|
+
# rubocop:enable Style/NegatedIf
|
|
270
|
+
|
|
271
|
+
post_body = nil
|
|
272
|
+
|
|
273
|
+
# rubocop:disable Metrics/BlockLength
|
|
274
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ChannelsClient#get_channel') do
|
|
275
|
+
@api_client.call_api(
|
|
276
|
+
:GET,
|
|
277
|
+
path,
|
|
278
|
+
endpoint,
|
|
279
|
+
header_params: header_params,
|
|
280
|
+
query_params: query_params,
|
|
281
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
282
|
+
body: post_body,
|
|
283
|
+
return_type: 'OCI::Mysql::Models::Channel'
|
|
284
|
+
)
|
|
285
|
+
end
|
|
286
|
+
# rubocop:enable Metrics/BlockLength
|
|
287
|
+
end
|
|
288
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
289
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
290
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
291
|
+
|
|
292
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
293
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
294
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
# Lists all the Channels that match the specified filters.
|
|
298
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
299
|
+
# @param [Hash] opts the optional parameters
|
|
300
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
301
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
302
|
+
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
|
|
303
|
+
# contact Oracle about a specific request, please provide the request
|
|
304
|
+
# ID that you supplied in this header with the request.
|
|
305
|
+
#
|
|
306
|
+
# @option opts [String] :db_system_id The DB System [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
307
|
+
# @option opts [String] :channel_id The OCID of the Channel.
|
|
308
|
+
# @option opts [String] :display_name A filter to return only the resource matching the given display name exactly.
|
|
309
|
+
# @option opts [String] :lifecycle_state The LifecycleState of the Channel.
|
|
310
|
+
# @option opts [BOOLEAN] :is_enabled If true, returns only Channels that are enabled. If false, returns only
|
|
311
|
+
# Channels that are disabled.
|
|
312
|
+
#
|
|
313
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending.
|
|
314
|
+
# (default to timeCreated)
|
|
315
|
+
# Allowed values are: displayName, timeCreated
|
|
316
|
+
# @option opts [String] :sort_order The sort order to use (ASC or DESC). (default to ASC)
|
|
317
|
+
# Allowed values are: ASC, DESC
|
|
318
|
+
# @option opts [Integer] :limit The maximum number of items to return in a paginated list call. For information about pagination, see
|
|
319
|
+
# [List Pagination](https://docs.cloud.oracle.com/#API/Concepts/usingapi.htm#List_Pagination).
|
|
320
|
+
# (default to 100)
|
|
321
|
+
# @option opts [String] :page The value of the `opc-next-page` or `opc-prev-page` response header from
|
|
322
|
+
# the previous list call. For information about pagination, see [List
|
|
323
|
+
# Pagination](https://docs.cloud.oracle.com/#API/Concepts/usingapi.htm#List_Pagination).
|
|
324
|
+
#
|
|
325
|
+
# @return [Response] A Response object with data of type Array<{OCI::Mysql::Models::ChannelSummary ChannelSummary}>
|
|
326
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/list_channels.rb.html) to see an example of how to use list_channels API.
|
|
327
|
+
def list_channels(compartment_id, opts = {})
|
|
328
|
+
logger.debug 'Calling operation ChannelsClient#list_channels.' if logger
|
|
329
|
+
|
|
330
|
+
raise "Missing the required parameter 'compartment_id' when calling list_channels." if compartment_id.nil?
|
|
331
|
+
|
|
332
|
+
if opts[:lifecycle_state] && !OCI::Mysql::Models::Channel::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
|
333
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Mysql::Models::Channel::LIFECYCLE_STATE_ENUM.'
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by])
|
|
337
|
+
raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.'
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
341
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
path = '/channels'
|
|
345
|
+
operation_signing_strategy = :standard
|
|
346
|
+
|
|
347
|
+
# rubocop:disable Style/NegatedIf
|
|
348
|
+
# Query Params
|
|
349
|
+
query_params = {}
|
|
350
|
+
query_params[:compartmentId] = compartment_id
|
|
351
|
+
query_params[:dbSystemId] = opts[:db_system_id] if opts[:db_system_id]
|
|
352
|
+
query_params[:channelId] = opts[:channel_id] if opts[:channel_id]
|
|
353
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
354
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
|
355
|
+
query_params[:isEnabled] = opts[:is_enabled] if !opts[:is_enabled].nil?
|
|
356
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
357
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
358
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
359
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
360
|
+
|
|
361
|
+
# Header Params
|
|
362
|
+
header_params = {}
|
|
363
|
+
header_params[:accept] = 'application/json'
|
|
364
|
+
header_params[:'content-type'] = 'application/json'
|
|
365
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
366
|
+
# rubocop:enable Style/NegatedIf
|
|
367
|
+
|
|
368
|
+
post_body = nil
|
|
369
|
+
|
|
370
|
+
# rubocop:disable Metrics/BlockLength
|
|
371
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ChannelsClient#list_channels') do
|
|
372
|
+
@api_client.call_api(
|
|
373
|
+
:GET,
|
|
374
|
+
path,
|
|
375
|
+
endpoint,
|
|
376
|
+
header_params: header_params,
|
|
377
|
+
query_params: query_params,
|
|
378
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
379
|
+
body: post_body,
|
|
380
|
+
return_type: 'Array<OCI::Mysql::Models::ChannelSummary>'
|
|
381
|
+
)
|
|
382
|
+
end
|
|
383
|
+
# rubocop:enable Metrics/BlockLength
|
|
384
|
+
end
|
|
385
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
386
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
387
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
388
|
+
|
|
389
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
390
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
391
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
# Resets the specified Channel by purging its cached information, leaving the Channel
|
|
395
|
+
# as if it had just been created. This operation is only accepted in Inactive Channels.
|
|
396
|
+
#
|
|
397
|
+
# @param [String] channel_id The Channel [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
398
|
+
# @param [Hash] opts the optional parameters
|
|
399
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
400
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
401
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a
|
|
402
|
+
# resource, set the `If-Match` header to the value of the etag from a
|
|
403
|
+
# previous GET or POST response for that resource. The resource will be
|
|
404
|
+
# updated or deleted only if the etag you provide matches the resource's
|
|
405
|
+
# current etag value.
|
|
406
|
+
#
|
|
407
|
+
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
|
|
408
|
+
# contact Oracle about a specific request, please provide the request
|
|
409
|
+
# ID that you supplied in this header with the request.
|
|
410
|
+
#
|
|
411
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
|
|
412
|
+
# of a timeout or server error without risk of executing that same action
|
|
413
|
+
# again. Retry tokens expire after 24 hours, but can be invalidated before
|
|
414
|
+
# then due to conflicting operations (for example, if a resource has been
|
|
415
|
+
# deleted and purged from the system, then a retry of the original
|
|
416
|
+
# creation request may be rejected).
|
|
417
|
+
#
|
|
418
|
+
# @return [Response] A Response object with data of type nil
|
|
419
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/reset_channel.rb.html) to see an example of how to use reset_channel API.
|
|
420
|
+
def reset_channel(channel_id, opts = {})
|
|
421
|
+
logger.debug 'Calling operation ChannelsClient#reset_channel.' if logger
|
|
422
|
+
|
|
423
|
+
raise "Missing the required parameter 'channel_id' when calling reset_channel." if channel_id.nil?
|
|
424
|
+
raise "Parameter value for 'channel_id' must not be blank" if OCI::Internal::Util.blank_string?(channel_id)
|
|
425
|
+
|
|
426
|
+
path = '/channels/{channelId}/actions/reset'.sub('{channelId}', channel_id.to_s)
|
|
427
|
+
operation_signing_strategy = :standard
|
|
428
|
+
|
|
429
|
+
# rubocop:disable Style/NegatedIf
|
|
430
|
+
# Query Params
|
|
431
|
+
query_params = {}
|
|
432
|
+
|
|
433
|
+
# Header Params
|
|
434
|
+
header_params = {}
|
|
435
|
+
header_params[:accept] = 'application/json'
|
|
436
|
+
header_params[:'content-type'] = 'application/json'
|
|
437
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
438
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
439
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
440
|
+
# rubocop:enable Style/NegatedIf
|
|
441
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
442
|
+
|
|
443
|
+
post_body = nil
|
|
444
|
+
|
|
445
|
+
# rubocop:disable Metrics/BlockLength
|
|
446
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ChannelsClient#reset_channel') do
|
|
447
|
+
@api_client.call_api(
|
|
448
|
+
:POST,
|
|
449
|
+
path,
|
|
450
|
+
endpoint,
|
|
451
|
+
header_params: header_params,
|
|
452
|
+
query_params: query_params,
|
|
453
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
454
|
+
body: post_body
|
|
455
|
+
)
|
|
456
|
+
end
|
|
457
|
+
# rubocop:enable Metrics/BlockLength
|
|
458
|
+
end
|
|
459
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
460
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
461
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
462
|
+
|
|
463
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
464
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
465
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
# Resumes an enabled Channel that has become Inactive due to an error. The resume operation
|
|
469
|
+
# requires that the error that cause the Channel to become Inactive has already been fixed,
|
|
470
|
+
# otherwise the operation may fail.
|
|
471
|
+
#
|
|
472
|
+
# @param [String] channel_id The Channel [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
473
|
+
# @param [Hash] opts the optional parameters
|
|
474
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
475
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
476
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a
|
|
477
|
+
# resource, set the `If-Match` header to the value of the etag from a
|
|
478
|
+
# previous GET or POST response for that resource. The resource will be
|
|
479
|
+
# updated or deleted only if the etag you provide matches the resource's
|
|
480
|
+
# current etag value.
|
|
481
|
+
#
|
|
482
|
+
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
|
|
483
|
+
# contact Oracle about a specific request, please provide the request
|
|
484
|
+
# ID that you supplied in this header with the request.
|
|
485
|
+
#
|
|
486
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
|
|
487
|
+
# of a timeout or server error without risk of executing that same action
|
|
488
|
+
# again. Retry tokens expire after 24 hours, but can be invalidated before
|
|
489
|
+
# then due to conflicting operations (for example, if a resource has been
|
|
490
|
+
# deleted and purged from the system, then a retry of the original
|
|
491
|
+
# creation request may be rejected).
|
|
492
|
+
#
|
|
493
|
+
# @return [Response] A Response object with data of type nil
|
|
494
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/resume_channel.rb.html) to see an example of how to use resume_channel API.
|
|
495
|
+
def resume_channel(channel_id, opts = {})
|
|
496
|
+
logger.debug 'Calling operation ChannelsClient#resume_channel.' if logger
|
|
497
|
+
|
|
498
|
+
raise "Missing the required parameter 'channel_id' when calling resume_channel." if channel_id.nil?
|
|
499
|
+
raise "Parameter value for 'channel_id' must not be blank" if OCI::Internal::Util.blank_string?(channel_id)
|
|
500
|
+
|
|
501
|
+
path = '/channels/{channelId}/actions/resume'.sub('{channelId}', channel_id.to_s)
|
|
502
|
+
operation_signing_strategy = :standard
|
|
503
|
+
|
|
504
|
+
# rubocop:disable Style/NegatedIf
|
|
505
|
+
# Query Params
|
|
506
|
+
query_params = {}
|
|
507
|
+
|
|
508
|
+
# Header Params
|
|
509
|
+
header_params = {}
|
|
510
|
+
header_params[:accept] = 'application/json'
|
|
511
|
+
header_params[:'content-type'] = 'application/json'
|
|
512
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
513
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
514
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
515
|
+
# rubocop:enable Style/NegatedIf
|
|
516
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
517
|
+
|
|
518
|
+
post_body = nil
|
|
519
|
+
|
|
520
|
+
# rubocop:disable Metrics/BlockLength
|
|
521
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ChannelsClient#resume_channel') do
|
|
522
|
+
@api_client.call_api(
|
|
523
|
+
:POST,
|
|
524
|
+
path,
|
|
525
|
+
endpoint,
|
|
526
|
+
header_params: header_params,
|
|
527
|
+
query_params: query_params,
|
|
528
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
529
|
+
body: post_body
|
|
530
|
+
)
|
|
531
|
+
end
|
|
532
|
+
# rubocop:enable Metrics/BlockLength
|
|
533
|
+
end
|
|
534
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
535
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
536
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
537
|
+
|
|
538
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
539
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
540
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
# Updates the properties of the specified Channel.
|
|
544
|
+
# If the Channel is Active the Update operation will asynchronously apply the new configuration
|
|
545
|
+
# parameters to the Channel and the Channel may become temporarily unavailable. Otherwise, the
|
|
546
|
+
# new configuration will be applied the next time the Channel becomes Active.
|
|
547
|
+
#
|
|
548
|
+
# @param [String] channel_id The Channel [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
549
|
+
# @param [OCI::Mysql::Models::UpdateChannelDetails] update_channel_details The parameters of the request to update the Channel.
|
|
550
|
+
# @param [Hash] opts the optional parameters
|
|
551
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
552
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
553
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a
|
|
554
|
+
# resource, set the `If-Match` header to the value of the etag from a
|
|
555
|
+
# previous GET or POST response for that resource. The resource will be
|
|
556
|
+
# updated or deleted only if the etag you provide matches the resource's
|
|
557
|
+
# current etag value.
|
|
558
|
+
#
|
|
559
|
+
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
|
|
560
|
+
# contact Oracle about a specific request, please provide the request
|
|
561
|
+
# ID that you supplied in this header with the request.
|
|
562
|
+
#
|
|
563
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
|
|
564
|
+
# of a timeout or server error without risk of executing that same action
|
|
565
|
+
# again. Retry tokens expire after 24 hours, but can be invalidated before
|
|
566
|
+
# then due to conflicting operations (for example, if a resource has been
|
|
567
|
+
# deleted and purged from the system, then a retry of the original
|
|
568
|
+
# creation request may be rejected).
|
|
569
|
+
#
|
|
570
|
+
# @return [Response] A Response object with data of type nil
|
|
571
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/update_channel.rb.html) to see an example of how to use update_channel API.
|
|
572
|
+
def update_channel(channel_id, update_channel_details, opts = {})
|
|
573
|
+
logger.debug 'Calling operation ChannelsClient#update_channel.' if logger
|
|
574
|
+
|
|
575
|
+
raise "Missing the required parameter 'channel_id' when calling update_channel." if channel_id.nil?
|
|
576
|
+
raise "Missing the required parameter 'update_channel_details' when calling update_channel." if update_channel_details.nil?
|
|
577
|
+
raise "Parameter value for 'channel_id' must not be blank" if OCI::Internal::Util.blank_string?(channel_id)
|
|
578
|
+
|
|
579
|
+
path = '/channels/{channelId}'.sub('{channelId}', channel_id.to_s)
|
|
580
|
+
operation_signing_strategy = :standard
|
|
581
|
+
|
|
582
|
+
# rubocop:disable Style/NegatedIf
|
|
583
|
+
# Query Params
|
|
584
|
+
query_params = {}
|
|
585
|
+
|
|
586
|
+
# Header Params
|
|
587
|
+
header_params = {}
|
|
588
|
+
header_params[:accept] = 'application/json'
|
|
589
|
+
header_params[:'content-type'] = 'application/json'
|
|
590
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
591
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
592
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
593
|
+
# rubocop:enable Style/NegatedIf
|
|
594
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
595
|
+
|
|
596
|
+
post_body = @api_client.object_to_http_body(update_channel_details)
|
|
597
|
+
|
|
598
|
+
# rubocop:disable Metrics/BlockLength
|
|
599
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ChannelsClient#update_channel') do
|
|
600
|
+
@api_client.call_api(
|
|
601
|
+
:PUT,
|
|
602
|
+
path,
|
|
603
|
+
endpoint,
|
|
604
|
+
header_params: header_params,
|
|
605
|
+
query_params: query_params,
|
|
606
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
607
|
+
body: post_body
|
|
608
|
+
)
|
|
609
|
+
end
|
|
610
|
+
# rubocop:enable Metrics/BlockLength
|
|
611
|
+
end
|
|
612
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
613
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
614
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
615
|
+
|
|
616
|
+
private
|
|
617
|
+
|
|
618
|
+
def applicable_retry_config(opts = {})
|
|
619
|
+
return @retry_config unless opts.key?(:retry_config)
|
|
620
|
+
|
|
621
|
+
opts[:retry_config]
|
|
622
|
+
end
|
|
623
|
+
end
|
|
624
|
+
end
|
|
625
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|