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
@@ -0,0 +1,144 @@
|
|
1
|
+
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
5
|
+
module OCI
|
6
|
+
# This class provides a wrapper around {OCI::Rover::RoverEntitlementClient} and offers convenience methods
|
7
|
+
# for operations that would otherwise need to be chained together. For example, instead of performing an action
|
8
|
+
# on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
9
|
+
# to enter a given state, you can call a single method in this class to accomplish the same functionality
|
10
|
+
class Rover::RoverEntitlementClientCompositeOperations
|
11
|
+
# The {OCI::Rover::RoverEntitlementClient} used to communicate with the service_client
|
12
|
+
#
|
13
|
+
# @return [OCI::Rover::RoverEntitlementClient]
|
14
|
+
attr_reader :service_client
|
15
|
+
|
16
|
+
# Initializes a new RoverEntitlementClientCompositeOperations
|
17
|
+
#
|
18
|
+
# @param [OCI::Rover::RoverEntitlementClient] service_client The client used to communicate with the service.
|
19
|
+
# Defaults to a new service client created via {OCI::Rover::RoverEntitlementClient#initialize} with no arguments
|
20
|
+
def initialize(service_client = OCI::Rover::RoverEntitlementClient.new)
|
21
|
+
@service_client = service_client
|
22
|
+
end
|
23
|
+
|
24
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
25
|
+
# rubocop:disable Layout/EmptyLines
|
26
|
+
|
27
|
+
|
28
|
+
# Calls {OCI::Rover::RoverEntitlementClient#create_rover_entitlement} and then waits for the {OCI::Rover::Models::RoverEntitlement} acted upon
|
29
|
+
# to enter the given state(s).
|
30
|
+
#
|
31
|
+
# @param [OCI::Rover::Models::CreateRoverEntitlementDetails] create_rover_entitlement_details Creates a Rover Device Entitlement
|
32
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Rover::Models::RoverEntitlement#lifecycle_state}
|
33
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Rover::RoverEntitlementClient#create_rover_entitlement}
|
34
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
35
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
36
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
37
|
+
#
|
38
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Rover::Models::RoverEntitlement}
|
39
|
+
def create_rover_entitlement_and_wait_for_state(create_rover_entitlement_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
40
|
+
operation_result = @service_client.create_rover_entitlement(create_rover_entitlement_details, base_operation_opts)
|
41
|
+
|
42
|
+
return operation_result if wait_for_states.empty?
|
43
|
+
|
44
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
45
|
+
wait_for_resource_id = operation_result.data.id
|
46
|
+
|
47
|
+
begin
|
48
|
+
waiter_result = @service_client.get_rover_entitlement(wait_for_resource_id).wait_until(
|
49
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
50
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
51
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
52
|
+
)
|
53
|
+
result_to_return = waiter_result
|
54
|
+
|
55
|
+
return result_to_return
|
56
|
+
rescue StandardError
|
57
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
61
|
+
# rubocop:enable Layout/EmptyLines
|
62
|
+
|
63
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
64
|
+
# rubocop:disable Layout/EmptyLines
|
65
|
+
|
66
|
+
|
67
|
+
# Calls {OCI::Rover::RoverEntitlementClient#delete_rover_entitlement} and then waits for the {OCI::Rover::Models::RoverEntitlement} acted upon
|
68
|
+
# to enter the given state(s).
|
69
|
+
#
|
70
|
+
# @param [String] rover_entitlement_id ID of the rover node or cluster entitlement
|
71
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Rover::Models::RoverEntitlement#lifecycle_state}
|
72
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Rover::RoverEntitlementClient#delete_rover_entitlement}
|
73
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
74
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
75
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
76
|
+
#
|
77
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type nil
|
78
|
+
def delete_rover_entitlement_and_wait_for_state(rover_entitlement_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
79
|
+
initial_get_result = @service_client.get_rover_entitlement(rover_entitlement_id)
|
80
|
+
operation_result = @service_client.delete_rover_entitlement(rover_entitlement_id, base_operation_opts)
|
81
|
+
|
82
|
+
return operation_result if wait_for_states.empty?
|
83
|
+
|
84
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
85
|
+
|
86
|
+
begin
|
87
|
+
waiter_result = initial_get_result.wait_until(
|
88
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
89
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
90
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
|
91
|
+
succeed_on_not_found: true
|
92
|
+
)
|
93
|
+
result_to_return = waiter_result
|
94
|
+
|
95
|
+
return result_to_return
|
96
|
+
rescue StandardError
|
97
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
98
|
+
end
|
99
|
+
end
|
100
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
101
|
+
# rubocop:enable Layout/EmptyLines
|
102
|
+
|
103
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
104
|
+
# rubocop:disable Layout/EmptyLines
|
105
|
+
|
106
|
+
|
107
|
+
# Calls {OCI::Rover::RoverEntitlementClient#update_rover_entitlement} and then waits for the {OCI::Rover::Models::RoverEntitlement} acted upon
|
108
|
+
# to enter the given state(s).
|
109
|
+
#
|
110
|
+
# @param [String] rover_entitlement_id ID of the rover node or cluster entitlement
|
111
|
+
# @param [OCI::Rover::Models::UpdateRoverEntitlementDetails] update_rover_entitlement_details The information to be updated.
|
112
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Rover::Models::RoverEntitlement#lifecycle_state}
|
113
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Rover::RoverEntitlementClient#update_rover_entitlement}
|
114
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
115
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
116
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
117
|
+
#
|
118
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Rover::Models::RoverEntitlement}
|
119
|
+
def update_rover_entitlement_and_wait_for_state(rover_entitlement_id, update_rover_entitlement_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
120
|
+
operation_result = @service_client.update_rover_entitlement(rover_entitlement_id, update_rover_entitlement_details, base_operation_opts)
|
121
|
+
|
122
|
+
return operation_result if wait_for_states.empty?
|
123
|
+
|
124
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
125
|
+
wait_for_resource_id = operation_result.data.id
|
126
|
+
|
127
|
+
begin
|
128
|
+
waiter_result = @service_client.get_rover_entitlement(wait_for_resource_id).wait_until(
|
129
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
130
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
131
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
132
|
+
)
|
133
|
+
result_to_return = waiter_result
|
134
|
+
|
135
|
+
return result_to_return
|
136
|
+
rescue StandardError
|
137
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
138
|
+
end
|
139
|
+
end
|
140
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
141
|
+
# rubocop:enable Layout/EmptyLines
|
142
|
+
end
|
143
|
+
end
|
144
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,738 @@
|
|
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
|
+
# A description of the RoverCloudService API.
|
10
|
+
class Rover::RoverNodeClient
|
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 RoverNodeClient.
|
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 + '/20201210'
|
70
|
+
else
|
71
|
+
region ||= config.region
|
72
|
+
region ||= signer.region if signer.respond_to?(:region)
|
73
|
+
self.region = region
|
74
|
+
end
|
75
|
+
logger.info "RoverNodeClient 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://rover.{region}.oci.{secondLevelDomain}') + '/20201210'
|
88
|
+
logger.info "RoverNodeClient 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
|
+
# Moves a rover node into a different compartment.
|
102
|
+
# @param [String] rover_node_id Unique RoverNode identifier
|
103
|
+
# @param [OCI::Rover::Models::ChangeRoverNodeCompartmentDetails] change_rover_node_compartment_details CompartmentId of the destination compartment
|
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] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
108
|
+
# for a resource, set the `if-match` parameter to the value of the
|
109
|
+
# etag from a previous GET or POST response for that resource.
|
110
|
+
# The resource will be updated or deleted only if the etag you
|
111
|
+
# provide matches the resource's current etag value.
|
112
|
+
#
|
113
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
114
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
115
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
116
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
117
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
118
|
+
# might be rejected.
|
119
|
+
#
|
120
|
+
# @return [Response] A Response object with data of type nil
|
121
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/change_rover_node_compartment.rb.html) to see an example of how to use change_rover_node_compartment API.
|
122
|
+
def change_rover_node_compartment(rover_node_id, change_rover_node_compartment_details, opts = {})
|
123
|
+
logger.debug 'Calling operation RoverNodeClient#change_rover_node_compartment.' if logger
|
124
|
+
|
125
|
+
raise "Missing the required parameter 'rover_node_id' when calling change_rover_node_compartment." if rover_node_id.nil?
|
126
|
+
raise "Missing the required parameter 'change_rover_node_compartment_details' when calling change_rover_node_compartment." if change_rover_node_compartment_details.nil?
|
127
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
128
|
+
|
129
|
+
path = '/roverNodes/{roverNodeId}/actions/changeCompartment'.sub('{roverNodeId}', rover_node_id.to_s)
|
130
|
+
operation_signing_strategy = :standard
|
131
|
+
|
132
|
+
# rubocop:disable Style/NegatedIf
|
133
|
+
# Query Params
|
134
|
+
query_params = {}
|
135
|
+
|
136
|
+
# Header Params
|
137
|
+
header_params = {}
|
138
|
+
header_params[:accept] = 'application/json'
|
139
|
+
header_params[:'content-type'] = 'application/json'
|
140
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
141
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
142
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
143
|
+
# rubocop:enable Style/NegatedIf
|
144
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
145
|
+
|
146
|
+
post_body = @api_client.object_to_http_body(change_rover_node_compartment_details)
|
147
|
+
|
148
|
+
# rubocop:disable Metrics/BlockLength
|
149
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#change_rover_node_compartment') do
|
150
|
+
@api_client.call_api(
|
151
|
+
:POST,
|
152
|
+
path,
|
153
|
+
endpoint,
|
154
|
+
header_params: header_params,
|
155
|
+
query_params: query_params,
|
156
|
+
operation_signing_strategy: operation_signing_strategy,
|
157
|
+
body: post_body
|
158
|
+
)
|
159
|
+
end
|
160
|
+
# rubocop:enable Metrics/BlockLength
|
161
|
+
end
|
162
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
163
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
164
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
165
|
+
|
166
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
167
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
168
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
169
|
+
|
170
|
+
|
171
|
+
# Creates a new RoverNode.
|
172
|
+
#
|
173
|
+
# @param [OCI::Rover::Models::CreateRoverNodeDetails] create_rover_node_details Details for the new RoverNode.
|
174
|
+
# @param [Hash] opts the optional parameters
|
175
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
176
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
177
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
178
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
179
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
180
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
181
|
+
# might be rejected.
|
182
|
+
#
|
183
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
184
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNode RoverNode}
|
185
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/create_rover_node.rb.html) to see an example of how to use create_rover_node API.
|
186
|
+
def create_rover_node(create_rover_node_details, opts = {})
|
187
|
+
logger.debug 'Calling operation RoverNodeClient#create_rover_node.' if logger
|
188
|
+
|
189
|
+
raise "Missing the required parameter 'create_rover_node_details' when calling create_rover_node." if create_rover_node_details.nil?
|
190
|
+
|
191
|
+
path = '/roverNodes'
|
192
|
+
operation_signing_strategy = :standard
|
193
|
+
|
194
|
+
# rubocop:disable Style/NegatedIf
|
195
|
+
# Query Params
|
196
|
+
query_params = {}
|
197
|
+
|
198
|
+
# Header Params
|
199
|
+
header_params = {}
|
200
|
+
header_params[:accept] = 'application/json'
|
201
|
+
header_params[:'content-type'] = 'application/json'
|
202
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
203
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
204
|
+
# rubocop:enable Style/NegatedIf
|
205
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
206
|
+
|
207
|
+
post_body = @api_client.object_to_http_body(create_rover_node_details)
|
208
|
+
|
209
|
+
# rubocop:disable Metrics/BlockLength
|
210
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#create_rover_node') do
|
211
|
+
@api_client.call_api(
|
212
|
+
:POST,
|
213
|
+
path,
|
214
|
+
endpoint,
|
215
|
+
header_params: header_params,
|
216
|
+
query_params: query_params,
|
217
|
+
operation_signing_strategy: operation_signing_strategy,
|
218
|
+
body: post_body,
|
219
|
+
return_type: 'OCI::Rover::Models::RoverNode'
|
220
|
+
)
|
221
|
+
end
|
222
|
+
# rubocop:enable Metrics/BlockLength
|
223
|
+
end
|
224
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
225
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
226
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
227
|
+
|
228
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
229
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
230
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
231
|
+
|
232
|
+
|
233
|
+
# Deletes a RoverNode resource by identifier
|
234
|
+
# @param [String] rover_node_id Unique RoverNode identifier
|
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] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
239
|
+
# for a resource, set the `if-match` parameter to the value of the
|
240
|
+
# etag from a previous GET or POST response for that resource.
|
241
|
+
# The resource will be updated or deleted only if the etag you
|
242
|
+
# provide matches the resource's current etag value.
|
243
|
+
#
|
244
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
245
|
+
# @return [Response] A Response object with data of type nil
|
246
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/delete_rover_node.rb.html) to see an example of how to use delete_rover_node API.
|
247
|
+
def delete_rover_node(rover_node_id, opts = {})
|
248
|
+
logger.debug 'Calling operation RoverNodeClient#delete_rover_node.' if logger
|
249
|
+
|
250
|
+
raise "Missing the required parameter 'rover_node_id' when calling delete_rover_node." if rover_node_id.nil?
|
251
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
252
|
+
|
253
|
+
path = '/roverNodes/{roverNodeId}'.sub('{roverNodeId}', rover_node_id.to_s)
|
254
|
+
operation_signing_strategy = :standard
|
255
|
+
|
256
|
+
# rubocop:disable Style/NegatedIf
|
257
|
+
# Query Params
|
258
|
+
query_params = {}
|
259
|
+
|
260
|
+
# Header Params
|
261
|
+
header_params = {}
|
262
|
+
header_params[:accept] = 'application/json'
|
263
|
+
header_params[:'content-type'] = 'application/json'
|
264
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
265
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
266
|
+
# rubocop:enable Style/NegatedIf
|
267
|
+
|
268
|
+
post_body = nil
|
269
|
+
|
270
|
+
# rubocop:disable Metrics/BlockLength
|
271
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#delete_rover_node') do
|
272
|
+
@api_client.call_api(
|
273
|
+
:DELETE,
|
274
|
+
path,
|
275
|
+
endpoint,
|
276
|
+
header_params: header_params,
|
277
|
+
query_params: query_params,
|
278
|
+
operation_signing_strategy: operation_signing_strategy,
|
279
|
+
body: post_body
|
280
|
+
)
|
281
|
+
end
|
282
|
+
# rubocop:enable Metrics/BlockLength
|
283
|
+
end
|
284
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
285
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
286
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
287
|
+
|
288
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
289
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
290
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
291
|
+
|
292
|
+
|
293
|
+
# Gets a RoverNode by identifier.
|
294
|
+
# @param [String] rover_node_id Unique RoverNode identifier
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
297
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
298
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
299
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNode RoverNode}
|
300
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/get_rover_node.rb.html) to see an example of how to use get_rover_node API.
|
301
|
+
def get_rover_node(rover_node_id, opts = {})
|
302
|
+
logger.debug 'Calling operation RoverNodeClient#get_rover_node.' if logger
|
303
|
+
|
304
|
+
raise "Missing the required parameter 'rover_node_id' when calling get_rover_node." if rover_node_id.nil?
|
305
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
306
|
+
|
307
|
+
path = '/roverNodes/{roverNodeId}'.sub('{roverNodeId}', rover_node_id.to_s)
|
308
|
+
operation_signing_strategy = :standard
|
309
|
+
|
310
|
+
# rubocop:disable Style/NegatedIf
|
311
|
+
# Query Params
|
312
|
+
query_params = {}
|
313
|
+
|
314
|
+
# Header Params
|
315
|
+
header_params = {}
|
316
|
+
header_params[:accept] = 'application/json'
|
317
|
+
header_params[:'content-type'] = 'application/json'
|
318
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
319
|
+
# rubocop:enable Style/NegatedIf
|
320
|
+
|
321
|
+
post_body = nil
|
322
|
+
|
323
|
+
# rubocop:disable Metrics/BlockLength
|
324
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#get_rover_node') do
|
325
|
+
@api_client.call_api(
|
326
|
+
:GET,
|
327
|
+
path,
|
328
|
+
endpoint,
|
329
|
+
header_params: header_params,
|
330
|
+
query_params: query_params,
|
331
|
+
operation_signing_strategy: operation_signing_strategy,
|
332
|
+
body: post_body,
|
333
|
+
return_type: 'OCI::Rover::Models::RoverNode'
|
334
|
+
)
|
335
|
+
end
|
336
|
+
# rubocop:enable Metrics/BlockLength
|
337
|
+
end
|
338
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
339
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
340
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
341
|
+
|
342
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
343
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
344
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
345
|
+
|
346
|
+
|
347
|
+
# Get the certificate for a rover node
|
348
|
+
# @param [String] rover_node_id Unique RoverNode identifier
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
351
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
352
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
353
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNodeCertificate RoverNodeCertificate}
|
354
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/get_rover_node_certificate.rb.html) to see an example of how to use get_rover_node_certificate API.
|
355
|
+
def get_rover_node_certificate(rover_node_id, opts = {})
|
356
|
+
logger.debug 'Calling operation RoverNodeClient#get_rover_node_certificate.' if logger
|
357
|
+
|
358
|
+
raise "Missing the required parameter 'rover_node_id' when calling get_rover_node_certificate." if rover_node_id.nil?
|
359
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
360
|
+
|
361
|
+
path = '/roverNodes/{roverNodeId}/certificate'.sub('{roverNodeId}', rover_node_id.to_s)
|
362
|
+
operation_signing_strategy = :standard
|
363
|
+
|
364
|
+
# rubocop:disable Style/NegatedIf
|
365
|
+
# Query Params
|
366
|
+
query_params = {}
|
367
|
+
|
368
|
+
# Header Params
|
369
|
+
header_params = {}
|
370
|
+
header_params[:accept] = 'application/json'
|
371
|
+
header_params[:'content-type'] = 'application/json'
|
372
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
373
|
+
# rubocop:enable Style/NegatedIf
|
374
|
+
|
375
|
+
post_body = nil
|
376
|
+
|
377
|
+
# rubocop:disable Metrics/BlockLength
|
378
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#get_rover_node_certificate') do
|
379
|
+
@api_client.call_api(
|
380
|
+
:GET,
|
381
|
+
path,
|
382
|
+
endpoint,
|
383
|
+
header_params: header_params,
|
384
|
+
query_params: query_params,
|
385
|
+
operation_signing_strategy: operation_signing_strategy,
|
386
|
+
body: post_body,
|
387
|
+
return_type: 'OCI::Rover::Models::RoverNodeCertificate'
|
388
|
+
)
|
389
|
+
end
|
390
|
+
# rubocop:enable Metrics/BlockLength
|
391
|
+
end
|
392
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
393
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
394
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
395
|
+
|
396
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
397
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
398
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
399
|
+
|
400
|
+
|
401
|
+
# Get the data encryption key for a rover node.
|
402
|
+
# @param [String] rover_node_id Serial number of the rover node.
|
403
|
+
# @param [Hash] opts the optional parameters
|
404
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
405
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
406
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
407
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNodeEncryptionKey RoverNodeEncryptionKey}
|
408
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/get_rover_node_encryption_key.rb.html) to see an example of how to use get_rover_node_encryption_key API.
|
409
|
+
def get_rover_node_encryption_key(rover_node_id, opts = {})
|
410
|
+
logger.debug 'Calling operation RoverNodeClient#get_rover_node_encryption_key.' if logger
|
411
|
+
|
412
|
+
raise "Missing the required parameter 'rover_node_id' when calling get_rover_node_encryption_key." if rover_node_id.nil?
|
413
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
414
|
+
|
415
|
+
path = '/roverNodes/{roverNodeId}/encryptionKey'.sub('{roverNodeId}', rover_node_id.to_s)
|
416
|
+
operation_signing_strategy = :standard
|
417
|
+
|
418
|
+
# rubocop:disable Style/NegatedIf
|
419
|
+
# Query Params
|
420
|
+
query_params = {}
|
421
|
+
|
422
|
+
# Header Params
|
423
|
+
header_params = {}
|
424
|
+
header_params[:accept] = 'application/json'
|
425
|
+
header_params[:'content-type'] = 'application/json'
|
426
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
427
|
+
# rubocop:enable Style/NegatedIf
|
428
|
+
|
429
|
+
post_body = nil
|
430
|
+
|
431
|
+
# rubocop:disable Metrics/BlockLength
|
432
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#get_rover_node_encryption_key') do
|
433
|
+
@api_client.call_api(
|
434
|
+
:GET,
|
435
|
+
path,
|
436
|
+
endpoint,
|
437
|
+
header_params: header_params,
|
438
|
+
query_params: query_params,
|
439
|
+
operation_signing_strategy: operation_signing_strategy,
|
440
|
+
body: post_body,
|
441
|
+
return_type: 'OCI::Rover::Models::RoverNodeEncryptionKey'
|
442
|
+
)
|
443
|
+
end
|
444
|
+
# rubocop:enable Metrics/BlockLength
|
445
|
+
end
|
446
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
447
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
448
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
449
|
+
|
450
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
451
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
452
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
453
|
+
|
454
|
+
|
455
|
+
# Get the resource principal token for a rover node
|
456
|
+
# @param [String] rover_node_id Unique RoverNode identifier
|
457
|
+
# @param [String] jwt The Java Web Token which is a signature of the request that is signed with the resource's private key
|
458
|
+
# This is meant solely in the context of getRpt
|
459
|
+
#
|
460
|
+
# @param [Hash] opts the optional parameters
|
461
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
462
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
463
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
464
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNodeGetRpt RoverNodeGetRpt}
|
465
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/get_rover_node_get_rpt.rb.html) to see an example of how to use get_rover_node_get_rpt API.
|
466
|
+
def get_rover_node_get_rpt(rover_node_id, jwt, opts = {})
|
467
|
+
logger.debug 'Calling operation RoverNodeClient#get_rover_node_get_rpt.' if logger
|
468
|
+
|
469
|
+
raise "Missing the required parameter 'rover_node_id' when calling get_rover_node_get_rpt." if rover_node_id.nil?
|
470
|
+
raise "Missing the required parameter 'jwt' when calling get_rover_node_get_rpt." if jwt.nil?
|
471
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
472
|
+
|
473
|
+
path = '/roverNodes/{roverNodeId}/getRpt'.sub('{roverNodeId}', rover_node_id.to_s)
|
474
|
+
operation_signing_strategy = :standard
|
475
|
+
|
476
|
+
# rubocop:disable Style/NegatedIf
|
477
|
+
# Query Params
|
478
|
+
query_params = {}
|
479
|
+
|
480
|
+
# Header Params
|
481
|
+
header_params = {}
|
482
|
+
header_params[:accept] = 'application/json'
|
483
|
+
header_params[:'content-type'] = 'application/json'
|
484
|
+
header_params[:jwt] = jwt
|
485
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
486
|
+
# rubocop:enable Style/NegatedIf
|
487
|
+
|
488
|
+
post_body = nil
|
489
|
+
|
490
|
+
# rubocop:disable Metrics/BlockLength
|
491
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#get_rover_node_get_rpt') do
|
492
|
+
@api_client.call_api(
|
493
|
+
:GET,
|
494
|
+
path,
|
495
|
+
endpoint,
|
496
|
+
header_params: header_params,
|
497
|
+
query_params: query_params,
|
498
|
+
operation_signing_strategy: operation_signing_strategy,
|
499
|
+
body: post_body,
|
500
|
+
return_type: 'OCI::Rover::Models::RoverNodeGetRpt'
|
501
|
+
)
|
502
|
+
end
|
503
|
+
# rubocop:enable Metrics/BlockLength
|
504
|
+
end
|
505
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
506
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
507
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
508
|
+
|
509
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
510
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
511
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
512
|
+
|
513
|
+
|
514
|
+
# Returns a list of RoverNodes.
|
515
|
+
#
|
516
|
+
# @param [String] compartment_id The OCID of the compartment in which to list resources.
|
517
|
+
# @param [Hash] opts the optional parameters
|
518
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
519
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
520
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
521
|
+
# @option opts [Integer] :limit The maximum number of items to return. (default to 10)
|
522
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
523
|
+
# @option opts [String] :lifecycle_state A filter to return only resources their lifecycleState matches the given lifecycleState.
|
524
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to ASC)
|
525
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
|
526
|
+
# (default to timeCreated)
|
527
|
+
# Allowed values are: timeCreated, displayName
|
528
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
529
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNodeCollection RoverNodeCollection}
|
530
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/list_rover_nodes.rb.html) to see an example of how to use list_rover_nodes API.
|
531
|
+
def list_rover_nodes(compartment_id, opts = {})
|
532
|
+
logger.debug 'Calling operation RoverNodeClient#list_rover_nodes.' if logger
|
533
|
+
|
534
|
+
raise "Missing the required parameter 'compartment_id' when calling list_rover_nodes." if compartment_id.nil?
|
535
|
+
|
536
|
+
if opts[:lifecycle_state] && !OCI::Rover::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
537
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Rover::Models::LIFECYCLE_STATE_ENUM.'
|
538
|
+
end
|
539
|
+
|
540
|
+
if opts[:sort_order] && !OCI::Rover::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
541
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Rover::Models::SORT_ORDERS_ENUM.'
|
542
|
+
end
|
543
|
+
|
544
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
545
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
546
|
+
end
|
547
|
+
|
548
|
+
path = '/roverNodes'
|
549
|
+
operation_signing_strategy = :standard
|
550
|
+
|
551
|
+
# rubocop:disable Style/NegatedIf
|
552
|
+
# Query Params
|
553
|
+
query_params = {}
|
554
|
+
query_params[:compartmentId] = compartment_id
|
555
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
556
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
557
|
+
query_params[:page] = opts[:page] if opts[:page]
|
558
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
559
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
560
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
561
|
+
|
562
|
+
# Header Params
|
563
|
+
header_params = {}
|
564
|
+
header_params[:accept] = 'application/json'
|
565
|
+
header_params[:'content-type'] = 'application/json'
|
566
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
567
|
+
# rubocop:enable Style/NegatedIf
|
568
|
+
|
569
|
+
post_body = nil
|
570
|
+
|
571
|
+
# rubocop:disable Metrics/BlockLength
|
572
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#list_rover_nodes') do
|
573
|
+
@api_client.call_api(
|
574
|
+
:GET,
|
575
|
+
path,
|
576
|
+
endpoint,
|
577
|
+
header_params: header_params,
|
578
|
+
query_params: query_params,
|
579
|
+
operation_signing_strategy: operation_signing_strategy,
|
580
|
+
body: post_body,
|
581
|
+
return_type: 'OCI::Rover::Models::RoverNodeCollection'
|
582
|
+
)
|
583
|
+
end
|
584
|
+
# rubocop:enable Metrics/BlockLength
|
585
|
+
end
|
586
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
587
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
588
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
589
|
+
|
590
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
591
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
592
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
593
|
+
|
594
|
+
|
595
|
+
# Get the resource principal public key for a rover node
|
596
|
+
# @param [String] rover_node_id Unique RoverNode identifier
|
597
|
+
# @param [String] jwt The Java Web Token which is a signature of the request that is signed with the resource's private key
|
598
|
+
# This is meant solely in the context of getRpt
|
599
|
+
#
|
600
|
+
# @param [OCI::Rover::Models::RoverNodeActionSetKeyDetails] rover_node_action_set_key_details The information to be updated.
|
601
|
+
# @param [Hash] opts the optional parameters
|
602
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
603
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
604
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
605
|
+
# for a resource, set the `if-match` parameter to the value of the
|
606
|
+
# etag from a previous GET or POST response for that resource.
|
607
|
+
# The resource will be updated or deleted only if the etag you
|
608
|
+
# provide matches the resource's current etag value.
|
609
|
+
#
|
610
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
611
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
612
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
613
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
614
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
615
|
+
# might be rejected.
|
616
|
+
#
|
617
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNodeSetKey RoverNodeSetKey}
|
618
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/rover_node_action_set_key.rb.html) to see an example of how to use rover_node_action_set_key API.
|
619
|
+
def rover_node_action_set_key(rover_node_id, jwt, rover_node_action_set_key_details, opts = {})
|
620
|
+
logger.debug 'Calling operation RoverNodeClient#rover_node_action_set_key.' if logger
|
621
|
+
|
622
|
+
raise "Missing the required parameter 'rover_node_id' when calling rover_node_action_set_key." if rover_node_id.nil?
|
623
|
+
raise "Missing the required parameter 'jwt' when calling rover_node_action_set_key." if jwt.nil?
|
624
|
+
raise "Missing the required parameter 'rover_node_action_set_key_details' when calling rover_node_action_set_key." if rover_node_action_set_key_details.nil?
|
625
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
626
|
+
|
627
|
+
path = '/roverNodes/{roverNodeId}/actions/setKey'.sub('{roverNodeId}', rover_node_id.to_s)
|
628
|
+
operation_signing_strategy = :standard
|
629
|
+
|
630
|
+
# rubocop:disable Style/NegatedIf
|
631
|
+
# Query Params
|
632
|
+
query_params = {}
|
633
|
+
|
634
|
+
# Header Params
|
635
|
+
header_params = {}
|
636
|
+
header_params[:accept] = 'application/json'
|
637
|
+
header_params[:'content-type'] = 'application/json'
|
638
|
+
header_params[:jwt] = jwt
|
639
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
640
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
641
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
642
|
+
# rubocop:enable Style/NegatedIf
|
643
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
644
|
+
|
645
|
+
post_body = @api_client.object_to_http_body(rover_node_action_set_key_details)
|
646
|
+
|
647
|
+
# rubocop:disable Metrics/BlockLength
|
648
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#rover_node_action_set_key') do
|
649
|
+
@api_client.call_api(
|
650
|
+
:POST,
|
651
|
+
path,
|
652
|
+
endpoint,
|
653
|
+
header_params: header_params,
|
654
|
+
query_params: query_params,
|
655
|
+
operation_signing_strategy: operation_signing_strategy,
|
656
|
+
body: post_body,
|
657
|
+
return_type: 'OCI::Rover::Models::RoverNodeSetKey'
|
658
|
+
)
|
659
|
+
end
|
660
|
+
# rubocop:enable Metrics/BlockLength
|
661
|
+
end
|
662
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
663
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
664
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
665
|
+
|
666
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
667
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
668
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
669
|
+
|
670
|
+
|
671
|
+
# Updates the RoverNode
|
672
|
+
# @param [String] rover_node_id Unique RoverNode identifier
|
673
|
+
# @param [OCI::Rover::Models::UpdateRoverNodeDetails] update_rover_node_details The information to be updated.
|
674
|
+
# @param [Hash] opts the optional parameters
|
675
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
676
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
677
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
678
|
+
# for a resource, set the `if-match` parameter to the value of the
|
679
|
+
# etag from a previous GET or POST response for that resource.
|
680
|
+
# The resource will be updated or deleted only if the etag you
|
681
|
+
# provide matches the resource's current etag value.
|
682
|
+
#
|
683
|
+
# @option opts [String] :opc_request_id The client request ID for tracing.
|
684
|
+
# @return [Response] A Response object with data of type {OCI::Rover::Models::RoverNode RoverNode}
|
685
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/rover/update_rover_node.rb.html) to see an example of how to use update_rover_node API.
|
686
|
+
def update_rover_node(rover_node_id, update_rover_node_details, opts = {})
|
687
|
+
logger.debug 'Calling operation RoverNodeClient#update_rover_node.' if logger
|
688
|
+
|
689
|
+
raise "Missing the required parameter 'rover_node_id' when calling update_rover_node." if rover_node_id.nil?
|
690
|
+
raise "Missing the required parameter 'update_rover_node_details' when calling update_rover_node." if update_rover_node_details.nil?
|
691
|
+
raise "Parameter value for 'rover_node_id' must not be blank" if OCI::Internal::Util.blank_string?(rover_node_id)
|
692
|
+
|
693
|
+
path = '/roverNodes/{roverNodeId}'.sub('{roverNodeId}', rover_node_id.to_s)
|
694
|
+
operation_signing_strategy = :standard
|
695
|
+
|
696
|
+
# rubocop:disable Style/NegatedIf
|
697
|
+
# Query Params
|
698
|
+
query_params = {}
|
699
|
+
|
700
|
+
# Header Params
|
701
|
+
header_params = {}
|
702
|
+
header_params[:accept] = 'application/json'
|
703
|
+
header_params[:'content-type'] = 'application/json'
|
704
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
705
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
706
|
+
# rubocop:enable Style/NegatedIf
|
707
|
+
|
708
|
+
post_body = @api_client.object_to_http_body(update_rover_node_details)
|
709
|
+
|
710
|
+
# rubocop:disable Metrics/BlockLength
|
711
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'RoverNodeClient#update_rover_node') do
|
712
|
+
@api_client.call_api(
|
713
|
+
:PUT,
|
714
|
+
path,
|
715
|
+
endpoint,
|
716
|
+
header_params: header_params,
|
717
|
+
query_params: query_params,
|
718
|
+
operation_signing_strategy: operation_signing_strategy,
|
719
|
+
body: post_body,
|
720
|
+
return_type: 'OCI::Rover::Models::RoverNode'
|
721
|
+
)
|
722
|
+
end
|
723
|
+
# rubocop:enable Metrics/BlockLength
|
724
|
+
end
|
725
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
726
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
727
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
728
|
+
|
729
|
+
private
|
730
|
+
|
731
|
+
def applicable_retry_config(opts = {})
|
732
|
+
return @retry_config unless opts.key?(:retry_config)
|
733
|
+
|
734
|
+
opts[:retry_config]
|
735
|
+
end
|
736
|
+
end
|
737
|
+
end
|
738
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|