oci 2.3.8 → 2.3.9
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 +7 -7
- data/lib/oci/api_client.rb +5 -0
- data/lib/oci/audit/audit_client.rb +1 -0
- data/lib/oci/audit/models/audit_event.rb +5 -2
- data/lib/oci/audit/models/configuration.rb +5 -2
- data/lib/oci/audit/models/update_configuration_details.rb +5 -2
- data/lib/oci/base_signer.rb +2 -1
- data/lib/oci/config.rb +1 -0
- data/lib/oci/config_file_loader.rb +2 -0
- data/lib/oci/container_engine/container_engine_client.rb +1 -0
- data/lib/oci/container_engine/models/add_on_options.rb +5 -2
- data/lib/oci/container_engine/models/cluster.rb +5 -2
- data/lib/oci/container_engine/models/cluster_create_options.rb +5 -2
- data/lib/oci/container_engine/models/cluster_endpoints.rb +5 -2
- data/lib/oci/container_engine/models/cluster_metadata.rb +5 -2
- data/lib/oci/container_engine/models/cluster_options.rb +5 -2
- data/lib/oci/container_engine/models/cluster_summary.rb +5 -2
- data/lib/oci/container_engine/models/create_cluster_details.rb +5 -2
- data/lib/oci/container_engine/models/create_cluster_kubeconfig_content_details.rb +5 -2
- data/lib/oci/container_engine/models/create_node_pool_details.rb +5 -2
- data/lib/oci/container_engine/models/key_value.rb +5 -2
- data/lib/oci/container_engine/models/kubernetes_network_config.rb +5 -2
- data/lib/oci/container_engine/models/node.rb +5 -2
- data/lib/oci/container_engine/models/node_error.rb +5 -2
- data/lib/oci/container_engine/models/node_pool.rb +5 -2
- data/lib/oci/container_engine/models/node_pool_options.rb +5 -2
- data/lib/oci/container_engine/models/node_pool_summary.rb +5 -2
- data/lib/oci/container_engine/models/update_cluster_details.rb +5 -2
- data/lib/oci/container_engine/models/update_node_pool_details.rb +5 -2
- data/lib/oci/container_engine/models/work_request.rb +5 -2
- data/lib/oci/container_engine/models/work_request_error.rb +5 -2
- data/lib/oci/container_engine/models/work_request_log_entry.rb +5 -2
- data/lib/oci/container_engine/models/work_request_resource.rb +5 -2
- data/lib/oci/container_engine/models/work_request_summary.rb +5 -2
- data/lib/oci/core/blockstorage_client.rb +72 -1
- data/lib/oci/core/blockstorage_client_composite_operations.rb +40 -0
- data/lib/oci/core/compute_client.rb +1 -0
- data/lib/oci/core/compute_management_client.rb +1179 -0
- data/lib/oci/core/compute_management_client_composite_operations.rb +299 -0
- data/lib/oci/core/core.rb +32 -0
- data/lib/oci/core/models/app_catalog_listing.rb +5 -2
- data/lib/oci/core/models/app_catalog_listing_resource_version.rb +5 -2
- data/lib/oci/core/models/app_catalog_listing_resource_version_agreements.rb +5 -2
- data/lib/oci/core/models/app_catalog_listing_resource_version_summary.rb +5 -2
- data/lib/oci/core/models/app_catalog_listing_summary.rb +5 -2
- data/lib/oci/core/models/app_catalog_subscription.rb +5 -2
- data/lib/oci/core/models/app_catalog_subscription_summary.rb +5 -2
- data/lib/oci/core/models/attach_boot_volume_details.rb +5 -2
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +5 -2
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +5 -2
- data/lib/oci/core/models/attach_vnic_details.rb +5 -2
- data/lib/oci/core/models/attach_volume_details.rb +5 -2
- data/lib/oci/core/models/boot_volume.rb +5 -2
- data/lib/oci/core/models/boot_volume_attachment.rb +5 -2
- data/lib/oci/core/models/boot_volume_backup.rb +5 -2
- data/lib/oci/core/models/boot_volume_kms_key.rb +5 -2
- data/lib/oci/core/models/boot_volume_source_details.rb +5 -2
- data/lib/oci/core/models/boot_volume_source_from_boot_volume_backup_details.rb +5 -2
- data/lib/oci/core/models/boot_volume_source_from_boot_volume_details.rb +5 -2
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +5 -2
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +5 -2
- data/lib/oci/core/models/capture_console_history_details.rb +5 -2
- data/lib/oci/core/models/compute_instance_details.rb +186 -0
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +5 -2
- data/lib/oci/core/models/connect_remote_peering_connections_details.rb +5 -2
- data/lib/oci/core/models/console_history.rb +5 -2
- data/lib/oci/core/models/copy_volume_backup_details.rb +172 -0
- data/lib/oci/core/models/cpe.rb +5 -2
- data/lib/oci/core/models/create_app_catalog_subscription_details.rb +5 -2
- data/lib/oci/core/models/create_boot_volume_backup_details.rb +6 -2
- data/lib/oci/core/models/create_boot_volume_details.rb +5 -2
- data/lib/oci/core/models/create_cpe_details.rb +5 -2
- data/lib/oci/core/models/create_cross_connect_details.rb +5 -2
- data/lib/oci/core/models/create_cross_connect_group_details.rb +5 -2
- data/lib/oci/core/models/create_dhcp_details.rb +5 -2
- data/lib/oci/core/models/create_drg_attachment_details.rb +5 -2
- data/lib/oci/core/models/create_drg_details.rb +5 -2
- data/lib/oci/core/models/create_image_details.rb +6 -2
- data/lib/oci/core/models/create_instance_configuration_details.rb +221 -0
- data/lib/oci/core/models/create_instance_console_connection_details.rb +5 -2
- data/lib/oci/core/models/create_instance_pool_details.rb +244 -0
- data/lib/oci/core/models/create_instance_pool_placement_configuration_details.rb +183 -0
- data/lib/oci/core/models/create_internet_gateway_details.rb +5 -2
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +5 -2
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +5 -2
- data/lib/oci/core/models/create_nat_gateway_details.rb +5 -2
- data/lib/oci/core/models/create_private_ip_details.rb +5 -2
- data/lib/oci/core/models/create_public_ip_details.rb +6 -2
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +5 -2
- data/lib/oci/core/models/create_route_table_details.rb +5 -2
- data/lib/oci/core/models/create_security_list_details.rb +5 -2
- data/lib/oci/core/models/create_service_gateway_details.rb +5 -2
- data/lib/oci/core/models/create_subnet_details.rb +11 -8
- data/lib/oci/core/models/create_vcn_details.rb +5 -2
- data/lib/oci/core/models/create_virtual_circuit_details.rb +6 -2
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +5 -2
- data/lib/oci/core/models/create_vnic_details.rb +5 -2
- data/lib/oci/core/models/create_volume_backup_details.rb +6 -2
- data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +5 -2
- data/lib/oci/core/models/create_volume_details.rb +5 -2
- data/lib/oci/core/models/create_volume_group_backup_details.rb +6 -2
- data/lib/oci/core/models/create_volume_group_details.rb +5 -2
- data/lib/oci/core/models/cross_connect.rb +5 -2
- data/lib/oci/core/models/cross_connect_group.rb +5 -2
- data/lib/oci/core/models/cross_connect_location.rb +5 -2
- data/lib/oci/core/models/cross_connect_mapping.rb +5 -2
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +5 -2
- data/lib/oci/core/models/cross_connect_status.rb +5 -2
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +5 -2
- data/lib/oci/core/models/dhcp_dns_option.rb +5 -2
- data/lib/oci/core/models/dhcp_option.rb +5 -2
- data/lib/oci/core/models/dhcp_options.rb +5 -2
- data/lib/oci/core/models/dhcp_search_domain_option.rb +5 -2
- data/lib/oci/core/models/drg.rb +5 -2
- data/lib/oci/core/models/drg_attachment.rb +5 -2
- data/lib/oci/core/models/egress_security_rule.rb +5 -2
- data/lib/oci/core/models/export_image_details.rb +5 -2
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +5 -2
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +5 -2
- data/lib/oci/core/models/fast_connect_provider_service.rb +5 -2
- data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +5 -2
- data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +5 -2
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -2
- data/lib/oci/core/models/icmp_options.rb +5 -2
- data/lib/oci/core/models/image.rb +5 -2
- data/lib/oci/core/models/image_source_details.rb +6 -2
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +5 -2
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +5 -2
- data/lib/oci/core/models/ingress_security_rule.rb +5 -2
- data/lib/oci/core/models/instance.rb +27 -6
- data/lib/oci/core/models/instance_configuration.rb +259 -0
- data/lib/oci/core/models/instance_configuration_attach_vnic_details.rb +188 -0
- data/lib/oci/core/models/instance_configuration_attach_volume_details.rb +196 -0
- data/lib/oci/core/models/instance_configuration_block_volume_details.rb +180 -0
- data/lib/oci/core/models/instance_configuration_create_vnic_details.rb +221 -0
- data/lib/oci/core/models/instance_configuration_create_volume_details.rb +271 -0
- data/lib/oci/core/models/instance_configuration_instance_details.rb +170 -0
- data/lib/oci/core/models/instance_configuration_instance_source_details.rb +173 -0
- data/lib/oci/core/models/instance_configuration_instance_source_via_boot_volume_details.rb +161 -0
- data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +161 -0
- data/lib/oci/core/models/instance_configuration_iscsi_attach_volume_details.rb +169 -0
- data/lib/oci/core/models/instance_configuration_launch_instance_details.rb +395 -0
- data/lib/oci/core/models/instance_configuration_paravirtualized_attach_volume_details.rb +152 -0
- data/lib/oci/core/models/instance_configuration_summary.rb +196 -0
- data/lib/oci/core/models/instance_configuration_volume_source_details.rb +166 -0
- data/lib/oci/core/models/instance_configuration_volume_source_from_volume_backup_details.rb +157 -0
- data/lib/oci/core/models/instance_configuration_volume_source_from_volume_details.rb +157 -0
- data/lib/oci/core/models/instance_console_connection.rb +5 -2
- data/lib/oci/core/models/instance_credentials.rb +5 -2
- data/lib/oci/core/models/instance_pool.rb +310 -0
- data/lib/oci/core/models/instance_pool_placement_configuration.rb +183 -0
- data/lib/oci/core/models/instance_pool_placement_secondary_vnic_subnet.rb +169 -0
- data/lib/oci/core/models/instance_pool_summary.rb +273 -0
- data/lib/oci/core/models/instance_source_details.rb +5 -2
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +5 -2
- data/lib/oci/core/models/instance_source_via_image_details.rb +5 -2
- data/lib/oci/core/models/instance_summary.rb +269 -0
- data/lib/oci/core/models/internet_gateway.rb +5 -2
- data/lib/oci/core/models/ip_sec_connection.rb +5 -2
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +5 -2
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +5 -2
- data/lib/oci/core/models/launch_instance_details.rb +5 -2
- data/lib/oci/core/models/launch_options.rb +5 -2
- data/lib/oci/core/models/letter_of_authority.rb +5 -2
- data/lib/oci/core/models/local_peering_gateway.rb +5 -2
- data/lib/oci/core/models/nat_gateway.rb +5 -2
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +5 -2
- data/lib/oci/core/models/peer_region_for_remote_peering.rb +5 -2
- data/lib/oci/core/models/port_range.rb +5 -2
- data/lib/oci/core/models/private_ip.rb +5 -2
- data/lib/oci/core/models/public_ip.rb +5 -2
- data/lib/oci/core/models/remote_peering_connection.rb +5 -2
- data/lib/oci/core/models/route_rule.rb +5 -2
- data/lib/oci/core/models/route_table.rb +5 -2
- data/lib/oci/core/models/security_list.rb +5 -2
- data/lib/oci/core/models/service.rb +5 -2
- data/lib/oci/core/models/service_gateway.rb +5 -2
- data/lib/oci/core/models/service_id_request_details.rb +5 -2
- data/lib/oci/core/models/service_id_response_details.rb +5 -2
- data/lib/oci/core/models/shape.rb +5 -2
- data/lib/oci/core/models/subnet.rb +11 -5
- data/lib/oci/core/models/tcp_options.rb +5 -2
- data/lib/oci/core/models/tunnel_config.rb +5 -2
- data/lib/oci/core/models/tunnel_status.rb +5 -2
- data/lib/oci/core/models/udp_options.rb +5 -2
- data/lib/oci/core/models/update_boot_volume_backup_details.rb +5 -2
- data/lib/oci/core/models/update_boot_volume_details.rb +5 -2
- data/lib/oci/core/models/update_boot_volume_kms_key_details.rb +5 -2
- data/lib/oci/core/models/update_console_history_details.rb +5 -2
- data/lib/oci/core/models/update_cpe_details.rb +5 -2
- data/lib/oci/core/models/update_cross_connect_details.rb +5 -2
- data/lib/oci/core/models/update_cross_connect_group_details.rb +5 -2
- data/lib/oci/core/models/update_dhcp_details.rb +5 -2
- data/lib/oci/core/models/update_drg_attachment_details.rb +5 -2
- data/lib/oci/core/models/update_drg_details.rb +5 -2
- data/lib/oci/core/models/update_image_details.rb +5 -2
- data/lib/oci/core/models/update_instance_configuration_details.rb +194 -0
- data/lib/oci/core/models/update_instance_details.rb +5 -2
- data/lib/oci/core/models/update_instance_pool_details.rb +230 -0
- data/lib/oci/core/models/update_instance_pool_placement_configuration_details.rb +183 -0
- data/lib/oci/core/models/update_internet_gateway_details.rb +5 -2
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +5 -2
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +5 -2
- data/lib/oci/core/models/update_nat_gateway_details.rb +5 -2
- data/lib/oci/core/models/update_private_ip_details.rb +5 -2
- data/lib/oci/core/models/update_public_ip_details.rb +5 -2
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +5 -2
- data/lib/oci/core/models/update_route_table_details.rb +5 -2
- data/lib/oci/core/models/update_security_list_details.rb +5 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +5 -2
- data/lib/oci/core/models/update_subnet_details.rb +5 -2
- data/lib/oci/core/models/update_vcn_details.rb +5 -2
- data/lib/oci/core/models/update_virtual_circuit_details.rb +6 -2
- data/lib/oci/core/models/update_vnic_details.rb +5 -2
- data/lib/oci/core/models/update_volume_backup_details.rb +5 -2
- data/lib/oci/core/models/update_volume_details.rb +5 -2
- data/lib/oci/core/models/update_volume_group_backup_details.rb +5 -2
- data/lib/oci/core/models/update_volume_group_details.rb +5 -2
- data/lib/oci/core/models/update_volume_kms_key_details.rb +5 -2
- data/lib/oci/core/models/vcn.rb +5 -2
- data/lib/oci/core/models/virtual_circuit.rb +5 -2
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +5 -2
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +5 -2
- data/lib/oci/core/models/vnic.rb +5 -2
- data/lib/oci/core/models/vnic_attachment.rb +5 -2
- data/lib/oci/core/models/volume.rb +5 -2
- data/lib/oci/core/models/volume_attachment.rb +5 -2
- data/lib/oci/core/models/volume_backup.rb +20 -3
- data/lib/oci/core/models/volume_backup_policy.rb +5 -2
- data/lib/oci/core/models/volume_backup_policy_assignment.rb +5 -2
- data/lib/oci/core/models/volume_backup_schedule.rb +5 -2
- data/lib/oci/core/models/volume_group.rb +5 -2
- data/lib/oci/core/models/volume_group_backup.rb +5 -2
- data/lib/oci/core/models/volume_group_source_details.rb +5 -2
- data/lib/oci/core/models/volume_group_source_from_volume_group_backup_details.rb +5 -2
- data/lib/oci/core/models/volume_group_source_from_volume_group_details.rb +5 -2
- data/lib/oci/core/models/volume_group_source_from_volumes_details.rb +5 -2
- data/lib/oci/core/models/volume_kms_key.rb +5 -2
- data/lib/oci/core/models/volume_source_details.rb +5 -2
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +5 -2
- data/lib/oci/core/models/volume_source_from_volume_details.rb +5 -2
- data/lib/oci/core/virtual_network_client.rb +3 -3
- data/lib/oci/database/database.rb +5 -0
- data/lib/oci/database/database_client.rb +527 -4
- data/lib/oci/database/models/autonomous_data_warehouse.rb +21 -4
- data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +5 -2
- data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +5 -2
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +20 -3
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +21 -4
- data/lib/oci/database/models/autonomous_database.rb +22 -4
- data/lib/oci/database/models/autonomous_database_backup.rb +5 -2
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +5 -2
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +20 -3
- data/lib/oci/database/models/autonomous_database_summary.rb +22 -4
- data/lib/oci/database/models/backup.rb +40 -14
- data/lib/oci/database/models/backup_summary.rb +40 -14
- data/lib/oci/database/models/complete_external_backup_job_details.rb +223 -0
- data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +5 -2
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +6 -2
- data/lib/oci/database/models/create_autonomous_database_backup_details.rb +5 -2
- data/lib/oci/database/models/create_autonomous_database_details.rb +6 -2
- data/lib/oci/database/models/create_backup_details.rb +5 -2
- data/lib/oci/database/models/create_data_guard_association_details.rb +7 -2
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -2
- data/lib/oci/database/models/create_database_details.rb +6 -2
- data/lib/oci/database/models/create_database_from_backup_details.rb +5 -2
- data/lib/oci/database/models/create_db_home_details.rb +5 -2
- data/lib/oci/database/models/create_db_home_from_backup_details.rb +5 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +6 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +5 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +5 -2
- data/lib/oci/database/models/create_external_backup_job_details.rb +341 -0
- data/lib/oci/database/models/data_guard_association.rb +5 -2
- data/lib/oci/database/models/data_guard_association_summary.rb +5 -2
- data/lib/oci/database/models/database.rb +5 -2
- data/lib/oci/database/models/database_summary.rb +5 -2
- data/lib/oci/database/models/db_backup_config.rb +5 -2
- data/lib/oci/database/models/db_home.rb +5 -2
- data/lib/oci/database/models/db_home_summary.rb +5 -2
- data/lib/oci/database/models/db_node.rb +5 -2
- data/lib/oci/database/models/db_node_summary.rb +5 -2
- data/lib/oci/database/models/db_system.rb +5 -2
- data/lib/oci/database/models/db_system_shape_summary.rb +5 -2
- data/lib/oci/database/models/db_system_summary.rb +5 -2
- data/lib/oci/database/models/db_version_summary.rb +5 -2
- data/lib/oci/database/models/external_backup_job.rb +232 -0
- data/lib/oci/database/models/failover_data_guard_association_details.rb +5 -2
- data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +150 -0
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +150 -0
- data/lib/oci/database/models/launch_db_system_base.rb +6 -2
- data/lib/oci/database/models/launch_db_system_details.rb +8 -2
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +8 -2
- data/lib/oci/database/models/patch.rb +5 -2
- data/lib/oci/database/models/patch_details.rb +6 -2
- data/lib/oci/database/models/patch_history_entry.rb +5 -2
- data/lib/oci/database/models/patch_history_entry_summary.rb +5 -2
- data/lib/oci/database/models/patch_summary.rb +5 -2
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +5 -2
- data/lib/oci/database/models/restore_autonomous_data_warehouse_details.rb +5 -2
- data/lib/oci/database/models/restore_autonomous_database_details.rb +5 -2
- data/lib/oci/database/models/restore_database_details.rb +5 -2
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +5 -2
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +5 -2
- data/lib/oci/database/models/update_autonomous_database_details.rb +5 -2
- data/lib/oci/database/models/update_database_details.rb +5 -2
- data/lib/oci/database/models/update_db_home_details.rb +5 -2
- data/lib/oci/database/models/update_db_system_details.rb +5 -2
- data/lib/oci/dns/dns_client.rb +1 -0
- data/lib/oci/dns/models/create_zone_details.rb +6 -2
- data/lib/oci/dns/models/external_master.rb +5 -2
- data/lib/oci/dns/models/patch_domain_records_details.rb +5 -2
- data/lib/oci/dns/models/patch_rr_set_details.rb +5 -2
- data/lib/oci/dns/models/patch_zone_records_details.rb +5 -2
- data/lib/oci/dns/models/record.rb +5 -2
- data/lib/oci/dns/models/record_collection.rb +5 -2
- data/lib/oci/dns/models/record_details.rb +5 -2
- data/lib/oci/dns/models/record_operation.rb +6 -2
- data/lib/oci/dns/models/rr_set.rb +5 -2
- data/lib/oci/dns/models/tsig.rb +5 -2
- data/lib/oci/dns/models/update_domain_records_details.rb +5 -2
- data/lib/oci/dns/models/update_rr_set_details.rb +5 -2
- data/lib/oci/dns/models/update_zone_details.rb +5 -2
- data/lib/oci/dns/models/update_zone_records_details.rb +5 -2
- data/lib/oci/dns/models/zone.rb +5 -2
- data/lib/oci/dns/models/zone_summary.rb +5 -2
- data/lib/oci/email/email_client.rb +1 -0
- data/lib/oci/email/models/create_sender_details.rb +5 -2
- data/lib/oci/email/models/create_suppression_details.rb +5 -2
- data/lib/oci/email/models/sender.rb +5 -2
- data/lib/oci/email/models/sender_summary.rb +5 -2
- data/lib/oci/email/models/suppression.rb +5 -2
- data/lib/oci/email/models/suppression_summary.rb +5 -2
- data/lib/oci/file_storage/file_storage_client.rb +1 -0
- data/lib/oci/file_storage/models/client_options.rb +5 -2
- data/lib/oci/file_storage/models/create_export_details.rb +5 -2
- data/lib/oci/file_storage/models/create_file_system_details.rb +5 -2
- data/lib/oci/file_storage/models/create_mount_target_details.rb +5 -2
- data/lib/oci/file_storage/models/create_snapshot_details.rb +5 -2
- data/lib/oci/file_storage/models/export.rb +5 -2
- data/lib/oci/file_storage/models/export_set.rb +5 -2
- data/lib/oci/file_storage/models/export_set_summary.rb +5 -2
- data/lib/oci/file_storage/models/export_summary.rb +5 -2
- data/lib/oci/file_storage/models/file_system.rb +5 -2
- data/lib/oci/file_storage/models/file_system_summary.rb +5 -2
- data/lib/oci/file_storage/models/mount_target.rb +5 -2
- data/lib/oci/file_storage/models/mount_target_summary.rb +5 -2
- data/lib/oci/file_storage/models/snapshot.rb +5 -2
- data/lib/oci/file_storage/models/snapshot_summary.rb +5 -2
- data/lib/oci/file_storage/models/update_export_details.rb +5 -2
- data/lib/oci/file_storage/models/update_export_set_details.rb +5 -2
- data/lib/oci/file_storage/models/update_file_system_details.rb +5 -2
- data/lib/oci/file_storage/models/update_mount_target_details.rb +5 -2
- data/lib/oci/identity/identity.rb +5 -0
- data/lib/oci/identity/identity_client.rb +283 -14
- data/lib/oci/identity/identity_client_composite_operations.rb +49 -0
- data/lib/oci/identity/models/add_user_to_group_details.rb +5 -2
- data/lib/oci/identity/models/api_key.rb +5 -2
- data/lib/oci/identity/models/auth_token.rb +5 -2
- data/lib/oci/identity/models/availability_domain.rb +5 -2
- data/lib/oci/identity/models/compartment.rb +25 -5
- data/lib/oci/identity/models/create_api_key_details.rb +5 -2
- data/lib/oci/identity/models/create_auth_token_details.rb +5 -2
- data/lib/oci/identity/models/create_compartment_details.rb +7 -4
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +5 -2
- data/lib/oci/identity/models/create_dynamic_group_details.rb +5 -2
- data/lib/oci/identity/models/create_group_details.rb +5 -2
- data/lib/oci/identity/models/create_identity_provider_details.rb +7 -2
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +5 -2
- data/lib/oci/identity/models/create_policy_details.rb +5 -2
- data/lib/oci/identity/models/create_region_subscription_details.rb +5 -2
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +5 -2
- data/lib/oci/identity/models/create_smtp_credential_details.rb +5 -2
- data/lib/oci/identity/models/create_swift_password_details.rb +5 -2
- data/lib/oci/identity/models/create_tag_details.rb +24 -6
- data/lib/oci/identity/models/create_tag_namespace_details.rb +5 -2
- data/lib/oci/identity/models/create_user_details.rb +5 -2
- data/lib/oci/identity/models/customer_secret_key.rb +5 -2
- data/lib/oci/identity/models/customer_secret_key_summary.rb +5 -2
- data/lib/oci/identity/models/dynamic_group.rb +5 -2
- data/lib/oci/identity/models/fault_domain.rb +5 -2
- data/lib/oci/identity/models/group.rb +5 -2
- data/lib/oci/identity/models/identity_provider.rb +5 -2
- data/lib/oci/identity/models/idp_group_mapping.rb +5 -2
- data/lib/oci/identity/models/policy.rb +5 -2
- data/lib/oci/identity/models/region.rb +5 -2
- data/lib/oci/identity/models/region_subscription.rb +5 -2
- data/lib/oci/identity/models/saml2_identity_provider.rb +5 -2
- data/lib/oci/identity/models/smtp_credential.rb +5 -2
- data/lib/oci/identity/models/smtp_credential_summary.rb +5 -2
- data/lib/oci/identity/models/swift_password.rb +5 -2
- data/lib/oci/identity/models/tag.rb +24 -6
- data/lib/oci/identity/models/tag_namespace.rb +5 -2
- data/lib/oci/identity/models/tag_namespace_summary.rb +5 -2
- data/lib/oci/identity/models/tag_summary.rb +24 -6
- data/lib/oci/identity/models/tenancy.rb +5 -2
- data/lib/oci/identity/models/ui_password.rb +5 -2
- data/lib/oci/identity/models/update_auth_token_details.rb +5 -2
- data/lib/oci/identity/models/update_compartment_details.rb +6 -3
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +5 -2
- data/lib/oci/identity/models/update_dynamic_group_details.rb +5 -2
- data/lib/oci/identity/models/update_group_details.rb +5 -2
- data/lib/oci/identity/models/update_identity_provider_details.rb +6 -2
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +5 -2
- data/lib/oci/identity/models/update_policy_details.rb +5 -2
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +5 -2
- data/lib/oci/identity/models/update_smtp_credential_details.rb +5 -2
- data/lib/oci/identity/models/update_state_details.rb +5 -2
- data/lib/oci/identity/models/update_swift_password_details.rb +5 -2
- data/lib/oci/identity/models/update_tag_details.rb +24 -6
- data/lib/oci/identity/models/update_tag_namespace_details.rb +5 -2
- data/lib/oci/identity/models/update_user_details.rb +5 -2
- data/lib/oci/identity/models/user.rb +5 -2
- data/lib/oci/identity/models/user_group_membership.rb +5 -2
- data/lib/oci/identity/models/work_request.rb +331 -0
- data/lib/oci/identity/models/work_request_error.rb +172 -0
- data/lib/oci/identity/models/work_request_log_entry.rb +162 -0
- data/lib/oci/identity/models/work_request_resource.rb +217 -0
- data/lib/oci/identity/models/work_request_summary.rb +319 -0
- data/lib/oci/key_management/kms_crypto_client.rb +2 -0
- data/lib/oci/key_management/kms_management_client.rb +2 -0
- data/lib/oci/key_management/kms_vault_client.rb +1 -0
- data/lib/oci/key_management/models/create_key_details.rb +5 -2
- data/lib/oci/key_management/models/create_vault_details.rb +6 -2
- data/lib/oci/key_management/models/decrypt_data_details.rb +5 -2
- data/lib/oci/key_management/models/decrypted_data.rb +5 -2
- data/lib/oci/key_management/models/encrypt_data_details.rb +5 -2
- data/lib/oci/key_management/models/encrypted_data.rb +5 -2
- data/lib/oci/key_management/models/generate_key_details.rb +5 -2
- data/lib/oci/key_management/models/generated_key.rb +5 -2
- data/lib/oci/key_management/models/key.rb +5 -2
- data/lib/oci/key_management/models/key_shape.rb +5 -2
- data/lib/oci/key_management/models/key_summary.rb +5 -2
- data/lib/oci/key_management/models/key_version.rb +5 -2
- data/lib/oci/key_management/models/key_version_summary.rb +5 -2
- data/lib/oci/key_management/models/schedule_vault_deletion_details.rb +5 -2
- data/lib/oci/key_management/models/update_key_details.rb +5 -2
- data/lib/oci/key_management/models/update_vault_details.rb +5 -2
- data/lib/oci/key_management/models/vault.rb +5 -2
- data/lib/oci/key_management/models/vault_summary.rb +5 -2
- data/lib/oci/load_balancer/load_balancer_client.rb +1 -0
- data/lib/oci/load_balancer/models/backend.rb +5 -2
- data/lib/oci/load_balancer/models/backend_details.rb +5 -2
- data/lib/oci/load_balancer/models/backend_health.rb +5 -2
- data/lib/oci/load_balancer/models/backend_set.rb +5 -2
- data/lib/oci/load_balancer/models/backend_set_details.rb +5 -2
- data/lib/oci/load_balancer/models/backend_set_health.rb +5 -2
- data/lib/oci/load_balancer/models/certificate.rb +5 -2
- data/lib/oci/load_balancer/models/certificate_details.rb +5 -2
- data/lib/oci/load_balancer/models/connection_configuration.rb +5 -2
- data/lib/oci/load_balancer/models/create_backend_details.rb +5 -2
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +5 -2
- data/lib/oci/load_balancer/models/create_certificate_details.rb +5 -2
- data/lib/oci/load_balancer/models/create_hostname_details.rb +5 -2
- data/lib/oci/load_balancer/models/create_listener_details.rb +5 -2
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +5 -2
- data/lib/oci/load_balancer/models/create_path_route_set_details.rb +5 -2
- data/lib/oci/load_balancer/models/health_check_result.rb +5 -2
- data/lib/oci/load_balancer/models/health_checker.rb +5 -2
- data/lib/oci/load_balancer/models/health_checker_details.rb +5 -2
- data/lib/oci/load_balancer/models/hostname.rb +5 -2
- data/lib/oci/load_balancer/models/hostname_details.rb +5 -2
- data/lib/oci/load_balancer/models/ip_address.rb +5 -2
- data/lib/oci/load_balancer/models/listener.rb +5 -2
- data/lib/oci/load_balancer/models/listener_details.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer_health.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +5 -2
- data/lib/oci/load_balancer/models/path_match_type.rb +5 -2
- data/lib/oci/load_balancer/models/path_route.rb +5 -2
- data/lib/oci/load_balancer/models/path_route_set.rb +5 -2
- data/lib/oci/load_balancer/models/path_route_set_details.rb +5 -2
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +5 -2
- data/lib/oci/load_balancer/models/ssl_configuration.rb +5 -2
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +5 -2
- data/lib/oci/load_balancer/models/update_backend_details.rb +5 -2
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +5 -2
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +5 -2
- data/lib/oci/load_balancer/models/update_hostname_details.rb +5 -2
- data/lib/oci/load_balancer/models/update_listener_details.rb +5 -2
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +5 -2
- data/lib/oci/load_balancer/models/update_path_route_set_details.rb +5 -2
- data/lib/oci/load_balancer/models/work_request.rb +5 -2
- data/lib/oci/load_balancer/models/work_request_error.rb +5 -2
- data/lib/oci/object_storage/models/bucket.rb +5 -2
- data/lib/oci/object_storage/models/bucket_summary.rb +5 -2
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +5 -2
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +5 -2
- data/lib/oci/object_storage/models/copy_object_details.rb +5 -2
- data/lib/oci/object_storage/models/create_bucket_details.rb +7 -2
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +5 -2
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +6 -2
- data/lib/oci/object_storage/models/list_objects.rb +5 -2
- data/lib/oci/object_storage/models/multipart_upload.rb +5 -2
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +5 -2
- data/lib/oci/object_storage/models/namespace_metadata.rb +5 -2
- data/lib/oci/object_storage/models/object_lifecycle_policy.rb +5 -2
- data/lib/oci/object_storage/models/object_lifecycle_rule.rb +5 -2
- data/lib/oci/object_storage/models/object_name_filter.rb +5 -2
- data/lib/oci/object_storage/models/object_summary.rb +5 -2
- data/lib/oci/object_storage/models/preauthenticated_request.rb +5 -2
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +5 -2
- data/lib/oci/object_storage/models/put_object_lifecycle_policy_details.rb +5 -2
- data/lib/oci/object_storage/models/rename_object_details.rb +5 -2
- data/lib/oci/object_storage/models/restore_objects_details.rb +5 -2
- data/lib/oci/object_storage/models/update_bucket_details.rb +6 -2
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +5 -2
- data/lib/oci/object_storage/models/work_request.rb +5 -2
- data/lib/oci/object_storage/models/work_request_error.rb +5 -2
- data/lib/oci/object_storage/models/work_request_log_entry.rb +5 -2
- data/lib/oci/object_storage/models/work_request_resource.rb +5 -2
- data/lib/oci/object_storage/models/work_request_summary.rb +5 -2
- data/lib/oci/object_storage/object_storage_client.rb +1 -0
- data/lib/oci/object_storage/transfer/multipart/internal/seekable_non_file_part_io_wrapper.rb +1 -0
- data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +2 -0
- data/lib/oci/object_storage/transfer/upload_manager.rb +1 -0
- data/lib/oci/regions.rb +3 -1
- data/lib/oci/resource_search/models/free_text_search_details.rb +5 -2
- data/lib/oci/resource_search/models/queryable_field_description.rb +5 -2
- data/lib/oci/resource_search/models/resource_summary.rb +5 -2
- data/lib/oci/resource_search/models/resource_summary_collection.rb +5 -2
- data/lib/oci/resource_search/models/resource_type.rb +5 -2
- data/lib/oci/resource_search/models/search_context.rb +5 -2
- data/lib/oci/resource_search/models/search_details.rb +6 -2
- data/lib/oci/resource_search/models/structured_search_details.rb +5 -2
- data/lib/oci/resource_search/resource_search_client.rb +1 -0
- data/lib/oci/response_headers.rb +1 -0
- data/lib/oci/retry/functions/sleep.rb +1 -0
- data/lib/oci/retry/internal/retry_state.rb +1 -0
- data/lib/oci/retry/retry_config.rb +3 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waiter.rb +2 -0
- metadata +44 -2
|
@@ -59,18 +59,19 @@ module OCI
|
|
|
59
59
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
60
60
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
61
61
|
|
|
62
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
62
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
# Checks equality by comparing each attribute.
|
|
66
66
|
# @param [Object] other the other object to be compared
|
|
67
67
|
def ==(other)
|
|
68
68
|
return true if equal?(other)
|
|
69
|
+
|
|
69
70
|
self.class == other.class &&
|
|
70
71
|
name == other.name &&
|
|
71
72
|
kubernetes_version == other.kubernetes_version
|
|
72
73
|
end
|
|
73
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
74
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
74
75
|
|
|
75
76
|
# @see the `==` method
|
|
76
77
|
# @param [Object] other the other object to be compared
|
|
@@ -96,6 +97,7 @@ module OCI
|
|
|
96
97
|
# @return [Object] Returns the model itself
|
|
97
98
|
def build_from_hash(attributes)
|
|
98
99
|
return nil unless attributes.is_a?(Hash)
|
|
100
|
+
|
|
99
101
|
self.class.swagger_types.each_pair do |key, type|
|
|
100
102
|
if type =~ /^Array<(.*)>/i
|
|
101
103
|
# check to ensure the input is an array given that the the attribute
|
|
@@ -131,6 +133,7 @@ module OCI
|
|
|
131
133
|
self.class.attribute_map.each_pair do |attr, param|
|
|
132
134
|
value = public_method(attr).call
|
|
133
135
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
136
|
+
|
|
134
137
|
hash[param] = _to_hash(value)
|
|
135
138
|
end
|
|
136
139
|
hash
|
|
@@ -98,13 +98,14 @@ module OCI
|
|
|
98
98
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
99
99
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
100
100
|
|
|
101
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
101
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
# Checks equality by comparing each attribute.
|
|
105
105
|
# @param [Object] other the other object to be compared
|
|
106
106
|
def ==(other)
|
|
107
107
|
return true if equal?(other)
|
|
108
|
+
|
|
108
109
|
self.class == other.class &&
|
|
109
110
|
name == other.name &&
|
|
110
111
|
kubernetes_version == other.kubernetes_version &&
|
|
@@ -112,7 +113,7 @@ module OCI
|
|
|
112
113
|
initial_node_labels == other.initial_node_labels &&
|
|
113
114
|
subnet_ids == other.subnet_ids
|
|
114
115
|
end
|
|
115
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
116
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
116
117
|
|
|
117
118
|
# @see the `==` method
|
|
118
119
|
# @param [Object] other the other object to be compared
|
|
@@ -138,6 +139,7 @@ module OCI
|
|
|
138
139
|
# @return [Object] Returns the model itself
|
|
139
140
|
def build_from_hash(attributes)
|
|
140
141
|
return nil unless attributes.is_a?(Hash)
|
|
142
|
+
|
|
141
143
|
self.class.swagger_types.each_pair do |key, type|
|
|
142
144
|
if type =~ /^Array<(.*)>/i
|
|
143
145
|
# check to ensure the input is an array given that the the attribute
|
|
@@ -173,6 +175,7 @@ module OCI
|
|
|
173
175
|
self.class.attribute_map.each_pair do |attr, param|
|
|
174
176
|
value = public_method(attr).call
|
|
175
177
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
178
|
+
|
|
176
179
|
hash[param] = _to_hash(value)
|
|
177
180
|
end
|
|
178
181
|
hash
|
|
@@ -181,13 +181,14 @@ module OCI
|
|
|
181
181
|
# rubocop:enable Style/ConditionalAssignment
|
|
182
182
|
end
|
|
183
183
|
|
|
184
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
184
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
# Checks equality by comparing each attribute.
|
|
188
188
|
# @param [Object] other the other object to be compared
|
|
189
189
|
def ==(other)
|
|
190
190
|
return true if equal?(other)
|
|
191
|
+
|
|
191
192
|
self.class == other.class &&
|
|
192
193
|
id == other.id &&
|
|
193
194
|
operation_type == other.operation_type &&
|
|
@@ -198,7 +199,7 @@ module OCI
|
|
|
198
199
|
time_started == other.time_started &&
|
|
199
200
|
time_finished == other.time_finished
|
|
200
201
|
end
|
|
201
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
202
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
202
203
|
|
|
203
204
|
# @see the `==` method
|
|
204
205
|
# @param [Object] other the other object to be compared
|
|
@@ -224,6 +225,7 @@ module OCI
|
|
|
224
225
|
# @return [Object] Returns the model itself
|
|
225
226
|
def build_from_hash(attributes)
|
|
226
227
|
return nil unless attributes.is_a?(Hash)
|
|
228
|
+
|
|
227
229
|
self.class.swagger_types.each_pair do |key, type|
|
|
228
230
|
if type =~ /^Array<(.*)>/i
|
|
229
231
|
# check to ensure the input is an array given that the the attribute
|
|
@@ -259,6 +261,7 @@ module OCI
|
|
|
259
261
|
self.class.attribute_map.each_pair do |attr, param|
|
|
260
262
|
value = public_method(attr).call
|
|
261
263
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
264
|
+
|
|
262
265
|
hash[param] = _to_hash(value)
|
|
263
266
|
end
|
|
264
267
|
hash
|
|
@@ -65,19 +65,20 @@ module OCI
|
|
|
65
65
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
66
66
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
67
67
|
|
|
68
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
68
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
# Checks equality by comparing each attribute.
|
|
72
72
|
# @param [Object] other the other object to be compared
|
|
73
73
|
def ==(other)
|
|
74
74
|
return true if equal?(other)
|
|
75
|
+
|
|
75
76
|
self.class == other.class &&
|
|
76
77
|
code == other.code &&
|
|
77
78
|
message == other.message &&
|
|
78
79
|
timestamp == other.timestamp
|
|
79
80
|
end
|
|
80
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
81
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
81
82
|
|
|
82
83
|
# @see the `==` method
|
|
83
84
|
# @param [Object] other the other object to be compared
|
|
@@ -103,6 +104,7 @@ module OCI
|
|
|
103
104
|
# @return [Object] Returns the model itself
|
|
104
105
|
def build_from_hash(attributes)
|
|
105
106
|
return nil unless attributes.is_a?(Hash)
|
|
107
|
+
|
|
106
108
|
self.class.swagger_types.each_pair do |key, type|
|
|
107
109
|
if type =~ /^Array<(.*)>/i
|
|
108
110
|
# check to ensure the input is an array given that the the attribute
|
|
@@ -138,6 +140,7 @@ module OCI
|
|
|
138
140
|
self.class.attribute_map.each_pair do |attr, param|
|
|
139
141
|
value = public_method(attr).call
|
|
140
142
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
143
|
+
|
|
141
144
|
hash[param] = _to_hash(value)
|
|
142
145
|
end
|
|
143
146
|
hash
|
|
@@ -55,18 +55,19 @@ module OCI
|
|
|
55
55
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
56
56
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
57
57
|
|
|
58
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
58
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
# Checks equality by comparing each attribute.
|
|
62
62
|
# @param [Object] other the other object to be compared
|
|
63
63
|
def ==(other)
|
|
64
64
|
return true if equal?(other)
|
|
65
|
+
|
|
65
66
|
self.class == other.class &&
|
|
66
67
|
message == other.message &&
|
|
67
68
|
timestamp == other.timestamp
|
|
68
69
|
end
|
|
69
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
70
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
70
71
|
|
|
71
72
|
# @see the `==` method
|
|
72
73
|
# @param [Object] other the other object to be compared
|
|
@@ -92,6 +93,7 @@ module OCI
|
|
|
92
93
|
# @return [Object] Returns the model itself
|
|
93
94
|
def build_from_hash(attributes)
|
|
94
95
|
return nil unless attributes.is_a?(Hash)
|
|
96
|
+
|
|
95
97
|
self.class.swagger_types.each_pair do |key, type|
|
|
96
98
|
if type =~ /^Array<(.*)>/i
|
|
97
99
|
# check to ensure the input is an array given that the the attribute
|
|
@@ -127,6 +129,7 @@ module OCI
|
|
|
127
129
|
self.class.attribute_map.each_pair do |attr, param|
|
|
128
130
|
value = public_method(attr).call
|
|
129
131
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
132
|
+
|
|
130
133
|
hash[param] = _to_hash(value)
|
|
131
134
|
end
|
|
132
135
|
hash
|
|
@@ -111,20 +111,21 @@ module OCI
|
|
|
111
111
|
# rubocop:enable Style/ConditionalAssignment
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
114
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
# Checks equality by comparing each attribute.
|
|
118
118
|
# @param [Object] other the other object to be compared
|
|
119
119
|
def ==(other)
|
|
120
120
|
return true if equal?(other)
|
|
121
|
+
|
|
121
122
|
self.class == other.class &&
|
|
122
123
|
action_type == other.action_type &&
|
|
123
124
|
entity_type == other.entity_type &&
|
|
124
125
|
identifier == other.identifier &&
|
|
125
126
|
entity_uri == other.entity_uri
|
|
126
127
|
end
|
|
127
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
128
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
128
129
|
|
|
129
130
|
# @see the `==` method
|
|
130
131
|
# @param [Object] other the other object to be compared
|
|
@@ -150,6 +151,7 @@ module OCI
|
|
|
150
151
|
# @return [Object] Returns the model itself
|
|
151
152
|
def build_from_hash(attributes)
|
|
152
153
|
return nil unless attributes.is_a?(Hash)
|
|
154
|
+
|
|
153
155
|
self.class.swagger_types.each_pair do |key, type|
|
|
154
156
|
if type =~ /^Array<(.*)>/i
|
|
155
157
|
# check to ensure the input is an array given that the the attribute
|
|
@@ -185,6 +187,7 @@ module OCI
|
|
|
185
187
|
self.class.attribute_map.each_pair do |attr, param|
|
|
186
188
|
value = public_method(attr).call
|
|
187
189
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
190
|
+
|
|
188
191
|
hash[param] = _to_hash(value)
|
|
189
192
|
end
|
|
190
193
|
hash
|
|
@@ -181,13 +181,14 @@ module OCI
|
|
|
181
181
|
# rubocop:enable Style/ConditionalAssignment
|
|
182
182
|
end
|
|
183
183
|
|
|
184
|
-
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
184
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
# Checks equality by comparing each attribute.
|
|
188
188
|
# @param [Object] other the other object to be compared
|
|
189
189
|
def ==(other)
|
|
190
190
|
return true if equal?(other)
|
|
191
|
+
|
|
191
192
|
self.class == other.class &&
|
|
192
193
|
id == other.id &&
|
|
193
194
|
operation_type == other.operation_type &&
|
|
@@ -198,7 +199,7 @@ module OCI
|
|
|
198
199
|
time_started == other.time_started &&
|
|
199
200
|
time_finished == other.time_finished
|
|
200
201
|
end
|
|
201
|
-
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
202
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
202
203
|
|
|
203
204
|
# @see the `==` method
|
|
204
205
|
# @param [Object] other the other object to be compared
|
|
@@ -224,6 +225,7 @@ module OCI
|
|
|
224
225
|
# @return [Object] Returns the model itself
|
|
225
226
|
def build_from_hash(attributes)
|
|
226
227
|
return nil unless attributes.is_a?(Hash)
|
|
228
|
+
|
|
227
229
|
self.class.swagger_types.each_pair do |key, type|
|
|
228
230
|
if type =~ /^Array<(.*)>/i
|
|
229
231
|
# check to ensure the input is an array given that the the attribute
|
|
@@ -259,6 +261,7 @@ module OCI
|
|
|
259
261
|
self.class.attribute_map.each_pair do |attr, param|
|
|
260
262
|
value = public_method(attr).call
|
|
261
263
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
264
|
+
|
|
262
265
|
hash[param] = _to_hash(value)
|
|
263
266
|
end
|
|
264
267
|
hash
|
|
@@ -101,6 +101,73 @@ module OCI
|
|
|
101
101
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
102
102
|
|
|
103
103
|
|
|
104
|
+
# Creates a volume backup copy in specified region. For general information about volume backups,
|
|
105
|
+
# see [Overview of Block Volume Service Backups](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/blockvolumebackups.htm)
|
|
106
|
+
#
|
|
107
|
+
# @param [String] volume_backup_id The OCID of the volume backup.
|
|
108
|
+
# @param [OCI::Core::Models::CopyVolumeBackupDetails] copy_volume_backup_details Request to create a cross-region copy of given backup.
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
111
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
112
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
113
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
114
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
115
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
116
|
+
# may be rejected).
|
|
117
|
+
#
|
|
118
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
|
119
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
|
120
|
+
#
|
|
121
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::VolumeBackup VolumeBackup}
|
|
122
|
+
def copy_volume_backup(volume_backup_id, copy_volume_backup_details, opts = {})
|
|
123
|
+
logger.debug 'Calling operation BlockstorageClient#copy_volume_backup.' if logger
|
|
124
|
+
|
|
125
|
+
raise "Missing the required parameter 'volume_backup_id' when calling copy_volume_backup." if volume_backup_id.nil?
|
|
126
|
+
raise "Missing the required parameter 'copy_volume_backup_details' when calling copy_volume_backup." if copy_volume_backup_details.nil?
|
|
127
|
+
raise "Parameter value for 'volume_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(volume_backup_id)
|
|
128
|
+
|
|
129
|
+
path = '/volumeBackups/{volumeBackupId}/actions/copy'.sub('{volumeBackupId}', volume_backup_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[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
141
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
142
|
+
# rubocop:enable Style/NegatedIf
|
|
143
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
144
|
+
|
|
145
|
+
post_body = @api_client.object_to_http_body(copy_volume_backup_details)
|
|
146
|
+
|
|
147
|
+
# rubocop:disable Metrics/BlockLength
|
|
148
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#copy_volume_backup') do
|
|
149
|
+
@api_client.call_api(
|
|
150
|
+
:POST,
|
|
151
|
+
path,
|
|
152
|
+
endpoint,
|
|
153
|
+
header_params: header_params,
|
|
154
|
+
query_params: query_params,
|
|
155
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
156
|
+
body: post_body,
|
|
157
|
+
return_type: 'OCI::Core::Models::VolumeBackup'
|
|
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
|
+
|
|
104
171
|
# Creates a new boot volume in the specified compartment from an existing boot volume or a boot volume backup.
|
|
105
172
|
# For general information about boot volumes, see [Boot Volumes](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/bootvolumes.htm).
|
|
106
173
|
# You may optionally specify a *display name* for the volume, which is simply a friendly name or
|
|
@@ -1905,6 +1972,8 @@ module OCI
|
|
|
1905
1972
|
#
|
|
1906
1973
|
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
1907
1974
|
#
|
|
1975
|
+
# @option opts [String] :source_volume_backup_id A filter to return only resources that originated from the given source volume backup.
|
|
1976
|
+
#
|
|
1908
1977
|
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
1909
1978
|
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
1910
1979
|
# sort order is case sensitive.
|
|
@@ -1950,6 +2019,7 @@ module OCI
|
|
|
1950
2019
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
1951
2020
|
query_params[:page] = opts[:page] if opts[:page]
|
|
1952
2021
|
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
2022
|
+
query_params[:sourceVolumeBackupId] = opts[:source_volume_backup_id] if opts[:source_volume_backup_id]
|
|
1953
2023
|
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
1954
2024
|
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
1955
2025
|
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
|
@@ -2288,7 +2358,7 @@ module OCI
|
|
|
2288
2358
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
2289
2359
|
|
|
2290
2360
|
|
|
2291
|
-
# Updates the specified boot volume's display name.
|
|
2361
|
+
# Updates the specified boot volume's display name, defined tags, and free-form tags.
|
|
2292
2362
|
# @param [String] boot_volume_id The OCID of the boot volume.
|
|
2293
2363
|
# @param [OCI::Core::Models::UpdateBootVolumeDetails] update_boot_volume_details Update boot volume's display name.
|
|
2294
2364
|
# @param [Hash] opts the optional parameters
|
|
@@ -2765,6 +2835,7 @@ module OCI
|
|
|
2765
2835
|
|
|
2766
2836
|
def applicable_retry_config(opts = {})
|
|
2767
2837
|
return @retry_config unless opts.key?(:retry_config)
|
|
2838
|
+
|
|
2768
2839
|
opts[:retry_config]
|
|
2769
2840
|
end
|
|
2770
2841
|
end
|
|
@@ -24,6 +24,46 @@ module OCI
|
|
|
24
24
|
# rubocop:disable Layout/EmptyLines
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
# Calls {OCI::Core::BlockstorageClient#copy_volume_backup} and then waits for the {OCI::Core::Models::VolumeBackup} acted upon
|
|
28
|
+
# to enter the given state(s).
|
|
29
|
+
#
|
|
30
|
+
# @param [String] volume_backup_id The OCID of the volume backup.
|
|
31
|
+
# @param [OCI::Core::Models::CopyVolumeBackupDetails] copy_volume_backup_details Request to create a cross-region copy of given backup.
|
|
32
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::VolumeBackup#lifecycle_state}
|
|
33
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#copy_volume_backup}
|
|
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::Core::Models::VolumeBackup}
|
|
39
|
+
def copy_volume_backup_and_wait_for_state(volume_backup_id, copy_volume_backup_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
40
|
+
operation_result = @service_client.copy_volume_backup(volume_backup_id, copy_volume_backup_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_volume_backup(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
|
+
|
|
27
67
|
# Calls {OCI::Core::BlockstorageClient#create_boot_volume} and then waits for the {OCI::Core::Models::BootVolume} acted upon
|
|
28
68
|
# to enter the given state(s).
|
|
29
69
|
#
|
|
@@ -0,0 +1,1179 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'uri'
|
|
4
|
+
require 'logger'
|
|
5
|
+
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
7
|
+
module OCI
|
|
8
|
+
# APIs for Networking Service, Compute Service, and Block Volume Service.
|
|
9
|
+
class Core::ComputeManagementClient
|
|
10
|
+
# Client used to make HTTP requests.
|
|
11
|
+
# @return [OCI::ApiClient]
|
|
12
|
+
attr_reader :api_client
|
|
13
|
+
|
|
14
|
+
# Fully qualified endpoint URL
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_reader :endpoint
|
|
17
|
+
|
|
18
|
+
# The default retry configuration to apply to all operations in this service client. This can be overridden
|
|
19
|
+
# on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
|
20
|
+
# will not perform any retries
|
|
21
|
+
# @return [OCI::Retry::RetryConfig]
|
|
22
|
+
attr_reader :retry_config
|
|
23
|
+
|
|
24
|
+
# The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_reader :region
|
|
27
|
+
|
|
28
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Creates a new ComputeManagementClient.
|
|
32
|
+
# Notes:
|
|
33
|
+
# If a config is not specified, then the global OCI.config will be used.
|
|
34
|
+
# This client is not thread-safe
|
|
35
|
+
#
|
|
36
|
+
# A region must be specified in either the config or the region parameter. If specified in both,
|
|
37
|
+
# then the region parameter will be used.
|
|
38
|
+
#
|
|
39
|
+
# @param [Config] config A Config object.
|
|
40
|
+
# @param [String] region A region used to determine the service endpoint. This will usually
|
|
41
|
+
# correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
|
|
42
|
+
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
|
43
|
+
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
|
44
|
+
# so that the instance principals signer can be provided to the client
|
|
45
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
|
46
|
+
# the details for the proxy can be provided in this parameter
|
|
47
|
+
# @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
|
|
48
|
+
# 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
|
|
49
|
+
# will not perform any retries
|
|
50
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
|
51
|
+
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
|
52
|
+
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
|
53
|
+
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
|
54
|
+
# pass it to this constructor.
|
|
55
|
+
#
|
|
56
|
+
# If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
|
|
57
|
+
# so try and load the config from the default file.
|
|
58
|
+
config ||= OCI.config unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
|
59
|
+
config ||= OCI::Config.new if signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
|
60
|
+
config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
|
61
|
+
|
|
62
|
+
if signer.nil?
|
|
63
|
+
signer = OCI::Signer.new(
|
|
64
|
+
config.user,
|
|
65
|
+
config.fingerprint,
|
|
66
|
+
config.tenancy,
|
|
67
|
+
config.key_file,
|
|
68
|
+
pass_phrase: config.pass_phrase,
|
|
69
|
+
private_key_content: config.key_content
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
|
74
|
+
@retry_config = retry_config
|
|
75
|
+
|
|
76
|
+
region ||= config.region
|
|
77
|
+
region ||= signer.region if signer.respond_to?(:region)
|
|
78
|
+
self.region = region
|
|
79
|
+
end
|
|
80
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
|
|
81
|
+
|
|
82
|
+
# Set the region that will be used to determine the service endpoint.
|
|
83
|
+
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
|
84
|
+
# but may be an arbitrary string.
|
|
85
|
+
def region=(new_region)
|
|
86
|
+
@region = new_region
|
|
87
|
+
|
|
88
|
+
raise 'A region must be specified.' unless @region
|
|
89
|
+
|
|
90
|
+
@endpoint = OCI::Regions.get_service_endpoint(@region, :ComputeManagementClient) + '/20160918'
|
|
91
|
+
logger.info "ComputeManagementClient endpoint set to '#{endpoint}'." if logger
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# @return [Logger] The logger for this client. May be nil.
|
|
95
|
+
def logger
|
|
96
|
+
@api_client.config.logger
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
100
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
101
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
# Creates an instance configuration
|
|
105
|
+
#
|
|
106
|
+
# @param [OCI::Core::Models::CreateInstanceConfigurationDetails] create_instance_configuration Instance configuration creation details
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
109
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
110
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
111
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
112
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
113
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
114
|
+
# may be rejected).
|
|
115
|
+
#
|
|
116
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstanceConfiguration InstanceConfiguration}
|
|
117
|
+
def create_instance_configuration(create_instance_configuration, opts = {})
|
|
118
|
+
logger.debug 'Calling operation ComputeManagementClient#create_instance_configuration.' if logger
|
|
119
|
+
|
|
120
|
+
raise "Missing the required parameter 'create_instance_configuration' when calling create_instance_configuration." if create_instance_configuration.nil?
|
|
121
|
+
|
|
122
|
+
path = '/instanceConfigurations'
|
|
123
|
+
operation_signing_strategy = :standard
|
|
124
|
+
|
|
125
|
+
# rubocop:disable Style/NegatedIf
|
|
126
|
+
# Query Params
|
|
127
|
+
query_params = {}
|
|
128
|
+
|
|
129
|
+
# Header Params
|
|
130
|
+
header_params = {}
|
|
131
|
+
header_params[:accept] = 'application/json'
|
|
132
|
+
header_params[:'content-type'] = 'application/json'
|
|
133
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
134
|
+
# rubocop:enable Style/NegatedIf
|
|
135
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
136
|
+
|
|
137
|
+
post_body = @api_client.object_to_http_body(create_instance_configuration)
|
|
138
|
+
|
|
139
|
+
# rubocop:disable Metrics/BlockLength
|
|
140
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#create_instance_configuration') do
|
|
141
|
+
@api_client.call_api(
|
|
142
|
+
:POST,
|
|
143
|
+
path,
|
|
144
|
+
endpoint,
|
|
145
|
+
header_params: header_params,
|
|
146
|
+
query_params: query_params,
|
|
147
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
148
|
+
body: post_body,
|
|
149
|
+
return_type: 'OCI::Core::Models::InstanceConfiguration'
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
# rubocop:enable Metrics/BlockLength
|
|
153
|
+
end
|
|
154
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
155
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
156
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
157
|
+
|
|
158
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
159
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
160
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
# Create an instance pool.
|
|
164
|
+
# @param [OCI::Core::Models::CreateInstancePoolDetails] create_instance_pool_details Instance Pool creation details
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
167
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
168
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
169
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
170
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
171
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
172
|
+
# may be rejected).
|
|
173
|
+
#
|
|
174
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePool InstancePool}
|
|
175
|
+
def create_instance_pool(create_instance_pool_details, opts = {})
|
|
176
|
+
logger.debug 'Calling operation ComputeManagementClient#create_instance_pool.' if logger
|
|
177
|
+
|
|
178
|
+
raise "Missing the required parameter 'create_instance_pool_details' when calling create_instance_pool." if create_instance_pool_details.nil?
|
|
179
|
+
|
|
180
|
+
path = '/instancePools'
|
|
181
|
+
operation_signing_strategy = :standard
|
|
182
|
+
|
|
183
|
+
# rubocop:disable Style/NegatedIf
|
|
184
|
+
# Query Params
|
|
185
|
+
query_params = {}
|
|
186
|
+
|
|
187
|
+
# Header Params
|
|
188
|
+
header_params = {}
|
|
189
|
+
header_params[:accept] = 'application/json'
|
|
190
|
+
header_params[:'content-type'] = 'application/json'
|
|
191
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
192
|
+
# rubocop:enable Style/NegatedIf
|
|
193
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
194
|
+
|
|
195
|
+
post_body = @api_client.object_to_http_body(create_instance_pool_details)
|
|
196
|
+
|
|
197
|
+
# rubocop:disable Metrics/BlockLength
|
|
198
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#create_instance_pool') do
|
|
199
|
+
@api_client.call_api(
|
|
200
|
+
:POST,
|
|
201
|
+
path,
|
|
202
|
+
endpoint,
|
|
203
|
+
header_params: header_params,
|
|
204
|
+
query_params: query_params,
|
|
205
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
206
|
+
body: post_body,
|
|
207
|
+
return_type: 'OCI::Core::Models::InstancePool'
|
|
208
|
+
)
|
|
209
|
+
end
|
|
210
|
+
# rubocop:enable Metrics/BlockLength
|
|
211
|
+
end
|
|
212
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
213
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
214
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
215
|
+
|
|
216
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
217
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
218
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
# Deletes an instance configuration.
|
|
222
|
+
# @param [String] instance_configuration_id The OCID of the instance configuration.
|
|
223
|
+
# @param [Hash] opts the optional parameters
|
|
224
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
225
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
226
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
227
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
228
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
229
|
+
#
|
|
230
|
+
# @return [Response] A Response object with data of type nil
|
|
231
|
+
def delete_instance_configuration(instance_configuration_id, opts = {})
|
|
232
|
+
logger.debug 'Calling operation ComputeManagementClient#delete_instance_configuration.' if logger
|
|
233
|
+
|
|
234
|
+
raise "Missing the required parameter 'instance_configuration_id' when calling delete_instance_configuration." if instance_configuration_id.nil?
|
|
235
|
+
raise "Parameter value for 'instance_configuration_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_configuration_id)
|
|
236
|
+
|
|
237
|
+
path = '/instanceConfigurations/{instanceConfigurationId}'.sub('{instanceConfigurationId}', instance_configuration_id.to_s)
|
|
238
|
+
operation_signing_strategy = :standard
|
|
239
|
+
|
|
240
|
+
# rubocop:disable Style/NegatedIf
|
|
241
|
+
# Query Params
|
|
242
|
+
query_params = {}
|
|
243
|
+
|
|
244
|
+
# Header Params
|
|
245
|
+
header_params = {}
|
|
246
|
+
header_params[:accept] = 'application/json'
|
|
247
|
+
header_params[:'content-type'] = 'application/json'
|
|
248
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
249
|
+
# rubocop:enable Style/NegatedIf
|
|
250
|
+
|
|
251
|
+
post_body = nil
|
|
252
|
+
|
|
253
|
+
# rubocop:disable Metrics/BlockLength
|
|
254
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#delete_instance_configuration') do
|
|
255
|
+
@api_client.call_api(
|
|
256
|
+
:DELETE,
|
|
257
|
+
path,
|
|
258
|
+
endpoint,
|
|
259
|
+
header_params: header_params,
|
|
260
|
+
query_params: query_params,
|
|
261
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
262
|
+
body: post_body
|
|
263
|
+
)
|
|
264
|
+
end
|
|
265
|
+
# rubocop:enable Metrics/BlockLength
|
|
266
|
+
end
|
|
267
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
268
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
269
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
270
|
+
|
|
271
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
272
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
273
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
274
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# Gets the specified instance configuration
|
|
278
|
+
# @param [String] instance_configuration_id The OCID of the instance configuration.
|
|
279
|
+
# @param [Hash] opts the optional parameters
|
|
280
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
281
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
282
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstanceConfiguration InstanceConfiguration}
|
|
283
|
+
def get_instance_configuration(instance_configuration_id, opts = {})
|
|
284
|
+
logger.debug 'Calling operation ComputeManagementClient#get_instance_configuration.' if logger
|
|
285
|
+
|
|
286
|
+
raise "Missing the required parameter 'instance_configuration_id' when calling get_instance_configuration." if instance_configuration_id.nil?
|
|
287
|
+
raise "Parameter value for 'instance_configuration_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_configuration_id)
|
|
288
|
+
|
|
289
|
+
path = '/instanceConfigurations/{instanceConfigurationId}'.sub('{instanceConfigurationId}', instance_configuration_id.to_s)
|
|
290
|
+
operation_signing_strategy = :standard
|
|
291
|
+
|
|
292
|
+
# rubocop:disable Style/NegatedIf
|
|
293
|
+
# Query Params
|
|
294
|
+
query_params = {}
|
|
295
|
+
|
|
296
|
+
# Header Params
|
|
297
|
+
header_params = {}
|
|
298
|
+
header_params[:accept] = 'application/json'
|
|
299
|
+
header_params[:'content-type'] = 'application/json'
|
|
300
|
+
# rubocop:enable Style/NegatedIf
|
|
301
|
+
|
|
302
|
+
post_body = nil
|
|
303
|
+
|
|
304
|
+
# rubocop:disable Metrics/BlockLength
|
|
305
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#get_instance_configuration') do
|
|
306
|
+
@api_client.call_api(
|
|
307
|
+
:GET,
|
|
308
|
+
path,
|
|
309
|
+
endpoint,
|
|
310
|
+
header_params: header_params,
|
|
311
|
+
query_params: query_params,
|
|
312
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
313
|
+
body: post_body,
|
|
314
|
+
return_type: 'OCI::Core::Models::InstanceConfiguration'
|
|
315
|
+
)
|
|
316
|
+
end
|
|
317
|
+
# rubocop:enable Metrics/BlockLength
|
|
318
|
+
end
|
|
319
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
320
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
321
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
322
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
|
323
|
+
|
|
324
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
325
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
326
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
327
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
# Gets the specified instance pool
|
|
331
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
332
|
+
# @param [Hash] opts the optional parameters
|
|
333
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
334
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
335
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePool InstancePool}
|
|
336
|
+
def get_instance_pool(instance_pool_id, opts = {})
|
|
337
|
+
logger.debug 'Calling operation ComputeManagementClient#get_instance_pool.' if logger
|
|
338
|
+
|
|
339
|
+
raise "Missing the required parameter 'instance_pool_id' when calling get_instance_pool." if instance_pool_id.nil?
|
|
340
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
341
|
+
|
|
342
|
+
path = '/instancePools/{instancePoolId}'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
343
|
+
operation_signing_strategy = :standard
|
|
344
|
+
|
|
345
|
+
# rubocop:disable Style/NegatedIf
|
|
346
|
+
# Query Params
|
|
347
|
+
query_params = {}
|
|
348
|
+
|
|
349
|
+
# Header Params
|
|
350
|
+
header_params = {}
|
|
351
|
+
header_params[:accept] = 'application/json'
|
|
352
|
+
header_params[:'content-type'] = 'application/json'
|
|
353
|
+
# rubocop:enable Style/NegatedIf
|
|
354
|
+
|
|
355
|
+
post_body = nil
|
|
356
|
+
|
|
357
|
+
# rubocop:disable Metrics/BlockLength
|
|
358
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#get_instance_pool') do
|
|
359
|
+
@api_client.call_api(
|
|
360
|
+
:GET,
|
|
361
|
+
path,
|
|
362
|
+
endpoint,
|
|
363
|
+
header_params: header_params,
|
|
364
|
+
query_params: query_params,
|
|
365
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
366
|
+
body: post_body,
|
|
367
|
+
return_type: 'OCI::Core::Models::InstancePool'
|
|
368
|
+
)
|
|
369
|
+
end
|
|
370
|
+
# rubocop:enable Metrics/BlockLength
|
|
371
|
+
end
|
|
372
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
373
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
374
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
375
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
|
376
|
+
|
|
377
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
378
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
379
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
# Launch an instance from an instance configuration
|
|
383
|
+
#
|
|
384
|
+
# @param [String] instance_configuration_id The OCID of the instance configuration.
|
|
385
|
+
# @param [OCI::Core::Models::InstanceConfigurationInstanceDetails] instance_configuration Instance configuration Instance Details
|
|
386
|
+
# @param [Hash] opts the optional parameters
|
|
387
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
388
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
389
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
390
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
391
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
392
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
393
|
+
# may be rejected).
|
|
394
|
+
#
|
|
395
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::Instance Instance}
|
|
396
|
+
def launch_instance_configuration(instance_configuration_id, instance_configuration, opts = {})
|
|
397
|
+
logger.debug 'Calling operation ComputeManagementClient#launch_instance_configuration.' if logger
|
|
398
|
+
|
|
399
|
+
raise "Missing the required parameter 'instance_configuration_id' when calling launch_instance_configuration." if instance_configuration_id.nil?
|
|
400
|
+
raise "Missing the required parameter 'instance_configuration' when calling launch_instance_configuration." if instance_configuration.nil?
|
|
401
|
+
raise "Parameter value for 'instance_configuration_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_configuration_id)
|
|
402
|
+
|
|
403
|
+
path = '/instanceConfigurations/{instanceConfigurationId}/actions/launch'.sub('{instanceConfigurationId}', instance_configuration_id.to_s)
|
|
404
|
+
operation_signing_strategy = :standard
|
|
405
|
+
|
|
406
|
+
# rubocop:disable Style/NegatedIf
|
|
407
|
+
# Query Params
|
|
408
|
+
query_params = {}
|
|
409
|
+
|
|
410
|
+
# Header Params
|
|
411
|
+
header_params = {}
|
|
412
|
+
header_params[:accept] = 'application/json'
|
|
413
|
+
header_params[:'content-type'] = 'application/json'
|
|
414
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
415
|
+
# rubocop:enable Style/NegatedIf
|
|
416
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
417
|
+
|
|
418
|
+
post_body = @api_client.object_to_http_body(instance_configuration)
|
|
419
|
+
|
|
420
|
+
# rubocop:disable Metrics/BlockLength
|
|
421
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#launch_instance_configuration') do
|
|
422
|
+
@api_client.call_api(
|
|
423
|
+
:POST,
|
|
424
|
+
path,
|
|
425
|
+
endpoint,
|
|
426
|
+
header_params: header_params,
|
|
427
|
+
query_params: query_params,
|
|
428
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
429
|
+
body: post_body,
|
|
430
|
+
return_type: 'OCI::Core::Models::Instance'
|
|
431
|
+
)
|
|
432
|
+
end
|
|
433
|
+
# rubocop:enable Metrics/BlockLength
|
|
434
|
+
end
|
|
435
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
436
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
437
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
438
|
+
|
|
439
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
440
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
441
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
# Lists the available instanceConfigurations in the specific compartment.
|
|
445
|
+
#
|
|
446
|
+
# @param [String] compartment_id The OCID of the compartment.
|
|
447
|
+
# @param [Hash] opts the optional parameters
|
|
448
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
449
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
450
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
|
451
|
+
# \"List\" call. For important details about how pagination works, see
|
|
452
|
+
# [List Pagination](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
453
|
+
#
|
|
454
|
+
# Example: `50`
|
|
455
|
+
#
|
|
456
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
|
457
|
+
# call. For important details about how pagination works, see
|
|
458
|
+
# [List Pagination](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
459
|
+
#
|
|
460
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
461
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
462
|
+
# sort order is case sensitive.
|
|
463
|
+
#
|
|
464
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
465
|
+
# optionally filter by availability domain if the scope of the resource type is within a
|
|
466
|
+
# single availability domain. If you call one of these \"List\" operations without specifying
|
|
467
|
+
# an availability domain, the resources are grouped by availability domain, then sorted.
|
|
468
|
+
#
|
|
469
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
470
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
471
|
+
# is case sensitive.
|
|
472
|
+
#
|
|
473
|
+
# Allowed values are: ASC, DESC
|
|
474
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::InstanceConfigurationSummary InstanceConfigurationSummary}>
|
|
475
|
+
def list_instance_configurations(compartment_id, opts = {})
|
|
476
|
+
logger.debug 'Calling operation ComputeManagementClient#list_instance_configurations.' if logger
|
|
477
|
+
|
|
478
|
+
raise "Missing the required parameter 'compartment_id' when calling list_instance_configurations." if compartment_id.nil?
|
|
479
|
+
|
|
480
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
|
481
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
485
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
path = '/instanceConfigurations'
|
|
489
|
+
operation_signing_strategy = :standard
|
|
490
|
+
|
|
491
|
+
# rubocop:disable Style/NegatedIf
|
|
492
|
+
# Query Params
|
|
493
|
+
query_params = {}
|
|
494
|
+
query_params[:compartmentId] = compartment_id
|
|
495
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
496
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
497
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
498
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
499
|
+
|
|
500
|
+
# Header Params
|
|
501
|
+
header_params = {}
|
|
502
|
+
header_params[:accept] = 'application/json'
|
|
503
|
+
header_params[:'content-type'] = 'application/json'
|
|
504
|
+
# rubocop:enable Style/NegatedIf
|
|
505
|
+
|
|
506
|
+
post_body = nil
|
|
507
|
+
|
|
508
|
+
# rubocop:disable Metrics/BlockLength
|
|
509
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#list_instance_configurations') do
|
|
510
|
+
@api_client.call_api(
|
|
511
|
+
:GET,
|
|
512
|
+
path,
|
|
513
|
+
endpoint,
|
|
514
|
+
header_params: header_params,
|
|
515
|
+
query_params: query_params,
|
|
516
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
517
|
+
body: post_body,
|
|
518
|
+
return_type: 'Array<OCI::Core::Models::InstanceConfigurationSummary>'
|
|
519
|
+
)
|
|
520
|
+
end
|
|
521
|
+
# rubocop:enable Metrics/BlockLength
|
|
522
|
+
end
|
|
523
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
524
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
525
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
526
|
+
|
|
527
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
528
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
529
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
# List the instances in the specified instance pool.
|
|
533
|
+
# @param [String] compartment_id The OCID of the compartment.
|
|
534
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
535
|
+
# @param [Hash] opts the optional parameters
|
|
536
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
537
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
538
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
539
|
+
#
|
|
540
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
|
541
|
+
# \"List\" call. For important details about how pagination works, see
|
|
542
|
+
# [List Pagination](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
543
|
+
#
|
|
544
|
+
# Example: `50`
|
|
545
|
+
#
|
|
546
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
|
547
|
+
# call. For important details about how pagination works, see
|
|
548
|
+
# [List Pagination](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
549
|
+
#
|
|
550
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
551
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
552
|
+
# sort order is case sensitive.
|
|
553
|
+
#
|
|
554
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
555
|
+
# optionally filter by availability domain if the scope of the resource type is within a
|
|
556
|
+
# single availability domain. If you call one of these \"List\" operations without specifying
|
|
557
|
+
# an availability domain, the resources are grouped by availability domain, then sorted.
|
|
558
|
+
#
|
|
559
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
560
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
561
|
+
# is case sensitive.
|
|
562
|
+
#
|
|
563
|
+
# Allowed values are: ASC, DESC
|
|
564
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::InstanceSummary InstanceSummary}>
|
|
565
|
+
def list_instance_pool_instances(compartment_id, instance_pool_id, opts = {})
|
|
566
|
+
logger.debug 'Calling operation ComputeManagementClient#list_instance_pool_instances.' if logger
|
|
567
|
+
|
|
568
|
+
raise "Missing the required parameter 'compartment_id' when calling list_instance_pool_instances." if compartment_id.nil?
|
|
569
|
+
raise "Missing the required parameter 'instance_pool_id' when calling list_instance_pool_instances." if instance_pool_id.nil?
|
|
570
|
+
|
|
571
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
|
572
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
576
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
577
|
+
end
|
|
578
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
579
|
+
|
|
580
|
+
path = '/instancePools/{instancePoolId}/instances'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
581
|
+
operation_signing_strategy = :standard
|
|
582
|
+
|
|
583
|
+
# rubocop:disable Style/NegatedIf
|
|
584
|
+
# Query Params
|
|
585
|
+
query_params = {}
|
|
586
|
+
query_params[:compartmentId] = compartment_id
|
|
587
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
588
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
589
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
590
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
591
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
592
|
+
|
|
593
|
+
# Header Params
|
|
594
|
+
header_params = {}
|
|
595
|
+
header_params[:accept] = 'application/json'
|
|
596
|
+
header_params[:'content-type'] = 'application/json'
|
|
597
|
+
# rubocop:enable Style/NegatedIf
|
|
598
|
+
|
|
599
|
+
post_body = nil
|
|
600
|
+
|
|
601
|
+
# rubocop:disable Metrics/BlockLength
|
|
602
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#list_instance_pool_instances') do
|
|
603
|
+
@api_client.call_api(
|
|
604
|
+
:GET,
|
|
605
|
+
path,
|
|
606
|
+
endpoint,
|
|
607
|
+
header_params: header_params,
|
|
608
|
+
query_params: query_params,
|
|
609
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
610
|
+
body: post_body,
|
|
611
|
+
return_type: 'Array<OCI::Core::Models::InstanceSummary>'
|
|
612
|
+
)
|
|
613
|
+
end
|
|
614
|
+
# rubocop:enable Metrics/BlockLength
|
|
615
|
+
end
|
|
616
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
617
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
618
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
619
|
+
|
|
620
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
621
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
622
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
# Lists the instance pools in the specified compartment.
|
|
626
|
+
# @param [String] compartment_id The OCID of the compartment.
|
|
627
|
+
# @param [Hash] opts the optional parameters
|
|
628
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
629
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
630
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
|
631
|
+
#
|
|
632
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
|
633
|
+
# \"List\" call. For important details about how pagination works, see
|
|
634
|
+
# [List Pagination](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
635
|
+
#
|
|
636
|
+
# Example: `50`
|
|
637
|
+
#
|
|
638
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
|
639
|
+
# call. For important details about how pagination works, see
|
|
640
|
+
# [List Pagination](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
641
|
+
#
|
|
642
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
|
643
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
|
644
|
+
# sort order is case sensitive.
|
|
645
|
+
#
|
|
646
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
|
647
|
+
# optionally filter by availability domain if the scope of the resource type is within a
|
|
648
|
+
# single availability domain. If you call one of these \"List\" operations without specifying
|
|
649
|
+
# an availability domain, the resources are grouped by availability domain, then sorted.
|
|
650
|
+
#
|
|
651
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
|
652
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
|
653
|
+
# is case sensitive.
|
|
654
|
+
#
|
|
655
|
+
# Allowed values are: ASC, DESC
|
|
656
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
|
657
|
+
#
|
|
658
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::InstancePoolSummary InstancePoolSummary}>
|
|
659
|
+
def list_instance_pools(compartment_id, opts = {})
|
|
660
|
+
logger.debug 'Calling operation ComputeManagementClient#list_instance_pools.' if logger
|
|
661
|
+
|
|
662
|
+
raise "Missing the required parameter 'compartment_id' when calling list_instance_pools." if compartment_id.nil?
|
|
663
|
+
|
|
664
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
|
665
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
|
669
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
if opts[:lifecycle_state] && !OCI::Core::Models::InstancePoolSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
|
673
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::InstancePoolSummary::LIFECYCLE_STATE_ENUM.'
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
path = '/instancePools'
|
|
677
|
+
operation_signing_strategy = :standard
|
|
678
|
+
|
|
679
|
+
# rubocop:disable Style/NegatedIf
|
|
680
|
+
# Query Params
|
|
681
|
+
query_params = {}
|
|
682
|
+
query_params[:compartmentId] = compartment_id
|
|
683
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
|
684
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
|
685
|
+
query_params[:page] = opts[:page] if opts[:page]
|
|
686
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
|
687
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
|
688
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
|
689
|
+
|
|
690
|
+
# Header Params
|
|
691
|
+
header_params = {}
|
|
692
|
+
header_params[:accept] = 'application/json'
|
|
693
|
+
header_params[:'content-type'] = 'application/json'
|
|
694
|
+
# rubocop:enable Style/NegatedIf
|
|
695
|
+
|
|
696
|
+
post_body = nil
|
|
697
|
+
|
|
698
|
+
# rubocop:disable Metrics/BlockLength
|
|
699
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#list_instance_pools') do
|
|
700
|
+
@api_client.call_api(
|
|
701
|
+
:GET,
|
|
702
|
+
path,
|
|
703
|
+
endpoint,
|
|
704
|
+
header_params: header_params,
|
|
705
|
+
query_params: query_params,
|
|
706
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
707
|
+
body: post_body,
|
|
708
|
+
return_type: 'Array<OCI::Core::Models::InstancePoolSummary>'
|
|
709
|
+
)
|
|
710
|
+
end
|
|
711
|
+
# rubocop:enable Metrics/BlockLength
|
|
712
|
+
end
|
|
713
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
714
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
715
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
716
|
+
|
|
717
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
718
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
719
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
# Performs the reset (power off and power on) action on the specified instance pool,
|
|
723
|
+
# which performs the action on all the instances in the pool.
|
|
724
|
+
#
|
|
725
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
726
|
+
# @param [Hash] opts the optional parameters
|
|
727
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
728
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
729
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
730
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
731
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
732
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
733
|
+
# may be rejected).
|
|
734
|
+
#
|
|
735
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
736
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
737
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
738
|
+
#
|
|
739
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePool InstancePool}
|
|
740
|
+
def reset_instance_pool(instance_pool_id, opts = {})
|
|
741
|
+
logger.debug 'Calling operation ComputeManagementClient#reset_instance_pool.' if logger
|
|
742
|
+
|
|
743
|
+
raise "Missing the required parameter 'instance_pool_id' when calling reset_instance_pool." if instance_pool_id.nil?
|
|
744
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
745
|
+
|
|
746
|
+
path = '/instancePools/{instancePoolId}/actions/reset'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
747
|
+
operation_signing_strategy = :standard
|
|
748
|
+
|
|
749
|
+
# rubocop:disable Style/NegatedIf
|
|
750
|
+
# Query Params
|
|
751
|
+
query_params = {}
|
|
752
|
+
|
|
753
|
+
# Header Params
|
|
754
|
+
header_params = {}
|
|
755
|
+
header_params[:accept] = 'application/json'
|
|
756
|
+
header_params[:'content-type'] = 'application/json'
|
|
757
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
758
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
759
|
+
# rubocop:enable Style/NegatedIf
|
|
760
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
761
|
+
|
|
762
|
+
post_body = nil
|
|
763
|
+
|
|
764
|
+
# rubocop:disable Metrics/BlockLength
|
|
765
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#reset_instance_pool') do
|
|
766
|
+
@api_client.call_api(
|
|
767
|
+
:POST,
|
|
768
|
+
path,
|
|
769
|
+
endpoint,
|
|
770
|
+
header_params: header_params,
|
|
771
|
+
query_params: query_params,
|
|
772
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
773
|
+
body: post_body,
|
|
774
|
+
return_type: 'OCI::Core::Models::InstancePool'
|
|
775
|
+
)
|
|
776
|
+
end
|
|
777
|
+
# rubocop:enable Metrics/BlockLength
|
|
778
|
+
end
|
|
779
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
780
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
781
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
782
|
+
|
|
783
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
784
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
785
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
# Performs the softreset (ACPI shutdown and power on) action on the specified instance pool,
|
|
789
|
+
# which performs the action on all the instances in the pool.
|
|
790
|
+
#
|
|
791
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
792
|
+
# @param [Hash] opts the optional parameters
|
|
793
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
794
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
795
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
796
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
797
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
798
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
799
|
+
# may be rejected).
|
|
800
|
+
#
|
|
801
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
802
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
803
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
804
|
+
#
|
|
805
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePool InstancePool}
|
|
806
|
+
def softreset_instance_pool(instance_pool_id, opts = {})
|
|
807
|
+
logger.debug 'Calling operation ComputeManagementClient#softreset_instance_pool.' if logger
|
|
808
|
+
|
|
809
|
+
raise "Missing the required parameter 'instance_pool_id' when calling softreset_instance_pool." if instance_pool_id.nil?
|
|
810
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
811
|
+
|
|
812
|
+
path = '/instancePools/{instancePoolId}/actions/softreset'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
813
|
+
operation_signing_strategy = :standard
|
|
814
|
+
|
|
815
|
+
# rubocop:disable Style/NegatedIf
|
|
816
|
+
# Query Params
|
|
817
|
+
query_params = {}
|
|
818
|
+
|
|
819
|
+
# Header Params
|
|
820
|
+
header_params = {}
|
|
821
|
+
header_params[:accept] = 'application/json'
|
|
822
|
+
header_params[:'content-type'] = 'application/json'
|
|
823
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
824
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
825
|
+
# rubocop:enable Style/NegatedIf
|
|
826
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
827
|
+
|
|
828
|
+
post_body = nil
|
|
829
|
+
|
|
830
|
+
# rubocop:disable Metrics/BlockLength
|
|
831
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#softreset_instance_pool') do
|
|
832
|
+
@api_client.call_api(
|
|
833
|
+
:POST,
|
|
834
|
+
path,
|
|
835
|
+
endpoint,
|
|
836
|
+
header_params: header_params,
|
|
837
|
+
query_params: query_params,
|
|
838
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
839
|
+
body: post_body,
|
|
840
|
+
return_type: 'OCI::Core::Models::InstancePool'
|
|
841
|
+
)
|
|
842
|
+
end
|
|
843
|
+
# rubocop:enable Metrics/BlockLength
|
|
844
|
+
end
|
|
845
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
846
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
847
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
848
|
+
|
|
849
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
850
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
851
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
# Performs the start (power on) action on the specified instance pool,
|
|
855
|
+
# which performs the action on all the instances in the pool.
|
|
856
|
+
#
|
|
857
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
858
|
+
# @param [Hash] opts the optional parameters
|
|
859
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
860
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
861
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
862
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
863
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
864
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
865
|
+
# may be rejected).
|
|
866
|
+
#
|
|
867
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
868
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
869
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
870
|
+
#
|
|
871
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePool InstancePool}
|
|
872
|
+
def start_instance_pool(instance_pool_id, opts = {})
|
|
873
|
+
logger.debug 'Calling operation ComputeManagementClient#start_instance_pool.' if logger
|
|
874
|
+
|
|
875
|
+
raise "Missing the required parameter 'instance_pool_id' when calling start_instance_pool." if instance_pool_id.nil?
|
|
876
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
877
|
+
|
|
878
|
+
path = '/instancePools/{instancePoolId}/actions/start'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
879
|
+
operation_signing_strategy = :standard
|
|
880
|
+
|
|
881
|
+
# rubocop:disable Style/NegatedIf
|
|
882
|
+
# Query Params
|
|
883
|
+
query_params = {}
|
|
884
|
+
|
|
885
|
+
# Header Params
|
|
886
|
+
header_params = {}
|
|
887
|
+
header_params[:accept] = 'application/json'
|
|
888
|
+
header_params[:'content-type'] = 'application/json'
|
|
889
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
890
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
891
|
+
# rubocop:enable Style/NegatedIf
|
|
892
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
893
|
+
|
|
894
|
+
post_body = nil
|
|
895
|
+
|
|
896
|
+
# rubocop:disable Metrics/BlockLength
|
|
897
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#start_instance_pool') do
|
|
898
|
+
@api_client.call_api(
|
|
899
|
+
:POST,
|
|
900
|
+
path,
|
|
901
|
+
endpoint,
|
|
902
|
+
header_params: header_params,
|
|
903
|
+
query_params: query_params,
|
|
904
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
905
|
+
body: post_body,
|
|
906
|
+
return_type: 'OCI::Core::Models::InstancePool'
|
|
907
|
+
)
|
|
908
|
+
end
|
|
909
|
+
# rubocop:enable Metrics/BlockLength
|
|
910
|
+
end
|
|
911
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
912
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
913
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
914
|
+
|
|
915
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
916
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
917
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
# Performs the stop (power off) action on the specified instance pool,
|
|
921
|
+
# which performs the action on all the instances in the pool.
|
|
922
|
+
#
|
|
923
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
924
|
+
# @param [Hash] opts the optional parameters
|
|
925
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
926
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
927
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
928
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
929
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
930
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
931
|
+
# may be rejected).
|
|
932
|
+
#
|
|
933
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
934
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
935
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
936
|
+
#
|
|
937
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePool InstancePool}
|
|
938
|
+
def stop_instance_pool(instance_pool_id, opts = {})
|
|
939
|
+
logger.debug 'Calling operation ComputeManagementClient#stop_instance_pool.' if logger
|
|
940
|
+
|
|
941
|
+
raise "Missing the required parameter 'instance_pool_id' when calling stop_instance_pool." if instance_pool_id.nil?
|
|
942
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
943
|
+
|
|
944
|
+
path = '/instancePools/{instancePoolId}/actions/stop'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
945
|
+
operation_signing_strategy = :standard
|
|
946
|
+
|
|
947
|
+
# rubocop:disable Style/NegatedIf
|
|
948
|
+
# Query Params
|
|
949
|
+
query_params = {}
|
|
950
|
+
|
|
951
|
+
# Header Params
|
|
952
|
+
header_params = {}
|
|
953
|
+
header_params[:accept] = 'application/json'
|
|
954
|
+
header_params[:'content-type'] = 'application/json'
|
|
955
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
956
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
957
|
+
# rubocop:enable Style/NegatedIf
|
|
958
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
959
|
+
|
|
960
|
+
post_body = nil
|
|
961
|
+
|
|
962
|
+
# rubocop:disable Metrics/BlockLength
|
|
963
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#stop_instance_pool') do
|
|
964
|
+
@api_client.call_api(
|
|
965
|
+
:POST,
|
|
966
|
+
path,
|
|
967
|
+
endpoint,
|
|
968
|
+
header_params: header_params,
|
|
969
|
+
query_params: query_params,
|
|
970
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
971
|
+
body: post_body,
|
|
972
|
+
return_type: 'OCI::Core::Models::InstancePool'
|
|
973
|
+
)
|
|
974
|
+
end
|
|
975
|
+
# rubocop:enable Metrics/BlockLength
|
|
976
|
+
end
|
|
977
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
978
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
979
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
980
|
+
|
|
981
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
982
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
983
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
# Terminate the specified instance pool.
|
|
987
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
988
|
+
# @param [Hash] opts the optional parameters
|
|
989
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
990
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
991
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
992
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
993
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
994
|
+
#
|
|
995
|
+
# @return [Response] A Response object with data of type nil
|
|
996
|
+
def terminate_instance_pool(instance_pool_id, opts = {})
|
|
997
|
+
logger.debug 'Calling operation ComputeManagementClient#terminate_instance_pool.' if logger
|
|
998
|
+
|
|
999
|
+
raise "Missing the required parameter 'instance_pool_id' when calling terminate_instance_pool." if instance_pool_id.nil?
|
|
1000
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
1001
|
+
|
|
1002
|
+
path = '/instancePools/{instancePoolId}'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
1003
|
+
operation_signing_strategy = :standard
|
|
1004
|
+
|
|
1005
|
+
# rubocop:disable Style/NegatedIf
|
|
1006
|
+
# Query Params
|
|
1007
|
+
query_params = {}
|
|
1008
|
+
|
|
1009
|
+
# Header Params
|
|
1010
|
+
header_params = {}
|
|
1011
|
+
header_params[:accept] = 'application/json'
|
|
1012
|
+
header_params[:'content-type'] = 'application/json'
|
|
1013
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
1014
|
+
# rubocop:enable Style/NegatedIf
|
|
1015
|
+
|
|
1016
|
+
post_body = nil
|
|
1017
|
+
|
|
1018
|
+
# rubocop:disable Metrics/BlockLength
|
|
1019
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#terminate_instance_pool') do
|
|
1020
|
+
@api_client.call_api(
|
|
1021
|
+
:DELETE,
|
|
1022
|
+
path,
|
|
1023
|
+
endpoint,
|
|
1024
|
+
header_params: header_params,
|
|
1025
|
+
query_params: query_params,
|
|
1026
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
1027
|
+
body: post_body
|
|
1028
|
+
)
|
|
1029
|
+
end
|
|
1030
|
+
# rubocop:enable Metrics/BlockLength
|
|
1031
|
+
end
|
|
1032
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
1033
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
1034
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
1035
|
+
|
|
1036
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
1037
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
1038
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
# Updates the freeFormTags, definedTags, and display name of an instance configuration.
|
|
1042
|
+
# @param [String] instance_configuration_id The OCID of the instance configuration.
|
|
1043
|
+
# @param [OCI::Core::Models::UpdateInstanceConfigurationDetails] update_instance_configuration_details Updates the freeFormTags, definedTags, and display name of an instance configuration.
|
|
1044
|
+
# @param [Hash] opts the optional parameters
|
|
1045
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
1046
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
1047
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
1048
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
1049
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
1050
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
1051
|
+
# may be rejected).
|
|
1052
|
+
#
|
|
1053
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
1054
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
1055
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
1056
|
+
#
|
|
1057
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstanceConfiguration InstanceConfiguration}
|
|
1058
|
+
def update_instance_configuration(instance_configuration_id, update_instance_configuration_details, opts = {})
|
|
1059
|
+
logger.debug 'Calling operation ComputeManagementClient#update_instance_configuration.' if logger
|
|
1060
|
+
|
|
1061
|
+
raise "Missing the required parameter 'instance_configuration_id' when calling update_instance_configuration." if instance_configuration_id.nil?
|
|
1062
|
+
raise "Missing the required parameter 'update_instance_configuration_details' when calling update_instance_configuration." if update_instance_configuration_details.nil?
|
|
1063
|
+
raise "Parameter value for 'instance_configuration_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_configuration_id)
|
|
1064
|
+
|
|
1065
|
+
path = '/instanceConfigurations/{instanceConfigurationId}'.sub('{instanceConfigurationId}', instance_configuration_id.to_s)
|
|
1066
|
+
operation_signing_strategy = :standard
|
|
1067
|
+
|
|
1068
|
+
# rubocop:disable Style/NegatedIf
|
|
1069
|
+
# Query Params
|
|
1070
|
+
query_params = {}
|
|
1071
|
+
|
|
1072
|
+
# Header Params
|
|
1073
|
+
header_params = {}
|
|
1074
|
+
header_params[:accept] = 'application/json'
|
|
1075
|
+
header_params[:'content-type'] = 'application/json'
|
|
1076
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
1077
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
1078
|
+
# rubocop:enable Style/NegatedIf
|
|
1079
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
1080
|
+
|
|
1081
|
+
post_body = @api_client.object_to_http_body(update_instance_configuration_details)
|
|
1082
|
+
|
|
1083
|
+
# rubocop:disable Metrics/BlockLength
|
|
1084
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#update_instance_configuration') do
|
|
1085
|
+
@api_client.call_api(
|
|
1086
|
+
:PUT,
|
|
1087
|
+
path,
|
|
1088
|
+
endpoint,
|
|
1089
|
+
header_params: header_params,
|
|
1090
|
+
query_params: query_params,
|
|
1091
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
1092
|
+
body: post_body,
|
|
1093
|
+
return_type: 'OCI::Core::Models::InstanceConfiguration'
|
|
1094
|
+
)
|
|
1095
|
+
end
|
|
1096
|
+
# rubocop:enable Metrics/BlockLength
|
|
1097
|
+
end
|
|
1098
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
1099
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
1100
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
1101
|
+
|
|
1102
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
1103
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
1104
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
# Update the specified instance pool.
|
|
1108
|
+
# The OCID of the instance pool remains the same.
|
|
1109
|
+
#
|
|
1110
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
|
1111
|
+
# @param [OCI::Core::Models::UpdateInstancePoolDetails] update_instance_pool_details Update instance pool configuration
|
|
1112
|
+
# @param [Hash] opts the optional parameters
|
|
1113
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
1114
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
1115
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
1116
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
1117
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
1118
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
1119
|
+
# may be rejected).
|
|
1120
|
+
#
|
|
1121
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
1122
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
1123
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
1124
|
+
#
|
|
1125
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePool InstancePool}
|
|
1126
|
+
def update_instance_pool(instance_pool_id, update_instance_pool_details, opts = {})
|
|
1127
|
+
logger.debug 'Calling operation ComputeManagementClient#update_instance_pool.' if logger
|
|
1128
|
+
|
|
1129
|
+
raise "Missing the required parameter 'instance_pool_id' when calling update_instance_pool." if instance_pool_id.nil?
|
|
1130
|
+
raise "Missing the required parameter 'update_instance_pool_details' when calling update_instance_pool." if update_instance_pool_details.nil?
|
|
1131
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
|
1132
|
+
|
|
1133
|
+
path = '/instancePools/{instancePoolId}'.sub('{instancePoolId}', instance_pool_id.to_s)
|
|
1134
|
+
operation_signing_strategy = :standard
|
|
1135
|
+
|
|
1136
|
+
# rubocop:disable Style/NegatedIf
|
|
1137
|
+
# Query Params
|
|
1138
|
+
query_params = {}
|
|
1139
|
+
|
|
1140
|
+
# Header Params
|
|
1141
|
+
header_params = {}
|
|
1142
|
+
header_params[:accept] = 'application/json'
|
|
1143
|
+
header_params[:'content-type'] = 'application/json'
|
|
1144
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
1145
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
1146
|
+
# rubocop:enable Style/NegatedIf
|
|
1147
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
1148
|
+
|
|
1149
|
+
post_body = @api_client.object_to_http_body(update_instance_pool_details)
|
|
1150
|
+
|
|
1151
|
+
# rubocop:disable Metrics/BlockLength
|
|
1152
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#update_instance_pool') do
|
|
1153
|
+
@api_client.call_api(
|
|
1154
|
+
:PUT,
|
|
1155
|
+
path,
|
|
1156
|
+
endpoint,
|
|
1157
|
+
header_params: header_params,
|
|
1158
|
+
query_params: query_params,
|
|
1159
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
1160
|
+
body: post_body,
|
|
1161
|
+
return_type: 'OCI::Core::Models::InstancePool'
|
|
1162
|
+
)
|
|
1163
|
+
end
|
|
1164
|
+
# rubocop:enable Metrics/BlockLength
|
|
1165
|
+
end
|
|
1166
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
1167
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
1168
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
1169
|
+
|
|
1170
|
+
private
|
|
1171
|
+
|
|
1172
|
+
def applicable_retry_config(opts = {})
|
|
1173
|
+
return @retry_config unless opts.key?(:retry_config)
|
|
1174
|
+
|
|
1175
|
+
opts[:retry_config]
|
|
1176
|
+
end
|
|
1177
|
+
end
|
|
1178
|
+
end
|
|
1179
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|