oci 2.115.1__py3-none-any.whl → 2.116.0__py3-none-any.whl
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.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +36 -36
- oci/ai_speech/ai_service_speech_client.py +9 -9
- oci/ai_speech/models/__init__.py +4 -0
- oci/ai_speech/models/create_transcription_job_details.py +4 -4
- oci/ai_speech/models/diarization.py +103 -0
- oci/ai_speech/models/transcription_job.py +6 -6
- oci/ai_speech/models/transcription_job_summary.py +6 -6
- oci/ai_speech/models/transcription_model_details.py +29 -2
- oci/ai_speech/models/transcription_settings.py +68 -0
- oci/ai_speech/models/update_transcription_job_details.py +4 -4
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +18 -18
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +19 -19
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +521 -47
- oci/bds/bds_client_composite_operations.py +123 -0
- oci/bds/models/__init__.py +14 -0
- oci/bds/models/certificate_service_info_details.py +72 -0
- oci/bds/models/certificate_service_info_summary.py +206 -0
- oci/bds/models/disable_certificate_details.py +103 -0
- oci/bds/models/enable_certificate_details.py +196 -0
- oci/bds/models/host_cert_details.py +134 -0
- oci/bds/models/host_specific_certificate_details.py +150 -0
- oci/bds/models/renew_certificate_details.py +196 -0
- oci/bds/models/work_request.py +7 -3
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +1480 -210
- oci/core/compute_client_composite_operations.py +195 -0
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +42 -0
- oci/core/models/capacity_source.py +101 -0
- oci/core/models/change_compute_capacity_topology_compartment_details.py +78 -0
- oci/core/models/compute_bare_metal_host.py +458 -0
- oci/core/models/compute_bare_metal_host_collection.py +72 -0
- oci/core/models/compute_bare_metal_host_summary.py +422 -0
- oci/core/models/compute_capacity_topology.py +425 -0
- oci/core/models/compute_capacity_topology_collection.py +72 -0
- oci/core/models/compute_capacity_topology_summary.py +370 -0
- oci/core/models/compute_hpc_island.py +267 -0
- oci/core/models/compute_hpc_island_collection.py +72 -0
- oci/core/models/compute_hpc_island_summary.py +251 -0
- oci/core/models/compute_network_block.py +302 -0
- oci/core/models/compute_network_block_collection.py +72 -0
- oci/core/models/compute_network_block_summary.py +286 -0
- oci/core/models/create_capacity_source_details.py +89 -0
- oci/core/models/create_compute_capacity_topology_details.py +253 -0
- oci/core/models/create_dedicated_capacity_source_details.py +85 -0
- oci/core/models/dedicated_capacity_source.py +86 -0
- oci/core/models/update_capacity_source_details.py +89 -0
- oci/core/models/update_compute_capacity_topology_details.py +183 -0
- oci/core/models/update_dedicated_capacity_source_details.py +50 -0
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +141 -141
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +252 -252
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +320 -320
- oci/database_management/db_management_client.py +182 -182
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +6 -6
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +23 -23
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +25 -25
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/golden_gate/golden_gate_client.py +57 -57
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +20355 -6173
- oci/identity_domains/models/__init__.py +216 -0
- oci/identity_domains/models/app_extension_radius_app_app.py +55 -0
- oci/identity_domains/models/approval_workflow.py +832 -0
- oci/identity_domains/models/approval_workflow_approval_workflow_steps.py +294 -0
- oci/identity_domains/models/approval_workflow_assignment.py +771 -0
- oci/identity_domains/models/approval_workflow_assignment_approval_workflow.py +318 -0
- oci/identity_domains/models/approval_workflow_assignment_assigned_to.py +318 -0
- oci/identity_domains/models/approval_workflow_assignments.py +196 -0
- oci/identity_domains/models/approval_workflow_max_duration.py +185 -0
- oci/identity_domains/models/approval_workflow_step.py +929 -0
- oci/identity_domains/models/approval_workflow_step_approvers.py +294 -0
- oci/identity_domains/models/approval_workflow_steps.py +196 -0
- oci/identity_domains/models/approval_workflows.py +196 -0
- oci/identity_domains/models/authentication_factors_remover.py +51 -2
- oci/identity_domains/models/branding_setting.py +1556 -0
- oci/identity_domains/models/branding_settings.py +196 -0
- oci/identity_domains/models/branding_settings_company_names.py +131 -0
- oci/identity_domains/models/branding_settings_default_company_names.py +143 -0
- oci/identity_domains/models/branding_settings_default_images.py +188 -0
- oci/identity_domains/models/branding_settings_default_login_texts.py +143 -0
- oci/identity_domains/models/branding_settings_images.py +176 -0
- oci/identity_domains/models/branding_settings_login_texts.py +131 -0
- oci/identity_domains/models/cloud_gate.py +1239 -0
- oci/identity_domains/models/cloud_gate_ext_mappings.py +610 -0
- oci/identity_domains/models/cloud_gate_ext_servers.py +296 -0
- oci/identity_domains/models/cloud_gate_ext_upstream_server_groups.py +316 -0
- oci/identity_domains/models/cloud_gate_ext_upstream_servers.py +426 -0
- oci/identity_domains/models/cloud_gate_mapping.py +1068 -0
- oci/identity_domains/models/cloud_gate_mapping_cloud_gate.py +153 -0
- oci/identity_domains/models/cloud_gate_mapping_gateway_app.py +204 -0
- oci/identity_domains/models/cloud_gate_mapping_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_mapping_server.py +153 -0
- oci/identity_domains/models/cloud_gate_mapping_upstream_server_group.py +217 -0
- oci/identity_domains/models/cloud_gate_mappings.py +196 -0
- oci/identity_domains/models/cloud_gate_oauth_client.py +208 -0
- oci/identity_domains/models/cloud_gate_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_server.py +1042 -0
- oci/identity_domains/models/cloud_gate_server_cloud_gate.py +153 -0
- oci/identity_domains/models/cloud_gate_server_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_servers.py +196 -0
- oci/identity_domains/models/cloud_gates.py +196 -0
- oci/identity_domains/models/condition.py +1063 -0
- oci/identity_domains/models/condition_search_request.py +364 -0
- oci/identity_domains/models/conditions.py +196 -0
- oci/identity_domains/models/defined_tags.py +2 -0
- oci/identity_domains/models/extension_social_identity_provider.py +55 -0
- oci/identity_domains/models/freeform_tags.py +2 -0
- oci/identity_domains/models/identity_provider_relay_idp_param_mappings.py +159 -0
- oci/identity_domains/models/me_password_changer.py +2 -2
- oci/identity_domains/models/my_authentication_factors_remover.py +51 -2
- oci/identity_domains/models/my_completed_approval.py +1146 -0
- oci/identity_domains/models/my_completed_approvals.py +196 -0
- oci/identity_domains/models/my_pending_approval.py +1146 -0
- oci/identity_domains/models/my_pending_approvals.py +196 -0
- oci/identity_domains/models/my_request.py +217 -2
- oci/identity_domains/models/my_request_approval_details.py +398 -0
- oci/identity_domains/models/my_request_requesting.py +53 -0
- oci/identity_domains/models/network_perimeter.py +852 -0
- oci/identity_domains/models/network_perimeter_ip_addresses.py +228 -0
- oci/identity_domains/models/network_perimeter_search_request.py +364 -0
- oci/identity_domains/models/network_perimeters.py +196 -0
- oci/identity_domains/models/notification_setting.py +1038 -0
- oci/identity_domains/models/notification_settings.py +196 -0
- oci/identity_domains/models/notification_settings_event_settings.py +143 -0
- oci/identity_domains/models/notification_settings_from_email_address.py +278 -0
- oci/identity_domains/models/notification_settings_search_request.py +171 -0
- oci/identity_domains/models/o_auth_client_certificate.py +1187 -0
- oci/identity_domains/models/o_auth_client_certificate_search_request.py +364 -0
- oci/identity_domains/models/o_auth_client_certificates.py +196 -0
- oci/identity_domains/models/o_auth_partner_certificate.py +1187 -0
- oci/identity_domains/models/o_auth_partner_certificate_search_request.py +364 -0
- oci/identity_domains/models/o_auth_partner_certificates.py +196 -0
- oci/identity_domains/models/policies.py +196 -0
- oci/identity_domains/models/policy.py +979 -0
- oci/identity_domains/models/policy_policy_type.py +150 -0
- oci/identity_domains/models/policy_rules.py +247 -0
- oci/identity_domains/models/policy_search_request.py +364 -0
- oci/identity_domains/models/rule.py +1110 -0
- oci/identity_domains/models/rule_condition_group.py +270 -0
- oci/identity_domains/models/rule_policy_type.py +150 -0
- oci/identity_domains/models/rule_return.py +188 -0
- oci/identity_domains/models/rule_search_request.py +364 -0
- oci/identity_domains/models/rules.py +196 -0
- oci/identity_domains/models/schema.py +537 -0
- oci/identity_domains/models/schema_attributes.py +4165 -0
- oci/identity_domains/models/schema_idcs_complex_attribute_name_mappings.py +188 -0
- oci/identity_domains/models/schema_idcs_csv_attribute_name_mappings.py +433 -0
- oci/identity_domains/models/schema_localized_canonical_values.py +188 -0
- oci/identity_domains/models/schema_localized_display_name.py +147 -0
- oci/identity_domains/models/schema_referenced_resource_type_unique_attribute_name_mappings.py +139 -0
- oci/identity_domains/models/schema_resolve_value_using_resource_type.py +139 -0
- oci/identity_domains/models/schema_search_request.py +329 -0
- oci/identity_domains/models/schema_sub_attributes.py +3209 -0
- oci/identity_domains/models/schemas.py +196 -0
- oci/identity_domains/models/self_registration_profile.py +1636 -0
- oci/identity_domains/models/self_registration_profile_after_submit_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_consent_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_default_groups.py +190 -0
- oci/identity_domains/models/self_registration_profile_display_name.py +194 -0
- oci/identity_domains/models/self_registration_profile_email_template.py +202 -0
- oci/identity_domains/models/self_registration_profile_footer_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_header_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_search_request.py +364 -0
- oci/identity_domains/models/self_registration_profile_user_attributes.py +286 -0
- oci/identity_domains/models/self_registration_profiles.py +196 -0
- oci/identity_domains/models/setting.py +3110 -0
- oci/identity_domains/models/settings.py +196 -0
- oci/identity_domains/models/settings_certificate_validation.py +566 -0
- oci/identity_domains/models/settings_cloud_gate_cors_settings.py +318 -0
- oci/identity_domains/models/settings_company_names.py +135 -0
- oci/identity_domains/models/settings_default_company_names.py +143 -0
- oci/identity_domains/models/settings_default_images.py +188 -0
- oci/identity_domains/models/settings_default_login_texts.py +145 -0
- oci/identity_domains/models/settings_images.py +176 -0
- oci/identity_domains/models/settings_login_texts.py +137 -0
- oci/identity_domains/models/settings_purge_configs.py +139 -0
- oci/identity_domains/models/settings_search_request.py +171 -0
- oci/identity_domains/models/settings_tenant_custom_claims.py +438 -0
- oci/identity_domains/models/user_ext_risk_scores.py +4 -0
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +23 -23
- oci/log_analytics/log_analytics_client.py +192 -192
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +23 -23
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/media_services/media_services_client.py +48 -48
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +13 -13
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/esxi_host_client.py +6 -6
- oci/ocvp/sddc_client.py +13 -13
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +56 -56
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +11 -11
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +9 -9
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +6 -6
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +159 -159
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/__init__.py +14 -0
- oci/psql/models/__init__.py +166 -0
- oci/psql/models/backup.py +645 -0
- oci/psql/models/backup_collection.py +72 -0
- oci/psql/models/backup_policy.py +156 -0
- oci/psql/models/backup_source_details.py +113 -0
- oci/psql/models/backup_summary.py +481 -0
- oci/psql/models/change_backup_compartment_details.py +74 -0
- oci/psql/models/change_configuration_compartment_details.py +74 -0
- oci/psql/models/change_db_system_compartment_details.py +78 -0
- oci/psql/models/config_overrides.py +103 -0
- oci/psql/models/config_params.py +289 -0
- oci/psql/models/configuration.py +532 -0
- oci/psql/models/configuration_collection.py +72 -0
- oci/psql/models/configuration_details.py +72 -0
- oci/psql/models/configuration_summary.py +450 -0
- oci/psql/models/connection_details.py +134 -0
- oci/psql/models/create_backup_details.py +262 -0
- oci/psql/models/create_configuration_details.py +384 -0
- oci/psql/models/create_db_instance_details.py +136 -0
- oci/psql/models/create_db_system_details.py +585 -0
- oci/psql/models/credentials.py +100 -0
- oci/psql/models/daily_backup_policy.py +89 -0
- oci/psql/models/db_configuration_override_collection.py +72 -0
- oci/psql/models/db_instance.py +325 -0
- oci/psql/models/db_instance_endpoint.py +99 -0
- oci/psql/models/db_system.py +827 -0
- oci/psql/models/db_system_collection.py +72 -0
- oci/psql/models/db_system_details.py +103 -0
- oci/psql/models/db_system_summary.py +574 -0
- oci/psql/models/default_config_params.py +258 -0
- oci/psql/models/default_configuration.py +406 -0
- oci/psql/models/default_configuration_collection.py +72 -0
- oci/psql/models/default_configuration_details.py +72 -0
- oci/psql/models/default_configuration_summary.py +320 -0
- oci/psql/models/endpoint.py +134 -0
- oci/psql/models/failover_db_system_details.py +107 -0
- oci/psql/models/management_policy.py +99 -0
- oci/psql/models/management_policy_details.py +99 -0
- oci/psql/models/monthly_backup_policy.py +122 -0
- oci/psql/models/network_details.py +136 -0
- oci/psql/models/none_backup_policy.py +58 -0
- oci/psql/models/none_source_details.py +51 -0
- oci/psql/models/oci_optimized_storage_details.py +95 -0
- oci/psql/models/password_details.py +110 -0
- oci/psql/models/patch_db_system_details.py +74 -0
- oci/psql/models/patch_insert_instruction.py +171 -0
- oci/psql/models/patch_instruction.py +184 -0
- oci/psql/models/patch_merge_instruction.py +97 -0
- oci/psql/models/patch_move_instruction.py +147 -0
- oci/psql/models/patch_prohibit_instruction.py +100 -0
- oci/psql/models/patch_remove_instruction.py +59 -0
- oci/psql/models/patch_replace_instruction.py +92 -0
- oci/psql/models/patch_require_instruction.py +99 -0
- oci/psql/models/plain_text_password_details.py +82 -0
- oci/psql/models/primary_db_instance_details.py +72 -0
- oci/psql/models/reset_master_user_password_details.py +69 -0
- oci/psql/models/restart_db_instance_in_db_system_details.py +119 -0
- oci/psql/models/restore_db_system_details.py +105 -0
- oci/psql/models/shape_collection.py +72 -0
- oci/psql/models/shape_summary.py +165 -0
- oci/psql/models/source_details.py +109 -0
- oci/psql/models/storage_details.py +161 -0
- oci/psql/models/update_backup_details.py +200 -0
- oci/psql/models/update_configuration_details.py +103 -0
- oci/psql/models/update_db_config_params.py +121 -0
- oci/psql/models/update_db_system_db_instance_details.py +103 -0
- oci/psql/models/update_db_system_details.py +250 -0
- oci/psql/models/update_storage_details_params.py +74 -0
- oci/psql/models/vault_secret_password_details.py +113 -0
- oci/psql/models/weekly_backup_policy.py +157 -0
- oci/psql/models/work_request.py +412 -0
- oci/psql/models/work_request_error.py +136 -0
- oci/psql/models/work_request_error_collection.py +72 -0
- oci/psql/models/work_request_log_entry.py +103 -0
- oci/psql/models/work_request_log_entry_collection.py +72 -0
- oci/psql/models/work_request_resource.py +228 -0
- oci/psql/models/work_request_summary.py +412 -0
- oci/psql/models/work_request_summary_collection.py +72 -0
- oci/psql/postgresql_client.py +3980 -0
- oci/psql/postgresql_client_composite_operations.py +807 -0
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +23 -23
- oci/redis/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +58 -58
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +19 -19
- oci/vault/vaults_client.py +11 -11
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.115.1.dist-info → oci-2.116.0.dist-info}/METADATA +1 -1
- {oci-2.115.1.dist-info → oci-2.116.0.dist-info}/RECORD +478 -259
- {oci-2.115.1.dist-info → oci-2.116.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.115.1.dist-info → oci-2.116.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.115.1.dist-info → oci-2.116.0.dist-info}/WHEEL +0 -0
- {oci-2.115.1.dist-info → oci-2.116.0.dist-info}/top_level.txt +0 -0
oci/core/compute_client.py
CHANGED
@@ -164,7 +164,7 @@ class ComputeClient(object):
|
|
164
164
|
:rtype: :class:`~oci.response.Response`
|
165
165
|
|
166
166
|
:example:
|
167
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
167
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/accept_shielded_integrity_policy.py.html>`__ to see an example of how to use accept_shielded_integrity_policy API.
|
168
168
|
"""
|
169
169
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
170
170
|
required_arguments = ['instanceId']
|
@@ -268,7 +268,7 @@ class ComputeClient(object):
|
|
268
268
|
:rtype: :class:`~oci.response.Response`
|
269
269
|
|
270
270
|
:example:
|
271
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
271
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/add_image_shape_compatibility_entry.py.html>`__ to see an example of how to use add_image_shape_compatibility_entry API.
|
272
272
|
"""
|
273
273
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
274
274
|
required_arguments = ['imageId', 'shapeName']
|
@@ -369,7 +369,7 @@ class ComputeClient(object):
|
|
369
369
|
:rtype: :class:`~oci.response.Response`
|
370
370
|
|
371
371
|
:example:
|
372
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
372
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/attach_boot_volume.py.html>`__ to see an example of how to use attach_boot_volume API.
|
373
373
|
"""
|
374
374
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
375
375
|
required_arguments = []
|
@@ -464,7 +464,7 @@ class ComputeClient(object):
|
|
464
464
|
:rtype: :class:`~oci.response.Response`
|
465
465
|
|
466
466
|
:example:
|
467
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
467
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/attach_vnic.py.html>`__ to see an example of how to use attach_vnic API.
|
468
468
|
"""
|
469
469
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
470
470
|
required_arguments = []
|
@@ -555,7 +555,7 @@ class ComputeClient(object):
|
|
555
555
|
:rtype: :class:`~oci.response.Response`
|
556
556
|
|
557
557
|
:example:
|
558
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
558
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/attach_volume.py.html>`__ to see an example of how to use attach_volume API.
|
559
559
|
"""
|
560
560
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
561
561
|
required_arguments = []
|
@@ -662,7 +662,7 @@ class ComputeClient(object):
|
|
662
662
|
:rtype: :class:`~oci.response.Response`
|
663
663
|
|
664
664
|
:example:
|
665
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
665
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/capture_console_history.py.html>`__ to see an example of how to use capture_console_history API.
|
666
666
|
"""
|
667
667
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
668
668
|
required_arguments = []
|
@@ -769,7 +769,7 @@ class ComputeClient(object):
|
|
769
769
|
:rtype: :class:`~oci.response.Response`
|
770
770
|
|
771
771
|
:example:
|
772
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
772
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/change_compute_capacity_reservation_compartment.py.html>`__ to see an example of how to use change_compute_capacity_reservation_compartment API.
|
773
773
|
"""
|
774
774
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
775
775
|
required_arguments = ['capacityReservationId']
|
@@ -843,6 +843,130 @@ class ComputeClient(object):
|
|
843
843
|
api_reference_link=api_reference_link,
|
844
844
|
required_arguments=required_arguments)
|
845
845
|
|
846
|
+
def change_compute_capacity_topology_compartment(self, compute_capacity_topology_id, change_compute_capacity_topology_compartment_details, **kwargs):
|
847
|
+
"""
|
848
|
+
Moves a compute capacity topology into a different compartment. For information about moving resources between
|
849
|
+
compartments, see `Moving Resources to a Different Compartment`__.
|
850
|
+
|
851
|
+
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
|
852
|
+
|
853
|
+
|
854
|
+
:param str compute_capacity_topology_id: (required)
|
855
|
+
The `OCID`__ of the compute capacity topology.
|
856
|
+
|
857
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
858
|
+
|
859
|
+
:param oci.core.models.ChangeComputeCapacityTopologyCompartmentDetails change_compute_capacity_topology_compartment_details: (required)
|
860
|
+
The configuration details for the move operation.
|
861
|
+
|
862
|
+
:param str if_match: (optional)
|
863
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
864
|
+
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
865
|
+
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
866
|
+
|
867
|
+
:param str opc_request_id: (optional)
|
868
|
+
Unique identifier for the request.
|
869
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
870
|
+
|
871
|
+
:param str opc_retry_token: (optional)
|
872
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
873
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
874
|
+
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
875
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
876
|
+
may be rejected).
|
877
|
+
|
878
|
+
:param obj retry_strategy: (optional)
|
879
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
880
|
+
|
881
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
882
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
883
|
+
|
884
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
885
|
+
|
886
|
+
:param bool allow_control_chars: (optional)
|
887
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
888
|
+
By default, the response will not allow control characters in strings
|
889
|
+
|
890
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
891
|
+
:rtype: :class:`~oci.response.Response`
|
892
|
+
|
893
|
+
:example:
|
894
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/change_compute_capacity_topology_compartment.py.html>`__ to see an example of how to use change_compute_capacity_topology_compartment API.
|
895
|
+
"""
|
896
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
897
|
+
required_arguments = ['computeCapacityTopologyId']
|
898
|
+
resource_path = "/computeCapacityTopologies/{computeCapacityTopologyId}/actions/changeCompartment"
|
899
|
+
method = "POST"
|
900
|
+
operation_name = "change_compute_capacity_topology_compartment"
|
901
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityTopology/ChangeComputeCapacityTopologyCompartment"
|
902
|
+
|
903
|
+
# Don't accept unknown kwargs
|
904
|
+
expected_kwargs = [
|
905
|
+
"allow_control_chars",
|
906
|
+
"retry_strategy",
|
907
|
+
"if_match",
|
908
|
+
"opc_request_id",
|
909
|
+
"opc_retry_token"
|
910
|
+
]
|
911
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
912
|
+
if extra_kwargs:
|
913
|
+
raise ValueError(
|
914
|
+
f"change_compute_capacity_topology_compartment got unknown kwargs: {extra_kwargs!r}")
|
915
|
+
|
916
|
+
path_params = {
|
917
|
+
"computeCapacityTopologyId": compute_capacity_topology_id
|
918
|
+
}
|
919
|
+
|
920
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
921
|
+
|
922
|
+
for (k, v) in six.iteritems(path_params):
|
923
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
924
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
925
|
+
|
926
|
+
header_params = {
|
927
|
+
"accept": "application/json",
|
928
|
+
"content-type": "application/json",
|
929
|
+
"if-match": kwargs.get("if_match", missing),
|
930
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
931
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
932
|
+
}
|
933
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
934
|
+
|
935
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
936
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
937
|
+
client_retry_strategy=self.retry_strategy
|
938
|
+
)
|
939
|
+
if retry_strategy is None:
|
940
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
941
|
+
|
942
|
+
if retry_strategy:
|
943
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
944
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
945
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
946
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
947
|
+
return retry_strategy.make_retrying_call(
|
948
|
+
self.base_client.call_api,
|
949
|
+
resource_path=resource_path,
|
950
|
+
method=method,
|
951
|
+
path_params=path_params,
|
952
|
+
header_params=header_params,
|
953
|
+
body=change_compute_capacity_topology_compartment_details,
|
954
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
955
|
+
operation_name=operation_name,
|
956
|
+
api_reference_link=api_reference_link,
|
957
|
+
required_arguments=required_arguments)
|
958
|
+
else:
|
959
|
+
return self.base_client.call_api(
|
960
|
+
resource_path=resource_path,
|
961
|
+
method=method,
|
962
|
+
path_params=path_params,
|
963
|
+
header_params=header_params,
|
964
|
+
body=change_compute_capacity_topology_compartment_details,
|
965
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
966
|
+
operation_name=operation_name,
|
967
|
+
api_reference_link=api_reference_link,
|
968
|
+
required_arguments=required_arguments)
|
969
|
+
|
846
970
|
def change_compute_cluster_compartment(self, compute_cluster_id, change_compute_cluster_compartment_details, **kwargs):
|
847
971
|
"""
|
848
972
|
Moves a compute cluster into a different compartment within the same tenancy.
|
@@ -898,7 +1022,7 @@ class ComputeClient(object):
|
|
898
1022
|
:rtype: :class:`~oci.response.Response`
|
899
1023
|
|
900
1024
|
:example:
|
901
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1025
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/change_compute_cluster_compartment.py.html>`__ to see an example of how to use change_compute_cluster_compartment API.
|
902
1026
|
"""
|
903
1027
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
904
1028
|
required_arguments = ['computeClusterId']
|
@@ -1019,7 +1143,7 @@ class ComputeClient(object):
|
|
1019
1143
|
:rtype: :class:`~oci.response.Response`
|
1020
1144
|
|
1021
1145
|
:example:
|
1022
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1146
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/change_compute_image_capability_schema_compartment.py.html>`__ to see an example of how to use change_compute_image_capability_schema_compartment API.
|
1023
1147
|
"""
|
1024
1148
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1025
1149
|
required_arguments = ['computeImageCapabilitySchemaId']
|
@@ -1138,7 +1262,7 @@ class ComputeClient(object):
|
|
1138
1262
|
:rtype: :class:`~oci.response.Response`
|
1139
1263
|
|
1140
1264
|
:example:
|
1141
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1265
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/change_dedicated_vm_host_compartment.py.html>`__ to see an example of how to use change_dedicated_vm_host_compartment API.
|
1142
1266
|
"""
|
1143
1267
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1144
1268
|
required_arguments = ['dedicatedVmHostId']
|
@@ -1261,7 +1385,7 @@ class ComputeClient(object):
|
|
1261
1385
|
:rtype: :class:`~oci.response.Response`
|
1262
1386
|
|
1263
1387
|
:example:
|
1264
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1388
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/change_image_compartment.py.html>`__ to see an example of how to use change_image_compartment API.
|
1265
1389
|
"""
|
1266
1390
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1267
1391
|
required_arguments = ['imageId']
|
@@ -1389,7 +1513,7 @@ class ComputeClient(object):
|
|
1389
1513
|
:rtype: :class:`~oci.response.Response`
|
1390
1514
|
|
1391
1515
|
:example:
|
1392
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1516
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/change_instance_compartment.py.html>`__ to see an example of how to use change_instance_compartment API.
|
1393
1517
|
"""
|
1394
1518
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1395
1519
|
required_arguments = ['instanceId']
|
@@ -1494,7 +1618,7 @@ class ComputeClient(object):
|
|
1494
1618
|
:rtype: :class:`~oci.response.Response`
|
1495
1619
|
|
1496
1620
|
:example:
|
1497
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1621
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_app_catalog_subscription.py.html>`__ to see an example of how to use create_app_catalog_subscription API.
|
1498
1622
|
"""
|
1499
1623
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1500
1624
|
required_arguments = []
|
@@ -1596,7 +1720,7 @@ class ComputeClient(object):
|
|
1596
1720
|
:rtype: :class:`~oci.response.Response`
|
1597
1721
|
|
1598
1722
|
:example:
|
1599
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1723
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_compute_capacity_report.py.html>`__ to see an example of how to use create_compute_capacity_report API.
|
1600
1724
|
"""
|
1601
1725
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1602
1726
|
required_arguments = []
|
@@ -1703,7 +1827,7 @@ class ComputeClient(object):
|
|
1703
1827
|
:rtype: :class:`~oci.response.Response`
|
1704
1828
|
|
1705
1829
|
:example:
|
1706
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1830
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_compute_capacity_reservation.py.html>`__ to see an example of how to use create_compute_capacity_reservation API.
|
1707
1831
|
"""
|
1708
1832
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1709
1833
|
required_arguments = []
|
@@ -1765,6 +1889,110 @@ class ComputeClient(object):
|
|
1765
1889
|
api_reference_link=api_reference_link,
|
1766
1890
|
required_arguments=required_arguments)
|
1767
1891
|
|
1892
|
+
def create_compute_capacity_topology(self, create_compute_capacity_topology_details, **kwargs):
|
1893
|
+
"""
|
1894
|
+
Creates a new compute capacity topology in the specified compartment and availability domain.
|
1895
|
+
|
1896
|
+
Compute capacity topologies provide the RDMA network topology of your bare metal hosts so that you can launch
|
1897
|
+
instances on your bare metal hosts with targeted network locations.
|
1898
|
+
|
1899
|
+
Compute capacity topologies report the health status of your bare metal hosts.
|
1900
|
+
|
1901
|
+
|
1902
|
+
:param oci.core.models.CreateComputeCapacityTopologyDetails create_compute_capacity_topology_details: (required)
|
1903
|
+
Details for creating a new compute capacity topology.
|
1904
|
+
|
1905
|
+
:param str opc_request_id: (optional)
|
1906
|
+
Unique identifier for the request.
|
1907
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
1908
|
+
|
1909
|
+
:param str opc_retry_token: (optional)
|
1910
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1911
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1912
|
+
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
1913
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1914
|
+
may be rejected).
|
1915
|
+
|
1916
|
+
:param obj retry_strategy: (optional)
|
1917
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1918
|
+
|
1919
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1920
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1921
|
+
|
1922
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1923
|
+
|
1924
|
+
:param bool allow_control_chars: (optional)
|
1925
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1926
|
+
By default, the response will not allow control characters in strings
|
1927
|
+
|
1928
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ComputeCapacityTopology`
|
1929
|
+
:rtype: :class:`~oci.response.Response`
|
1930
|
+
|
1931
|
+
:example:
|
1932
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_compute_capacity_topology.py.html>`__ to see an example of how to use create_compute_capacity_topology API.
|
1933
|
+
"""
|
1934
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1935
|
+
required_arguments = []
|
1936
|
+
resource_path = "/computeCapacityTopologies"
|
1937
|
+
method = "POST"
|
1938
|
+
operation_name = "create_compute_capacity_topology"
|
1939
|
+
api_reference_link = ""
|
1940
|
+
|
1941
|
+
# Don't accept unknown kwargs
|
1942
|
+
expected_kwargs = [
|
1943
|
+
"allow_control_chars",
|
1944
|
+
"retry_strategy",
|
1945
|
+
"opc_request_id",
|
1946
|
+
"opc_retry_token"
|
1947
|
+
]
|
1948
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1949
|
+
if extra_kwargs:
|
1950
|
+
raise ValueError(
|
1951
|
+
f"create_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}")
|
1952
|
+
|
1953
|
+
header_params = {
|
1954
|
+
"accept": "application/json",
|
1955
|
+
"content-type": "application/json",
|
1956
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1957
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1958
|
+
}
|
1959
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1960
|
+
|
1961
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1962
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1963
|
+
client_retry_strategy=self.retry_strategy
|
1964
|
+
)
|
1965
|
+
if retry_strategy is None:
|
1966
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1967
|
+
|
1968
|
+
if retry_strategy:
|
1969
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1970
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1971
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1972
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1973
|
+
return retry_strategy.make_retrying_call(
|
1974
|
+
self.base_client.call_api,
|
1975
|
+
resource_path=resource_path,
|
1976
|
+
method=method,
|
1977
|
+
header_params=header_params,
|
1978
|
+
body=create_compute_capacity_topology_details,
|
1979
|
+
response_type="ComputeCapacityTopology",
|
1980
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1981
|
+
operation_name=operation_name,
|
1982
|
+
api_reference_link=api_reference_link,
|
1983
|
+
required_arguments=required_arguments)
|
1984
|
+
else:
|
1985
|
+
return self.base_client.call_api(
|
1986
|
+
resource_path=resource_path,
|
1987
|
+
method=method,
|
1988
|
+
header_params=header_params,
|
1989
|
+
body=create_compute_capacity_topology_details,
|
1990
|
+
response_type="ComputeCapacityTopology",
|
1991
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1992
|
+
operation_name=operation_name,
|
1993
|
+
api_reference_link=api_reference_link,
|
1994
|
+
required_arguments=required_arguments)
|
1995
|
+
|
1768
1996
|
def create_compute_cluster(self, create_compute_cluster_details, **kwargs):
|
1769
1997
|
"""
|
1770
1998
|
Creates an empty `compute cluster`__. A compute cluster
|
@@ -1827,7 +2055,7 @@ class ComputeClient(object):
|
|
1827
2055
|
:rtype: :class:`~oci.response.Response`
|
1828
2056
|
|
1829
2057
|
:example:
|
1830
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2058
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_compute_cluster.py.html>`__ to see an example of how to use create_compute_cluster API.
|
1831
2059
|
"""
|
1832
2060
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1833
2061
|
required_arguments = []
|
@@ -1920,7 +2148,7 @@ class ComputeClient(object):
|
|
1920
2148
|
:rtype: :class:`~oci.response.Response`
|
1921
2149
|
|
1922
2150
|
:example:
|
1923
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2151
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_compute_image_capability_schema.py.html>`__ to see an example of how to use create_compute_image_capability_schema API.
|
1924
2152
|
"""
|
1925
2153
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1926
2154
|
required_arguments = []
|
@@ -2022,7 +2250,7 @@ class ComputeClient(object):
|
|
2022
2250
|
:rtype: :class:`~oci.response.Response`
|
2023
2251
|
|
2024
2252
|
:example:
|
2025
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2253
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_dedicated_vm_host.py.html>`__ to see an example of how to use create_dedicated_vm_host API.
|
2026
2254
|
"""
|
2027
2255
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2028
2256
|
required_arguments = []
|
@@ -2142,7 +2370,7 @@ class ComputeClient(object):
|
|
2142
2370
|
:rtype: :class:`~oci.response.Response`
|
2143
2371
|
|
2144
2372
|
:example:
|
2145
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2373
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_image.py.html>`__ to see an example of how to use create_image API.
|
2146
2374
|
"""
|
2147
2375
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2148
2376
|
required_arguments = []
|
@@ -2241,7 +2469,7 @@ class ComputeClient(object):
|
|
2241
2469
|
:rtype: :class:`~oci.response.Response`
|
2242
2470
|
|
2243
2471
|
:example:
|
2244
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2472
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/create_instance_console_connection.py.html>`__ to see an example of how to use create_instance_console_connection API.
|
2245
2473
|
"""
|
2246
2474
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2247
2475
|
required_arguments = []
|
@@ -2333,7 +2561,7 @@ class ComputeClient(object):
|
|
2333
2561
|
:rtype: :class:`~oci.response.Response`
|
2334
2562
|
|
2335
2563
|
:example:
|
2336
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2564
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_app_catalog_subscription.py.html>`__ to see an example of how to use delete_app_catalog_subscription API.
|
2337
2565
|
"""
|
2338
2566
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2339
2567
|
required_arguments = ['listingId', 'compartmentId', 'resourceVersion']
|
@@ -2423,7 +2651,7 @@ class ComputeClient(object):
|
|
2423
2651
|
:rtype: :class:`~oci.response.Response`
|
2424
2652
|
|
2425
2653
|
:example:
|
2426
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2654
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_compute_capacity_reservation.py.html>`__ to see an example of how to use delete_compute_capacity_reservation API.
|
2427
2655
|
"""
|
2428
2656
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2429
2657
|
required_arguments = ['capacityReservationId']
|
@@ -2492,38 +2720,29 @@ class ComputeClient(object):
|
|
2492
2720
|
api_reference_link=api_reference_link,
|
2493
2721
|
required_arguments=required_arguments)
|
2494
2722
|
|
2495
|
-
def
|
2723
|
+
def delete_compute_capacity_topology(self, compute_capacity_topology_id, **kwargs):
|
2496
2724
|
"""
|
2497
|
-
Deletes
|
2498
|
-
remote direct memory access (RDMA) network group.
|
2725
|
+
Deletes the specified compute capacity topology.
|
2499
2726
|
|
2500
|
-
Before you delete a compute cluster, first delete all instances in the cluster by using
|
2501
|
-
the :func:`terminate_instance` operation.
|
2502
|
-
|
2503
|
-
__ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm
|
2504
2727
|
|
2505
|
-
|
2506
|
-
|
2507
|
-
The `OCID`__ of the compute cluster.
|
2508
|
-
A `compute cluster`__ is a remote direct memory
|
2509
|
-
access (RDMA) network group.
|
2728
|
+
:param str compute_capacity_topology_id: (required)
|
2729
|
+
The `OCID`__ of the compute capacity topology.
|
2510
2730
|
|
2511
2731
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2512
|
-
__ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm
|
2513
|
-
|
2514
|
-
:param str opc_request_id: (optional)
|
2515
|
-
Unique identifier for the request.
|
2516
|
-
If you need to contact Oracle about a particular request, please provide the request ID.
|
2517
2732
|
|
2518
2733
|
:param str if_match: (optional)
|
2519
2734
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2520
2735
|
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2521
2736
|
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2522
2737
|
|
2738
|
+
:param str opc_request_id: (optional)
|
2739
|
+
Unique identifier for the request.
|
2740
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
2741
|
+
|
2523
2742
|
:param obj retry_strategy: (optional)
|
2524
2743
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2525
2744
|
|
2526
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
2745
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
2527
2746
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2528
2747
|
|
2529
2748
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -2536,29 +2755,29 @@ class ComputeClient(object):
|
|
2536
2755
|
:rtype: :class:`~oci.response.Response`
|
2537
2756
|
|
2538
2757
|
:example:
|
2539
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2758
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_compute_capacity_topology.py.html>`__ to see an example of how to use delete_compute_capacity_topology API.
|
2540
2759
|
"""
|
2541
2760
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2542
|
-
required_arguments = ['
|
2543
|
-
resource_path = "/
|
2761
|
+
required_arguments = ['computeCapacityTopologyId']
|
2762
|
+
resource_path = "/computeCapacityTopologies/{computeCapacityTopologyId}"
|
2544
2763
|
method = "DELETE"
|
2545
|
-
operation_name = "
|
2546
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
2764
|
+
operation_name = "delete_compute_capacity_topology"
|
2765
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityTopology/DeleteComputeCapacityTopology"
|
2547
2766
|
|
2548
2767
|
# Don't accept unknown kwargs
|
2549
2768
|
expected_kwargs = [
|
2550
2769
|
"allow_control_chars",
|
2551
2770
|
"retry_strategy",
|
2552
|
-
"
|
2553
|
-
"
|
2771
|
+
"if_match",
|
2772
|
+
"opc_request_id"
|
2554
2773
|
]
|
2555
2774
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2556
2775
|
if extra_kwargs:
|
2557
2776
|
raise ValueError(
|
2558
|
-
f"
|
2777
|
+
f"delete_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}")
|
2559
2778
|
|
2560
2779
|
path_params = {
|
2561
|
-
"
|
2780
|
+
"computeCapacityTopologyId": compute_capacity_topology_id
|
2562
2781
|
}
|
2563
2782
|
|
2564
2783
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2570,8 +2789,8 @@ class ComputeClient(object):
|
|
2570
2789
|
header_params = {
|
2571
2790
|
"accept": "application/json",
|
2572
2791
|
"content-type": "application/json",
|
2573
|
-
"
|
2574
|
-
"
|
2792
|
+
"if-match": kwargs.get("if_match", missing),
|
2793
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2575
2794
|
}
|
2576
2795
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2577
2796
|
|
@@ -2579,6 +2798,8 @@ class ComputeClient(object):
|
|
2579
2798
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2580
2799
|
client_retry_strategy=self.retry_strategy
|
2581
2800
|
)
|
2801
|
+
if retry_strategy is None:
|
2802
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2582
2803
|
|
2583
2804
|
if retry_strategy:
|
2584
2805
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -2605,21 +2826,134 @@ class ComputeClient(object):
|
|
2605
2826
|
api_reference_link=api_reference_link,
|
2606
2827
|
required_arguments=required_arguments)
|
2607
2828
|
|
2608
|
-
def
|
2829
|
+
def delete_compute_cluster(self, compute_cluster_id, **kwargs):
|
2609
2830
|
"""
|
2610
|
-
Deletes
|
2831
|
+
Deletes a compute cluster. A `compute cluster`__ is a
|
2832
|
+
remote direct memory access (RDMA) network group.
|
2611
2833
|
|
2834
|
+
Before you delete a compute cluster, first delete all instances in the cluster by using
|
2835
|
+
the :func:`terminate_instance` operation.
|
2612
2836
|
|
2613
|
-
|
2614
|
-
The id of the compute image capability schema or the image ocid
|
2837
|
+
__ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm
|
2615
2838
|
|
2616
|
-
:param str if_match: (optional)
|
2617
|
-
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2618
|
-
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2619
|
-
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2620
2839
|
|
2621
|
-
:param
|
2622
|
-
|
2840
|
+
:param str compute_cluster_id: (required)
|
2841
|
+
The `OCID`__ of the compute cluster.
|
2842
|
+
A `compute cluster`__ is a remote direct memory
|
2843
|
+
access (RDMA) network group.
|
2844
|
+
|
2845
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2846
|
+
__ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm
|
2847
|
+
|
2848
|
+
:param str opc_request_id: (optional)
|
2849
|
+
Unique identifier for the request.
|
2850
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
2851
|
+
|
2852
|
+
:param str if_match: (optional)
|
2853
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2854
|
+
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2855
|
+
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2856
|
+
|
2857
|
+
:param obj retry_strategy: (optional)
|
2858
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2859
|
+
|
2860
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
2861
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2862
|
+
|
2863
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2864
|
+
|
2865
|
+
:param bool allow_control_chars: (optional)
|
2866
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2867
|
+
By default, the response will not allow control characters in strings
|
2868
|
+
|
2869
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2870
|
+
:rtype: :class:`~oci.response.Response`
|
2871
|
+
|
2872
|
+
:example:
|
2873
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_compute_cluster.py.html>`__ to see an example of how to use delete_compute_cluster API.
|
2874
|
+
"""
|
2875
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2876
|
+
required_arguments = ['computeClusterId']
|
2877
|
+
resource_path = "/computeClusters/{computeClusterId}"
|
2878
|
+
method = "DELETE"
|
2879
|
+
operation_name = "delete_compute_cluster"
|
2880
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCluster/DeleteComputeCluster"
|
2881
|
+
|
2882
|
+
# Don't accept unknown kwargs
|
2883
|
+
expected_kwargs = [
|
2884
|
+
"allow_control_chars",
|
2885
|
+
"retry_strategy",
|
2886
|
+
"opc_request_id",
|
2887
|
+
"if_match"
|
2888
|
+
]
|
2889
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2890
|
+
if extra_kwargs:
|
2891
|
+
raise ValueError(
|
2892
|
+
f"delete_compute_cluster got unknown kwargs: {extra_kwargs!r}")
|
2893
|
+
|
2894
|
+
path_params = {
|
2895
|
+
"computeClusterId": compute_cluster_id
|
2896
|
+
}
|
2897
|
+
|
2898
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2899
|
+
|
2900
|
+
for (k, v) in six.iteritems(path_params):
|
2901
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2902
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2903
|
+
|
2904
|
+
header_params = {
|
2905
|
+
"accept": "application/json",
|
2906
|
+
"content-type": "application/json",
|
2907
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2908
|
+
"if-match": kwargs.get("if_match", missing)
|
2909
|
+
}
|
2910
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2911
|
+
|
2912
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2913
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2914
|
+
client_retry_strategy=self.retry_strategy
|
2915
|
+
)
|
2916
|
+
|
2917
|
+
if retry_strategy:
|
2918
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2919
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2920
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2921
|
+
return retry_strategy.make_retrying_call(
|
2922
|
+
self.base_client.call_api,
|
2923
|
+
resource_path=resource_path,
|
2924
|
+
method=method,
|
2925
|
+
path_params=path_params,
|
2926
|
+
header_params=header_params,
|
2927
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2928
|
+
operation_name=operation_name,
|
2929
|
+
api_reference_link=api_reference_link,
|
2930
|
+
required_arguments=required_arguments)
|
2931
|
+
else:
|
2932
|
+
return self.base_client.call_api(
|
2933
|
+
resource_path=resource_path,
|
2934
|
+
method=method,
|
2935
|
+
path_params=path_params,
|
2936
|
+
header_params=header_params,
|
2937
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2938
|
+
operation_name=operation_name,
|
2939
|
+
api_reference_link=api_reference_link,
|
2940
|
+
required_arguments=required_arguments)
|
2941
|
+
|
2942
|
+
def delete_compute_image_capability_schema(self, compute_image_capability_schema_id, **kwargs):
|
2943
|
+
"""
|
2944
|
+
Deletes the specified Compute Image Capability Schema
|
2945
|
+
|
2946
|
+
|
2947
|
+
:param str compute_image_capability_schema_id: (required)
|
2948
|
+
The id of the compute image capability schema or the image ocid
|
2949
|
+
|
2950
|
+
:param str if_match: (optional)
|
2951
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2952
|
+
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2953
|
+
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2954
|
+
|
2955
|
+
:param obj retry_strategy: (optional)
|
2956
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2623
2957
|
|
2624
2958
|
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
2625
2959
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
@@ -2634,7 +2968,7 @@ class ComputeClient(object):
|
|
2634
2968
|
:rtype: :class:`~oci.response.Response`
|
2635
2969
|
|
2636
2970
|
:example:
|
2637
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2971
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_compute_image_capability_schema.py.html>`__ to see an example of how to use delete_compute_image_capability_schema API.
|
2638
2972
|
"""
|
2639
2973
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2640
2974
|
required_arguments = ['computeImageCapabilitySchemaId']
|
@@ -2730,7 +3064,7 @@ class ComputeClient(object):
|
|
2730
3064
|
:rtype: :class:`~oci.response.Response`
|
2731
3065
|
|
2732
3066
|
:example:
|
2733
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3067
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_console_history.py.html>`__ to see an example of how to use delete_console_history API.
|
2734
3068
|
"""
|
2735
3069
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2736
3070
|
required_arguments = ['instanceConsoleHistoryId']
|
@@ -2828,7 +3162,7 @@ class ComputeClient(object):
|
|
2828
3162
|
:rtype: :class:`~oci.response.Response`
|
2829
3163
|
|
2830
3164
|
:example:
|
2831
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3165
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_dedicated_vm_host.py.html>`__ to see an example of how to use delete_dedicated_vm_host API.
|
2832
3166
|
"""
|
2833
3167
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2834
3168
|
required_arguments = ['dedicatedVmHostId']
|
@@ -2926,7 +3260,7 @@ class ComputeClient(object):
|
|
2926
3260
|
:rtype: :class:`~oci.response.Response`
|
2927
3261
|
|
2928
3262
|
:example:
|
2929
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3263
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_image.py.html>`__ to see an example of how to use delete_image API.
|
2930
3264
|
"""
|
2931
3265
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2932
3266
|
required_arguments = ['imageId']
|
@@ -3022,7 +3356,7 @@ class ComputeClient(object):
|
|
3022
3356
|
:rtype: :class:`~oci.response.Response`
|
3023
3357
|
|
3024
3358
|
:example:
|
3025
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3359
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/delete_instance_console_connection.py.html>`__ to see an example of how to use delete_instance_console_connection API.
|
3026
3360
|
"""
|
3027
3361
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3028
3362
|
required_arguments = ['instanceConsoleConnectionId']
|
@@ -3121,7 +3455,7 @@ class ComputeClient(object):
|
|
3121
3455
|
:rtype: :class:`~oci.response.Response`
|
3122
3456
|
|
3123
3457
|
:example:
|
3124
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3458
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/detach_boot_volume.py.html>`__ to see an example of how to use detach_boot_volume API.
|
3125
3459
|
"""
|
3126
3460
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3127
3461
|
required_arguments = ['bootVolumeAttachmentId']
|
@@ -3228,7 +3562,7 @@ class ComputeClient(object):
|
|
3228
3562
|
:rtype: :class:`~oci.response.Response`
|
3229
3563
|
|
3230
3564
|
:example:
|
3231
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3565
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/detach_vnic.py.html>`__ to see an example of how to use detach_vnic API.
|
3232
3566
|
"""
|
3233
3567
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3234
3568
|
required_arguments = ['vnicAttachmentId']
|
@@ -3327,7 +3661,7 @@ class ComputeClient(object):
|
|
3327
3661
|
:rtype: :class:`~oci.response.Response`
|
3328
3662
|
|
3329
3663
|
:example:
|
3330
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3664
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/detach_volume.py.html>`__ to see an example of how to use detach_volume API.
|
3331
3665
|
"""
|
3332
3666
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3333
3667
|
required_arguments = ['volumeAttachmentId']
|
@@ -3449,7 +3783,7 @@ class ComputeClient(object):
|
|
3449
3783
|
:rtype: :class:`~oci.response.Response`
|
3450
3784
|
|
3451
3785
|
:example:
|
3452
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3786
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/export_image.py.html>`__ to see an example of how to use export_image API.
|
3453
3787
|
"""
|
3454
3788
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3455
3789
|
required_arguments = ['imageId']
|
@@ -3549,7 +3883,7 @@ class ComputeClient(object):
|
|
3549
3883
|
:rtype: :class:`~oci.response.Response`
|
3550
3884
|
|
3551
3885
|
:example:
|
3552
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3886
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_app_catalog_listing.py.html>`__ to see an example of how to use get_app_catalog_listing API.
|
3553
3887
|
"""
|
3554
3888
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3555
3889
|
required_arguments = ['listingId']
|
@@ -3640,7 +3974,7 @@ class ComputeClient(object):
|
|
3640
3974
|
:rtype: :class:`~oci.response.Response`
|
3641
3975
|
|
3642
3976
|
:example:
|
3643
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3977
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_app_catalog_listing_agreements.py.html>`__ to see an example of how to use get_app_catalog_listing_agreements API.
|
3644
3978
|
"""
|
3645
3979
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3646
3980
|
required_arguments = ['listingId', 'resourceVersion']
|
@@ -3732,7 +4066,7 @@ class ComputeClient(object):
|
|
3732
4066
|
:rtype: :class:`~oci.response.Response`
|
3733
4067
|
|
3734
4068
|
:example:
|
3735
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4069
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_app_catalog_listing_resource_version.py.html>`__ to see an example of how to use get_app_catalog_listing_resource_version API.
|
3736
4070
|
"""
|
3737
4071
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3738
4072
|
required_arguments = ['listingId', 'resourceVersion']
|
@@ -3821,7 +4155,7 @@ class ComputeClient(object):
|
|
3821
4155
|
:rtype: :class:`~oci.response.Response`
|
3822
4156
|
|
3823
4157
|
:example:
|
3824
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4158
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_boot_volume_attachment.py.html>`__ to see an example of how to use get_boot_volume_attachment API.
|
3825
4159
|
"""
|
3826
4160
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3827
4161
|
required_arguments = ['bootVolumeAttachmentId']
|
@@ -3911,7 +4245,7 @@ class ComputeClient(object):
|
|
3911
4245
|
:rtype: :class:`~oci.response.Response`
|
3912
4246
|
|
3913
4247
|
:example:
|
3914
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4248
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_compute_capacity_reservation.py.html>`__ to see an example of how to use get_compute_capacity_reservation API.
|
3915
4249
|
"""
|
3916
4250
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3917
4251
|
required_arguments = ['capacityReservationId']
|
@@ -3980,6 +4314,107 @@ class ComputeClient(object):
|
|
3980
4314
|
api_reference_link=api_reference_link,
|
3981
4315
|
required_arguments=required_arguments)
|
3982
4316
|
|
4317
|
+
def get_compute_capacity_topology(self, compute_capacity_topology_id, **kwargs):
|
4318
|
+
"""
|
4319
|
+
Gets information about the specified compute capacity topology.
|
4320
|
+
|
4321
|
+
|
4322
|
+
:param str compute_capacity_topology_id: (required)
|
4323
|
+
The `OCID`__ of the compute capacity topology.
|
4324
|
+
|
4325
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
4326
|
+
|
4327
|
+
:param str opc_request_id: (optional)
|
4328
|
+
Unique identifier for the request.
|
4329
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
4330
|
+
|
4331
|
+
:param obj retry_strategy: (optional)
|
4332
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4333
|
+
|
4334
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
4335
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4336
|
+
|
4337
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4338
|
+
|
4339
|
+
:param bool allow_control_chars: (optional)
|
4340
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4341
|
+
By default, the response will not allow control characters in strings
|
4342
|
+
|
4343
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ComputeCapacityTopology`
|
4344
|
+
:rtype: :class:`~oci.response.Response`
|
4345
|
+
|
4346
|
+
:example:
|
4347
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_compute_capacity_topology.py.html>`__ to see an example of how to use get_compute_capacity_topology API.
|
4348
|
+
"""
|
4349
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4350
|
+
required_arguments = ['computeCapacityTopologyId']
|
4351
|
+
resource_path = "/computeCapacityTopologies/{computeCapacityTopologyId}"
|
4352
|
+
method = "GET"
|
4353
|
+
operation_name = "get_compute_capacity_topology"
|
4354
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityTopology/GetComputeCapacityTopology"
|
4355
|
+
|
4356
|
+
# Don't accept unknown kwargs
|
4357
|
+
expected_kwargs = [
|
4358
|
+
"allow_control_chars",
|
4359
|
+
"retry_strategy",
|
4360
|
+
"opc_request_id"
|
4361
|
+
]
|
4362
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4363
|
+
if extra_kwargs:
|
4364
|
+
raise ValueError(
|
4365
|
+
f"get_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}")
|
4366
|
+
|
4367
|
+
path_params = {
|
4368
|
+
"computeCapacityTopologyId": compute_capacity_topology_id
|
4369
|
+
}
|
4370
|
+
|
4371
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4372
|
+
|
4373
|
+
for (k, v) in six.iteritems(path_params):
|
4374
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4375
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4376
|
+
|
4377
|
+
header_params = {
|
4378
|
+
"accept": "application/json",
|
4379
|
+
"content-type": "application/json",
|
4380
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4381
|
+
}
|
4382
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4383
|
+
|
4384
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4385
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4386
|
+
client_retry_strategy=self.retry_strategy
|
4387
|
+
)
|
4388
|
+
if retry_strategy is None:
|
4389
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4390
|
+
|
4391
|
+
if retry_strategy:
|
4392
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4393
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4394
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4395
|
+
return retry_strategy.make_retrying_call(
|
4396
|
+
self.base_client.call_api,
|
4397
|
+
resource_path=resource_path,
|
4398
|
+
method=method,
|
4399
|
+
path_params=path_params,
|
4400
|
+
header_params=header_params,
|
4401
|
+
response_type="ComputeCapacityTopology",
|
4402
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4403
|
+
operation_name=operation_name,
|
4404
|
+
api_reference_link=api_reference_link,
|
4405
|
+
required_arguments=required_arguments)
|
4406
|
+
else:
|
4407
|
+
return self.base_client.call_api(
|
4408
|
+
resource_path=resource_path,
|
4409
|
+
method=method,
|
4410
|
+
path_params=path_params,
|
4411
|
+
header_params=header_params,
|
4412
|
+
response_type="ComputeCapacityTopology",
|
4413
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4414
|
+
operation_name=operation_name,
|
4415
|
+
api_reference_link=api_reference_link,
|
4416
|
+
required_arguments=required_arguments)
|
4417
|
+
|
3983
4418
|
def get_compute_cluster(self, compute_cluster_id, **kwargs):
|
3984
4419
|
"""
|
3985
4420
|
Gets information about a compute cluster. A `compute cluster`__
|
@@ -4016,7 +4451,7 @@ class ComputeClient(object):
|
|
4016
4451
|
:rtype: :class:`~oci.response.Response`
|
4017
4452
|
|
4018
4453
|
:example:
|
4019
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4454
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_compute_cluster.py.html>`__ to see an example of how to use get_compute_cluster API.
|
4020
4455
|
"""
|
4021
4456
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4022
4457
|
required_arguments = ['computeClusterId']
|
@@ -4111,7 +4546,7 @@ class ComputeClient(object):
|
|
4111
4546
|
:rtype: :class:`~oci.response.Response`
|
4112
4547
|
|
4113
4548
|
:example:
|
4114
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4549
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_compute_global_image_capability_schema.py.html>`__ to see an example of how to use get_compute_global_image_capability_schema API.
|
4115
4550
|
"""
|
4116
4551
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4117
4552
|
required_arguments = ['computeGlobalImageCapabilitySchemaId']
|
@@ -4204,7 +4639,7 @@ class ComputeClient(object):
|
|
4204
4639
|
:rtype: :class:`~oci.response.Response`
|
4205
4640
|
|
4206
4641
|
:example:
|
4207
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4642
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_compute_global_image_capability_schema_version.py.html>`__ to see an example of how to use get_compute_global_image_capability_schema_version API.
|
4208
4643
|
"""
|
4209
4644
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4210
4645
|
required_arguments = ['computeGlobalImageCapabilitySchemaId', 'computeGlobalImageCapabilitySchemaVersionName']
|
@@ -4296,7 +4731,7 @@ class ComputeClient(object):
|
|
4296
4731
|
:rtype: :class:`~oci.response.Response`
|
4297
4732
|
|
4298
4733
|
:example:
|
4299
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4734
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_compute_image_capability_schema.py.html>`__ to see an example of how to use get_compute_image_capability_schema API.
|
4300
4735
|
"""
|
4301
4736
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4302
4737
|
required_arguments = ['computeImageCapabilitySchemaId']
|
@@ -4398,7 +4833,7 @@ class ComputeClient(object):
|
|
4398
4833
|
:rtype: :class:`~oci.response.Response`
|
4399
4834
|
|
4400
4835
|
:example:
|
4401
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4836
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_console_history.py.html>`__ to see an example of how to use get_console_history API.
|
4402
4837
|
"""
|
4403
4838
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4404
4839
|
required_arguments = ['instanceConsoleHistoryId']
|
@@ -4492,7 +4927,7 @@ class ComputeClient(object):
|
|
4492
4927
|
:rtype: :class:`~oci.response.Response`
|
4493
4928
|
|
4494
4929
|
:example:
|
4495
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4930
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_console_history_content.py.html>`__ to see an example of how to use get_console_history_content API.
|
4496
4931
|
"""
|
4497
4932
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4498
4933
|
required_arguments = ['instanceConsoleHistoryId']
|
@@ -4596,7 +5031,7 @@ class ComputeClient(object):
|
|
4596
5031
|
:rtype: :class:`~oci.response.Response`
|
4597
5032
|
|
4598
5033
|
:example:
|
4599
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5034
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_dedicated_vm_host.py.html>`__ to see an example of how to use get_dedicated_vm_host API.
|
4600
5035
|
"""
|
4601
5036
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4602
5037
|
required_arguments = ['dedicatedVmHostId']
|
@@ -4691,7 +5126,7 @@ class ComputeClient(object):
|
|
4691
5126
|
:rtype: :class:`~oci.response.Response`
|
4692
5127
|
|
4693
5128
|
:example:
|
4694
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5129
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_image.py.html>`__ to see an example of how to use get_image API.
|
4695
5130
|
"""
|
4696
5131
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4697
5132
|
required_arguments = ['imageId']
|
@@ -4788,7 +5223,7 @@ class ComputeClient(object):
|
|
4788
5223
|
:rtype: :class:`~oci.response.Response`
|
4789
5224
|
|
4790
5225
|
:example:
|
4791
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5226
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_image_shape_compatibility_entry.py.html>`__ to see an example of how to use get_image_shape_compatibility_entry API.
|
4792
5227
|
"""
|
4793
5228
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4794
5229
|
required_arguments = ['imageId', 'shapeName']
|
@@ -4889,7 +5324,7 @@ class ComputeClient(object):
|
|
4889
5324
|
:rtype: :class:`~oci.response.Response`
|
4890
5325
|
|
4891
5326
|
:example:
|
4892
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5327
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_instance.py.html>`__ to see an example of how to use get_instance API.
|
4893
5328
|
"""
|
4894
5329
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4895
5330
|
required_arguments = ['instanceId']
|
@@ -4975,7 +5410,7 @@ class ComputeClient(object):
|
|
4975
5410
|
:rtype: :class:`~oci.response.Response`
|
4976
5411
|
|
4977
5412
|
:example:
|
4978
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5413
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_instance_console_connection.py.html>`__ to see an example of how to use get_instance_console_connection API.
|
4979
5414
|
"""
|
4980
5415
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4981
5416
|
required_arguments = ['instanceConsoleConnectionId']
|
@@ -5070,7 +5505,7 @@ class ComputeClient(object):
|
|
5070
5505
|
:rtype: :class:`~oci.response.Response`
|
5071
5506
|
|
5072
5507
|
:example:
|
5073
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5508
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_instance_maintenance_reboot.py.html>`__ to see an example of how to use get_instance_maintenance_reboot API.
|
5074
5509
|
"""
|
5075
5510
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5076
5511
|
required_arguments = ['instanceId']
|
@@ -5169,7 +5604,7 @@ class ComputeClient(object):
|
|
5169
5604
|
:rtype: :class:`~oci.response.Response`
|
5170
5605
|
|
5171
5606
|
:example:
|
5172
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5607
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_measured_boot_report.py.html>`__ to see an example of how to use get_measured_boot_report API.
|
5173
5608
|
"""
|
5174
5609
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5175
5610
|
required_arguments = ['instanceId']
|
@@ -5262,7 +5697,7 @@ class ComputeClient(object):
|
|
5262
5697
|
:rtype: :class:`~oci.response.Response`
|
5263
5698
|
|
5264
5699
|
:example:
|
5265
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5700
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_vnic_attachment.py.html>`__ to see an example of how to use get_vnic_attachment API.
|
5266
5701
|
"""
|
5267
5702
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5268
5703
|
required_arguments = ['vnicAttachmentId']
|
@@ -5348,7 +5783,7 @@ class ComputeClient(object):
|
|
5348
5783
|
:rtype: :class:`~oci.response.Response`
|
5349
5784
|
|
5350
5785
|
:example:
|
5351
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5786
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_volume_attachment.py.html>`__ to see an example of how to use get_volume_attachment API.
|
5352
5787
|
"""
|
5353
5788
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5354
5789
|
required_arguments = ['volumeAttachmentId']
|
@@ -5437,7 +5872,7 @@ class ComputeClient(object):
|
|
5437
5872
|
:rtype: :class:`~oci.response.Response`
|
5438
5873
|
|
5439
5874
|
:example:
|
5440
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5875
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/get_windows_instance_initial_credentials.py.html>`__ to see an example of how to use get_windows_instance_initial_credentials API.
|
5441
5876
|
"""
|
5442
5877
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5443
5878
|
required_arguments = ['instanceId']
|
@@ -5591,7 +6026,7 @@ class ComputeClient(object):
|
|
5591
6026
|
:rtype: :class:`~oci.response.Response`
|
5592
6027
|
|
5593
6028
|
:example:
|
5594
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6029
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/instance_action.py.html>`__ to see an example of how to use instance_action API.
|
5595
6030
|
"""
|
5596
6031
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5597
6032
|
required_arguments = ['instanceId', 'action']
|
@@ -5751,7 +6186,7 @@ class ComputeClient(object):
|
|
5751
6186
|
:rtype: :class:`~oci.response.Response`
|
5752
6187
|
|
5753
6188
|
:example:
|
5754
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6189
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/launch_instance.py.html>`__ to see an example of how to use launch_instance API.
|
5755
6190
|
"""
|
5756
6191
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5757
6192
|
required_arguments = []
|
@@ -5857,7 +6292,7 @@ class ComputeClient(object):
|
|
5857
6292
|
:rtype: :class:`~oci.response.Response`
|
5858
6293
|
|
5859
6294
|
:example:
|
5860
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6295
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_app_catalog_listing_resource_versions.py.html>`__ to see an example of how to use list_app_catalog_listing_resource_versions API.
|
5861
6296
|
"""
|
5862
6297
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5863
6298
|
required_arguments = ['listingId']
|
@@ -5996,7 +6431,7 @@ class ComputeClient(object):
|
|
5996
6431
|
:rtype: :class:`~oci.response.Response`
|
5997
6432
|
|
5998
6433
|
:example:
|
5999
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6434
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_app_catalog_listings.py.html>`__ to see an example of how to use list_app_catalog_listings API.
|
6000
6435
|
"""
|
6001
6436
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6002
6437
|
required_arguments = []
|
@@ -6140,7 +6575,7 @@ class ComputeClient(object):
|
|
6140
6575
|
:rtype: :class:`~oci.response.Response`
|
6141
6576
|
|
6142
6577
|
:example:
|
6143
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6578
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_app_catalog_subscriptions.py.html>`__ to see an example of how to use list_app_catalog_subscriptions API.
|
6144
6579
|
"""
|
6145
6580
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6146
6581
|
required_arguments = ['compartmentId']
|
@@ -6281,7 +6716,7 @@ class ComputeClient(object):
|
|
6281
6716
|
:rtype: :class:`~oci.response.Response`
|
6282
6717
|
|
6283
6718
|
:example:
|
6284
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6719
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_boot_volume_attachments.py.html>`__ to see an example of how to use list_boot_volume_attachments API.
|
6285
6720
|
"""
|
6286
6721
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6287
6722
|
required_arguments = ['availabilityDomain', 'compartmentId']
|
@@ -6305,24 +6740,703 @@ class ComputeClient(object):
|
|
6305
6740
|
f"list_boot_volume_attachments got unknown kwargs: {extra_kwargs!r}")
|
6306
6741
|
|
6307
6742
|
query_params = {
|
6308
|
-
"availabilityDomain": availability_domain,
|
6743
|
+
"availabilityDomain": availability_domain,
|
6744
|
+
"compartmentId": compartment_id,
|
6745
|
+
"limit": kwargs.get("limit", missing),
|
6746
|
+
"page": kwargs.get("page", missing),
|
6747
|
+
"instanceId": kwargs.get("instance_id", missing),
|
6748
|
+
"bootVolumeId": kwargs.get("boot_volume_id", missing)
|
6749
|
+
}
|
6750
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6751
|
+
|
6752
|
+
header_params = {
|
6753
|
+
"accept": "application/json, application/x-json-stream",
|
6754
|
+
"content-type": "application/json"
|
6755
|
+
}
|
6756
|
+
|
6757
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6758
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6759
|
+
client_retry_strategy=self.retry_strategy
|
6760
|
+
)
|
6761
|
+
|
6762
|
+
if retry_strategy:
|
6763
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6764
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
6765
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6766
|
+
return retry_strategy.make_retrying_call(
|
6767
|
+
self.base_client.call_api,
|
6768
|
+
resource_path=resource_path,
|
6769
|
+
method=method,
|
6770
|
+
query_params=query_params,
|
6771
|
+
header_params=header_params,
|
6772
|
+
response_type="list[BootVolumeAttachment]",
|
6773
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6774
|
+
operation_name=operation_name,
|
6775
|
+
api_reference_link=api_reference_link,
|
6776
|
+
required_arguments=required_arguments)
|
6777
|
+
else:
|
6778
|
+
return self.base_client.call_api(
|
6779
|
+
resource_path=resource_path,
|
6780
|
+
method=method,
|
6781
|
+
query_params=query_params,
|
6782
|
+
header_params=header_params,
|
6783
|
+
response_type="list[BootVolumeAttachment]",
|
6784
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6785
|
+
operation_name=operation_name,
|
6786
|
+
api_reference_link=api_reference_link,
|
6787
|
+
required_arguments=required_arguments)
|
6788
|
+
|
6789
|
+
def list_compute_capacity_reservation_instance_shapes(self, compartment_id, **kwargs):
|
6790
|
+
"""
|
6791
|
+
Lists the shapes that can be reserved within the specified compartment.
|
6792
|
+
|
6793
|
+
|
6794
|
+
:param str compartment_id: (required)
|
6795
|
+
The `OCID`__ of the compartment.
|
6796
|
+
|
6797
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6798
|
+
|
6799
|
+
:param str availability_domain: (optional)
|
6800
|
+
The name of the availability domain.
|
6801
|
+
|
6802
|
+
Example: `Uocm:PHX-AD-1`
|
6803
|
+
|
6804
|
+
:param str opc_request_id: (optional)
|
6805
|
+
Unique identifier for the request.
|
6806
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
6807
|
+
|
6808
|
+
:param int limit: (optional)
|
6809
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated
|
6810
|
+
\"List\" call. For important details about how pagination works, see
|
6811
|
+
`List Pagination`__.
|
6812
|
+
|
6813
|
+
Example: `50`
|
6814
|
+
|
6815
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6816
|
+
|
6817
|
+
:param str page: (optional)
|
6818
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
6819
|
+
call. For important details about how pagination works, see
|
6820
|
+
`List Pagination`__.
|
6821
|
+
|
6822
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6823
|
+
|
6824
|
+
:param str display_name: (optional)
|
6825
|
+
A filter to return only resources that match the given display name exactly.
|
6826
|
+
|
6827
|
+
:param str sort_by: (optional)
|
6828
|
+
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
6829
|
+
TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
6830
|
+
sort order is case sensitive.
|
6831
|
+
|
6832
|
+
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
6833
|
+
optionally filter by availability domain if the scope of the resource type is within a
|
6834
|
+
single availability domain. If you call one of these \"List\" operations without specifying
|
6835
|
+
an availability domain, the resources are grouped by availability domain, then sorted.
|
6836
|
+
|
6837
|
+
Allowed values are: "TIMECREATED", "DISPLAYNAME"
|
6838
|
+
|
6839
|
+
:param str sort_order: (optional)
|
6840
|
+
The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
6841
|
+
is case sensitive.
|
6842
|
+
|
6843
|
+
Allowed values are: "ASC", "DESC"
|
6844
|
+
|
6845
|
+
:param obj retry_strategy: (optional)
|
6846
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6847
|
+
|
6848
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
6849
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6850
|
+
|
6851
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
6852
|
+
|
6853
|
+
:param bool allow_control_chars: (optional)
|
6854
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6855
|
+
By default, the response will not allow control characters in strings
|
6856
|
+
|
6857
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.ComputeCapacityReservationInstanceShapeSummary`
|
6858
|
+
:rtype: :class:`~oci.response.Response`
|
6859
|
+
|
6860
|
+
:example:
|
6861
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_capacity_reservation_instance_shapes.py.html>`__ to see an example of how to use list_compute_capacity_reservation_instance_shapes API.
|
6862
|
+
"""
|
6863
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6864
|
+
required_arguments = ['compartmentId']
|
6865
|
+
resource_path = "/computeCapacityReservationInstanceShapes"
|
6866
|
+
method = "GET"
|
6867
|
+
operation_name = "list_compute_capacity_reservation_instance_shapes"
|
6868
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservationInstanceShapeSummary/ListComputeCapacityReservationInstanceShapes"
|
6869
|
+
|
6870
|
+
# Don't accept unknown kwargs
|
6871
|
+
expected_kwargs = [
|
6872
|
+
"allow_control_chars",
|
6873
|
+
"retry_strategy",
|
6874
|
+
"availability_domain",
|
6875
|
+
"opc_request_id",
|
6876
|
+
"limit",
|
6877
|
+
"page",
|
6878
|
+
"display_name",
|
6879
|
+
"sort_by",
|
6880
|
+
"sort_order"
|
6881
|
+
]
|
6882
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6883
|
+
if extra_kwargs:
|
6884
|
+
raise ValueError(
|
6885
|
+
f"list_compute_capacity_reservation_instance_shapes got unknown kwargs: {extra_kwargs!r}")
|
6886
|
+
|
6887
|
+
if 'sort_by' in kwargs:
|
6888
|
+
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
|
6889
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
6890
|
+
raise ValueError(
|
6891
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
6892
|
+
)
|
6893
|
+
|
6894
|
+
if 'sort_order' in kwargs:
|
6895
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
6896
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
6897
|
+
raise ValueError(
|
6898
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
6899
|
+
)
|
6900
|
+
|
6901
|
+
query_params = {
|
6902
|
+
"availabilityDomain": kwargs.get("availability_domain", missing),
|
6903
|
+
"compartmentId": compartment_id,
|
6904
|
+
"limit": kwargs.get("limit", missing),
|
6905
|
+
"page": kwargs.get("page", missing),
|
6906
|
+
"displayName": kwargs.get("display_name", missing),
|
6907
|
+
"sortBy": kwargs.get("sort_by", missing),
|
6908
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
6909
|
+
}
|
6910
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6911
|
+
|
6912
|
+
header_params = {
|
6913
|
+
"accept": "application/json",
|
6914
|
+
"content-type": "application/json",
|
6915
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
6916
|
+
}
|
6917
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6918
|
+
|
6919
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6920
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6921
|
+
client_retry_strategy=self.retry_strategy
|
6922
|
+
)
|
6923
|
+
|
6924
|
+
if retry_strategy:
|
6925
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6926
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
6927
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6928
|
+
return retry_strategy.make_retrying_call(
|
6929
|
+
self.base_client.call_api,
|
6930
|
+
resource_path=resource_path,
|
6931
|
+
method=method,
|
6932
|
+
query_params=query_params,
|
6933
|
+
header_params=header_params,
|
6934
|
+
response_type="list[ComputeCapacityReservationInstanceShapeSummary]",
|
6935
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6936
|
+
operation_name=operation_name,
|
6937
|
+
api_reference_link=api_reference_link,
|
6938
|
+
required_arguments=required_arguments)
|
6939
|
+
else:
|
6940
|
+
return self.base_client.call_api(
|
6941
|
+
resource_path=resource_path,
|
6942
|
+
method=method,
|
6943
|
+
query_params=query_params,
|
6944
|
+
header_params=header_params,
|
6945
|
+
response_type="list[ComputeCapacityReservationInstanceShapeSummary]",
|
6946
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6947
|
+
operation_name=operation_name,
|
6948
|
+
api_reference_link=api_reference_link,
|
6949
|
+
required_arguments=required_arguments)
|
6950
|
+
|
6951
|
+
def list_compute_capacity_reservation_instances(self, capacity_reservation_id, **kwargs):
|
6952
|
+
"""
|
6953
|
+
Lists the instances launched under a capacity reservation. You can filter results by specifying criteria.
|
6954
|
+
|
6955
|
+
|
6956
|
+
:param str capacity_reservation_id: (required)
|
6957
|
+
The OCID of the compute capacity reservation.
|
6958
|
+
|
6959
|
+
:param str availability_domain: (optional)
|
6960
|
+
The name of the availability domain.
|
6961
|
+
|
6962
|
+
Example: `Uocm:PHX-AD-1`
|
6963
|
+
|
6964
|
+
:param str compartment_id: (optional)
|
6965
|
+
The `OCID`__ of the compartment.
|
6966
|
+
|
6967
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6968
|
+
|
6969
|
+
:param str opc_request_id: (optional)
|
6970
|
+
Unique identifier for the request.
|
6971
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
6972
|
+
|
6973
|
+
:param int limit: (optional)
|
6974
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated
|
6975
|
+
\"List\" call. For important details about how pagination works, see
|
6976
|
+
`List Pagination`__.
|
6977
|
+
|
6978
|
+
Example: `50`
|
6979
|
+
|
6980
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6981
|
+
|
6982
|
+
:param str page: (optional)
|
6983
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
6984
|
+
call. For important details about how pagination works, see
|
6985
|
+
`List Pagination`__.
|
6986
|
+
|
6987
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6988
|
+
|
6989
|
+
:param str sort_by: (optional)
|
6990
|
+
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
6991
|
+
TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
6992
|
+
sort order is case sensitive.
|
6993
|
+
|
6994
|
+
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
6995
|
+
optionally filter by availability domain if the scope of the resource type is within a
|
6996
|
+
single availability domain. If you call one of these \"List\" operations without specifying
|
6997
|
+
an availability domain, the resources are grouped by availability domain, then sorted.
|
6998
|
+
|
6999
|
+
Allowed values are: "TIMECREATED", "DISPLAYNAME"
|
7000
|
+
|
7001
|
+
:param str sort_order: (optional)
|
7002
|
+
The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
7003
|
+
is case sensitive.
|
7004
|
+
|
7005
|
+
Allowed values are: "ASC", "DESC"
|
7006
|
+
|
7007
|
+
:param obj retry_strategy: (optional)
|
7008
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7009
|
+
|
7010
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
7011
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7012
|
+
|
7013
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7014
|
+
|
7015
|
+
:param bool allow_control_chars: (optional)
|
7016
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7017
|
+
By default, the response will not allow control characters in strings
|
7018
|
+
|
7019
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.CapacityReservationInstanceSummary`
|
7020
|
+
:rtype: :class:`~oci.response.Response`
|
7021
|
+
|
7022
|
+
:example:
|
7023
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_capacity_reservation_instances.py.html>`__ to see an example of how to use list_compute_capacity_reservation_instances API.
|
7024
|
+
"""
|
7025
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7026
|
+
required_arguments = ['capacityReservationId']
|
7027
|
+
resource_path = "/computeCapacityReservations/{capacityReservationId}/instances"
|
7028
|
+
method = "GET"
|
7029
|
+
operation_name = "list_compute_capacity_reservation_instances"
|
7030
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CapacityReservationInstanceSummary/ListComputeCapacityReservationInstances"
|
7031
|
+
|
7032
|
+
# Don't accept unknown kwargs
|
7033
|
+
expected_kwargs = [
|
7034
|
+
"allow_control_chars",
|
7035
|
+
"retry_strategy",
|
7036
|
+
"availability_domain",
|
7037
|
+
"compartment_id",
|
7038
|
+
"opc_request_id",
|
7039
|
+
"limit",
|
7040
|
+
"page",
|
7041
|
+
"sort_by",
|
7042
|
+
"sort_order"
|
7043
|
+
]
|
7044
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7045
|
+
if extra_kwargs:
|
7046
|
+
raise ValueError(
|
7047
|
+
f"list_compute_capacity_reservation_instances got unknown kwargs: {extra_kwargs!r}")
|
7048
|
+
|
7049
|
+
path_params = {
|
7050
|
+
"capacityReservationId": capacity_reservation_id
|
7051
|
+
}
|
7052
|
+
|
7053
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
7054
|
+
|
7055
|
+
for (k, v) in six.iteritems(path_params):
|
7056
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7057
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7058
|
+
|
7059
|
+
if 'sort_by' in kwargs:
|
7060
|
+
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
|
7061
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7062
|
+
raise ValueError(
|
7063
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7064
|
+
)
|
7065
|
+
|
7066
|
+
if 'sort_order' in kwargs:
|
7067
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7068
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7069
|
+
raise ValueError(
|
7070
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7071
|
+
)
|
7072
|
+
|
7073
|
+
query_params = {
|
7074
|
+
"availabilityDomain": kwargs.get("availability_domain", missing),
|
7075
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
7076
|
+
"limit": kwargs.get("limit", missing),
|
7077
|
+
"page": kwargs.get("page", missing),
|
7078
|
+
"sortBy": kwargs.get("sort_by", missing),
|
7079
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
7080
|
+
}
|
7081
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7082
|
+
|
7083
|
+
header_params = {
|
7084
|
+
"accept": "application/json, application/x-json-stream",
|
7085
|
+
"content-type": "application/json",
|
7086
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7087
|
+
}
|
7088
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7089
|
+
|
7090
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7091
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7092
|
+
client_retry_strategy=self.retry_strategy
|
7093
|
+
)
|
7094
|
+
|
7095
|
+
if retry_strategy:
|
7096
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7097
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7098
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7099
|
+
return retry_strategy.make_retrying_call(
|
7100
|
+
self.base_client.call_api,
|
7101
|
+
resource_path=resource_path,
|
7102
|
+
method=method,
|
7103
|
+
path_params=path_params,
|
7104
|
+
query_params=query_params,
|
7105
|
+
header_params=header_params,
|
7106
|
+
response_type="list[CapacityReservationInstanceSummary]",
|
7107
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7108
|
+
operation_name=operation_name,
|
7109
|
+
api_reference_link=api_reference_link,
|
7110
|
+
required_arguments=required_arguments)
|
7111
|
+
else:
|
7112
|
+
return self.base_client.call_api(
|
7113
|
+
resource_path=resource_path,
|
7114
|
+
method=method,
|
7115
|
+
path_params=path_params,
|
7116
|
+
query_params=query_params,
|
7117
|
+
header_params=header_params,
|
7118
|
+
response_type="list[CapacityReservationInstanceSummary]",
|
7119
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7120
|
+
operation_name=operation_name,
|
7121
|
+
api_reference_link=api_reference_link,
|
7122
|
+
required_arguments=required_arguments)
|
7123
|
+
|
7124
|
+
def list_compute_capacity_reservations(self, compartment_id, **kwargs):
|
7125
|
+
"""
|
7126
|
+
Lists the compute capacity reservations that match the specified criteria and compartment.
|
7127
|
+
|
7128
|
+
You can limit the list by specifying a compute capacity reservation display name
|
7129
|
+
(the list will include all the identically-named compute capacity reservations in the compartment).
|
7130
|
+
|
7131
|
+
|
7132
|
+
:param str compartment_id: (required)
|
7133
|
+
The `OCID`__ of the compartment.
|
7134
|
+
|
7135
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
7136
|
+
|
7137
|
+
:param str availability_domain: (optional)
|
7138
|
+
The name of the availability domain.
|
7139
|
+
|
7140
|
+
Example: `Uocm:PHX-AD-1`
|
7141
|
+
|
7142
|
+
:param str lifecycle_state: (optional)
|
7143
|
+
A filter to only return resources that match the given lifecycle state.
|
7144
|
+
|
7145
|
+
Allowed values are: "ACTIVE", "CREATING", "UPDATING", "MOVING", "DELETED", "DELETING"
|
7146
|
+
|
7147
|
+
:param str display_name: (optional)
|
7148
|
+
A filter to return only resources that match the given display name exactly.
|
7149
|
+
|
7150
|
+
:param int limit: (optional)
|
7151
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated
|
7152
|
+
\"List\" call. For important details about how pagination works, see
|
7153
|
+
`List Pagination`__.
|
7154
|
+
|
7155
|
+
Example: `50`
|
7156
|
+
|
7157
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
7158
|
+
|
7159
|
+
:param str page: (optional)
|
7160
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
7161
|
+
call. For important details about how pagination works, see
|
7162
|
+
`List Pagination`__.
|
7163
|
+
|
7164
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
7165
|
+
|
7166
|
+
:param str opc_request_id: (optional)
|
7167
|
+
Unique identifier for the request.
|
7168
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
7169
|
+
|
7170
|
+
:param str sort_by: (optional)
|
7171
|
+
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
7172
|
+
TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
7173
|
+
sort order is case sensitive.
|
7174
|
+
|
7175
|
+
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
7176
|
+
optionally filter by availability domain if the scope of the resource type is within a
|
7177
|
+
single availability domain. If you call one of these \"List\" operations without specifying
|
7178
|
+
an availability domain, the resources are grouped by availability domain, then sorted.
|
7179
|
+
|
7180
|
+
Allowed values are: "TIMECREATED", "DISPLAYNAME"
|
7181
|
+
|
7182
|
+
:param str sort_order: (optional)
|
7183
|
+
The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
7184
|
+
is case sensitive.
|
7185
|
+
|
7186
|
+
Allowed values are: "ASC", "DESC"
|
7187
|
+
|
7188
|
+
:param obj retry_strategy: (optional)
|
7189
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7190
|
+
|
7191
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
7192
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7193
|
+
|
7194
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7195
|
+
|
7196
|
+
:param bool allow_control_chars: (optional)
|
7197
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7198
|
+
By default, the response will not allow control characters in strings
|
7199
|
+
|
7200
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.ComputeCapacityReservationSummary`
|
7201
|
+
:rtype: :class:`~oci.response.Response`
|
7202
|
+
|
7203
|
+
:example:
|
7204
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_capacity_reservations.py.html>`__ to see an example of how to use list_compute_capacity_reservations API.
|
7205
|
+
"""
|
7206
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7207
|
+
required_arguments = ['compartmentId']
|
7208
|
+
resource_path = "/computeCapacityReservations"
|
7209
|
+
method = "GET"
|
7210
|
+
operation_name = "list_compute_capacity_reservations"
|
7211
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservation/ListComputeCapacityReservations"
|
7212
|
+
|
7213
|
+
# Don't accept unknown kwargs
|
7214
|
+
expected_kwargs = [
|
7215
|
+
"allow_control_chars",
|
7216
|
+
"retry_strategy",
|
7217
|
+
"availability_domain",
|
7218
|
+
"lifecycle_state",
|
7219
|
+
"display_name",
|
7220
|
+
"limit",
|
7221
|
+
"page",
|
7222
|
+
"opc_request_id",
|
7223
|
+
"sort_by",
|
7224
|
+
"sort_order"
|
7225
|
+
]
|
7226
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7227
|
+
if extra_kwargs:
|
7228
|
+
raise ValueError(
|
7229
|
+
f"list_compute_capacity_reservations got unknown kwargs: {extra_kwargs!r}")
|
7230
|
+
|
7231
|
+
if 'lifecycle_state' in kwargs:
|
7232
|
+
lifecycle_state_allowed_values = ["ACTIVE", "CREATING", "UPDATING", "MOVING", "DELETED", "DELETING"]
|
7233
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
7234
|
+
raise ValueError(
|
7235
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
7236
|
+
)
|
7237
|
+
|
7238
|
+
if 'sort_by' in kwargs:
|
7239
|
+
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
|
7240
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7241
|
+
raise ValueError(
|
7242
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7243
|
+
)
|
7244
|
+
|
7245
|
+
if 'sort_order' in kwargs:
|
7246
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7247
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7248
|
+
raise ValueError(
|
7249
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7250
|
+
)
|
7251
|
+
|
7252
|
+
query_params = {
|
7253
|
+
"availabilityDomain": kwargs.get("availability_domain", missing),
|
7254
|
+
"compartmentId": compartment_id,
|
7255
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
7256
|
+
"displayName": kwargs.get("display_name", missing),
|
7257
|
+
"limit": kwargs.get("limit", missing),
|
7258
|
+
"page": kwargs.get("page", missing),
|
7259
|
+
"sortBy": kwargs.get("sort_by", missing),
|
7260
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
7261
|
+
}
|
7262
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7263
|
+
|
7264
|
+
header_params = {
|
7265
|
+
"accept": "application/json, application/x-json-stream",
|
7266
|
+
"content-type": "application/json",
|
7267
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7268
|
+
}
|
7269
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7270
|
+
|
7271
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7272
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7273
|
+
client_retry_strategy=self.retry_strategy
|
7274
|
+
)
|
7275
|
+
|
7276
|
+
if retry_strategy:
|
7277
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7278
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7279
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7280
|
+
return retry_strategy.make_retrying_call(
|
7281
|
+
self.base_client.call_api,
|
7282
|
+
resource_path=resource_path,
|
7283
|
+
method=method,
|
7284
|
+
query_params=query_params,
|
7285
|
+
header_params=header_params,
|
7286
|
+
response_type="list[ComputeCapacityReservationSummary]",
|
7287
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7288
|
+
operation_name=operation_name,
|
7289
|
+
api_reference_link=api_reference_link,
|
7290
|
+
required_arguments=required_arguments)
|
7291
|
+
else:
|
7292
|
+
return self.base_client.call_api(
|
7293
|
+
resource_path=resource_path,
|
7294
|
+
method=method,
|
7295
|
+
query_params=query_params,
|
7296
|
+
header_params=header_params,
|
7297
|
+
response_type="list[ComputeCapacityReservationSummary]",
|
7298
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7299
|
+
operation_name=operation_name,
|
7300
|
+
api_reference_link=api_reference_link,
|
7301
|
+
required_arguments=required_arguments)
|
7302
|
+
|
7303
|
+
def list_compute_capacity_topologies(self, compartment_id, **kwargs):
|
7304
|
+
"""
|
7305
|
+
Lists the compute capacity topologies in the specified compartment. You can filter the list by a compute
|
7306
|
+
capacity topology display name.
|
7307
|
+
|
7308
|
+
|
7309
|
+
:param str compartment_id: (required)
|
7310
|
+
The `OCID`__ of the compartment.
|
7311
|
+
|
7312
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
7313
|
+
|
7314
|
+
:param str availability_domain: (optional)
|
7315
|
+
The name of the availability domain.
|
7316
|
+
|
7317
|
+
Example: `Uocm:PHX-AD-1`
|
7318
|
+
|
7319
|
+
:param str display_name: (optional)
|
7320
|
+
A filter to return only resources that match the given display name exactly.
|
7321
|
+
|
7322
|
+
:param int limit: (optional)
|
7323
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated
|
7324
|
+
\"List\" call. For important details about how pagination works, see
|
7325
|
+
`List Pagination`__.
|
7326
|
+
|
7327
|
+
Example: `50`
|
7328
|
+
|
7329
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
7330
|
+
|
7331
|
+
:param str page: (optional)
|
7332
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
7333
|
+
call. For important details about how pagination works, see
|
7334
|
+
`List Pagination`__.
|
7335
|
+
|
7336
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
7337
|
+
|
7338
|
+
:param str opc_request_id: (optional)
|
7339
|
+
Unique identifier for the request.
|
7340
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
7341
|
+
|
7342
|
+
:param str sort_by: (optional)
|
7343
|
+
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
7344
|
+
TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
7345
|
+
sort order is case sensitive.
|
7346
|
+
|
7347
|
+
**Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
7348
|
+
optionally filter by availability domain if the scope of the resource type is within a
|
7349
|
+
single availability domain. If you call one of these \"List\" operations without specifying
|
7350
|
+
an availability domain, the resources are grouped by availability domain, then sorted.
|
7351
|
+
|
7352
|
+
Allowed values are: "TIMECREATED", "DISPLAYNAME"
|
7353
|
+
|
7354
|
+
:param str sort_order: (optional)
|
7355
|
+
The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
7356
|
+
is case sensitive.
|
7357
|
+
|
7358
|
+
Allowed values are: "ASC", "DESC"
|
7359
|
+
|
7360
|
+
:param obj retry_strategy: (optional)
|
7361
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7362
|
+
|
7363
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
7364
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7365
|
+
|
7366
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7367
|
+
|
7368
|
+
:param bool allow_control_chars: (optional)
|
7369
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7370
|
+
By default, the response will not allow control characters in strings
|
7371
|
+
|
7372
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ComputeCapacityTopologyCollection`
|
7373
|
+
:rtype: :class:`~oci.response.Response`
|
7374
|
+
|
7375
|
+
:example:
|
7376
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_capacity_topologies.py.html>`__ to see an example of how to use list_compute_capacity_topologies API.
|
7377
|
+
"""
|
7378
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7379
|
+
required_arguments = ['compartmentId']
|
7380
|
+
resource_path = "/computeCapacityTopologies"
|
7381
|
+
method = "GET"
|
7382
|
+
operation_name = "list_compute_capacity_topologies"
|
7383
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityTopology/ListComputeCapacityTopologies"
|
7384
|
+
|
7385
|
+
# Don't accept unknown kwargs
|
7386
|
+
expected_kwargs = [
|
7387
|
+
"allow_control_chars",
|
7388
|
+
"retry_strategy",
|
7389
|
+
"availability_domain",
|
7390
|
+
"display_name",
|
7391
|
+
"limit",
|
7392
|
+
"page",
|
7393
|
+
"opc_request_id",
|
7394
|
+
"sort_by",
|
7395
|
+
"sort_order"
|
7396
|
+
]
|
7397
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7398
|
+
if extra_kwargs:
|
7399
|
+
raise ValueError(
|
7400
|
+
f"list_compute_capacity_topologies got unknown kwargs: {extra_kwargs!r}")
|
7401
|
+
|
7402
|
+
if 'sort_by' in kwargs:
|
7403
|
+
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
|
7404
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7405
|
+
raise ValueError(
|
7406
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7407
|
+
)
|
7408
|
+
|
7409
|
+
if 'sort_order' in kwargs:
|
7410
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7411
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7412
|
+
raise ValueError(
|
7413
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7414
|
+
)
|
7415
|
+
|
7416
|
+
query_params = {
|
7417
|
+
"availabilityDomain": kwargs.get("availability_domain", missing),
|
6309
7418
|
"compartmentId": compartment_id,
|
7419
|
+
"displayName": kwargs.get("display_name", missing),
|
6310
7420
|
"limit": kwargs.get("limit", missing),
|
6311
7421
|
"page": kwargs.get("page", missing),
|
6312
|
-
"
|
6313
|
-
"
|
7422
|
+
"sortBy": kwargs.get("sort_by", missing),
|
7423
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
6314
7424
|
}
|
6315
7425
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6316
7426
|
|
6317
7427
|
header_params = {
|
6318
|
-
"accept": "application/json
|
6319
|
-
"content-type": "application/json"
|
7428
|
+
"accept": "application/json",
|
7429
|
+
"content-type": "application/json",
|
7430
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
6320
7431
|
}
|
7432
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6321
7433
|
|
6322
7434
|
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6323
7435
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6324
7436
|
client_retry_strategy=self.retry_strategy
|
6325
7437
|
)
|
7438
|
+
if retry_strategy is None:
|
7439
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
6326
7440
|
|
6327
7441
|
if retry_strategy:
|
6328
7442
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -6334,7 +7448,7 @@ class ComputeClient(object):
|
|
6334
7448
|
method=method,
|
6335
7449
|
query_params=query_params,
|
6336
7450
|
header_params=header_params,
|
6337
|
-
response_type="
|
7451
|
+
response_type="ComputeCapacityTopologyCollection",
|
6338
7452
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6339
7453
|
operation_name=operation_name,
|
6340
7454
|
api_reference_link=api_reference_link,
|
@@ -6345,19 +7459,19 @@ class ComputeClient(object):
|
|
6345
7459
|
method=method,
|
6346
7460
|
query_params=query_params,
|
6347
7461
|
header_params=header_params,
|
6348
|
-
response_type="
|
7462
|
+
response_type="ComputeCapacityTopologyCollection",
|
6349
7463
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6350
7464
|
operation_name=operation_name,
|
6351
7465
|
api_reference_link=api_reference_link,
|
6352
7466
|
required_arguments=required_arguments)
|
6353
7467
|
|
6354
|
-
def
|
7468
|
+
def list_compute_capacity_topology_compute_bare_metal_hosts(self, compute_capacity_topology_id, **kwargs):
|
6355
7469
|
"""
|
6356
|
-
Lists
|
7470
|
+
Lists compute bare metal hosts in the specified compute capacity topology.
|
6357
7471
|
|
6358
7472
|
|
6359
|
-
:param str
|
6360
|
-
The `OCID`__ of the
|
7473
|
+
:param str compute_capacity_topology_id: (required)
|
7474
|
+
The `OCID`__ of the compute capacity topology.
|
6361
7475
|
|
6362
7476
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6363
7477
|
|
@@ -6366,9 +7480,25 @@ class ComputeClient(object):
|
|
6366
7480
|
|
6367
7481
|
Example: `Uocm:PHX-AD-1`
|
6368
7482
|
|
6369
|
-
:param str
|
6370
|
-
|
6371
|
-
|
7483
|
+
:param str compartment_id: (optional)
|
7484
|
+
The `OCID`__ of the compartment.
|
7485
|
+
|
7486
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
7487
|
+
|
7488
|
+
:param str compute_hpc_island_id: (optional)
|
7489
|
+
The `OCID`__ of the compute HPC island.
|
7490
|
+
|
7491
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
7492
|
+
|
7493
|
+
:param str compute_network_block_id: (optional)
|
7494
|
+
The `OCID`__ of the compute network block.
|
7495
|
+
|
7496
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
7497
|
+
|
7498
|
+
:param str compute_local_block_id: (optional)
|
7499
|
+
The `OCID`__ of the compute local block.
|
7500
|
+
|
7501
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6372
7502
|
|
6373
7503
|
:param int limit: (optional)
|
6374
7504
|
For list pagination. The maximum number of results per page, or items to return in a paginated
|
@@ -6386,8 +7516,9 @@ class ComputeClient(object):
|
|
6386
7516
|
|
6387
7517
|
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6388
7518
|
|
6389
|
-
:param str
|
6390
|
-
|
7519
|
+
:param str opc_request_id: (optional)
|
7520
|
+
Unique identifier for the request.
|
7521
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
6391
7522
|
|
6392
7523
|
:param str sort_by: (optional)
|
6393
7524
|
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
@@ -6410,7 +7541,7 @@ class ComputeClient(object):
|
|
6410
7541
|
:param obj retry_strategy: (optional)
|
6411
7542
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6412
7543
|
|
6413
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
7544
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
6414
7545
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6415
7546
|
|
6416
7547
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -6419,35 +7550,48 @@ class ComputeClient(object):
|
|
6419
7550
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6420
7551
|
By default, the response will not allow control characters in strings
|
6421
7552
|
|
6422
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
7553
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ComputeBareMetalHostCollection`
|
6423
7554
|
:rtype: :class:`~oci.response.Response`
|
6424
7555
|
|
6425
7556
|
:example:
|
6426
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7557
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_capacity_topology_compute_bare_metal_hosts.py.html>`__ to see an example of how to use list_compute_capacity_topology_compute_bare_metal_hosts API.
|
6427
7558
|
"""
|
6428
7559
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6429
|
-
required_arguments = ['
|
6430
|
-
resource_path = "/
|
7560
|
+
required_arguments = ['computeCapacityTopologyId']
|
7561
|
+
resource_path = "/computeCapacityTopologies/{computeCapacityTopologyId}/computeBareMetalHosts"
|
6431
7562
|
method = "GET"
|
6432
|
-
operation_name = "
|
6433
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
7563
|
+
operation_name = "list_compute_capacity_topology_compute_bare_metal_hosts"
|
7564
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeBareMetalHost/ListComputeCapacityTopologyComputeBareMetalHosts"
|
6434
7565
|
|
6435
7566
|
# Don't accept unknown kwargs
|
6436
7567
|
expected_kwargs = [
|
6437
7568
|
"allow_control_chars",
|
6438
7569
|
"retry_strategy",
|
6439
7570
|
"availability_domain",
|
6440
|
-
"
|
7571
|
+
"compartment_id",
|
7572
|
+
"compute_hpc_island_id",
|
7573
|
+
"compute_network_block_id",
|
7574
|
+
"compute_local_block_id",
|
6441
7575
|
"limit",
|
6442
7576
|
"page",
|
6443
|
-
"
|
7577
|
+
"opc_request_id",
|
6444
7578
|
"sort_by",
|
6445
7579
|
"sort_order"
|
6446
7580
|
]
|
6447
7581
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6448
7582
|
if extra_kwargs:
|
6449
7583
|
raise ValueError(
|
6450
|
-
f"
|
7584
|
+
f"list_compute_capacity_topology_compute_bare_metal_hosts got unknown kwargs: {extra_kwargs!r}")
|
7585
|
+
|
7586
|
+
path_params = {
|
7587
|
+
"computeCapacityTopologyId": compute_capacity_topology_id
|
7588
|
+
}
|
7589
|
+
|
7590
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
7591
|
+
|
7592
|
+
for (k, v) in six.iteritems(path_params):
|
7593
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7594
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6451
7595
|
|
6452
7596
|
if 'sort_by' in kwargs:
|
6453
7597
|
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
|
@@ -6465,10 +7609,12 @@ class ComputeClient(object):
|
|
6465
7609
|
|
6466
7610
|
query_params = {
|
6467
7611
|
"availabilityDomain": kwargs.get("availability_domain", missing),
|
6468
|
-
"compartmentId": compartment_id,
|
7612
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
7613
|
+
"computeHpcIslandId": kwargs.get("compute_hpc_island_id", missing),
|
7614
|
+
"computeNetworkBlockId": kwargs.get("compute_network_block_id", missing),
|
7615
|
+
"computeLocalBlockId": kwargs.get("compute_local_block_id", missing),
|
6469
7616
|
"limit": kwargs.get("limit", missing),
|
6470
7617
|
"page": kwargs.get("page", missing),
|
6471
|
-
"displayName": kwargs.get("display_name", missing),
|
6472
7618
|
"sortBy": kwargs.get("sort_by", missing),
|
6473
7619
|
"sortOrder": kwargs.get("sort_order", missing)
|
6474
7620
|
}
|
@@ -6485,6 +7631,8 @@ class ComputeClient(object):
|
|
6485
7631
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6486
7632
|
client_retry_strategy=self.retry_strategy
|
6487
7633
|
)
|
7634
|
+
if retry_strategy is None:
|
7635
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
6488
7636
|
|
6489
7637
|
if retry_strategy:
|
6490
7638
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -6494,9 +7642,10 @@ class ComputeClient(object):
|
|
6494
7642
|
self.base_client.call_api,
|
6495
7643
|
resource_path=resource_path,
|
6496
7644
|
method=method,
|
7645
|
+
path_params=path_params,
|
6497
7646
|
query_params=query_params,
|
6498
7647
|
header_params=header_params,
|
6499
|
-
response_type="
|
7648
|
+
response_type="ComputeBareMetalHostCollection",
|
6500
7649
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6501
7650
|
operation_name=operation_name,
|
6502
7651
|
api_reference_link=api_reference_link,
|
@@ -6505,21 +7654,24 @@ class ComputeClient(object):
|
|
6505
7654
|
return self.base_client.call_api(
|
6506
7655
|
resource_path=resource_path,
|
6507
7656
|
method=method,
|
7657
|
+
path_params=path_params,
|
6508
7658
|
query_params=query_params,
|
6509
7659
|
header_params=header_params,
|
6510
|
-
response_type="
|
7660
|
+
response_type="ComputeBareMetalHostCollection",
|
6511
7661
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6512
7662
|
operation_name=operation_name,
|
6513
7663
|
api_reference_link=api_reference_link,
|
6514
7664
|
required_arguments=required_arguments)
|
6515
7665
|
|
6516
|
-
def
|
7666
|
+
def list_compute_capacity_topology_compute_hpc_islands(self, compute_capacity_topology_id, **kwargs):
|
6517
7667
|
"""
|
6518
|
-
Lists
|
7668
|
+
Lists compute HPC islands in the specified compute capacity topology.
|
6519
7669
|
|
6520
7670
|
|
6521
|
-
:param str
|
6522
|
-
The OCID of the compute capacity
|
7671
|
+
:param str compute_capacity_topology_id: (required)
|
7672
|
+
The `OCID`__ of the compute capacity topology.
|
7673
|
+
|
7674
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6523
7675
|
|
6524
7676
|
:param str availability_domain: (optional)
|
6525
7677
|
The name of the availability domain.
|
@@ -6531,10 +7683,6 @@ class ComputeClient(object):
|
|
6531
7683
|
|
6532
7684
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6533
7685
|
|
6534
|
-
:param str opc_request_id: (optional)
|
6535
|
-
Unique identifier for the request.
|
6536
|
-
If you need to contact Oracle about a particular request, please provide the request ID.
|
6537
|
-
|
6538
7686
|
:param int limit: (optional)
|
6539
7687
|
For list pagination. The maximum number of results per page, or items to return in a paginated
|
6540
7688
|
\"List\" call. For important details about how pagination works, see
|
@@ -6551,6 +7699,10 @@ class ComputeClient(object):
|
|
6551
7699
|
|
6552
7700
|
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6553
7701
|
|
7702
|
+
:param str opc_request_id: (optional)
|
7703
|
+
Unique identifier for the request.
|
7704
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
7705
|
+
|
6554
7706
|
:param str sort_by: (optional)
|
6555
7707
|
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
6556
7708
|
TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
@@ -6572,7 +7724,7 @@ class ComputeClient(object):
|
|
6572
7724
|
:param obj retry_strategy: (optional)
|
6573
7725
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6574
7726
|
|
6575
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
7727
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
6576
7728
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6577
7729
|
|
6578
7730
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -6581,18 +7733,18 @@ class ComputeClient(object):
|
|
6581
7733
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6582
7734
|
By default, the response will not allow control characters in strings
|
6583
7735
|
|
6584
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
7736
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ComputeHpcIslandCollection`
|
6585
7737
|
:rtype: :class:`~oci.response.Response`
|
6586
7738
|
|
6587
7739
|
:example:
|
6588
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7740
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_capacity_topology_compute_hpc_islands.py.html>`__ to see an example of how to use list_compute_capacity_topology_compute_hpc_islands API.
|
6589
7741
|
"""
|
6590
7742
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6591
|
-
required_arguments = ['
|
6592
|
-
resource_path = "/
|
7743
|
+
required_arguments = ['computeCapacityTopologyId']
|
7744
|
+
resource_path = "/computeCapacityTopologies/{computeCapacityTopologyId}/computeHpcIslands"
|
6593
7745
|
method = "GET"
|
6594
|
-
operation_name = "
|
6595
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
7746
|
+
operation_name = "list_compute_capacity_topology_compute_hpc_islands"
|
7747
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHpcIsland/ListComputeCapacityTopologyComputeHpcIslands"
|
6596
7748
|
|
6597
7749
|
# Don't accept unknown kwargs
|
6598
7750
|
expected_kwargs = [
|
@@ -6600,19 +7752,19 @@ class ComputeClient(object):
|
|
6600
7752
|
"retry_strategy",
|
6601
7753
|
"availability_domain",
|
6602
7754
|
"compartment_id",
|
6603
|
-
"opc_request_id",
|
6604
7755
|
"limit",
|
6605
7756
|
"page",
|
7757
|
+
"opc_request_id",
|
6606
7758
|
"sort_by",
|
6607
7759
|
"sort_order"
|
6608
7760
|
]
|
6609
7761
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6610
7762
|
if extra_kwargs:
|
6611
7763
|
raise ValueError(
|
6612
|
-
f"
|
7764
|
+
f"list_compute_capacity_topology_compute_hpc_islands got unknown kwargs: {extra_kwargs!r}")
|
6613
7765
|
|
6614
7766
|
path_params = {
|
6615
|
-
"
|
7767
|
+
"computeCapacityTopologyId": compute_capacity_topology_id
|
6616
7768
|
}
|
6617
7769
|
|
6618
7770
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -6646,7 +7798,7 @@ class ComputeClient(object):
|
|
6646
7798
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6647
7799
|
|
6648
7800
|
header_params = {
|
6649
|
-
"accept": "application/json
|
7801
|
+
"accept": "application/json",
|
6650
7802
|
"content-type": "application/json",
|
6651
7803
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
6652
7804
|
}
|
@@ -6656,6 +7808,8 @@ class ComputeClient(object):
|
|
6656
7808
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6657
7809
|
client_retry_strategy=self.retry_strategy
|
6658
7810
|
)
|
7811
|
+
if retry_strategy is None:
|
7812
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
6659
7813
|
|
6660
7814
|
if retry_strategy:
|
6661
7815
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -6668,7 +7822,7 @@ class ComputeClient(object):
|
|
6668
7822
|
path_params=path_params,
|
6669
7823
|
query_params=query_params,
|
6670
7824
|
header_params=header_params,
|
6671
|
-
response_type="
|
7825
|
+
response_type="ComputeHpcIslandCollection",
|
6672
7826
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6673
7827
|
operation_name=operation_name,
|
6674
7828
|
api_reference_link=api_reference_link,
|
@@ -6680,22 +7834,19 @@ class ComputeClient(object):
|
|
6680
7834
|
path_params=path_params,
|
6681
7835
|
query_params=query_params,
|
6682
7836
|
header_params=header_params,
|
6683
|
-
response_type="
|
7837
|
+
response_type="ComputeHpcIslandCollection",
|
6684
7838
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6685
7839
|
operation_name=operation_name,
|
6686
7840
|
api_reference_link=api_reference_link,
|
6687
7841
|
required_arguments=required_arguments)
|
6688
7842
|
|
6689
|
-
def
|
7843
|
+
def list_compute_capacity_topology_compute_network_blocks(self, compute_capacity_topology_id, **kwargs):
|
6690
7844
|
"""
|
6691
|
-
Lists
|
7845
|
+
Lists compute network blocks in the specified compute capacity topology.
|
6692
7846
|
|
6693
|
-
You can limit the list by specifying a compute capacity reservation display name
|
6694
|
-
(the list will include all the identically-named compute capacity reservations in the compartment).
|
6695
7847
|
|
6696
|
-
|
6697
|
-
|
6698
|
-
The `OCID`__ of the compartment.
|
7848
|
+
:param str compute_capacity_topology_id: (required)
|
7849
|
+
The `OCID`__ of the compute capacity topology.
|
6699
7850
|
|
6700
7851
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6701
7852
|
|
@@ -6704,13 +7855,15 @@ class ComputeClient(object):
|
|
6704
7855
|
|
6705
7856
|
Example: `Uocm:PHX-AD-1`
|
6706
7857
|
|
6707
|
-
:param str
|
6708
|
-
|
7858
|
+
:param str compartment_id: (optional)
|
7859
|
+
The `OCID`__ of the compartment.
|
6709
7860
|
|
6710
|
-
|
7861
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6711
7862
|
|
6712
|
-
:param str
|
6713
|
-
|
7863
|
+
:param str compute_hpc_island_id: (optional)
|
7864
|
+
The `OCID`__ of the compute HPC island.
|
7865
|
+
|
7866
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
6714
7867
|
|
6715
7868
|
:param int limit: (optional)
|
6716
7869
|
For list pagination. The maximum number of results per page, or items to return in a paginated
|
@@ -6753,7 +7906,7 @@ class ComputeClient(object):
|
|
6753
7906
|
:param obj retry_strategy: (optional)
|
6754
7907
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6755
7908
|
|
6756
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
7909
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
6757
7910
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6758
7911
|
|
6759
7912
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -6762,26 +7915,26 @@ class ComputeClient(object):
|
|
6762
7915
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6763
7916
|
By default, the response will not allow control characters in strings
|
6764
7917
|
|
6765
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
7918
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ComputeNetworkBlockCollection`
|
6766
7919
|
:rtype: :class:`~oci.response.Response`
|
6767
7920
|
|
6768
7921
|
:example:
|
6769
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7922
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_capacity_topology_compute_network_blocks.py.html>`__ to see an example of how to use list_compute_capacity_topology_compute_network_blocks API.
|
6770
7923
|
"""
|
6771
7924
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6772
|
-
required_arguments = ['
|
6773
|
-
resource_path = "/
|
7925
|
+
required_arguments = ['computeCapacityTopologyId']
|
7926
|
+
resource_path = "/computeCapacityTopologies/{computeCapacityTopologyId}/computeNetworkBlocks"
|
6774
7927
|
method = "GET"
|
6775
|
-
operation_name = "
|
6776
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/
|
7928
|
+
operation_name = "list_compute_capacity_topology_compute_network_blocks"
|
7929
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeNetworkBlock/ListComputeCapacityTopologyComputeNetworkBlocks"
|
6777
7930
|
|
6778
7931
|
# Don't accept unknown kwargs
|
6779
7932
|
expected_kwargs = [
|
6780
7933
|
"allow_control_chars",
|
6781
7934
|
"retry_strategy",
|
6782
7935
|
"availability_domain",
|
6783
|
-
"
|
6784
|
-
"
|
7936
|
+
"compartment_id",
|
7937
|
+
"compute_hpc_island_id",
|
6785
7938
|
"limit",
|
6786
7939
|
"page",
|
6787
7940
|
"opc_request_id",
|
@@ -6791,14 +7944,17 @@ class ComputeClient(object):
|
|
6791
7944
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6792
7945
|
if extra_kwargs:
|
6793
7946
|
raise ValueError(
|
6794
|
-
f"
|
7947
|
+
f"list_compute_capacity_topology_compute_network_blocks got unknown kwargs: {extra_kwargs!r}")
|
6795
7948
|
|
6796
|
-
|
6797
|
-
|
6798
|
-
|
6799
|
-
|
6800
|
-
|
6801
|
-
|
7949
|
+
path_params = {
|
7950
|
+
"computeCapacityTopologyId": compute_capacity_topology_id
|
7951
|
+
}
|
7952
|
+
|
7953
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
7954
|
+
|
7955
|
+
for (k, v) in six.iteritems(path_params):
|
7956
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7957
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6802
7958
|
|
6803
7959
|
if 'sort_by' in kwargs:
|
6804
7960
|
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
|
@@ -6816,9 +7972,8 @@ class ComputeClient(object):
|
|
6816
7972
|
|
6817
7973
|
query_params = {
|
6818
7974
|
"availabilityDomain": kwargs.get("availability_domain", missing),
|
6819
|
-
"compartmentId": compartment_id,
|
6820
|
-
"
|
6821
|
-
"displayName": kwargs.get("display_name", missing),
|
7975
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
7976
|
+
"computeHpcIslandId": kwargs.get("compute_hpc_island_id", missing),
|
6822
7977
|
"limit": kwargs.get("limit", missing),
|
6823
7978
|
"page": kwargs.get("page", missing),
|
6824
7979
|
"sortBy": kwargs.get("sort_by", missing),
|
@@ -6827,7 +7982,7 @@ class ComputeClient(object):
|
|
6827
7982
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6828
7983
|
|
6829
7984
|
header_params = {
|
6830
|
-
"accept": "application/json
|
7985
|
+
"accept": "application/json",
|
6831
7986
|
"content-type": "application/json",
|
6832
7987
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
6833
7988
|
}
|
@@ -6837,6 +7992,8 @@ class ComputeClient(object):
|
|
6837
7992
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6838
7993
|
client_retry_strategy=self.retry_strategy
|
6839
7994
|
)
|
7995
|
+
if retry_strategy is None:
|
7996
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
6840
7997
|
|
6841
7998
|
if retry_strategy:
|
6842
7999
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -6846,9 +8003,10 @@ class ComputeClient(object):
|
|
6846
8003
|
self.base_client.call_api,
|
6847
8004
|
resource_path=resource_path,
|
6848
8005
|
method=method,
|
8006
|
+
path_params=path_params,
|
6849
8007
|
query_params=query_params,
|
6850
8008
|
header_params=header_params,
|
6851
|
-
response_type="
|
8009
|
+
response_type="ComputeNetworkBlockCollection",
|
6852
8010
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6853
8011
|
operation_name=operation_name,
|
6854
8012
|
api_reference_link=api_reference_link,
|
@@ -6857,9 +8015,10 @@ class ComputeClient(object):
|
|
6857
8015
|
return self.base_client.call_api(
|
6858
8016
|
resource_path=resource_path,
|
6859
8017
|
method=method,
|
8018
|
+
path_params=path_params,
|
6860
8019
|
query_params=query_params,
|
6861
8020
|
header_params=header_params,
|
6862
|
-
response_type="
|
8021
|
+
response_type="ComputeNetworkBlockCollection",
|
6863
8022
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6864
8023
|
operation_name=operation_name,
|
6865
8024
|
api_reference_link=api_reference_link,
|
@@ -6940,7 +8099,7 @@ class ComputeClient(object):
|
|
6940
8099
|
:rtype: :class:`~oci.response.Response`
|
6941
8100
|
|
6942
8101
|
:example:
|
6943
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8102
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_clusters.py.html>`__ to see an example of how to use list_compute_clusters API.
|
6944
8103
|
"""
|
6945
8104
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6946
8105
|
required_arguments = ['compartmentId']
|
@@ -7093,7 +8252,7 @@ class ComputeClient(object):
|
|
7093
8252
|
:rtype: :class:`~oci.response.Response`
|
7094
8253
|
|
7095
8254
|
:example:
|
7096
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8255
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_global_image_capability_schema_versions.py.html>`__ to see an example of how to use list_compute_global_image_capability_schema_versions API.
|
7097
8256
|
"""
|
7098
8257
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7099
8258
|
required_arguments = ['computeGlobalImageCapabilitySchemaId']
|
@@ -7252,7 +8411,7 @@ class ComputeClient(object):
|
|
7252
8411
|
:rtype: :class:`~oci.response.Response`
|
7253
8412
|
|
7254
8413
|
:example:
|
7255
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8414
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_global_image_capability_schemas.py.html>`__ to see an example of how to use list_compute_global_image_capability_schemas API.
|
7256
8415
|
"""
|
7257
8416
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7258
8417
|
required_arguments = []
|
@@ -7406,7 +8565,7 @@ class ComputeClient(object):
|
|
7406
8565
|
:rtype: :class:`~oci.response.Response`
|
7407
8566
|
|
7408
8567
|
:example:
|
7409
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8568
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_compute_image_capability_schemas.py.html>`__ to see an example of how to use list_compute_image_capability_schemas API.
|
7410
8569
|
"""
|
7411
8570
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7412
8571
|
required_arguments = []
|
@@ -7570,7 +8729,7 @@ class ComputeClient(object):
|
|
7570
8729
|
:rtype: :class:`~oci.response.Response`
|
7571
8730
|
|
7572
8731
|
:example:
|
7573
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8732
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_console_histories.py.html>`__ to see an example of how to use list_console_histories API.
|
7574
8733
|
"""
|
7575
8734
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7576
8735
|
required_arguments = ['compartmentId']
|
@@ -7721,7 +8880,7 @@ class ComputeClient(object):
|
|
7721
8880
|
:rtype: :class:`~oci.response.Response`
|
7722
8881
|
|
7723
8882
|
:example:
|
7724
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8883
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_dedicated_vm_host_instance_shapes.py.html>`__ to see an example of how to use list_dedicated_vm_host_instance_shapes API.
|
7725
8884
|
"""
|
7726
8885
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7727
8886
|
required_arguments = ['compartmentId']
|
@@ -7865,7 +9024,7 @@ class ComputeClient(object):
|
|
7865
9024
|
:rtype: :class:`~oci.response.Response`
|
7866
9025
|
|
7867
9026
|
:example:
|
7868
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9027
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_dedicated_vm_host_instances.py.html>`__ to see an example of how to use list_dedicated_vm_host_instances API.
|
7869
9028
|
"""
|
7870
9029
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7871
9030
|
required_arguments = ['dedicatedVmHostId', 'compartmentId']
|
@@ -8019,7 +9178,7 @@ class ComputeClient(object):
|
|
8019
9178
|
:rtype: :class:`~oci.response.Response`
|
8020
9179
|
|
8021
9180
|
:example:
|
8022
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9181
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_dedicated_vm_host_shapes.py.html>`__ to see an example of how to use list_dedicated_vm_host_shapes API.
|
8023
9182
|
"""
|
8024
9183
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8025
9184
|
required_arguments = ['compartmentId']
|
@@ -8180,7 +9339,7 @@ class ComputeClient(object):
|
|
8180
9339
|
:rtype: :class:`~oci.response.Response`
|
8181
9340
|
|
8182
9341
|
:example:
|
8183
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9342
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_dedicated_vm_hosts.py.html>`__ to see an example of how to use list_dedicated_vm_hosts API.
|
8184
9343
|
"""
|
8185
9344
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8186
9345
|
required_arguments = ['compartmentId']
|
@@ -8331,7 +9490,7 @@ class ComputeClient(object):
|
|
8331
9490
|
:rtype: :class:`~oci.response.Response`
|
8332
9491
|
|
8333
9492
|
:example:
|
8334
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9493
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_image_shape_compatibility_entries.py.html>`__ to see an example of how to use list_image_shape_compatibility_entries API.
|
8335
9494
|
"""
|
8336
9495
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8337
9496
|
required_arguments = ['imageId']
|
@@ -8507,7 +9666,7 @@ class ComputeClient(object):
|
|
8507
9666
|
:rtype: :class:`~oci.response.Response`
|
8508
9667
|
|
8509
9668
|
:example:
|
8510
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9669
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_images.py.html>`__ to see an example of how to use list_images API.
|
8511
9670
|
"""
|
8512
9671
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8513
9672
|
required_arguments = ['compartmentId']
|
@@ -8658,7 +9817,7 @@ class ComputeClient(object):
|
|
8658
9817
|
:rtype: :class:`~oci.response.Response`
|
8659
9818
|
|
8660
9819
|
:example:
|
8661
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9820
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_instance_console_connections.py.html>`__ to see an example of how to use list_instance_console_connections API.
|
8662
9821
|
"""
|
8663
9822
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8664
9823
|
required_arguments = ['compartmentId']
|
@@ -8795,7 +9954,7 @@ class ComputeClient(object):
|
|
8795
9954
|
:rtype: :class:`~oci.response.Response`
|
8796
9955
|
|
8797
9956
|
:example:
|
8798
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9957
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_instance_devices.py.html>`__ to see an example of how to use list_instance_devices API.
|
8799
9958
|
"""
|
8800
9959
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8801
9960
|
required_arguments = ['instanceId']
|
@@ -8986,7 +10145,7 @@ class ComputeClient(object):
|
|
8986
10145
|
:rtype: :class:`~oci.response.Response`
|
8987
10146
|
|
8988
10147
|
:example:
|
8989
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10148
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_instances.py.html>`__ to see an example of how to use list_instances API.
|
8990
10149
|
"""
|
8991
10150
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8992
10151
|
required_arguments = ['compartmentId']
|
@@ -9139,7 +10298,7 @@ class ComputeClient(object):
|
|
9139
10298
|
:rtype: :class:`~oci.response.Response`
|
9140
10299
|
|
9141
10300
|
:example:
|
9142
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10301
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_shapes.py.html>`__ to see an example of how to use list_shapes API.
|
9143
10302
|
"""
|
9144
10303
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9145
10304
|
required_arguments = ['compartmentId']
|
@@ -9263,7 +10422,7 @@ class ComputeClient(object):
|
|
9263
10422
|
:rtype: :class:`~oci.response.Response`
|
9264
10423
|
|
9265
10424
|
:example:
|
9266
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10425
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_vnic_attachments.py.html>`__ to see an example of how to use list_vnic_attachments API.
|
9267
10426
|
"""
|
9268
10427
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9269
10428
|
required_arguments = ['compartmentId']
|
@@ -9391,7 +10550,7 @@ class ComputeClient(object):
|
|
9391
10550
|
:rtype: :class:`~oci.response.Response`
|
9392
10551
|
|
9393
10552
|
:example:
|
9394
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10553
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/list_volume_attachments.py.html>`__ to see an example of how to use list_volume_attachments API.
|
9395
10554
|
"""
|
9396
10555
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9397
10556
|
required_arguments = ['compartmentId']
|
@@ -9491,7 +10650,7 @@ class ComputeClient(object):
|
|
9491
10650
|
:rtype: :class:`~oci.response.Response`
|
9492
10651
|
|
9493
10652
|
:example:
|
9494
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10653
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/remove_image_shape_compatibility_entry.py.html>`__ to see an example of how to use remove_image_shape_compatibility_entry API.
|
9495
10654
|
"""
|
9496
10655
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9497
10656
|
required_arguments = ['imageId', 'shapeName']
|
@@ -9595,7 +10754,7 @@ class ComputeClient(object):
|
|
9595
10754
|
:rtype: :class:`~oci.response.Response`
|
9596
10755
|
|
9597
10756
|
:example:
|
9598
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10757
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/terminate_instance.py.html>`__ to see an example of how to use terminate_instance API.
|
9599
10758
|
"""
|
9600
10759
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9601
10760
|
required_arguments = ['instanceId']
|
@@ -9708,7 +10867,7 @@ class ComputeClient(object):
|
|
9708
10867
|
:rtype: :class:`~oci.response.Response`
|
9709
10868
|
|
9710
10869
|
:example:
|
9711
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10870
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_compute_capacity_reservation.py.html>`__ to see an example of how to use update_compute_capacity_reservation API.
|
9712
10871
|
"""
|
9713
10872
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9714
10873
|
required_arguments = ['capacityReservationId']
|
@@ -9779,6 +10938,117 @@ class ComputeClient(object):
|
|
9779
10938
|
api_reference_link=api_reference_link,
|
9780
10939
|
required_arguments=required_arguments)
|
9781
10940
|
|
10941
|
+
def update_compute_capacity_topology(self, compute_capacity_topology_id, update_compute_capacity_topology_details, **kwargs):
|
10942
|
+
"""
|
10943
|
+
Updates the specified compute capacity topology. Fields that are not provided in the request will not be updated.
|
10944
|
+
|
10945
|
+
|
10946
|
+
:param str compute_capacity_topology_id: (required)
|
10947
|
+
The `OCID`__ of the compute capacity topology.
|
10948
|
+
|
10949
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
10950
|
+
|
10951
|
+
:param oci.core.models.UpdateComputeCapacityTopologyDetails update_compute_capacity_topology_details: (required)
|
10952
|
+
Update compute capacity topology details.
|
10953
|
+
|
10954
|
+
:param str if_match: (optional)
|
10955
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
10956
|
+
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
10957
|
+
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
10958
|
+
|
10959
|
+
:param str opc_request_id: (optional)
|
10960
|
+
Unique identifier for the request.
|
10961
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
10962
|
+
|
10963
|
+
:param obj retry_strategy: (optional)
|
10964
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
10965
|
+
|
10966
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
10967
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
10968
|
+
|
10969
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
10970
|
+
|
10971
|
+
:param bool allow_control_chars: (optional)
|
10972
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
10973
|
+
By default, the response will not allow control characters in strings
|
10974
|
+
|
10975
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
10976
|
+
:rtype: :class:`~oci.response.Response`
|
10977
|
+
|
10978
|
+
:example:
|
10979
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_compute_capacity_topology.py.html>`__ to see an example of how to use update_compute_capacity_topology API.
|
10980
|
+
"""
|
10981
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10982
|
+
required_arguments = ['computeCapacityTopologyId']
|
10983
|
+
resource_path = "/computeCapacityTopologies/{computeCapacityTopologyId}"
|
10984
|
+
method = "PUT"
|
10985
|
+
operation_name = "update_compute_capacity_topology"
|
10986
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityTopology/UpdateComputeCapacityTopology"
|
10987
|
+
|
10988
|
+
# Don't accept unknown kwargs
|
10989
|
+
expected_kwargs = [
|
10990
|
+
"allow_control_chars",
|
10991
|
+
"retry_strategy",
|
10992
|
+
"if_match",
|
10993
|
+
"opc_request_id"
|
10994
|
+
]
|
10995
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
10996
|
+
if extra_kwargs:
|
10997
|
+
raise ValueError(
|
10998
|
+
f"update_compute_capacity_topology got unknown kwargs: {extra_kwargs!r}")
|
10999
|
+
|
11000
|
+
path_params = {
|
11001
|
+
"computeCapacityTopologyId": compute_capacity_topology_id
|
11002
|
+
}
|
11003
|
+
|
11004
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
11005
|
+
|
11006
|
+
for (k, v) in six.iteritems(path_params):
|
11007
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
11008
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
11009
|
+
|
11010
|
+
header_params = {
|
11011
|
+
"accept": "application/json",
|
11012
|
+
"content-type": "application/json",
|
11013
|
+
"if-match": kwargs.get("if_match", missing),
|
11014
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
11015
|
+
}
|
11016
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
11017
|
+
|
11018
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
11019
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
11020
|
+
client_retry_strategy=self.retry_strategy
|
11021
|
+
)
|
11022
|
+
if retry_strategy is None:
|
11023
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
11024
|
+
|
11025
|
+
if retry_strategy:
|
11026
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
11027
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
11028
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
11029
|
+
return retry_strategy.make_retrying_call(
|
11030
|
+
self.base_client.call_api,
|
11031
|
+
resource_path=resource_path,
|
11032
|
+
method=method,
|
11033
|
+
path_params=path_params,
|
11034
|
+
header_params=header_params,
|
11035
|
+
body=update_compute_capacity_topology_details,
|
11036
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
11037
|
+
operation_name=operation_name,
|
11038
|
+
api_reference_link=api_reference_link,
|
11039
|
+
required_arguments=required_arguments)
|
11040
|
+
else:
|
11041
|
+
return self.base_client.call_api(
|
11042
|
+
resource_path=resource_path,
|
11043
|
+
method=method,
|
11044
|
+
path_params=path_params,
|
11045
|
+
header_params=header_params,
|
11046
|
+
body=update_compute_capacity_topology_details,
|
11047
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
11048
|
+
operation_name=operation_name,
|
11049
|
+
api_reference_link=api_reference_link,
|
11050
|
+
required_arguments=required_arguments)
|
11051
|
+
|
9782
11052
|
def update_compute_cluster(self, compute_cluster_id, update_compute_cluster_details, **kwargs):
|
9783
11053
|
"""
|
9784
11054
|
Updates a compute cluster. A `compute cluster`__ is a
|
@@ -9836,7 +11106,7 @@ class ComputeClient(object):
|
|
9836
11106
|
:rtype: :class:`~oci.response.Response`
|
9837
11107
|
|
9838
11108
|
:example:
|
9839
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11109
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_compute_cluster.py.html>`__ to see an example of how to use update_compute_cluster API.
|
9840
11110
|
"""
|
9841
11111
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9842
11112
|
required_arguments = ['computeClusterId']
|
@@ -9944,7 +11214,7 @@ class ComputeClient(object):
|
|
9944
11214
|
:rtype: :class:`~oci.response.Response`
|
9945
11215
|
|
9946
11216
|
:example:
|
9947
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11217
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_compute_image_capability_schema.py.html>`__ to see an example of how to use update_compute_image_capability_schema API.
|
9948
11218
|
"""
|
9949
11219
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
9950
11220
|
required_arguments = ['computeImageCapabilitySchemaId']
|
@@ -10047,7 +11317,7 @@ class ComputeClient(object):
|
|
10047
11317
|
:rtype: :class:`~oci.response.Response`
|
10048
11318
|
|
10049
11319
|
:example:
|
10050
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11320
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_console_history.py.html>`__ to see an example of how to use update_console_history API.
|
10051
11321
|
"""
|
10052
11322
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10053
11323
|
required_arguments = ['instanceConsoleHistoryId']
|
@@ -10162,7 +11432,7 @@ class ComputeClient(object):
|
|
10162
11432
|
:rtype: :class:`~oci.response.Response`
|
10163
11433
|
|
10164
11434
|
:example:
|
10165
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11435
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_dedicated_vm_host.py.html>`__ to see an example of how to use update_dedicated_vm_host API.
|
10166
11436
|
"""
|
10167
11437
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10168
11438
|
required_arguments = ['dedicatedVmHostId']
|
@@ -10279,7 +11549,7 @@ class ComputeClient(object):
|
|
10279
11549
|
:rtype: :class:`~oci.response.Response`
|
10280
11550
|
|
10281
11551
|
:example:
|
10282
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11552
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_image.py.html>`__ to see an example of how to use update_image API.
|
10283
11553
|
"""
|
10284
11554
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10285
11555
|
required_arguments = ['imageId']
|
@@ -10400,7 +11670,7 @@ class ComputeClient(object):
|
|
10400
11670
|
:rtype: :class:`~oci.response.Response`
|
10401
11671
|
|
10402
11672
|
:example:
|
10403
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11673
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_instance.py.html>`__ to see an example of how to use update_instance API.
|
10404
11674
|
"""
|
10405
11675
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10406
11676
|
required_arguments = ['instanceId']
|
@@ -10510,7 +11780,7 @@ class ComputeClient(object):
|
|
10510
11780
|
:rtype: :class:`~oci.response.Response`
|
10511
11781
|
|
10512
11782
|
:example:
|
10513
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11783
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_instance_console_connection.py.html>`__ to see an example of how to use update_instance_console_connection API.
|
10514
11784
|
"""
|
10515
11785
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10516
11786
|
required_arguments = ['instanceConsoleConnectionId']
|
@@ -10619,7 +11889,7 @@ class ComputeClient(object):
|
|
10619
11889
|
:rtype: :class:`~oci.response.Response`
|
10620
11890
|
|
10621
11891
|
:example:
|
10622
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
11892
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/core/update_volume_attachment.py.html>`__ to see an example of how to use update_volume_attachment API.
|
10623
11893
|
"""
|
10624
11894
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10625
11895
|
required_arguments = ['volumeAttachmentId']
|