oci 2.132.0__py3-none-any.whl → 2.134.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 +626 -28
- oci/ai_document/ai_service_document_client_composite_operations.py +180 -0
- oci/ai_document/models/__init__.py +10 -0
- oci/ai_document/models/add_model_lock_details.py +150 -0
- oci/ai_document/models/add_project_lock_details.py +150 -0
- oci/ai_document/models/analyze_document_details.py +5 -5
- oci/ai_document/models/detected_document_type.py +0 -35
- oci/ai_document/models/document_classification_feature.py +2 -33
- oci/ai_document/models/document_key_value_extraction_feature.py +2 -33
- oci/ai_document/models/general_processor_config.py +5 -5
- oci/ai_document/models/model.py +33 -2
- oci/ai_document/models/model_summary.py +33 -2
- oci/ai_document/models/output_location.py +1 -1
- oci/ai_document/models/project.py +33 -2
- oci/ai_document/models/remove_model_lock_details.py +88 -0
- oci/ai_document/models/remove_project_lock_details.py +88 -0
- oci/ai_document/models/resource_lock.py +216 -0
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +214 -17
- oci/ai_speech/models/__init__.py +23 -1
- oci/ai_speech/models/synthesize_speech_details.py +196 -0
- oci/ai_speech/models/tts_audio_config.py +106 -0
- oci/ai_speech/models/tts_base_audio_config.py +82 -0
- oci/ai_speech/models/tts_configuration.py +103 -0
- oci/ai_speech/models/tts_oracle_configuration.py +105 -0
- oci/ai_speech/models/tts_oracle_model_details.py +113 -0
- oci/ai_speech/models/tts_oracle_speech_settings.py +246 -0
- oci/ai_speech/models/tts_oracle_tts1_standard_model_details.py +84 -0
- oci/ai_speech/models/tts_oracle_tts2_natural_model_details.py +84 -0
- oci/ai_speech/models/voice_collection.py +72 -0
- oci/ai_speech/models/voice_summary.py +379 -0
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/__init__.py +3 -1
- oci/announcements_service/announcement_client.py +103 -6
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/models/__init__.py +12 -0
- oci/announcements_service/models/announcement.py +1 -1
- oci/announcements_service/models/announcement_compartment.py +72 -0
- oci/announcements_service/models/announcement_summary.py +1 -1
- oci/announcements_service/models/base_announcement.py +7 -3
- oci/announcements_service/models/base_service.py +498 -0
- oci/announcements_service/models/notifications_summary.py +130 -0
- oci/announcements_service/models/service.py +130 -0
- oci/announcements_service/models/service_summary.py +133 -0
- oci/announcements_service/models/services_collection.py +72 -0
- oci/announcements_service/service_client.py +275 -0
- oci/announcements_service/service_client_composite_operations.py +26 -0
- 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 +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- 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 +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +1692 -423
- oci/capacity_management/capacity_management_client_composite_operations.py +146 -0
- oci/capacity_management/models/__init__.py +23 -1
- oci/capacity_management/models/associated_capacity_request_details.py +103 -0
- oci/capacity_management/models/associated_occ_handover_resource_block.py +103 -0
- oci/capacity_management/models/create_occ_capacity_request_details.py +3 -3
- oci/capacity_management/models/create_occ_customer_details.py +181 -0
- oci/capacity_management/models/create_occ_customer_group_details.py +309 -0
- oci/capacity_management/models/occ_capacity_request_base_details.py +62 -0
- oci/capacity_management/models/occ_handover_resource_block_collection.py +72 -0
- oci/capacity_management/models/occ_handover_resource_block_detail_collection.py +72 -0
- oci/capacity_management/models/occ_handover_resource_block_detail_summary.py +104 -0
- oci/capacity_management/models/occ_handover_resource_block_summary.py +332 -0
- oci/capacity_management/models/placement_details.py +227 -0
- oci/capacity_management/models/update_occ_customer_details.py +150 -0
- oci/capacity_management/models/update_occ_customer_group_details.py +216 -0
- 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 +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- 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 +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- 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 +287 -287
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +13862 -9467
- oci/database/database_client_composite_operations.py +1868 -232
- oci/database/models/__init__.py +80 -0
- oci/database/models/action_member.py +134 -0
- oci/database/models/action_order_details.py +107 -0
- oci/database/models/action_param_values_collection.py +72 -0
- oci/database/models/action_param_values_summary.py +216 -0
- oci/database/models/autonomous_database.py +33 -6
- oci/database/models/autonomous_database_standby_summary.py +33 -2
- oci/database/models/autonomous_database_summary.py +33 -6
- oci/database/models/cancel_execution_window_details.py +134 -0
- oci/database/models/change_scheduling_plan_compartment_details.py +76 -0
- oci/database/models/change_scheduling_policy_compartment_details.py +76 -0
- oci/database/models/cloud_exadata_infrastructure.py +33 -2
- oci/database/models/cloud_exadata_infrastructure_summary.py +33 -2
- oci/database/models/create_autonomous_database_base.py +2 -6
- oci/database/models/create_data_guard_association_with_new_db_system_details.py +35 -0
- oci/database/models/create_exadb_vm_cluster_details.py +12 -2
- oci/database/models/create_execution_action_details.py +304 -0
- oci/database/models/create_execution_window_details.py +282 -0
- oci/database/models/create_pluggable_database_creation_type_details.py +0 -2
- oci/database/models/create_scheduled_action_details.py +339 -0
- oci/database/models/create_scheduling_plan_details.py +306 -0
- oci/database/models/create_scheduling_policy_details.py +267 -0
- oci/database/models/create_scheduling_window_details.py +181 -0
- oci/database/models/exadata_infrastructure.py +33 -2
- oci/database/models/exadata_infrastructure_summary.py +33 -2
- oci/database/models/exadb_vm_cluster.py +12 -2
- oci/database/models/exadb_vm_cluster_summary.py +12 -2
- oci/database/models/execution_action.py +715 -0
- oci/database/models/execution_action_member.py +216 -0
- oci/database/models/execution_action_summary.py +715 -0
- oci/database/models/execution_window.py +783 -0
- oci/database/models/execution_window_summary.py +783 -0
- oci/database/models/granular_maintenance_history_details.py +99 -0
- oci/database/models/maintenance_run.py +62 -0
- oci/database/models/maintenance_run_history.py +64 -2
- oci/database/models/maintenance_run_history_summary.py +64 -2
- oci/database/models/maintenance_run_summary.py +62 -0
- oci/database/models/move_execution_action_member_details.py +220 -0
- oci/database/models/recommended_scheduled_action_summary.py +280 -0
- oci/database/models/recommended_scheduled_actions_collection.py +72 -0
- oci/database/models/reorder_execution_action_details.py +152 -0
- oci/database/models/reorder_scheduled_actions_details.py +109 -0
- oci/database/models/scheduled_action.py +633 -0
- oci/database/models/scheduled_action_collection.py +72 -0
- oci/database/models/scheduled_action_summary.py +633 -0
- oci/database/models/scheduling_plan.py +643 -0
- oci/database/models/scheduling_plan_collection.py +72 -0
- oci/database/models/scheduling_plan_summary.py +643 -0
- oci/database/models/scheduling_policy.py +493 -0
- oci/database/models/scheduling_policy_summary.py +493 -0
- oci/database/models/scheduling_window.py +469 -0
- oci/database/models/scheduling_window_summary.py +469 -0
- oci/database/models/update_autonomous_database_details.py +2 -6
- oci/database/models/update_exadb_vm_cluster_details.py +12 -2
- oci/database/models/update_execution_action_details.py +218 -0
- oci/database/models/update_execution_window_details.py +212 -0
- oci/database/models/update_scheduled_action_details.py +140 -0
- oci/database/models/update_scheduling_policy_details.py +232 -0
- oci/database/models/update_scheduling_window_details.py +146 -0
- oci/database/models/window_preference_detail.py +231 -0
- oci/database_management/db_management_client.py +580 -208
- oci/database_management/db_management_client_composite_operations.py +132 -0
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/__init__.py +14 -0
- oci/database_management/models/autonomous_database_diagnostics_and_management_feature_details.py +65 -0
- oci/database_management/models/autonomous_database_feature_details.py +167 -0
- oci/database_management/models/autonomous_database_sql_watch_feature_details.py +65 -0
- oci/database_management/models/connector_details.py +15 -3
- oci/database_management/models/create_db_management_private_endpoint_details.py +31 -0
- oci/database_management/models/db_management_private_endpoint.py +31 -0
- oci/database_management/models/direct_connector_details.py +51 -0
- oci/database_management/models/disable_autonomous_database_management_feature_details.py +92 -0
- oci/database_management/models/enable_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/external_connector_details.py +1 -1
- oci/database_management/models/macs_connector_details.py +1 -1
- oci/database_management/models/modify_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/optimizer_statistics_collection_operation.py +7 -3
- oci/database_management/models/optimizer_statistics_collection_operation_summary.py +7 -3
- oci/database_management/models/private_end_point_connector_details.py +1 -1
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/__init__.py +16 -0
- oci/delegate_access_control/delegate_access_control_client.py +3324 -0
- oci/delegate_access_control/delegate_access_control_client_composite_operations.py +492 -0
- oci/delegate_access_control/models/__init__.py +96 -0
- oci/delegate_access_control/models/approve_delegated_resource_access_request_details.py +138 -0
- oci/delegate_access_control/models/change_delegation_control_compartment_details.py +72 -0
- oci/delegate_access_control/models/change_delegation_subscription_compartment_details.py +72 -0
- oci/delegate_access_control/models/create_delegation_control_details.py +548 -0
- oci/delegate_access_control/models/create_delegation_subscription_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request.py +1373 -0
- oci/delegate_access_control/models/delegated_resource_access_request_approval_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request_audit_log_report.py +193 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_collection.py +72 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_summary.py +300 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary.py +981 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control.py +833 -0
- oci/delegate_access_control/models/delegation_control_resource_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control_resource_summary.py +147 -0
- oci/delegate_access_control/models/delegation_control_summary.py +465 -0
- oci/delegate_access_control/models/delegation_control_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_subscription.py +524 -0
- oci/delegate_access_control/models/delegation_subscription_summary.py +461 -0
- oci/delegate_access_control/models/delegation_subscription_summary_collection.py +72 -0
- oci/delegate_access_control/models/reject_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/revoke_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider.py +583 -0
- oci/delegate_access_control/models/service_provider_action.py +371 -0
- oci/delegate_access_control/models/service_provider_action_properties.py +103 -0
- oci/delegate_access_control/models/service_provider_action_summary.py +323 -0
- oci/delegate_access_control/models/service_provider_action_summary_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_summary.py +247 -0
- oci/delegate_access_control/models/service_provider_summary.py +508 -0
- oci/delegate_access_control/models/service_provider_summary_collection.py +72 -0
- oci/delegate_access_control/models/update_delegation_control_details.py +404 -0
- oci/delegate_access_control/models/update_delegation_subscription_details.py +154 -0
- oci/delegate_access_control/models/work_request.py +438 -0
- oci/delegate_access_control/models/work_request_error.py +136 -0
- oci/delegate_access_control/models/work_request_error_collection.py +72 -0
- oci/delegate_access_control/models/work_request_log_entry.py +103 -0
- oci/delegate_access_control/models/work_request_log_entry_collection.py +72 -0
- oci/delegate_access_control/models/work_request_resource.py +234 -0
- oci/delegate_access_control/models/work_request_summary.py +438 -0
- oci/delegate_access_control/models/work_request_summary_collection.py +72 -0
- oci/delegate_access_control/work_request_client.py +660 -0
- oci/delegate_access_control/work_request_client_composite_operations.py +26 -0
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- 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 +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +393 -59
- oci/file_storage/file_storage_client_composite_operations.py +138 -0
- oci/file_storage/models/__init__.py +4 -0
- oci/file_storage/models/create_mount_target_details.py +39 -26
- oci/file_storage/models/mount_target.py +153 -3
- oci/file_storage/models/mount_target_summary.py +155 -3
- oci/file_storage/models/schedule_downgrade_shape_mount_target_details.py +78 -0
- oci/file_storage/models/upgrade_shape_mount_target_details.py +78 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +16 -16
- oci/fleet_apps_management/fleet_apps_management_client.py +70 -70
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +10 -10
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +8 -8
- oci/fleet_software_update/fleet_software_update_client.py +48 -48
- oci/fleet_software_update/models/create_db_fsu_collection_details.py +7 -3
- oci/fleet_software_update/models/create_gi_fsu_collection_details.py +7 -3
- oci/fleet_software_update/models/db_collection.py +7 -3
- oci/fleet_software_update/models/db_discovery_details.py +7 -3
- oci/fleet_software_update/models/db_fsu_collection_summary.py +7 -3
- oci/fleet_software_update/models/gi_collection.py +7 -3
- oci/fleet_software_update/models/gi_discovery_details.py +7 -3
- oci/fleet_software_update/models/gi_fsu_collection_summary.py +7 -3
- oci/fleet_software_update/models/work_request.py +7 -3
- oci/fleet_software_update/models/work_request_summary.py +7 -3
- 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 +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/models/fusion_environment_family.py +33 -2
- 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/generative_ai/generative_ai_client.py +23 -23
- oci/generative_ai/models/create_endpoint_details.py +2 -2
- oci/generative_ai/models/dedicated_ai_cluster.py +7 -3
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +68 -68
- 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 +307 -307
- oci/integration/integration_instance_client.py +16 -16
- oci/jms/java_management_service_client.py +75 -75
- 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_hsm_cluster_client.py +25 -25
- oci/key_management/kms_hsm_cluster_client_composite_operations.py +3 -3
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/key_management/models/auto_key_rotation_details.py +10 -10
- oci/key_management/models/change_hsm_cluster_compartment_details.py +3 -3
- oci/key_management/models/create_hsm_cluster_details.py +5 -5
- oci/key_management/models/hsm_cluster.py +4 -4
- oci/key_management/models/hsm_cluster_collection.py +2 -2
- oci/key_management/models/hsm_cluster_summary.py +3 -3
- oci/key_management/models/hsm_partition.py +29 -9
- oci/key_management/models/hsm_partition_collection.py +1 -1
- oci/key_management/models/hsm_partition_summary.py +11 -7
- oci/key_management/models/port_information.py +5 -5
- oci/key_management/models/pre_co_user_credentials.py +2 -2
- oci/key_management/models/upload_partition_certificates_details.py +5 -5
- oci/key_management/models/vault.py +31 -0
- 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/load_balancer/models/backend.py +4 -0
- oci/load_balancer/models/backend_details.py +4 -0
- oci/load_balancer/models/backend_set.py +6 -2
- oci/load_balancer/models/backend_set_details.py +6 -2
- oci/load_balancer/models/create_backend_details.py +4 -0
- oci/load_balancer/models/create_backend_set_details.py +6 -2
- oci/load_balancer/models/create_load_balancer_details.py +116 -0
- oci/load_balancer/models/ip_max_connections.py +8 -2
- oci/load_balancer/models/load_balancer.py +100 -0
- oci/load_balancer/models/update_backend_details.py +4 -0
- oci/load_balancer/models/update_backend_set_details.py +6 -2
- oci/load_balancer/models/update_load_balancer_details.py +112 -0
- oci/lockbox/lockbox_client.py +24 -24
- oci/lockbox/models/access_request.py +35 -2
- oci/lockbox/models/access_request_ext.py +35 -2
- oci/lockbox/models/access_request_summary.py +33 -0
- oci/lockbox/models/create_access_request_details.py +35 -2
- oci/log_analytics/log_analytics_client.py +193 -193
- 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 +28 -28
- 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_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +2 -0
- oci/mysql/models/create_db_system_details.py +37 -2
- oci/mysql/models/customer_contact.py +72 -0
- oci/mysql/models/db_system.py +37 -2
- oci/mysql/models/update_db_system_details.py +37 -2
- 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 +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/models/__init__.py +14 -0
- oci/object_storage/models/access_target_details.py +136 -0
- oci/object_storage/models/create_private_endpoint_details.py +389 -0
- oci/object_storage/models/fqdns.py +99 -0
- oci/object_storage/models/prefix_fqdns.py +134 -0
- oci/object_storage/models/private_endpoint.py +685 -0
- oci/object_storage/models/private_endpoint_summary.py +369 -0
- oci/object_storage/models/update_private_endpoint_details.py +216 -0
- oci/object_storage/models/work_request.py +15 -3
- oci/object_storage/models/work_request_summary.py +15 -3
- oci/object_storage/object_storage_client.py +686 -71
- oci/object_storage/object_storage_client_composite_operations.py +139 -0
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +8 -8
- oci/ocvp/cluster_client_composite_operations.py +2 -2
- oci/ocvp/esxi_host_client.py +9 -9
- oci/ocvp/models/cluster.py +35 -2
- oci/ocvp/models/cluster_summary.py +35 -2
- oci/ocvp/models/datastore_details.py +1 -1
- oci/ocvp/models/esxi_host.py +35 -2
- oci/ocvp/models/esxi_host_summary.py +35 -2
- oci/ocvp/models/sddc.py +35 -2
- oci/ocvp/models/sddc_summary.py +35 -2
- oci/ocvp/models/supported_host_shape_summary.py +55 -3
- oci/ocvp/models/work_request.py +55 -3
- oci/ocvp/sddc_client.py +21 -16
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- 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 +13 -13
- 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 +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +177 -177
- 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/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- 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/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +135 -25
- oci/recovery/database_recovery_client_composite_operations.py +42 -0
- oci/recovery/models/__init__.py +2 -0
- oci/recovery/models/change_protected_database_subscription_details.py +103 -0
- oci/recovery/models/create_protected_database_details.py +33 -0
- oci/recovery/models/create_protection_policy_details.py +39 -0
- oci/recovery/models/protected_database.py +31 -0
- oci/recovery/models/protected_database_summary.py +31 -0
- oci/recovery/models/protection_policy.py +31 -0
- oci/recovery/models/protection_policy_summary.py +31 -0
- oci/redis/redis_cluster_client.py +12 -12
- oci/regions_definitions.py +3 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- 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/connector_plugins_client.py +2 -2
- 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_endpoints.py +1 -0
- 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 +64 -64
- 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 +33 -33
- oci/vault/vaults_client.py +13 -13
- 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/models/__init__.py +2 -0
- oci/waf/models/dynamic_http_response_body.py +104 -0
- oci/waf/models/http_response_body.py +11 -3
- oci/waf/models/static_text_http_response_body.py +1 -1
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/METADATA +1 -1
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/RECORD +533 -391
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/WHEEL +0 -0
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/top_level.txt +0 -0
@@ -152,7 +152,7 @@ class CapacityManagementClient(object):
|
|
152
152
|
:rtype: :class:`~oci.response.Response`
|
153
153
|
|
154
154
|
:example:
|
155
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
155
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/create_occ_availability_catalog.py.html>`__ to see an example of how to use create_occ_availability_catalog API.
|
156
156
|
"""
|
157
157
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
158
158
|
required_arguments = []
|
@@ -251,7 +251,7 @@ class CapacityManagementClient(object):
|
|
251
251
|
:rtype: :class:`~oci.response.Response`
|
252
252
|
|
253
253
|
:example:
|
254
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
254
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/create_occ_capacity_request.py.html>`__ to see an example of how to use create_occ_capacity_request API.
|
255
255
|
"""
|
256
256
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
257
257
|
required_arguments = []
|
@@ -315,20 +315,23 @@ class CapacityManagementClient(object):
|
|
315
315
|
api_reference_link=api_reference_link,
|
316
316
|
required_arguments=required_arguments)
|
317
317
|
|
318
|
-
def
|
318
|
+
def create_occ_customer(self, create_occ_customer_details, occ_customer_group_id, **kwargs):
|
319
319
|
"""
|
320
|
-
|
320
|
+
Create customer.
|
321
321
|
|
322
322
|
|
323
|
-
:param
|
324
|
-
The
|
323
|
+
:param oci.capacity_management.models.CreateOccCustomerDetails create_occ_customer_details: (required)
|
324
|
+
The request details for creating a customer.
|
325
325
|
|
326
|
-
:param str
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
326
|
+
:param str occ_customer_group_id: (required)
|
327
|
+
The OCID of the customer group.
|
328
|
+
|
329
|
+
:param str opc_retry_token: (optional)
|
330
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
331
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
332
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
333
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
334
|
+
might be rejected.
|
332
335
|
|
333
336
|
:param str opc_request_id: (optional)
|
334
337
|
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
@@ -346,33 +349,33 @@ class CapacityManagementClient(object):
|
|
346
349
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
347
350
|
By default, the response will not allow control characters in strings
|
348
351
|
|
349
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
352
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomer`
|
350
353
|
:rtype: :class:`~oci.response.Response`
|
351
354
|
|
352
355
|
:example:
|
353
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
356
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/create_occ_customer.py.html>`__ to see an example of how to use create_occ_customer API.
|
354
357
|
"""
|
355
358
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
356
|
-
required_arguments = ['
|
357
|
-
resource_path = "/
|
358
|
-
method = "
|
359
|
-
operation_name = "
|
360
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
359
|
+
required_arguments = ['occCustomerGroupId']
|
360
|
+
resource_path = "/occCustomerGroups/{occCustomerGroupId}/occCustomers"
|
361
|
+
method = "POST"
|
362
|
+
operation_name = "create_occ_customer"
|
363
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomer/CreateOccCustomer"
|
361
364
|
|
362
365
|
# Don't accept unknown kwargs
|
363
366
|
expected_kwargs = [
|
364
367
|
"allow_control_chars",
|
365
368
|
"retry_strategy",
|
366
|
-
"
|
369
|
+
"opc_retry_token",
|
367
370
|
"opc_request_id"
|
368
371
|
]
|
369
372
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
370
373
|
if extra_kwargs:
|
371
374
|
raise ValueError(
|
372
|
-
f"
|
375
|
+
f"create_occ_customer got unknown kwargs: {extra_kwargs!r}")
|
373
376
|
|
374
377
|
path_params = {
|
375
|
-
"
|
378
|
+
"occCustomerGroupId": occ_customer_group_id
|
376
379
|
}
|
377
380
|
|
378
381
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -384,7 +387,7 @@ class CapacityManagementClient(object):
|
|
384
387
|
header_params = {
|
385
388
|
"accept": "application/json",
|
386
389
|
"content-type": "application/json",
|
387
|
-
"
|
390
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
388
391
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
389
392
|
}
|
390
393
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -398,6 +401,7 @@ class CapacityManagementClient(object):
|
|
398
401
|
|
399
402
|
if retry_strategy:
|
400
403
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
404
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
401
405
|
self.base_client.add_opc_client_retries_header(header_params)
|
402
406
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
403
407
|
return retry_strategy.make_retrying_call(
|
@@ -406,6 +410,8 @@ class CapacityManagementClient(object):
|
|
406
410
|
method=method,
|
407
411
|
path_params=path_params,
|
408
412
|
header_params=header_params,
|
413
|
+
body=create_occ_customer_details,
|
414
|
+
response_type="OccCustomer",
|
409
415
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
410
416
|
operation_name=operation_name,
|
411
417
|
api_reference_link=api_reference_link,
|
@@ -416,25 +422,27 @@ class CapacityManagementClient(object):
|
|
416
422
|
method=method,
|
417
423
|
path_params=path_params,
|
418
424
|
header_params=header_params,
|
425
|
+
body=create_occ_customer_details,
|
426
|
+
response_type="OccCustomer",
|
419
427
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
420
428
|
operation_name=operation_name,
|
421
429
|
api_reference_link=api_reference_link,
|
422
430
|
required_arguments=required_arguments)
|
423
431
|
|
424
|
-
def
|
432
|
+
def create_occ_customer_group(self, create_occ_customer_group_details, **kwargs):
|
425
433
|
"""
|
426
|
-
|
434
|
+
Create customer group.
|
427
435
|
|
428
436
|
|
429
|
-
:param
|
430
|
-
The
|
437
|
+
:param oci.capacity_management.models.CreateOccCustomerGroupDetails create_occ_customer_group_details: (required)
|
438
|
+
The request details for creating a customer group.
|
431
439
|
|
432
|
-
:param str
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
440
|
+
:param str opc_retry_token: (optional)
|
441
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
442
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
443
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
444
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
445
|
+
might be rejected.
|
438
446
|
|
439
447
|
:param str opc_request_id: (optional)
|
440
448
|
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
@@ -452,45 +460,35 @@ class CapacityManagementClient(object):
|
|
452
460
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
453
461
|
By default, the response will not allow control characters in strings
|
454
462
|
|
455
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
463
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomerGroup`
|
456
464
|
:rtype: :class:`~oci.response.Response`
|
457
465
|
|
458
466
|
:example:
|
459
|
-
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.134.0/capacitymanagement/create_occ_customer_group.py.html>`__ to see an example of how to use create_occ_customer_group API.
|
460
468
|
"""
|
461
469
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
462
|
-
required_arguments = [
|
463
|
-
resource_path = "/
|
464
|
-
method = "
|
465
|
-
operation_name = "
|
466
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
470
|
+
required_arguments = []
|
471
|
+
resource_path = "/occCustomerGroups"
|
472
|
+
method = "POST"
|
473
|
+
operation_name = "create_occ_customer_group"
|
474
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroup/CreateOccCustomerGroup"
|
467
475
|
|
468
476
|
# Don't accept unknown kwargs
|
469
477
|
expected_kwargs = [
|
470
478
|
"allow_control_chars",
|
471
479
|
"retry_strategy",
|
472
|
-
"
|
480
|
+
"opc_retry_token",
|
473
481
|
"opc_request_id"
|
474
482
|
]
|
475
483
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
476
484
|
if extra_kwargs:
|
477
485
|
raise ValueError(
|
478
|
-
f"
|
479
|
-
|
480
|
-
path_params = {
|
481
|
-
"occCapacityRequestId": occ_capacity_request_id
|
482
|
-
}
|
483
|
-
|
484
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
485
|
-
|
486
|
-
for (k, v) in six.iteritems(path_params):
|
487
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
488
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
486
|
+
f"create_occ_customer_group got unknown kwargs: {extra_kwargs!r}")
|
489
487
|
|
490
488
|
header_params = {
|
491
489
|
"accept": "application/json",
|
492
490
|
"content-type": "application/json",
|
493
|
-
"
|
491
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
494
492
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
495
493
|
}
|
496
494
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -504,14 +502,16 @@ class CapacityManagementClient(object):
|
|
504
502
|
|
505
503
|
if retry_strategy:
|
506
504
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
505
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
507
506
|
self.base_client.add_opc_client_retries_header(header_params)
|
508
507
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
509
508
|
return retry_strategy.make_retrying_call(
|
510
509
|
self.base_client.call_api,
|
511
510
|
resource_path=resource_path,
|
512
511
|
method=method,
|
513
|
-
path_params=path_params,
|
514
512
|
header_params=header_params,
|
513
|
+
body=create_occ_customer_group_details,
|
514
|
+
response_type="OccCustomerGroup",
|
515
515
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
516
516
|
operation_name=operation_name,
|
517
517
|
api_reference_link=api_reference_link,
|
@@ -520,21 +520,29 @@ class CapacityManagementClient(object):
|
|
520
520
|
return self.base_client.call_api(
|
521
521
|
resource_path=resource_path,
|
522
522
|
method=method,
|
523
|
-
path_params=path_params,
|
524
523
|
header_params=header_params,
|
524
|
+
body=create_occ_customer_group_details,
|
525
|
+
response_type="OccCustomerGroup",
|
525
526
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
526
527
|
operation_name=operation_name,
|
527
528
|
api_reference_link=api_reference_link,
|
528
529
|
required_arguments=required_arguments)
|
529
530
|
|
530
|
-
def
|
531
|
+
def delete_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs):
|
531
532
|
"""
|
532
|
-
|
533
|
+
Deletes the availability catalog resource.
|
533
534
|
|
534
535
|
|
535
536
|
:param str occ_availability_catalog_id: (required)
|
536
537
|
The OCID of the availability catalog.
|
537
538
|
|
539
|
+
:param str if_match: (optional)
|
540
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
541
|
+
for a resource, set the `if-match` parameter to the value of the
|
542
|
+
etag from a previous GET or POST response for that resource.
|
543
|
+
The resource will be updated or deleted only if the etag you
|
544
|
+
provide matches the resource's current etag value.
|
545
|
+
|
538
546
|
:param str opc_request_id: (optional)
|
539
547
|
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
540
548
|
underscore, and dash.
|
@@ -551,29 +559,30 @@ class CapacityManagementClient(object):
|
|
551
559
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
552
560
|
By default, the response will not allow control characters in strings
|
553
561
|
|
554
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
562
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
555
563
|
:rtype: :class:`~oci.response.Response`
|
556
564
|
|
557
565
|
:example:
|
558
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
566
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/delete_occ_availability_catalog.py.html>`__ to see an example of how to use delete_occ_availability_catalog API.
|
559
567
|
"""
|
560
568
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
561
569
|
required_arguments = ['occAvailabilityCatalogId']
|
562
570
|
resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}"
|
563
|
-
method = "
|
564
|
-
operation_name = "
|
565
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/
|
571
|
+
method = "DELETE"
|
572
|
+
operation_name = "delete_occ_availability_catalog"
|
573
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/DeleteOccAvailabilityCatalog"
|
566
574
|
|
567
575
|
# Don't accept unknown kwargs
|
568
576
|
expected_kwargs = [
|
569
577
|
"allow_control_chars",
|
570
578
|
"retry_strategy",
|
579
|
+
"if_match",
|
571
580
|
"opc_request_id"
|
572
581
|
]
|
573
582
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
574
583
|
if extra_kwargs:
|
575
584
|
raise ValueError(
|
576
|
-
f"
|
585
|
+
f"delete_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}")
|
577
586
|
|
578
587
|
path_params = {
|
579
588
|
"occAvailabilityCatalogId": occ_availability_catalog_id
|
@@ -588,6 +597,7 @@ class CapacityManagementClient(object):
|
|
588
597
|
header_params = {
|
589
598
|
"accept": "application/json",
|
590
599
|
"content-type": "application/json",
|
600
|
+
"if-match": kwargs.get("if_match", missing),
|
591
601
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
592
602
|
}
|
593
603
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -609,7 +619,6 @@ class CapacityManagementClient(object):
|
|
609
619
|
method=method,
|
610
620
|
path_params=path_params,
|
611
621
|
header_params=header_params,
|
612
|
-
response_type="OccAvailabilityCatalog",
|
613
622
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
614
623
|
operation_name=operation_name,
|
615
624
|
api_reference_link=api_reference_link,
|
@@ -620,30 +629,18 @@ class CapacityManagementClient(object):
|
|
620
629
|
method=method,
|
621
630
|
path_params=path_params,
|
622
631
|
header_params=header_params,
|
623
|
-
response_type="OccAvailabilityCatalog",
|
624
632
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
625
633
|
operation_name=operation_name,
|
626
634
|
api_reference_link=api_reference_link,
|
627
635
|
required_arguments=required_arguments)
|
628
636
|
|
629
|
-
def
|
637
|
+
def delete_occ_capacity_request(self, occ_capacity_request_id, **kwargs):
|
630
638
|
"""
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
:param str occ_availability_catalog_id: (required)
|
635
|
-
The OCID of the availability catalog.
|
639
|
+
Deletes the capacity request resource.
|
636
640
|
|
637
|
-
:param str opc_retry_token: (optional)
|
638
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
639
|
-
server error without risk of executing that same action again. Retry tokens expire after 24
|
640
|
-
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
641
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
642
|
-
might be rejected.
|
643
641
|
|
644
|
-
:param str
|
645
|
-
The
|
646
|
-
underscore, and dash.
|
642
|
+
:param str occ_capacity_request_id: (required)
|
643
|
+
The OCID of the capacity request.
|
647
644
|
|
648
645
|
:param str if_match: (optional)
|
649
646
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -652,6 +649,10 @@ class CapacityManagementClient(object):
|
|
652
649
|
The resource will be updated or deleted only if the etag you
|
653
650
|
provide matches the resource's current etag value.
|
654
651
|
|
652
|
+
:param str opc_request_id: (optional)
|
653
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
654
|
+
underscore, and dash.
|
655
|
+
|
655
656
|
:param obj retry_strategy: (optional)
|
656
657
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
657
658
|
|
@@ -664,34 +665,33 @@ class CapacityManagementClient(object):
|
|
664
665
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
665
666
|
By default, the response will not allow control characters in strings
|
666
667
|
|
667
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
668
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
668
669
|
:rtype: :class:`~oci.response.Response`
|
669
670
|
|
670
671
|
:example:
|
671
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
672
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/delete_occ_capacity_request.py.html>`__ to see an example of how to use delete_occ_capacity_request API.
|
672
673
|
"""
|
673
674
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
674
|
-
required_arguments = ['
|
675
|
-
resource_path = "/
|
676
|
-
method = "
|
677
|
-
operation_name = "
|
678
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
675
|
+
required_arguments = ['occCapacityRequestId']
|
676
|
+
resource_path = "/occCapacityRequests/{occCapacityRequestId}"
|
677
|
+
method = "DELETE"
|
678
|
+
operation_name = "delete_occ_capacity_request"
|
679
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/DeleteOccCapacityRequest"
|
679
680
|
|
680
681
|
# Don't accept unknown kwargs
|
681
682
|
expected_kwargs = [
|
682
683
|
"allow_control_chars",
|
683
684
|
"retry_strategy",
|
684
|
-
"
|
685
|
-
"opc_request_id"
|
686
|
-
"if_match"
|
685
|
+
"if_match",
|
686
|
+
"opc_request_id"
|
687
687
|
]
|
688
688
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
689
689
|
if extra_kwargs:
|
690
690
|
raise ValueError(
|
691
|
-
f"
|
691
|
+
f"delete_occ_capacity_request got unknown kwargs: {extra_kwargs!r}")
|
692
692
|
|
693
693
|
path_params = {
|
694
|
-
"
|
694
|
+
"occCapacityRequestId": occ_capacity_request_id
|
695
695
|
}
|
696
696
|
|
697
697
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -701,11 +701,10 @@ class CapacityManagementClient(object):
|
|
701
701
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
702
702
|
|
703
703
|
header_params = {
|
704
|
-
"accept": "application/
|
704
|
+
"accept": "application/json",
|
705
705
|
"content-type": "application/json",
|
706
|
-
"
|
707
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
708
|
-
"if-match": kwargs.get("if_match", missing)
|
706
|
+
"if-match": kwargs.get("if_match", missing),
|
707
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
709
708
|
}
|
710
709
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
711
710
|
|
@@ -718,7 +717,6 @@ class CapacityManagementClient(object):
|
|
718
717
|
|
719
718
|
if retry_strategy:
|
720
719
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
721
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
722
720
|
self.base_client.add_opc_client_retries_header(header_params)
|
723
721
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
724
722
|
return retry_strategy.make_retrying_call(
|
@@ -727,7 +725,6 @@ class CapacityManagementClient(object):
|
|
727
725
|
method=method,
|
728
726
|
path_params=path_params,
|
729
727
|
header_params=header_params,
|
730
|
-
response_type="stream",
|
731
728
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
732
729
|
operation_name=operation_name,
|
733
730
|
api_reference_link=api_reference_link,
|
@@ -738,19 +735,28 @@ class CapacityManagementClient(object):
|
|
738
735
|
method=method,
|
739
736
|
path_params=path_params,
|
740
737
|
header_params=header_params,
|
741
|
-
response_type="stream",
|
742
738
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
743
739
|
operation_name=operation_name,
|
744
740
|
api_reference_link=api_reference_link,
|
745
741
|
required_arguments=required_arguments)
|
746
742
|
|
747
|
-
def
|
743
|
+
def delete_occ_customer(self, occ_customer_group_id, occ_customer_id, **kwargs):
|
748
744
|
"""
|
749
|
-
|
745
|
+
Deletes the customer resource.
|
750
746
|
|
751
747
|
|
752
|
-
:param str
|
753
|
-
The OCID of the
|
748
|
+
:param str occ_customer_group_id: (required)
|
749
|
+
The OCID of the customer group.
|
750
|
+
|
751
|
+
:param str occ_customer_id: (required)
|
752
|
+
The tenancy id of the customer.
|
753
|
+
|
754
|
+
:param str if_match: (optional)
|
755
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
756
|
+
for a resource, set the `if-match` parameter to the value of the
|
757
|
+
etag from a previous GET or POST response for that resource.
|
758
|
+
The resource will be updated or deleted only if the etag you
|
759
|
+
provide matches the resource's current etag value.
|
754
760
|
|
755
761
|
:param str opc_request_id: (optional)
|
756
762
|
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
@@ -768,32 +774,34 @@ class CapacityManagementClient(object):
|
|
768
774
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
769
775
|
By default, the response will not allow control characters in strings
|
770
776
|
|
771
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
777
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
772
778
|
:rtype: :class:`~oci.response.Response`
|
773
779
|
|
774
780
|
:example:
|
775
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
781
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/delete_occ_customer.py.html>`__ to see an example of how to use delete_occ_customer API.
|
776
782
|
"""
|
777
783
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
778
|
-
required_arguments = ['
|
779
|
-
resource_path = "/
|
780
|
-
method = "
|
781
|
-
operation_name = "
|
782
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
784
|
+
required_arguments = ['occCustomerGroupId', 'occCustomerId']
|
785
|
+
resource_path = "/occCustomerGroups/{occCustomerGroupId}/occCustomers/{occCustomerId}"
|
786
|
+
method = "DELETE"
|
787
|
+
operation_name = "delete_occ_customer"
|
788
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomer/DeleteOccCustomer"
|
783
789
|
|
784
790
|
# Don't accept unknown kwargs
|
785
791
|
expected_kwargs = [
|
786
792
|
"allow_control_chars",
|
787
793
|
"retry_strategy",
|
794
|
+
"if_match",
|
788
795
|
"opc_request_id"
|
789
796
|
]
|
790
797
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
791
798
|
if extra_kwargs:
|
792
799
|
raise ValueError(
|
793
|
-
f"
|
800
|
+
f"delete_occ_customer got unknown kwargs: {extra_kwargs!r}")
|
794
801
|
|
795
802
|
path_params = {
|
796
|
-
"
|
803
|
+
"occCustomerGroupId": occ_customer_group_id,
|
804
|
+
"occCustomerId": occ_customer_id
|
797
805
|
}
|
798
806
|
|
799
807
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -805,6 +813,7 @@ class CapacityManagementClient(object):
|
|
805
813
|
header_params = {
|
806
814
|
"accept": "application/json",
|
807
815
|
"content-type": "application/json",
|
816
|
+
"if-match": kwargs.get("if_match", missing),
|
808
817
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
809
818
|
}
|
810
819
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -826,7 +835,6 @@ class CapacityManagementClient(object):
|
|
826
835
|
method=method,
|
827
836
|
path_params=path_params,
|
828
837
|
header_params=header_params,
|
829
|
-
response_type="OccCapacityRequest",
|
830
838
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
831
839
|
operation_name=operation_name,
|
832
840
|
api_reference_link=api_reference_link,
|
@@ -837,20 +845,26 @@ class CapacityManagementClient(object):
|
|
837
845
|
method=method,
|
838
846
|
path_params=path_params,
|
839
847
|
header_params=header_params,
|
840
|
-
response_type="OccCapacityRequest",
|
841
848
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
842
849
|
operation_name=operation_name,
|
843
850
|
api_reference_link=api_reference_link,
|
844
851
|
required_arguments=required_arguments)
|
845
852
|
|
846
|
-
def
|
853
|
+
def delete_occ_customer_group(self, occ_customer_group_id, **kwargs):
|
847
854
|
"""
|
848
|
-
|
855
|
+
Deletes the customer group resource.
|
849
856
|
|
850
857
|
|
851
858
|
:param str occ_customer_group_id: (required)
|
852
859
|
The OCID of the customer group.
|
853
860
|
|
861
|
+
:param str if_match: (optional)
|
862
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
863
|
+
for a resource, set the `if-match` parameter to the value of the
|
864
|
+
etag from a previous GET or POST response for that resource.
|
865
|
+
The resource will be updated or deleted only if the etag you
|
866
|
+
provide matches the resource's current etag value.
|
867
|
+
|
854
868
|
:param str opc_request_id: (optional)
|
855
869
|
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
856
870
|
underscore, and dash.
|
@@ -867,29 +881,30 @@ class CapacityManagementClient(object):
|
|
867
881
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
868
882
|
By default, the response will not allow control characters in strings
|
869
883
|
|
870
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
884
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
871
885
|
:rtype: :class:`~oci.response.Response`
|
872
886
|
|
873
887
|
:example:
|
874
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
888
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/delete_occ_customer_group.py.html>`__ to see an example of how to use delete_occ_customer_group API.
|
875
889
|
"""
|
876
890
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
877
891
|
required_arguments = ['occCustomerGroupId']
|
878
892
|
resource_path = "/occCustomerGroups/{occCustomerGroupId}"
|
879
|
-
method = "
|
880
|
-
operation_name = "
|
881
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroup/
|
893
|
+
method = "DELETE"
|
894
|
+
operation_name = "delete_occ_customer_group"
|
895
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroup/DeleteOccCustomerGroup"
|
882
896
|
|
883
897
|
# Don't accept unknown kwargs
|
884
898
|
expected_kwargs = [
|
885
899
|
"allow_control_chars",
|
886
900
|
"retry_strategy",
|
901
|
+
"if_match",
|
887
902
|
"opc_request_id"
|
888
903
|
]
|
889
904
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
890
905
|
if extra_kwargs:
|
891
906
|
raise ValueError(
|
892
|
-
f"
|
907
|
+
f"delete_occ_customer_group got unknown kwargs: {extra_kwargs!r}")
|
893
908
|
|
894
909
|
path_params = {
|
895
910
|
"occCustomerGroupId": occ_customer_group_id
|
@@ -904,6 +919,7 @@ class CapacityManagementClient(object):
|
|
904
919
|
header_params = {
|
905
920
|
"accept": "application/json",
|
906
921
|
"content-type": "application/json",
|
922
|
+
"if-match": kwargs.get("if_match", missing),
|
907
923
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
908
924
|
}
|
909
925
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -925,7 +941,6 @@ class CapacityManagementClient(object):
|
|
925
941
|
method=method,
|
926
942
|
path_params=path_params,
|
927
943
|
header_params=header_params,
|
928
|
-
response_type="OccCustomerGroup",
|
929
944
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
930
945
|
operation_name=operation_name,
|
931
946
|
api_reference_link=api_reference_link,
|
@@ -936,57 +951,23 @@ class CapacityManagementClient(object):
|
|
936
951
|
method=method,
|
937
952
|
path_params=path_params,
|
938
953
|
header_params=header_params,
|
939
|
-
response_type="OccCustomerGroup",
|
940
954
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
941
955
|
operation_name=operation_name,
|
942
956
|
api_reference_link=api_reference_link,
|
943
957
|
required_arguments=required_arguments)
|
944
958
|
|
945
|
-
def
|
959
|
+
def get_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs):
|
946
960
|
"""
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
:param str namespace: (required)
|
951
|
-
The namespace by which we would filter the list.
|
952
|
-
|
953
|
-
Allowed values are: "COMPUTE"
|
954
|
-
|
955
|
-
:param str compartment_id: (required)
|
956
|
-
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
957
|
-
|
958
|
-
:param str occ_customer_group_id: (optional)
|
959
|
-
The customer group ocid by which we would filter the list.
|
960
|
-
|
961
|
-
:param str workload_type: (optional)
|
962
|
-
Workload type using the resources in an availability catalog can be filtered.
|
963
|
-
|
964
|
-
:param datetime _from: (optional)
|
965
|
-
The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
|
966
|
-
|
967
|
-
:param datetime to: (optional)
|
968
|
-
The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
|
961
|
+
Get details about availability catalog.
|
969
962
|
|
970
|
-
:param int limit: (optional)
|
971
|
-
The maximum number of items to return.
|
972
963
|
|
973
|
-
:param str
|
974
|
-
|
964
|
+
:param str occ_availability_catalog_id: (required)
|
965
|
+
The OCID of the availability catalog.
|
975
966
|
|
976
967
|
:param str opc_request_id: (optional)
|
977
968
|
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
978
969
|
underscore, and dash.
|
979
970
|
|
980
|
-
:param str sort_order: (optional)
|
981
|
-
The sort order to use, either 'ASC' or 'DESC'.
|
982
|
-
|
983
|
-
Allowed values are: "ASC", "DESC"
|
984
|
-
|
985
|
-
:param str sort_by: (optional)
|
986
|
-
The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end).
|
987
|
-
|
988
|
-
Allowed values are: "periodValue"
|
989
|
-
|
990
971
|
:param obj retry_strategy: (optional)
|
991
972
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
992
973
|
|
@@ -999,27 +980,945 @@ class CapacityManagementClient(object):
|
|
999
980
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1000
981
|
By default, the response will not allow control characters in strings
|
1001
982
|
|
1002
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.
|
983
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalog`
|
1003
984
|
:rtype: :class:`~oci.response.Response`
|
1004
985
|
|
1005
986
|
:example:
|
1006
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
987
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/get_occ_availability_catalog.py.html>`__ to see an example of how to use get_occ_availability_catalog API.
|
1007
988
|
"""
|
1008
989
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1009
|
-
required_arguments = ['
|
1010
|
-
resource_path = "/
|
990
|
+
required_arguments = ['occAvailabilityCatalogId']
|
991
|
+
resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}"
|
1011
992
|
method = "GET"
|
1012
|
-
operation_name = "
|
1013
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
1014
|
-
|
993
|
+
operation_name = "get_occ_availability_catalog"
|
994
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/GetOccAvailabilityCatalog"
|
995
|
+
|
996
|
+
# Don't accept unknown kwargs
|
997
|
+
expected_kwargs = [
|
998
|
+
"allow_control_chars",
|
999
|
+
"retry_strategy",
|
1000
|
+
"opc_request_id"
|
1001
|
+
]
|
1002
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1003
|
+
if extra_kwargs:
|
1004
|
+
raise ValueError(
|
1005
|
+
f"get_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}")
|
1006
|
+
|
1007
|
+
path_params = {
|
1008
|
+
"occAvailabilityCatalogId": occ_availability_catalog_id
|
1009
|
+
}
|
1010
|
+
|
1011
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1012
|
+
|
1013
|
+
for (k, v) in six.iteritems(path_params):
|
1014
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1015
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1016
|
+
|
1017
|
+
header_params = {
|
1018
|
+
"accept": "application/json",
|
1019
|
+
"content-type": "application/json",
|
1020
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1021
|
+
}
|
1022
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1023
|
+
|
1024
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1025
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1026
|
+
client_retry_strategy=self.retry_strategy
|
1027
|
+
)
|
1028
|
+
if retry_strategy is None:
|
1029
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1030
|
+
|
1031
|
+
if retry_strategy:
|
1032
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1033
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1034
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1035
|
+
return retry_strategy.make_retrying_call(
|
1036
|
+
self.base_client.call_api,
|
1037
|
+
resource_path=resource_path,
|
1038
|
+
method=method,
|
1039
|
+
path_params=path_params,
|
1040
|
+
header_params=header_params,
|
1041
|
+
response_type="OccAvailabilityCatalog",
|
1042
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1043
|
+
operation_name=operation_name,
|
1044
|
+
api_reference_link=api_reference_link,
|
1045
|
+
required_arguments=required_arguments)
|
1046
|
+
else:
|
1047
|
+
return self.base_client.call_api(
|
1048
|
+
resource_path=resource_path,
|
1049
|
+
method=method,
|
1050
|
+
path_params=path_params,
|
1051
|
+
header_params=header_params,
|
1052
|
+
response_type="OccAvailabilityCatalog",
|
1053
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1054
|
+
operation_name=operation_name,
|
1055
|
+
api_reference_link=api_reference_link,
|
1056
|
+
required_arguments=required_arguments)
|
1057
|
+
|
1058
|
+
def get_occ_availability_catalog_content(self, occ_availability_catalog_id, **kwargs):
|
1059
|
+
"""
|
1060
|
+
Returns the binary contents of the availability catalog. Can be saved as a csv file.
|
1061
|
+
|
1062
|
+
|
1063
|
+
:param str occ_availability_catalog_id: (required)
|
1064
|
+
The OCID of the availability catalog.
|
1065
|
+
|
1066
|
+
:param str opc_retry_token: (optional)
|
1067
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1068
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1069
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1070
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1071
|
+
might be rejected.
|
1072
|
+
|
1073
|
+
:param str opc_request_id: (optional)
|
1074
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
1075
|
+
underscore, and dash.
|
1076
|
+
|
1077
|
+
:param str if_match: (optional)
|
1078
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1079
|
+
for a resource, set the `if-match` parameter to the value of the
|
1080
|
+
etag from a previous GET or POST response for that resource.
|
1081
|
+
The resource will be updated or deleted only if the etag you
|
1082
|
+
provide matches the resource's current etag value.
|
1083
|
+
|
1084
|
+
:param obj retry_strategy: (optional)
|
1085
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1086
|
+
|
1087
|
+
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.
|
1088
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1089
|
+
|
1090
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1091
|
+
|
1092
|
+
:param bool allow_control_chars: (optional)
|
1093
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1094
|
+
By default, the response will not allow control characters in strings
|
1095
|
+
|
1096
|
+
:return: A :class:`~oci.response.Response` object with data of type stream
|
1097
|
+
:rtype: :class:`~oci.response.Response`
|
1098
|
+
|
1099
|
+
:example:
|
1100
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/get_occ_availability_catalog_content.py.html>`__ to see an example of how to use get_occ_availability_catalog_content API.
|
1101
|
+
"""
|
1102
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1103
|
+
required_arguments = ['occAvailabilityCatalogId']
|
1104
|
+
resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}/content"
|
1105
|
+
method = "GET"
|
1106
|
+
operation_name = "get_occ_availability_catalog_content"
|
1107
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/GetOccAvailabilityCatalogContent"
|
1108
|
+
|
1109
|
+
# Don't accept unknown kwargs
|
1110
|
+
expected_kwargs = [
|
1111
|
+
"allow_control_chars",
|
1112
|
+
"retry_strategy",
|
1113
|
+
"opc_retry_token",
|
1114
|
+
"opc_request_id",
|
1115
|
+
"if_match"
|
1116
|
+
]
|
1117
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1118
|
+
if extra_kwargs:
|
1119
|
+
raise ValueError(
|
1120
|
+
f"get_occ_availability_catalog_content got unknown kwargs: {extra_kwargs!r}")
|
1121
|
+
|
1122
|
+
path_params = {
|
1123
|
+
"occAvailabilityCatalogId": occ_availability_catalog_id
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1127
|
+
|
1128
|
+
for (k, v) in six.iteritems(path_params):
|
1129
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1130
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1131
|
+
|
1132
|
+
header_params = {
|
1133
|
+
"accept": "application/binary",
|
1134
|
+
"content-type": "application/json",
|
1135
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
1136
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1137
|
+
"if-match": kwargs.get("if_match", missing)
|
1138
|
+
}
|
1139
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1140
|
+
|
1141
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1142
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1143
|
+
client_retry_strategy=self.retry_strategy
|
1144
|
+
)
|
1145
|
+
if retry_strategy is None:
|
1146
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1147
|
+
|
1148
|
+
if retry_strategy:
|
1149
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1150
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1151
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1152
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1153
|
+
return retry_strategy.make_retrying_call(
|
1154
|
+
self.base_client.call_api,
|
1155
|
+
resource_path=resource_path,
|
1156
|
+
method=method,
|
1157
|
+
path_params=path_params,
|
1158
|
+
header_params=header_params,
|
1159
|
+
response_type="stream",
|
1160
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1161
|
+
operation_name=operation_name,
|
1162
|
+
api_reference_link=api_reference_link,
|
1163
|
+
required_arguments=required_arguments)
|
1164
|
+
else:
|
1165
|
+
return self.base_client.call_api(
|
1166
|
+
resource_path=resource_path,
|
1167
|
+
method=method,
|
1168
|
+
path_params=path_params,
|
1169
|
+
header_params=header_params,
|
1170
|
+
response_type="stream",
|
1171
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1172
|
+
operation_name=operation_name,
|
1173
|
+
api_reference_link=api_reference_link,
|
1174
|
+
required_arguments=required_arguments)
|
1175
|
+
|
1176
|
+
def get_occ_capacity_request(self, occ_capacity_request_id, **kwargs):
|
1177
|
+
"""
|
1178
|
+
Get details about the capacity request.
|
1179
|
+
|
1180
|
+
|
1181
|
+
:param str occ_capacity_request_id: (required)
|
1182
|
+
The OCID of the capacity request.
|
1183
|
+
|
1184
|
+
:param str opc_request_id: (optional)
|
1185
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
1186
|
+
underscore, and dash.
|
1187
|
+
|
1188
|
+
:param obj retry_strategy: (optional)
|
1189
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1190
|
+
|
1191
|
+
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.
|
1192
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1193
|
+
|
1194
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1195
|
+
|
1196
|
+
:param bool allow_control_chars: (optional)
|
1197
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1198
|
+
By default, the response will not allow control characters in strings
|
1199
|
+
|
1200
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequest`
|
1201
|
+
:rtype: :class:`~oci.response.Response`
|
1202
|
+
|
1203
|
+
:example:
|
1204
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/get_occ_capacity_request.py.html>`__ to see an example of how to use get_occ_capacity_request API.
|
1205
|
+
"""
|
1206
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1207
|
+
required_arguments = ['occCapacityRequestId']
|
1208
|
+
resource_path = "/occCapacityRequests/{occCapacityRequestId}"
|
1209
|
+
method = "GET"
|
1210
|
+
operation_name = "get_occ_capacity_request"
|
1211
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/GetOccCapacityRequest"
|
1212
|
+
|
1213
|
+
# Don't accept unknown kwargs
|
1214
|
+
expected_kwargs = [
|
1215
|
+
"allow_control_chars",
|
1216
|
+
"retry_strategy",
|
1217
|
+
"opc_request_id"
|
1218
|
+
]
|
1219
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1220
|
+
if extra_kwargs:
|
1221
|
+
raise ValueError(
|
1222
|
+
f"get_occ_capacity_request got unknown kwargs: {extra_kwargs!r}")
|
1223
|
+
|
1224
|
+
path_params = {
|
1225
|
+
"occCapacityRequestId": occ_capacity_request_id
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1229
|
+
|
1230
|
+
for (k, v) in six.iteritems(path_params):
|
1231
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1232
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1233
|
+
|
1234
|
+
header_params = {
|
1235
|
+
"accept": "application/json",
|
1236
|
+
"content-type": "application/json",
|
1237
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1238
|
+
}
|
1239
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1240
|
+
|
1241
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1242
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1243
|
+
client_retry_strategy=self.retry_strategy
|
1244
|
+
)
|
1245
|
+
if retry_strategy is None:
|
1246
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1247
|
+
|
1248
|
+
if retry_strategy:
|
1249
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1250
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1251
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1252
|
+
return retry_strategy.make_retrying_call(
|
1253
|
+
self.base_client.call_api,
|
1254
|
+
resource_path=resource_path,
|
1255
|
+
method=method,
|
1256
|
+
path_params=path_params,
|
1257
|
+
header_params=header_params,
|
1258
|
+
response_type="OccCapacityRequest",
|
1259
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1260
|
+
operation_name=operation_name,
|
1261
|
+
api_reference_link=api_reference_link,
|
1262
|
+
required_arguments=required_arguments)
|
1263
|
+
else:
|
1264
|
+
return self.base_client.call_api(
|
1265
|
+
resource_path=resource_path,
|
1266
|
+
method=method,
|
1267
|
+
path_params=path_params,
|
1268
|
+
header_params=header_params,
|
1269
|
+
response_type="OccCapacityRequest",
|
1270
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1271
|
+
operation_name=operation_name,
|
1272
|
+
api_reference_link=api_reference_link,
|
1273
|
+
required_arguments=required_arguments)
|
1274
|
+
|
1275
|
+
def get_occ_customer_group(self, occ_customer_group_id, **kwargs):
|
1276
|
+
"""
|
1277
|
+
Gets information about the specified customer group.
|
1278
|
+
|
1279
|
+
|
1280
|
+
:param str occ_customer_group_id: (required)
|
1281
|
+
The OCID of the customer group.
|
1282
|
+
|
1283
|
+
:param str opc_request_id: (optional)
|
1284
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
1285
|
+
underscore, and dash.
|
1286
|
+
|
1287
|
+
:param obj retry_strategy: (optional)
|
1288
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1289
|
+
|
1290
|
+
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.
|
1291
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1292
|
+
|
1293
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1294
|
+
|
1295
|
+
:param bool allow_control_chars: (optional)
|
1296
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1297
|
+
By default, the response will not allow control characters in strings
|
1298
|
+
|
1299
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomerGroup`
|
1300
|
+
:rtype: :class:`~oci.response.Response`
|
1301
|
+
|
1302
|
+
:example:
|
1303
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/get_occ_customer_group.py.html>`__ to see an example of how to use get_occ_customer_group API.
|
1304
|
+
"""
|
1305
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1306
|
+
required_arguments = ['occCustomerGroupId']
|
1307
|
+
resource_path = "/occCustomerGroups/{occCustomerGroupId}"
|
1308
|
+
method = "GET"
|
1309
|
+
operation_name = "get_occ_customer_group"
|
1310
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroup/GetOccCustomerGroup"
|
1311
|
+
|
1312
|
+
# Don't accept unknown kwargs
|
1313
|
+
expected_kwargs = [
|
1314
|
+
"allow_control_chars",
|
1315
|
+
"retry_strategy",
|
1316
|
+
"opc_request_id"
|
1317
|
+
]
|
1318
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1319
|
+
if extra_kwargs:
|
1320
|
+
raise ValueError(
|
1321
|
+
f"get_occ_customer_group got unknown kwargs: {extra_kwargs!r}")
|
1322
|
+
|
1323
|
+
path_params = {
|
1324
|
+
"occCustomerGroupId": occ_customer_group_id
|
1325
|
+
}
|
1326
|
+
|
1327
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1328
|
+
|
1329
|
+
for (k, v) in six.iteritems(path_params):
|
1330
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1331
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1332
|
+
|
1333
|
+
header_params = {
|
1334
|
+
"accept": "application/json",
|
1335
|
+
"content-type": "application/json",
|
1336
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1337
|
+
}
|
1338
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1339
|
+
|
1340
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1341
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1342
|
+
client_retry_strategy=self.retry_strategy
|
1343
|
+
)
|
1344
|
+
if retry_strategy is None:
|
1345
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1346
|
+
|
1347
|
+
if retry_strategy:
|
1348
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1349
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1350
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1351
|
+
return retry_strategy.make_retrying_call(
|
1352
|
+
self.base_client.call_api,
|
1353
|
+
resource_path=resource_path,
|
1354
|
+
method=method,
|
1355
|
+
path_params=path_params,
|
1356
|
+
header_params=header_params,
|
1357
|
+
response_type="OccCustomerGroup",
|
1358
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1359
|
+
operation_name=operation_name,
|
1360
|
+
api_reference_link=api_reference_link,
|
1361
|
+
required_arguments=required_arguments)
|
1362
|
+
else:
|
1363
|
+
return self.base_client.call_api(
|
1364
|
+
resource_path=resource_path,
|
1365
|
+
method=method,
|
1366
|
+
path_params=path_params,
|
1367
|
+
header_params=header_params,
|
1368
|
+
response_type="OccCustomerGroup",
|
1369
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1370
|
+
operation_name=operation_name,
|
1371
|
+
api_reference_link=api_reference_link,
|
1372
|
+
required_arguments=required_arguments)
|
1373
|
+
|
1374
|
+
def list_internal_namespace_occ_overviews(self, namespace, compartment_id, occ_customer_group_id, **kwargs):
|
1375
|
+
"""
|
1376
|
+
Lists an overview of all resources in that namespace in a given time interval.
|
1377
|
+
|
1378
|
+
|
1379
|
+
:param str namespace: (required)
|
1380
|
+
The namespace by which we would filter the list.
|
1381
|
+
|
1382
|
+
Allowed values are: "COMPUTE"
|
1383
|
+
|
1384
|
+
:param str compartment_id: (required)
|
1385
|
+
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
1386
|
+
|
1387
|
+
:param str occ_customer_group_id: (required)
|
1388
|
+
The customer group ocid by which we would filter the list.
|
1389
|
+
|
1390
|
+
:param str workload_type: (optional)
|
1391
|
+
Workload type using the resources in an availability catalog can be filtered.
|
1392
|
+
|
1393
|
+
:param datetime _from: (optional)
|
1394
|
+
The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
|
1395
|
+
|
1396
|
+
:param datetime to: (optional)
|
1397
|
+
The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
|
1398
|
+
|
1399
|
+
:param int limit: (optional)
|
1400
|
+
The maximum number of items to return.
|
1401
|
+
|
1402
|
+
:param str page: (optional)
|
1403
|
+
A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response.
|
1404
|
+
|
1405
|
+
:param str opc_request_id: (optional)
|
1406
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
1407
|
+
underscore, and dash.
|
1408
|
+
|
1409
|
+
:param str sort_order: (optional)
|
1410
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1411
|
+
|
1412
|
+
Allowed values are: "ASC", "DESC"
|
1413
|
+
|
1414
|
+
:param str sort_by: (optional)
|
1415
|
+
The field to sort by. Only one sort order may be provided. The default order for periodValue is chronological order(latest month item at the end).
|
1416
|
+
|
1417
|
+
Allowed values are: "periodValue"
|
1418
|
+
|
1419
|
+
:param obj retry_strategy: (optional)
|
1420
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1421
|
+
|
1422
|
+
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.
|
1423
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1424
|
+
|
1425
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1426
|
+
|
1427
|
+
:param bool allow_control_chars: (optional)
|
1428
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1429
|
+
By default, the response will not allow control characters in strings
|
1430
|
+
|
1431
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccOverviewCollection`
|
1432
|
+
:rtype: :class:`~oci.response.Response`
|
1433
|
+
|
1434
|
+
:example:
|
1435
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_internal_namespace_occ_overviews.py.html>`__ to see an example of how to use list_internal_namespace_occ_overviews API.
|
1436
|
+
"""
|
1437
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1438
|
+
required_arguments = ['namespace', 'compartmentId', 'occCustomerGroupId']
|
1439
|
+
resource_path = "/internal/namespace/{namespace}/occOverview"
|
1440
|
+
method = "GET"
|
1441
|
+
operation_name = "list_internal_namespace_occ_overviews"
|
1442
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccOverviewCollection/ListInternalNamespaceOccOverviews"
|
1443
|
+
|
1444
|
+
# Don't accept unknown kwargs
|
1445
|
+
expected_kwargs = [
|
1446
|
+
"allow_control_chars",
|
1447
|
+
"retry_strategy",
|
1448
|
+
"workload_type",
|
1449
|
+
"_from",
|
1450
|
+
"to",
|
1451
|
+
"limit",
|
1452
|
+
"page",
|
1453
|
+
"opc_request_id",
|
1454
|
+
"sort_order",
|
1455
|
+
"sort_by"
|
1456
|
+
]
|
1457
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1458
|
+
if extra_kwargs:
|
1459
|
+
raise ValueError(
|
1460
|
+
f"list_internal_namespace_occ_overviews got unknown kwargs: {extra_kwargs!r}")
|
1461
|
+
|
1462
|
+
path_params = {
|
1463
|
+
"namespace": namespace
|
1464
|
+
}
|
1465
|
+
|
1466
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1467
|
+
|
1468
|
+
for (k, v) in six.iteritems(path_params):
|
1469
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1470
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1471
|
+
|
1472
|
+
if 'sort_order' in kwargs:
|
1473
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1474
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1475
|
+
raise ValueError(
|
1476
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1477
|
+
)
|
1478
|
+
|
1479
|
+
if 'sort_by' in kwargs:
|
1480
|
+
sort_by_allowed_values = ["periodValue"]
|
1481
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1482
|
+
raise ValueError(
|
1483
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1484
|
+
)
|
1485
|
+
|
1486
|
+
query_params = {
|
1487
|
+
"compartmentId": compartment_id,
|
1488
|
+
"occCustomerGroupId": occ_customer_group_id,
|
1489
|
+
"workloadType": kwargs.get("workload_type", missing),
|
1490
|
+
"from": kwargs.get("_from", missing),
|
1491
|
+
"to": kwargs.get("to", missing),
|
1492
|
+
"limit": kwargs.get("limit", missing),
|
1493
|
+
"page": kwargs.get("page", missing),
|
1494
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1495
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1496
|
+
}
|
1497
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1498
|
+
|
1499
|
+
header_params = {
|
1500
|
+
"accept": "application/json",
|
1501
|
+
"content-type": "application/json",
|
1502
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1503
|
+
}
|
1504
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1505
|
+
|
1506
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1507
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1508
|
+
client_retry_strategy=self.retry_strategy
|
1509
|
+
)
|
1510
|
+
if retry_strategy is None:
|
1511
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1512
|
+
|
1513
|
+
if retry_strategy:
|
1514
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1515
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1516
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1517
|
+
return retry_strategy.make_retrying_call(
|
1518
|
+
self.base_client.call_api,
|
1519
|
+
resource_path=resource_path,
|
1520
|
+
method=method,
|
1521
|
+
path_params=path_params,
|
1522
|
+
query_params=query_params,
|
1523
|
+
header_params=header_params,
|
1524
|
+
response_type="OccOverviewCollection",
|
1525
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1526
|
+
operation_name=operation_name,
|
1527
|
+
api_reference_link=api_reference_link,
|
1528
|
+
required_arguments=required_arguments)
|
1529
|
+
else:
|
1530
|
+
return self.base_client.call_api(
|
1531
|
+
resource_path=resource_path,
|
1532
|
+
method=method,
|
1533
|
+
path_params=path_params,
|
1534
|
+
query_params=query_params,
|
1535
|
+
header_params=header_params,
|
1536
|
+
response_type="OccOverviewCollection",
|
1537
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1538
|
+
operation_name=operation_name,
|
1539
|
+
api_reference_link=api_reference_link,
|
1540
|
+
required_arguments=required_arguments)
|
1541
|
+
|
1542
|
+
def list_internal_occ_handover_resource_block_details(self, occ_handover_resource_block_id, **kwargs):
|
1543
|
+
"""
|
1544
|
+
List details about a given occHandoverResourceBlock.
|
1545
|
+
|
1546
|
+
|
1547
|
+
:param str occ_handover_resource_block_id: (required)
|
1548
|
+
The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
|
1549
|
+
|
1550
|
+
:param str host_id: (optional)
|
1551
|
+
This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
|
1552
|
+
|
1553
|
+
:param int limit: (optional)
|
1554
|
+
The maximum number of items to return.
|
1555
|
+
|
1556
|
+
:param str page: (optional)
|
1557
|
+
A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response.
|
1558
|
+
|
1559
|
+
:param str opc_request_id: (optional)
|
1560
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
1561
|
+
underscore, and dash.
|
1562
|
+
|
1563
|
+
:param str sort_order: (optional)
|
1564
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1565
|
+
|
1566
|
+
Allowed values are: "ASC", "DESC"
|
1567
|
+
|
1568
|
+
:param str sort_by: (optional)
|
1569
|
+
The field to sort by. Only one sort order may be provided.
|
1570
|
+
The default order for handoverDate is chronological order(latest date item at the end).
|
1571
|
+
|
1572
|
+
Allowed values are: "handoverDate"
|
1573
|
+
|
1574
|
+
:param obj retry_strategy: (optional)
|
1575
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1576
|
+
|
1577
|
+
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.
|
1578
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1579
|
+
|
1580
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1581
|
+
|
1582
|
+
:param bool allow_control_chars: (optional)
|
1583
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1584
|
+
By default, the response will not allow control characters in strings
|
1585
|
+
|
1586
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccHandoverResourceBlockDetailCollection`
|
1587
|
+
:rtype: :class:`~oci.response.Response`
|
1588
|
+
|
1589
|
+
:example:
|
1590
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_internal_occ_handover_resource_block_details.py.html>`__ to see an example of how to use list_internal_occ_handover_resource_block_details API.
|
1591
|
+
"""
|
1592
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1593
|
+
required_arguments = ['occHandoverResourceBlockId']
|
1594
|
+
resource_path = "/internal/occHandoverResourceBlockDetails"
|
1595
|
+
method = "GET"
|
1596
|
+
operation_name = "list_internal_occ_handover_resource_block_details"
|
1597
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccHandoverResourceBlockDetailCollection/ListInternalOccHandoverResourceBlockDetails"
|
1598
|
+
|
1599
|
+
# Don't accept unknown kwargs
|
1600
|
+
expected_kwargs = [
|
1601
|
+
"allow_control_chars",
|
1602
|
+
"retry_strategy",
|
1603
|
+
"host_id",
|
1604
|
+
"limit",
|
1605
|
+
"page",
|
1606
|
+
"opc_request_id",
|
1607
|
+
"sort_order",
|
1608
|
+
"sort_by"
|
1609
|
+
]
|
1610
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1611
|
+
if extra_kwargs:
|
1612
|
+
raise ValueError(
|
1613
|
+
f"list_internal_occ_handover_resource_block_details got unknown kwargs: {extra_kwargs!r}")
|
1614
|
+
|
1615
|
+
if 'sort_order' in kwargs:
|
1616
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1617
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1618
|
+
raise ValueError(
|
1619
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1620
|
+
)
|
1621
|
+
|
1622
|
+
if 'sort_by' in kwargs:
|
1623
|
+
sort_by_allowed_values = ["handoverDate"]
|
1624
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1625
|
+
raise ValueError(
|
1626
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1627
|
+
)
|
1628
|
+
|
1629
|
+
query_params = {
|
1630
|
+
"occHandoverResourceBlockId": occ_handover_resource_block_id,
|
1631
|
+
"hostId": kwargs.get("host_id", missing),
|
1632
|
+
"limit": kwargs.get("limit", missing),
|
1633
|
+
"page": kwargs.get("page", missing),
|
1634
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1635
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1636
|
+
}
|
1637
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1638
|
+
|
1639
|
+
header_params = {
|
1640
|
+
"accept": "application/json",
|
1641
|
+
"content-type": "application/json",
|
1642
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1643
|
+
}
|
1644
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1645
|
+
|
1646
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1647
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1648
|
+
client_retry_strategy=self.retry_strategy
|
1649
|
+
)
|
1650
|
+
if retry_strategy is None:
|
1651
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1652
|
+
|
1653
|
+
if retry_strategy:
|
1654
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1655
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1656
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1657
|
+
return retry_strategy.make_retrying_call(
|
1658
|
+
self.base_client.call_api,
|
1659
|
+
resource_path=resource_path,
|
1660
|
+
method=method,
|
1661
|
+
query_params=query_params,
|
1662
|
+
header_params=header_params,
|
1663
|
+
response_type="OccHandoverResourceBlockDetailCollection",
|
1664
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1665
|
+
operation_name=operation_name,
|
1666
|
+
api_reference_link=api_reference_link,
|
1667
|
+
required_arguments=required_arguments)
|
1668
|
+
else:
|
1669
|
+
return self.base_client.call_api(
|
1670
|
+
resource_path=resource_path,
|
1671
|
+
method=method,
|
1672
|
+
query_params=query_params,
|
1673
|
+
header_params=header_params,
|
1674
|
+
response_type="OccHandoverResourceBlockDetailCollection",
|
1675
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1676
|
+
operation_name=operation_name,
|
1677
|
+
api_reference_link=api_reference_link,
|
1678
|
+
required_arguments=required_arguments)
|
1679
|
+
|
1680
|
+
def list_internal_occ_handover_resource_blocks(self, namespace, compartment_id, occ_customer_group_id, **kwargs):
|
1681
|
+
"""
|
1682
|
+
List Occ Handover Resource blocks.
|
1683
|
+
|
1684
|
+
|
1685
|
+
:param str namespace: (required)
|
1686
|
+
The namespace enum value that needs to be passed as a required query parameter.
|
1687
|
+
|
1688
|
+
Allowed values are: "COMPUTE"
|
1689
|
+
|
1690
|
+
:param str compartment_id: (required)
|
1691
|
+
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
1692
|
+
|
1693
|
+
:param str occ_customer_group_id: (required)
|
1694
|
+
The customer group ocid by which we would filter the list.
|
1695
|
+
|
1696
|
+
:param str handover_resource_name: (optional)
|
1697
|
+
A filter to return only the list of resources that match the name provided in this filter.
|
1698
|
+
|
1699
|
+
:param datetime handover_date_greater_than_or_equal_to: (optional)
|
1700
|
+
This filter helps in fetching all handed over resources for which the recordDate is greater than or equal to the startDate.
|
1701
|
+
|
1702
|
+
:param datetime handover_date_less_than_or_equal_to: (optional)
|
1703
|
+
This filter helps in fetching all handed over resources for which the recordDate is less than or equal to the endDate.
|
1704
|
+
|
1705
|
+
:param str occ_handover_resource_block_id: (optional)
|
1706
|
+
This filter helps in fetching the handed over resource for which the occHandoverResourceId is equal to the one provided here.
|
1707
|
+
|
1708
|
+
:param int limit: (optional)
|
1709
|
+
The maximum number of items to return.
|
1710
|
+
|
1711
|
+
:param str page: (optional)
|
1712
|
+
A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response.
|
1713
|
+
|
1714
|
+
:param str opc_request_id: (optional)
|
1715
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
1716
|
+
underscore, and dash.
|
1717
|
+
|
1718
|
+
:param str sort_order: (optional)
|
1719
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1720
|
+
|
1721
|
+
Allowed values are: "ASC", "DESC"
|
1722
|
+
|
1723
|
+
:param str sort_by: (optional)
|
1724
|
+
The field to sort by. Only one sort order may be provided.
|
1725
|
+
The default order for handoverDate is chronological order(latest date item at the end).
|
1726
|
+
|
1727
|
+
Allowed values are: "handoverDate"
|
1728
|
+
|
1729
|
+
:param obj retry_strategy: (optional)
|
1730
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1731
|
+
|
1732
|
+
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.
|
1733
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1734
|
+
|
1735
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1736
|
+
|
1737
|
+
:param bool allow_control_chars: (optional)
|
1738
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1739
|
+
By default, the response will not allow control characters in strings
|
1740
|
+
|
1741
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccHandoverResourceBlockCollection`
|
1742
|
+
:rtype: :class:`~oci.response.Response`
|
1743
|
+
|
1744
|
+
:example:
|
1745
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_internal_occ_handover_resource_blocks.py.html>`__ to see an example of how to use list_internal_occ_handover_resource_blocks API.
|
1746
|
+
"""
|
1747
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1748
|
+
required_arguments = ['namespace', 'compartmentId', 'occCustomerGroupId']
|
1749
|
+
resource_path = "/internal/occHandoverResourceBlocks"
|
1750
|
+
method = "GET"
|
1751
|
+
operation_name = "list_internal_occ_handover_resource_blocks"
|
1752
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccHandoverResourceBlockCollection/ListInternalOccHandoverResourceBlocks"
|
1753
|
+
|
1754
|
+
# Don't accept unknown kwargs
|
1755
|
+
expected_kwargs = [
|
1756
|
+
"allow_control_chars",
|
1757
|
+
"retry_strategy",
|
1758
|
+
"handover_resource_name",
|
1759
|
+
"handover_date_greater_than_or_equal_to",
|
1760
|
+
"handover_date_less_than_or_equal_to",
|
1761
|
+
"occ_handover_resource_block_id",
|
1762
|
+
"limit",
|
1763
|
+
"page",
|
1764
|
+
"opc_request_id",
|
1765
|
+
"sort_order",
|
1766
|
+
"sort_by"
|
1767
|
+
]
|
1768
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1769
|
+
if extra_kwargs:
|
1770
|
+
raise ValueError(
|
1771
|
+
f"list_internal_occ_handover_resource_blocks got unknown kwargs: {extra_kwargs!r}")
|
1772
|
+
|
1773
|
+
namespace_allowed_values = ["COMPUTE"]
|
1774
|
+
if namespace not in namespace_allowed_values:
|
1775
|
+
raise ValueError(
|
1776
|
+
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
1777
|
+
)
|
1778
|
+
|
1779
|
+
if 'sort_order' in kwargs:
|
1780
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1781
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1782
|
+
raise ValueError(
|
1783
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1784
|
+
)
|
1785
|
+
|
1786
|
+
if 'sort_by' in kwargs:
|
1787
|
+
sort_by_allowed_values = ["handoverDate"]
|
1788
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1789
|
+
raise ValueError(
|
1790
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1791
|
+
)
|
1792
|
+
|
1793
|
+
query_params = {
|
1794
|
+
"namespace": namespace,
|
1795
|
+
"compartmentId": compartment_id,
|
1796
|
+
"occCustomerGroupId": occ_customer_group_id,
|
1797
|
+
"handoverResourceName": kwargs.get("handover_resource_name", missing),
|
1798
|
+
"handoverDateGreaterThanOrEqualTo": kwargs.get("handover_date_greater_than_or_equal_to", missing),
|
1799
|
+
"handoverDateLessThanOrEqualTo": kwargs.get("handover_date_less_than_or_equal_to", missing),
|
1800
|
+
"occHandoverResourceBlockId": kwargs.get("occ_handover_resource_block_id", missing),
|
1801
|
+
"limit": kwargs.get("limit", missing),
|
1802
|
+
"page": kwargs.get("page", missing),
|
1803
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1804
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1805
|
+
}
|
1806
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1807
|
+
|
1808
|
+
header_params = {
|
1809
|
+
"accept": "application/json",
|
1810
|
+
"content-type": "application/json",
|
1811
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1812
|
+
}
|
1813
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1814
|
+
|
1815
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1816
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1817
|
+
client_retry_strategy=self.retry_strategy
|
1818
|
+
)
|
1819
|
+
if retry_strategy is None:
|
1820
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1821
|
+
|
1822
|
+
if retry_strategy:
|
1823
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1824
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1825
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1826
|
+
return retry_strategy.make_retrying_call(
|
1827
|
+
self.base_client.call_api,
|
1828
|
+
resource_path=resource_path,
|
1829
|
+
method=method,
|
1830
|
+
query_params=query_params,
|
1831
|
+
header_params=header_params,
|
1832
|
+
response_type="OccHandoverResourceBlockCollection",
|
1833
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1834
|
+
operation_name=operation_name,
|
1835
|
+
api_reference_link=api_reference_link,
|
1836
|
+
required_arguments=required_arguments)
|
1837
|
+
else:
|
1838
|
+
return self.base_client.call_api(
|
1839
|
+
resource_path=resource_path,
|
1840
|
+
method=method,
|
1841
|
+
query_params=query_params,
|
1842
|
+
header_params=header_params,
|
1843
|
+
response_type="OccHandoverResourceBlockCollection",
|
1844
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1845
|
+
operation_name=operation_name,
|
1846
|
+
api_reference_link=api_reference_link,
|
1847
|
+
required_arguments=required_arguments)
|
1848
|
+
|
1849
|
+
def list_occ_availabilities(self, occ_availability_catalog_id, **kwargs):
|
1850
|
+
"""
|
1851
|
+
Lists availabilities for a particular availability catalog.
|
1852
|
+
|
1853
|
+
|
1854
|
+
:param str occ_availability_catalog_id: (required)
|
1855
|
+
The OCID of the availability catalog.
|
1856
|
+
|
1857
|
+
:param str date_expected_capacity_handover: (optional)
|
1858
|
+
The capacity handover date of the capacity constraint to filter the list of capacity constraints.
|
1859
|
+
|
1860
|
+
:param str resource_name: (optional)
|
1861
|
+
The name of the resource to filter the list of capacity constraints.
|
1862
|
+
|
1863
|
+
:param str resource_type: (optional)
|
1864
|
+
Resource type using which the capacity constraints of an availability catalog can be filtered.
|
1865
|
+
|
1866
|
+
:param str workload_type: (optional)
|
1867
|
+
Workload type using the resources in an availability catalog can be filtered.
|
1868
|
+
|
1869
|
+
:param int limit: (optional)
|
1870
|
+
The maximum number of items to return.
|
1871
|
+
|
1872
|
+
:param str page: (optional)
|
1873
|
+
A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response.
|
1874
|
+
|
1875
|
+
:param str opc_request_id: (optional)
|
1876
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
1877
|
+
underscore, and dash.
|
1878
|
+
|
1879
|
+
:param str sort_order: (optional)
|
1880
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1881
|
+
|
1882
|
+
Allowed values are: "ASC", "DESC"
|
1883
|
+
|
1884
|
+
:param str sort_by: (optional)
|
1885
|
+
The field to sort by. Only one sort order may be provided. The default order for resource name is ascending. The default order for date of capacity handover is descending.
|
1886
|
+
|
1887
|
+
Allowed values are: "dateExpectedCapacityHandover", "resourceName"
|
1888
|
+
|
1889
|
+
:param obj retry_strategy: (optional)
|
1890
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1891
|
+
|
1892
|
+
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.
|
1893
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1894
|
+
|
1895
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1896
|
+
|
1897
|
+
:param bool allow_control_chars: (optional)
|
1898
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1899
|
+
By default, the response will not allow control characters in strings
|
1900
|
+
|
1901
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCollection`
|
1902
|
+
:rtype: :class:`~oci.response.Response`
|
1903
|
+
|
1904
|
+
:example:
|
1905
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_availabilities.py.html>`__ to see an example of how to use list_occ_availabilities API.
|
1906
|
+
"""
|
1907
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1908
|
+
required_arguments = ['occAvailabilityCatalogId']
|
1909
|
+
resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}/occAvailabilities"
|
1910
|
+
method = "GET"
|
1911
|
+
operation_name = "list_occ_availabilities"
|
1912
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCollection/ListOccAvailabilities"
|
1913
|
+
|
1015
1914
|
# Don't accept unknown kwargs
|
1016
1915
|
expected_kwargs = [
|
1017
1916
|
"allow_control_chars",
|
1018
1917
|
"retry_strategy",
|
1019
|
-
"
|
1918
|
+
"date_expected_capacity_handover",
|
1919
|
+
"resource_name",
|
1920
|
+
"resource_type",
|
1020
1921
|
"workload_type",
|
1021
|
-
"_from",
|
1022
|
-
"to",
|
1023
1922
|
"limit",
|
1024
1923
|
"page",
|
1025
1924
|
"opc_request_id",
|
@@ -1029,10 +1928,10 @@ class CapacityManagementClient(object):
|
|
1029
1928
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1030
1929
|
if extra_kwargs:
|
1031
1930
|
raise ValueError(
|
1032
|
-
f"
|
1931
|
+
f"list_occ_availabilities got unknown kwargs: {extra_kwargs!r}")
|
1033
1932
|
|
1034
1933
|
path_params = {
|
1035
|
-
"
|
1934
|
+
"occAvailabilityCatalogId": occ_availability_catalog_id
|
1036
1935
|
}
|
1037
1936
|
|
1038
1937
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -1049,18 +1948,17 @@ class CapacityManagementClient(object):
|
|
1049
1948
|
)
|
1050
1949
|
|
1051
1950
|
if 'sort_by' in kwargs:
|
1052
|
-
sort_by_allowed_values = ["
|
1951
|
+
sort_by_allowed_values = ["dateExpectedCapacityHandover", "resourceName"]
|
1053
1952
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1054
1953
|
raise ValueError(
|
1055
1954
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1056
1955
|
)
|
1057
1956
|
|
1058
1957
|
query_params = {
|
1059
|
-
"
|
1060
|
-
"
|
1958
|
+
"dateExpectedCapacityHandover": kwargs.get("date_expected_capacity_handover", missing),
|
1959
|
+
"resourceName": kwargs.get("resource_name", missing),
|
1960
|
+
"resourceType": kwargs.get("resource_type", missing),
|
1061
1961
|
"workloadType": kwargs.get("workload_type", missing),
|
1062
|
-
"from": kwargs.get("_from", missing),
|
1063
|
-
"to": kwargs.get("to", missing),
|
1064
1962
|
"limit": kwargs.get("limit", missing),
|
1065
1963
|
"page": kwargs.get("page", missing),
|
1066
1964
|
"sortOrder": kwargs.get("sort_order", missing),
|
@@ -1093,7 +1991,7 @@ class CapacityManagementClient(object):
|
|
1093
1991
|
path_params=path_params,
|
1094
1992
|
query_params=query_params,
|
1095
1993
|
header_params=header_params,
|
1096
|
-
response_type="
|
1994
|
+
response_type="OccAvailabilityCollection",
|
1097
1995
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1098
1996
|
operation_name=operation_name,
|
1099
1997
|
api_reference_link=api_reference_link,
|
@@ -1105,31 +2003,35 @@ class CapacityManagementClient(object):
|
|
1105
2003
|
path_params=path_params,
|
1106
2004
|
query_params=query_params,
|
1107
2005
|
header_params=header_params,
|
1108
|
-
response_type="
|
2006
|
+
response_type="OccAvailabilityCollection",
|
1109
2007
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1110
2008
|
operation_name=operation_name,
|
1111
2009
|
api_reference_link=api_reference_link,
|
1112
2010
|
required_arguments=required_arguments)
|
1113
2011
|
|
1114
|
-
def
|
2012
|
+
def list_occ_availability_catalogs(self, compartment_id, **kwargs):
|
1115
2013
|
"""
|
1116
|
-
Lists
|
2014
|
+
Lists all availability catalogs.
|
1117
2015
|
|
1118
2016
|
|
1119
|
-
:param str
|
1120
|
-
The
|
2017
|
+
:param str compartment_id: (required)
|
2018
|
+
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
1121
2019
|
|
1122
|
-
:param str
|
1123
|
-
The
|
2020
|
+
:param str namespace: (optional)
|
2021
|
+
The namespace by which we would filter the list.
|
1124
2022
|
|
1125
|
-
|
1126
|
-
The name of the resource to filter the list of capacity constraints.
|
2023
|
+
Allowed values are: "COMPUTE"
|
1127
2024
|
|
1128
|
-
:param str
|
1129
|
-
|
2025
|
+
:param str id: (optional)
|
2026
|
+
The OCID of the availability catalog to filter the list of availability catalogs.
|
1130
2027
|
|
1131
|
-
:param str
|
1132
|
-
|
2028
|
+
:param str display_name: (optional)
|
2029
|
+
A filter to return only the resources that match the entire display name. The match is not case sensitive.
|
2030
|
+
|
2031
|
+
:param str catalog_state: (optional)
|
2032
|
+
Filter the list of availability catalogs based on the catalog state.
|
2033
|
+
|
2034
|
+
Allowed values are: "NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"
|
1133
2035
|
|
1134
2036
|
:param int limit: (optional)
|
1135
2037
|
The maximum number of items to return.
|
@@ -1147,9 +2049,9 @@ class CapacityManagementClient(object):
|
|
1147
2049
|
Allowed values are: "ASC", "DESC"
|
1148
2050
|
|
1149
2051
|
:param str sort_by: (optional)
|
1150
|
-
The field to sort by.
|
2052
|
+
The field to sort by. Only one sort order may be provided. The default order for displayName is ascending. The default order for timeCreated is descending.
|
1151
2053
|
|
1152
|
-
Allowed values are: "
|
2054
|
+
Allowed values are: "displayName", "timeCreated"
|
1153
2055
|
|
1154
2056
|
:param obj retry_strategy: (optional)
|
1155
2057
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -1163,27 +2065,27 @@ class CapacityManagementClient(object):
|
|
1163
2065
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1164
2066
|
By default, the response will not allow control characters in strings
|
1165
2067
|
|
1166
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.
|
2068
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalogCollection`
|
1167
2069
|
:rtype: :class:`~oci.response.Response`
|
1168
2070
|
|
1169
2071
|
:example:
|
1170
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2072
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_availability_catalogs.py.html>`__ to see an example of how to use list_occ_availability_catalogs API.
|
1171
2073
|
"""
|
1172
2074
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1173
|
-
required_arguments = ['
|
1174
|
-
resource_path = "/occAvailabilityCatalogs
|
2075
|
+
required_arguments = ['compartmentId']
|
2076
|
+
resource_path = "/occAvailabilityCatalogs"
|
1175
2077
|
method = "GET"
|
1176
|
-
operation_name = "
|
1177
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
2078
|
+
operation_name = "list_occ_availability_catalogs"
|
2079
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalogCollection/ListOccAvailabilityCatalogs"
|
1178
2080
|
|
1179
2081
|
# Don't accept unknown kwargs
|
1180
2082
|
expected_kwargs = [
|
1181
2083
|
"allow_control_chars",
|
1182
2084
|
"retry_strategy",
|
1183
|
-
"
|
1184
|
-
"
|
1185
|
-
"
|
1186
|
-
"
|
2085
|
+
"namespace",
|
2086
|
+
"id",
|
2087
|
+
"display_name",
|
2088
|
+
"catalog_state",
|
1187
2089
|
"limit",
|
1188
2090
|
"page",
|
1189
2091
|
"opc_request_id",
|
@@ -1193,17 +2095,194 @@ class CapacityManagementClient(object):
|
|
1193
2095
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1194
2096
|
if extra_kwargs:
|
1195
2097
|
raise ValueError(
|
1196
|
-
f"
|
2098
|
+
f"list_occ_availability_catalogs got unknown kwargs: {extra_kwargs!r}")
|
1197
2099
|
|
1198
|
-
|
1199
|
-
"
|
2100
|
+
if 'namespace' in kwargs:
|
2101
|
+
namespace_allowed_values = ["COMPUTE"]
|
2102
|
+
if kwargs['namespace'] not in namespace_allowed_values:
|
2103
|
+
raise ValueError(
|
2104
|
+
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
2105
|
+
)
|
2106
|
+
|
2107
|
+
if 'catalog_state' in kwargs:
|
2108
|
+
catalog_state_allowed_values = ["NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"]
|
2109
|
+
if kwargs['catalog_state'] not in catalog_state_allowed_values:
|
2110
|
+
raise ValueError(
|
2111
|
+
f"Invalid value for `catalog_state`, must be one of { catalog_state_allowed_values }"
|
2112
|
+
)
|
2113
|
+
|
2114
|
+
if 'sort_order' in kwargs:
|
2115
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2116
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2117
|
+
raise ValueError(
|
2118
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2119
|
+
)
|
2120
|
+
|
2121
|
+
if 'sort_by' in kwargs:
|
2122
|
+
sort_by_allowed_values = ["displayName", "timeCreated"]
|
2123
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2124
|
+
raise ValueError(
|
2125
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2126
|
+
)
|
2127
|
+
|
2128
|
+
query_params = {
|
2129
|
+
"compartmentId": compartment_id,
|
2130
|
+
"namespace": kwargs.get("namespace", missing),
|
2131
|
+
"id": kwargs.get("id", missing),
|
2132
|
+
"displayName": kwargs.get("display_name", missing),
|
2133
|
+
"catalogState": kwargs.get("catalog_state", missing),
|
2134
|
+
"limit": kwargs.get("limit", missing),
|
2135
|
+
"page": kwargs.get("page", missing),
|
2136
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2137
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2138
|
+
}
|
2139
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2140
|
+
|
2141
|
+
header_params = {
|
2142
|
+
"accept": "application/json",
|
2143
|
+
"content-type": "application/json",
|
2144
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1200
2145
|
}
|
2146
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2147
|
+
|
2148
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2149
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2150
|
+
client_retry_strategy=self.retry_strategy
|
2151
|
+
)
|
2152
|
+
if retry_strategy is None:
|
2153
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2154
|
+
|
2155
|
+
if retry_strategy:
|
2156
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2157
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2158
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2159
|
+
return retry_strategy.make_retrying_call(
|
2160
|
+
self.base_client.call_api,
|
2161
|
+
resource_path=resource_path,
|
2162
|
+
method=method,
|
2163
|
+
query_params=query_params,
|
2164
|
+
header_params=header_params,
|
2165
|
+
response_type="OccAvailabilityCatalogCollection",
|
2166
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2167
|
+
operation_name=operation_name,
|
2168
|
+
api_reference_link=api_reference_link,
|
2169
|
+
required_arguments=required_arguments)
|
2170
|
+
else:
|
2171
|
+
return self.base_client.call_api(
|
2172
|
+
resource_path=resource_path,
|
2173
|
+
method=method,
|
2174
|
+
query_params=query_params,
|
2175
|
+
header_params=header_params,
|
2176
|
+
response_type="OccAvailabilityCatalogCollection",
|
2177
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2178
|
+
operation_name=operation_name,
|
2179
|
+
api_reference_link=api_reference_link,
|
2180
|
+
required_arguments=required_arguments)
|
2181
|
+
|
2182
|
+
def list_occ_availability_catalogs_internal(self, compartment_id, occ_customer_group_id, **kwargs):
|
2183
|
+
"""
|
2184
|
+
An internal api to list availability catalogs.
|
2185
|
+
|
2186
|
+
|
2187
|
+
:param str compartment_id: (required)
|
2188
|
+
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
2189
|
+
|
2190
|
+
:param str occ_customer_group_id: (required)
|
2191
|
+
The customer group ocid by which we would filter the list.
|
2192
|
+
|
2193
|
+
:param str namespace: (optional)
|
2194
|
+
The namespace by which we would filter the list.
|
2195
|
+
|
2196
|
+
Allowed values are: "COMPUTE"
|
2197
|
+
|
2198
|
+
:param str id: (optional)
|
2199
|
+
The OCID of the availability catalog to filter the list of availability catalogs.
|
2200
|
+
|
2201
|
+
:param str display_name: (optional)
|
2202
|
+
A filter to return only the resources that match the entire display name. The match is not case sensitive.
|
2203
|
+
|
2204
|
+
:param str catalog_state: (optional)
|
2205
|
+
Filter the list of availability catalogs based on the catalog state.
|
2206
|
+
|
2207
|
+
Allowed values are: "NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"
|
2208
|
+
|
2209
|
+
:param int limit: (optional)
|
2210
|
+
The maximum number of items to return.
|
2211
|
+
|
2212
|
+
:param str page: (optional)
|
2213
|
+
A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response.
|
2214
|
+
|
2215
|
+
:param str opc_request_id: (optional)
|
2216
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
2217
|
+
underscore, and dash.
|
2218
|
+
|
2219
|
+
:param str sort_order: (optional)
|
2220
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2221
|
+
|
2222
|
+
Allowed values are: "ASC", "DESC"
|
2223
|
+
|
2224
|
+
:param str sort_by: (optional)
|
2225
|
+
The field to sort by. Only one sort order may be provided. The default order for displayName is ascending. The default order for timeCreated is descending.
|
2226
|
+
|
2227
|
+
Allowed values are: "displayName", "timeCreated"
|
2228
|
+
|
2229
|
+
:param obj retry_strategy: (optional)
|
2230
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2231
|
+
|
2232
|
+
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.
|
2233
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2234
|
+
|
2235
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2236
|
+
|
2237
|
+
:param bool allow_control_chars: (optional)
|
2238
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2239
|
+
By default, the response will not allow control characters in strings
|
2240
|
+
|
2241
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalogCollection`
|
2242
|
+
:rtype: :class:`~oci.response.Response`
|
2243
|
+
|
2244
|
+
:example:
|
2245
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_availability_catalogs_internal.py.html>`__ to see an example of how to use list_occ_availability_catalogs_internal API.
|
2246
|
+
"""
|
2247
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2248
|
+
required_arguments = ['compartmentId', 'occCustomerGroupId']
|
2249
|
+
resource_path = "/internal/occAvailabilityCatalogs"
|
2250
|
+
method = "GET"
|
2251
|
+
operation_name = "list_occ_availability_catalogs_internal"
|
2252
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalogCollection/ListOccAvailabilityCatalogsInternal"
|
2253
|
+
|
2254
|
+
# Don't accept unknown kwargs
|
2255
|
+
expected_kwargs = [
|
2256
|
+
"allow_control_chars",
|
2257
|
+
"retry_strategy",
|
2258
|
+
"namespace",
|
2259
|
+
"id",
|
2260
|
+
"display_name",
|
2261
|
+
"catalog_state",
|
2262
|
+
"limit",
|
2263
|
+
"page",
|
2264
|
+
"opc_request_id",
|
2265
|
+
"sort_order",
|
2266
|
+
"sort_by"
|
2267
|
+
]
|
2268
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2269
|
+
if extra_kwargs:
|
2270
|
+
raise ValueError(
|
2271
|
+
f"list_occ_availability_catalogs_internal got unknown kwargs: {extra_kwargs!r}")
|
1201
2272
|
|
1202
|
-
|
2273
|
+
if 'namespace' in kwargs:
|
2274
|
+
namespace_allowed_values = ["COMPUTE"]
|
2275
|
+
if kwargs['namespace'] not in namespace_allowed_values:
|
2276
|
+
raise ValueError(
|
2277
|
+
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
2278
|
+
)
|
1203
2279
|
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
2280
|
+
if 'catalog_state' in kwargs:
|
2281
|
+
catalog_state_allowed_values = ["NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"]
|
2282
|
+
if kwargs['catalog_state'] not in catalog_state_allowed_values:
|
2283
|
+
raise ValueError(
|
2284
|
+
f"Invalid value for `catalog_state`, must be one of { catalog_state_allowed_values }"
|
2285
|
+
)
|
1207
2286
|
|
1208
2287
|
if 'sort_order' in kwargs:
|
1209
2288
|
sort_order_allowed_values = ["ASC", "DESC"]
|
@@ -1213,17 +2292,19 @@ class CapacityManagementClient(object):
|
|
1213
2292
|
)
|
1214
2293
|
|
1215
2294
|
if 'sort_by' in kwargs:
|
1216
|
-
sort_by_allowed_values = ["
|
2295
|
+
sort_by_allowed_values = ["displayName", "timeCreated"]
|
1217
2296
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1218
2297
|
raise ValueError(
|
1219
2298
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1220
2299
|
)
|
1221
2300
|
|
1222
2301
|
query_params = {
|
1223
|
-
"
|
1224
|
-
"
|
1225
|
-
"
|
1226
|
-
"
|
2302
|
+
"compartmentId": compartment_id,
|
2303
|
+
"namespace": kwargs.get("namespace", missing),
|
2304
|
+
"id": kwargs.get("id", missing),
|
2305
|
+
"displayName": kwargs.get("display_name", missing),
|
2306
|
+
"catalogState": kwargs.get("catalog_state", missing),
|
2307
|
+
"occCustomerGroupId": occ_customer_group_id,
|
1227
2308
|
"limit": kwargs.get("limit", missing),
|
1228
2309
|
"page": kwargs.get("page", missing),
|
1229
2310
|
"sortOrder": kwargs.get("sort_order", missing),
|
@@ -1253,10 +2334,9 @@ class CapacityManagementClient(object):
|
|
1253
2334
|
self.base_client.call_api,
|
1254
2335
|
resource_path=resource_path,
|
1255
2336
|
method=method,
|
1256
|
-
path_params=path_params,
|
1257
2337
|
query_params=query_params,
|
1258
2338
|
header_params=header_params,
|
1259
|
-
response_type="
|
2339
|
+
response_type="OccAvailabilityCatalogCollection",
|
1260
2340
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1261
2341
|
operation_name=operation_name,
|
1262
2342
|
api_reference_link=api_reference_link,
|
@@ -1265,38 +2345,40 @@ class CapacityManagementClient(object):
|
|
1265
2345
|
return self.base_client.call_api(
|
1266
2346
|
resource_path=resource_path,
|
1267
2347
|
method=method,
|
1268
|
-
path_params=path_params,
|
1269
2348
|
query_params=query_params,
|
1270
2349
|
header_params=header_params,
|
1271
|
-
response_type="
|
2350
|
+
response_type="OccAvailabilityCatalogCollection",
|
1272
2351
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1273
2352
|
operation_name=operation_name,
|
1274
2353
|
api_reference_link=api_reference_link,
|
1275
2354
|
required_arguments=required_arguments)
|
1276
2355
|
|
1277
|
-
def
|
2356
|
+
def list_occ_capacity_requests(self, compartment_id, **kwargs):
|
1278
2357
|
"""
|
1279
|
-
Lists all
|
2358
|
+
Lists all capacity requests.
|
1280
2359
|
|
1281
2360
|
|
1282
2361
|
:param str compartment_id: (required)
|
1283
2362
|
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
1284
2363
|
|
2364
|
+
:param str occ_availability_catalog_id: (optional)
|
2365
|
+
A filter to return the list of capacity requests based on the OCID of the availability catalog against which they were created.
|
2366
|
+
|
1285
2367
|
:param str namespace: (optional)
|
1286
2368
|
The namespace by which we would filter the list.
|
1287
2369
|
|
1288
2370
|
Allowed values are: "COMPUTE"
|
1289
2371
|
|
1290
|
-
:param str
|
1291
|
-
|
2372
|
+
:param str request_type: (optional)
|
2373
|
+
A filter to return only the resources that match the request type. The match is not case sensitive.
|
2374
|
+
|
2375
|
+
Allowed values are: "NEW", "TRANSFER"
|
1292
2376
|
|
1293
2377
|
:param str display_name: (optional)
|
1294
2378
|
A filter to return only the resources that match the entire display name. The match is not case sensitive.
|
1295
2379
|
|
1296
|
-
:param str
|
1297
|
-
|
1298
|
-
|
1299
|
-
Allowed values are: "NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"
|
2380
|
+
:param str id: (optional)
|
2381
|
+
A filter to return the list of capacity requests based on the OCID of the capacity request. This is done for the users who have INSPECT permission on the resource but do not have READ permission.
|
1300
2382
|
|
1301
2383
|
:param int limit: (optional)
|
1302
2384
|
The maximum number of items to return.
|
@@ -1314,7 +2396,7 @@ class CapacityManagementClient(object):
|
|
1314
2396
|
Allowed values are: "ASC", "DESC"
|
1315
2397
|
|
1316
2398
|
:param str sort_by: (optional)
|
1317
|
-
The field to sort by. Only one sort order may be provided. The default order for
|
2399
|
+
The field to sort by. Only one sort order may be provided. The default order for display name is ascending. The default order for time created is reverse chronological order(latest date at the top).
|
1318
2400
|
|
1319
2401
|
Allowed values are: "displayName", "timeCreated"
|
1320
2402
|
|
@@ -1330,27 +2412,28 @@ class CapacityManagementClient(object):
|
|
1330
2412
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1331
2413
|
By default, the response will not allow control characters in strings
|
1332
2414
|
|
1333
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.
|
2415
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequestCollection`
|
1334
2416
|
:rtype: :class:`~oci.response.Response`
|
1335
2417
|
|
1336
2418
|
:example:
|
1337
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2419
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_capacity_requests.py.html>`__ to see an example of how to use list_occ_capacity_requests API.
|
1338
2420
|
"""
|
1339
2421
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1340
2422
|
required_arguments = ['compartmentId']
|
1341
|
-
resource_path = "/
|
2423
|
+
resource_path = "/occCapacityRequests"
|
1342
2424
|
method = "GET"
|
1343
|
-
operation_name = "
|
1344
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
2425
|
+
operation_name = "list_occ_capacity_requests"
|
2426
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequestCollection/ListOccCapacityRequests"
|
1345
2427
|
|
1346
2428
|
# Don't accept unknown kwargs
|
1347
2429
|
expected_kwargs = [
|
1348
2430
|
"allow_control_chars",
|
1349
2431
|
"retry_strategy",
|
2432
|
+
"occ_availability_catalog_id",
|
1350
2433
|
"namespace",
|
1351
|
-
"
|
2434
|
+
"request_type",
|
1352
2435
|
"display_name",
|
1353
|
-
"
|
2436
|
+
"id",
|
1354
2437
|
"limit",
|
1355
2438
|
"page",
|
1356
2439
|
"opc_request_id",
|
@@ -1360,7 +2443,7 @@ class CapacityManagementClient(object):
|
|
1360
2443
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1361
2444
|
if extra_kwargs:
|
1362
2445
|
raise ValueError(
|
1363
|
-
f"
|
2446
|
+
f"list_occ_capacity_requests got unknown kwargs: {extra_kwargs!r}")
|
1364
2447
|
|
1365
2448
|
if 'namespace' in kwargs:
|
1366
2449
|
namespace_allowed_values = ["COMPUTE"]
|
@@ -1369,11 +2452,11 @@ class CapacityManagementClient(object):
|
|
1369
2452
|
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
1370
2453
|
)
|
1371
2454
|
|
1372
|
-
if '
|
1373
|
-
|
1374
|
-
if kwargs['
|
2455
|
+
if 'request_type' in kwargs:
|
2456
|
+
request_type_allowed_values = ["NEW", "TRANSFER"]
|
2457
|
+
if kwargs['request_type'] not in request_type_allowed_values:
|
1375
2458
|
raise ValueError(
|
1376
|
-
f"Invalid value for `
|
2459
|
+
f"Invalid value for `request_type`, must be one of { request_type_allowed_values }"
|
1377
2460
|
)
|
1378
2461
|
|
1379
2462
|
if 'sort_order' in kwargs:
|
@@ -1392,10 +2475,11 @@ class CapacityManagementClient(object):
|
|
1392
2475
|
|
1393
2476
|
query_params = {
|
1394
2477
|
"compartmentId": compartment_id,
|
2478
|
+
"occAvailabilityCatalogId": kwargs.get("occ_availability_catalog_id", missing),
|
1395
2479
|
"namespace": kwargs.get("namespace", missing),
|
1396
|
-
"
|
2480
|
+
"requestType": kwargs.get("request_type", missing),
|
1397
2481
|
"displayName": kwargs.get("display_name", missing),
|
1398
|
-
"
|
2482
|
+
"id": kwargs.get("id", missing),
|
1399
2483
|
"limit": kwargs.get("limit", missing),
|
1400
2484
|
"page": kwargs.get("page", missing),
|
1401
2485
|
"sortOrder": kwargs.get("sort_order", missing),
|
@@ -1427,7 +2511,7 @@ class CapacityManagementClient(object):
|
|
1427
2511
|
method=method,
|
1428
2512
|
query_params=query_params,
|
1429
2513
|
header_params=header_params,
|
1430
|
-
response_type="
|
2514
|
+
response_type="OccCapacityRequestCollection",
|
1431
2515
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1432
2516
|
operation_name=operation_name,
|
1433
2517
|
api_reference_link=api_reference_link,
|
@@ -1438,38 +2522,41 @@ class CapacityManagementClient(object):
|
|
1438
2522
|
method=method,
|
1439
2523
|
query_params=query_params,
|
1440
2524
|
header_params=header_params,
|
1441
|
-
response_type="
|
2525
|
+
response_type="OccCapacityRequestCollection",
|
1442
2526
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1443
2527
|
operation_name=operation_name,
|
1444
2528
|
api_reference_link=api_reference_link,
|
1445
2529
|
required_arguments=required_arguments)
|
1446
2530
|
|
1447
|
-
def
|
2531
|
+
def list_occ_capacity_requests_internal(self, compartment_id, occ_customer_group_id, **kwargs):
|
1448
2532
|
"""
|
1449
|
-
An internal api to list
|
2533
|
+
An internal api to list all capacity requests.
|
1450
2534
|
|
1451
2535
|
|
1452
2536
|
:param str compartment_id: (required)
|
1453
2537
|
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
1454
2538
|
|
2539
|
+
:param str occ_customer_group_id: (required)
|
2540
|
+
The customer group ocid by which we would filter the list.
|
2541
|
+
|
2542
|
+
:param str occ_availability_catalog_id: (optional)
|
2543
|
+
A filter to return the list of capacity requests based on the OCID of the availability catalog against which they were created.
|
2544
|
+
|
1455
2545
|
:param str namespace: (optional)
|
1456
2546
|
The namespace by which we would filter the list.
|
1457
2547
|
|
1458
2548
|
Allowed values are: "COMPUTE"
|
1459
2549
|
|
1460
|
-
:param str id: (optional)
|
1461
|
-
The OCID of the availability catalog to filter the list of availability catalogs.
|
1462
|
-
|
1463
2550
|
:param str display_name: (optional)
|
1464
2551
|
A filter to return only the resources that match the entire display name. The match is not case sensitive.
|
1465
2552
|
|
1466
|
-
:param str
|
1467
|
-
|
2553
|
+
:param str request_type: (optional)
|
2554
|
+
A filter to return only the resources that match the request type. The match is not case sensitive.
|
1468
2555
|
|
1469
|
-
Allowed values are: "
|
2556
|
+
Allowed values are: "NEW", "TRANSFER"
|
1470
2557
|
|
1471
|
-
:param str
|
1472
|
-
|
2558
|
+
:param str id: (optional)
|
2559
|
+
A filter to return the list of capacity requests based on the OCID of the capacity request. This is done for the users who have INSPECT permission on the resource but do not have READ permission.
|
1473
2560
|
|
1474
2561
|
:param int limit: (optional)
|
1475
2562
|
The maximum number of items to return.
|
@@ -1487,7 +2574,7 @@ class CapacityManagementClient(object):
|
|
1487
2574
|
Allowed values are: "ASC", "DESC"
|
1488
2575
|
|
1489
2576
|
:param str sort_by: (optional)
|
1490
|
-
The field to sort by. Only one sort order may be provided. The default order for
|
2577
|
+
The field to sort by. Only one sort order may be provided. The default order for display name is ascending. The default order for time created is reverse chronological order(latest date at the top).
|
1491
2578
|
|
1492
2579
|
Allowed values are: "displayName", "timeCreated"
|
1493
2580
|
|
@@ -1503,28 +2590,28 @@ class CapacityManagementClient(object):
|
|
1503
2590
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1504
2591
|
By default, the response will not allow control characters in strings
|
1505
2592
|
|
1506
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.
|
2593
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequestCollection`
|
1507
2594
|
:rtype: :class:`~oci.response.Response`
|
1508
2595
|
|
1509
2596
|
:example:
|
1510
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2597
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_capacity_requests_internal.py.html>`__ to see an example of how to use list_occ_capacity_requests_internal API.
|
1511
2598
|
"""
|
1512
2599
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1513
|
-
required_arguments = ['compartmentId']
|
1514
|
-
resource_path = "/internal/
|
2600
|
+
required_arguments = ['compartmentId', 'occCustomerGroupId']
|
2601
|
+
resource_path = "/internal/occCapacityRequests"
|
1515
2602
|
method = "GET"
|
1516
|
-
operation_name = "
|
1517
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
2603
|
+
operation_name = "list_occ_capacity_requests_internal"
|
2604
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequestCollection/ListOccCapacityRequestsInternal"
|
1518
2605
|
|
1519
2606
|
# Don't accept unknown kwargs
|
1520
2607
|
expected_kwargs = [
|
1521
2608
|
"allow_control_chars",
|
1522
2609
|
"retry_strategy",
|
2610
|
+
"occ_availability_catalog_id",
|
1523
2611
|
"namespace",
|
1524
|
-
"id",
|
1525
2612
|
"display_name",
|
1526
|
-
"
|
1527
|
-
"
|
2613
|
+
"request_type",
|
2614
|
+
"id",
|
1528
2615
|
"limit",
|
1529
2616
|
"page",
|
1530
2617
|
"opc_request_id",
|
@@ -1534,7 +2621,7 @@ class CapacityManagementClient(object):
|
|
1534
2621
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1535
2622
|
if extra_kwargs:
|
1536
2623
|
raise ValueError(
|
1537
|
-
f"
|
2624
|
+
f"list_occ_capacity_requests_internal got unknown kwargs: {extra_kwargs!r}")
|
1538
2625
|
|
1539
2626
|
if 'namespace' in kwargs:
|
1540
2627
|
namespace_allowed_values = ["COMPUTE"]
|
@@ -1543,11 +2630,11 @@ class CapacityManagementClient(object):
|
|
1543
2630
|
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
1544
2631
|
)
|
1545
2632
|
|
1546
|
-
if '
|
1547
|
-
|
1548
|
-
if kwargs['
|
2633
|
+
if 'request_type' in kwargs:
|
2634
|
+
request_type_allowed_values = ["NEW", "TRANSFER"]
|
2635
|
+
if kwargs['request_type'] not in request_type_allowed_values:
|
1549
2636
|
raise ValueError(
|
1550
|
-
f"Invalid value for `
|
2637
|
+
f"Invalid value for `request_type`, must be one of { request_type_allowed_values }"
|
1551
2638
|
)
|
1552
2639
|
|
1553
2640
|
if 'sort_order' in kwargs:
|
@@ -1566,11 +2653,12 @@ class CapacityManagementClient(object):
|
|
1566
2653
|
|
1567
2654
|
query_params = {
|
1568
2655
|
"compartmentId": compartment_id,
|
2656
|
+
"occCustomerGroupId": occ_customer_group_id,
|
2657
|
+
"occAvailabilityCatalogId": kwargs.get("occ_availability_catalog_id", missing),
|
1569
2658
|
"namespace": kwargs.get("namespace", missing),
|
1570
|
-
"id": kwargs.get("id", missing),
|
1571
2659
|
"displayName": kwargs.get("display_name", missing),
|
1572
|
-
"
|
1573
|
-
"
|
2660
|
+
"requestType": kwargs.get("request_type", missing),
|
2661
|
+
"id": kwargs.get("id", missing),
|
1574
2662
|
"limit": kwargs.get("limit", missing),
|
1575
2663
|
"page": kwargs.get("page", missing),
|
1576
2664
|
"sortOrder": kwargs.get("sort_order", missing),
|
@@ -1602,7 +2690,7 @@ class CapacityManagementClient(object):
|
|
1602
2690
|
method=method,
|
1603
2691
|
query_params=query_params,
|
1604
2692
|
header_params=header_params,
|
1605
|
-
response_type="
|
2693
|
+
response_type="OccCapacityRequestCollection",
|
1606
2694
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1607
2695
|
operation_name=operation_name,
|
1608
2696
|
api_reference_link=api_reference_link,
|
@@ -1613,38 +2701,30 @@ class CapacityManagementClient(object):
|
|
1613
2701
|
method=method,
|
1614
2702
|
query_params=query_params,
|
1615
2703
|
header_params=header_params,
|
1616
|
-
response_type="
|
2704
|
+
response_type="OccCapacityRequestCollection",
|
1617
2705
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1618
2706
|
operation_name=operation_name,
|
1619
2707
|
api_reference_link=api_reference_link,
|
1620
2708
|
required_arguments=required_arguments)
|
1621
2709
|
|
1622
|
-
def
|
2710
|
+
def list_occ_customer_groups(self, compartment_id, **kwargs):
|
1623
2711
|
"""
|
1624
|
-
Lists all
|
2712
|
+
Lists all the customer groups.
|
1625
2713
|
|
1626
2714
|
|
1627
2715
|
:param str compartment_id: (required)
|
1628
2716
|
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
1629
2717
|
|
1630
|
-
:param str
|
1631
|
-
A filter to return the list
|
1632
|
-
|
1633
|
-
:param str namespace: (optional)
|
1634
|
-
The namespace by which we would filter the list.
|
1635
|
-
|
1636
|
-
Allowed values are: "COMPUTE"
|
1637
|
-
|
1638
|
-
:param str request_type: (optional)
|
1639
|
-
A filter to return only the resources that match the request type. The match is not case sensitive.
|
2718
|
+
:param str status: (optional)
|
2719
|
+
A query filter to return the list result based on status.
|
1640
2720
|
|
1641
|
-
Allowed values are: "
|
2721
|
+
Allowed values are: "ENABLED", "DISABLED"
|
1642
2722
|
|
1643
2723
|
:param str display_name: (optional)
|
1644
2724
|
A filter to return only the resources that match the entire display name. The match is not case sensitive.
|
1645
2725
|
|
1646
2726
|
:param str id: (optional)
|
1647
|
-
A filter to return the list
|
2727
|
+
A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
|
1648
2728
|
|
1649
2729
|
:param int limit: (optional)
|
1650
2730
|
The maximum number of items to return.
|
@@ -1662,9 +2742,9 @@ class CapacityManagementClient(object):
|
|
1662
2742
|
Allowed values are: "ASC", "DESC"
|
1663
2743
|
|
1664
2744
|
:param str sort_by: (optional)
|
1665
|
-
The field to sort by. Only one sort order may be provided.
|
2745
|
+
The field to sort by. Only one sort order may be provided. Default order for name and compartment ID is ascending. Default order for time created is descending.
|
1666
2746
|
|
1667
|
-
Allowed values are: "
|
2747
|
+
Allowed values are: "compartmentId", "name", "timeCreated"
|
1668
2748
|
|
1669
2749
|
:param obj retry_strategy: (optional)
|
1670
2750
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -1678,26 +2758,24 @@ class CapacityManagementClient(object):
|
|
1678
2758
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1679
2759
|
By default, the response will not allow control characters in strings
|
1680
2760
|
|
1681
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.
|
2761
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomerGroupCollection`
|
1682
2762
|
:rtype: :class:`~oci.response.Response`
|
1683
2763
|
|
1684
2764
|
:example:
|
1685
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2765
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_customer_groups.py.html>`__ to see an example of how to use list_occ_customer_groups API.
|
1686
2766
|
"""
|
1687
2767
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1688
2768
|
required_arguments = ['compartmentId']
|
1689
|
-
resource_path = "/
|
2769
|
+
resource_path = "/occCustomerGroups"
|
1690
2770
|
method = "GET"
|
1691
|
-
operation_name = "
|
1692
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
2771
|
+
operation_name = "list_occ_customer_groups"
|
2772
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroupCollection/ListOccCustomerGroups"
|
1693
2773
|
|
1694
2774
|
# Don't accept unknown kwargs
|
1695
2775
|
expected_kwargs = [
|
1696
2776
|
"allow_control_chars",
|
1697
2777
|
"retry_strategy",
|
1698
|
-
"
|
1699
|
-
"namespace",
|
1700
|
-
"request_type",
|
2778
|
+
"status",
|
1701
2779
|
"display_name",
|
1702
2780
|
"id",
|
1703
2781
|
"limit",
|
@@ -1709,20 +2787,13 @@ class CapacityManagementClient(object):
|
|
1709
2787
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1710
2788
|
if extra_kwargs:
|
1711
2789
|
raise ValueError(
|
1712
|
-
f"
|
1713
|
-
|
1714
|
-
if 'namespace' in kwargs:
|
1715
|
-
namespace_allowed_values = ["COMPUTE"]
|
1716
|
-
if kwargs['namespace'] not in namespace_allowed_values:
|
1717
|
-
raise ValueError(
|
1718
|
-
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
1719
|
-
)
|
2790
|
+
f"list_occ_customer_groups got unknown kwargs: {extra_kwargs!r}")
|
1720
2791
|
|
1721
|
-
if '
|
1722
|
-
|
1723
|
-
if kwargs['
|
2792
|
+
if 'status' in kwargs:
|
2793
|
+
status_allowed_values = ["ENABLED", "DISABLED"]
|
2794
|
+
if kwargs['status'] not in status_allowed_values:
|
1724
2795
|
raise ValueError(
|
1725
|
-
f"Invalid value for `
|
2796
|
+
f"Invalid value for `status`, must be one of { status_allowed_values }"
|
1726
2797
|
)
|
1727
2798
|
|
1728
2799
|
if 'sort_order' in kwargs:
|
@@ -1733,7 +2804,7 @@ class CapacityManagementClient(object):
|
|
1733
2804
|
)
|
1734
2805
|
|
1735
2806
|
if 'sort_by' in kwargs:
|
1736
|
-
sort_by_allowed_values = ["
|
2807
|
+
sort_by_allowed_values = ["compartmentId", "name", "timeCreated"]
|
1737
2808
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1738
2809
|
raise ValueError(
|
1739
2810
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
@@ -1741,9 +2812,7 @@ class CapacityManagementClient(object):
|
|
1741
2812
|
|
1742
2813
|
query_params = {
|
1743
2814
|
"compartmentId": compartment_id,
|
1744
|
-
"
|
1745
|
-
"namespace": kwargs.get("namespace", missing),
|
1746
|
-
"requestType": kwargs.get("request_type", missing),
|
2815
|
+
"status": kwargs.get("status", missing),
|
1747
2816
|
"displayName": kwargs.get("display_name", missing),
|
1748
2817
|
"id": kwargs.get("id", missing),
|
1749
2818
|
"limit": kwargs.get("limit", missing),
|
@@ -1777,7 +2846,7 @@ class CapacityManagementClient(object):
|
|
1777
2846
|
method=method,
|
1778
2847
|
query_params=query_params,
|
1779
2848
|
header_params=header_params,
|
1780
|
-
response_type="
|
2849
|
+
response_type="OccCustomerGroupCollection",
|
1781
2850
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1782
2851
|
operation_name=operation_name,
|
1783
2852
|
api_reference_link=api_reference_link,
|
@@ -1788,41 +2857,22 @@ class CapacityManagementClient(object):
|
|
1788
2857
|
method=method,
|
1789
2858
|
query_params=query_params,
|
1790
2859
|
header_params=header_params,
|
1791
|
-
response_type="
|
2860
|
+
response_type="OccCustomerGroupCollection",
|
1792
2861
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1793
2862
|
operation_name=operation_name,
|
1794
2863
|
api_reference_link=api_reference_link,
|
1795
2864
|
required_arguments=required_arguments)
|
1796
2865
|
|
1797
|
-
def
|
2866
|
+
def list_occ_handover_resource_block_details(self, occ_handover_resource_block_id, **kwargs):
|
1798
2867
|
"""
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
:param str compartment_id: (required)
|
1803
|
-
The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
|
1804
|
-
|
1805
|
-
:param str occ_customer_group_id: (optional)
|
1806
|
-
The customer group ocid by which we would filter the list.
|
1807
|
-
|
1808
|
-
:param str occ_availability_catalog_id: (optional)
|
1809
|
-
A filter to return the list of capacity requests based on the OCID of the availability catalog against which they were created.
|
1810
|
-
|
1811
|
-
:param str namespace: (optional)
|
1812
|
-
The namespace by which we would filter the list.
|
1813
|
-
|
1814
|
-
Allowed values are: "COMPUTE"
|
2868
|
+
List details about a given occHandoverResourceBlock.
|
1815
2869
|
|
1816
|
-
:param str display_name: (optional)
|
1817
|
-
A filter to return only the resources that match the entire display name. The match is not case sensitive.
|
1818
|
-
|
1819
|
-
:param str request_type: (optional)
|
1820
|
-
A filter to return only the resources that match the request type. The match is not case sensitive.
|
1821
2870
|
|
1822
|
-
|
2871
|
+
:param str occ_handover_resource_block_id: (required)
|
2872
|
+
The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
|
1823
2873
|
|
1824
|
-
:param str
|
1825
|
-
|
2874
|
+
:param str host_id: (optional)
|
2875
|
+
This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
|
1826
2876
|
|
1827
2877
|
:param int limit: (optional)
|
1828
2878
|
The maximum number of items to return.
|
@@ -1840,9 +2890,10 @@ class CapacityManagementClient(object):
|
|
1840
2890
|
Allowed values are: "ASC", "DESC"
|
1841
2891
|
|
1842
2892
|
:param str sort_by: (optional)
|
1843
|
-
The field to sort by. Only one sort order may be provided.
|
2893
|
+
The field to sort by. Only one sort order may be provided.
|
2894
|
+
The default order for handoverDate is chronological order(latest date item at the end).
|
1844
2895
|
|
1845
|
-
Allowed values are: "
|
2896
|
+
Allowed values are: "handoverDate"
|
1846
2897
|
|
1847
2898
|
:param obj retry_strategy: (optional)
|
1848
2899
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -1856,29 +2907,24 @@ class CapacityManagementClient(object):
|
|
1856
2907
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1857
2908
|
By default, the response will not allow control characters in strings
|
1858
2909
|
|
1859
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.
|
2910
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccHandoverResourceBlockDetailCollection`
|
1860
2911
|
:rtype: :class:`~oci.response.Response`
|
1861
2912
|
|
1862
2913
|
:example:
|
1863
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2914
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_handover_resource_block_details.py.html>`__ to see an example of how to use list_occ_handover_resource_block_details API.
|
1864
2915
|
"""
|
1865
2916
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1866
|
-
required_arguments = ['
|
1867
|
-
resource_path = "/
|
2917
|
+
required_arguments = ['occHandoverResourceBlockId']
|
2918
|
+
resource_path = "/occHandoverResourceBlockDetails"
|
1868
2919
|
method = "GET"
|
1869
|
-
operation_name = "
|
1870
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
2920
|
+
operation_name = "list_occ_handover_resource_block_details"
|
2921
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccHandoverResourceBlockDetailCollection/ListOccHandoverResourceBlockDetails"
|
1871
2922
|
|
1872
2923
|
# Don't accept unknown kwargs
|
1873
2924
|
expected_kwargs = [
|
1874
2925
|
"allow_control_chars",
|
1875
2926
|
"retry_strategy",
|
1876
|
-
"
|
1877
|
-
"occ_availability_catalog_id",
|
1878
|
-
"namespace",
|
1879
|
-
"display_name",
|
1880
|
-
"request_type",
|
1881
|
-
"id",
|
2927
|
+
"host_id",
|
1882
2928
|
"limit",
|
1883
2929
|
"page",
|
1884
2930
|
"opc_request_id",
|
@@ -1887,22 +2933,8 @@ class CapacityManagementClient(object):
|
|
1887
2933
|
]
|
1888
2934
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1889
2935
|
if extra_kwargs:
|
1890
|
-
raise ValueError(
|
1891
|
-
f"
|
1892
|
-
|
1893
|
-
if 'namespace' in kwargs:
|
1894
|
-
namespace_allowed_values = ["COMPUTE"]
|
1895
|
-
if kwargs['namespace'] not in namespace_allowed_values:
|
1896
|
-
raise ValueError(
|
1897
|
-
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
1898
|
-
)
|
1899
|
-
|
1900
|
-
if 'request_type' in kwargs:
|
1901
|
-
request_type_allowed_values = ["NEW", "TRANSFER"]
|
1902
|
-
if kwargs['request_type'] not in request_type_allowed_values:
|
1903
|
-
raise ValueError(
|
1904
|
-
f"Invalid value for `request_type`, must be one of { request_type_allowed_values }"
|
1905
|
-
)
|
2936
|
+
raise ValueError(
|
2937
|
+
f"list_occ_handover_resource_block_details got unknown kwargs: {extra_kwargs!r}")
|
1906
2938
|
|
1907
2939
|
if 'sort_order' in kwargs:
|
1908
2940
|
sort_order_allowed_values = ["ASC", "DESC"]
|
@@ -1912,20 +2944,15 @@ class CapacityManagementClient(object):
|
|
1912
2944
|
)
|
1913
2945
|
|
1914
2946
|
if 'sort_by' in kwargs:
|
1915
|
-
sort_by_allowed_values = ["
|
2947
|
+
sort_by_allowed_values = ["handoverDate"]
|
1916
2948
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1917
2949
|
raise ValueError(
|
1918
2950
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1919
2951
|
)
|
1920
2952
|
|
1921
2953
|
query_params = {
|
1922
|
-
"
|
1923
|
-
"
|
1924
|
-
"occAvailabilityCatalogId": kwargs.get("occ_availability_catalog_id", missing),
|
1925
|
-
"namespace": kwargs.get("namespace", missing),
|
1926
|
-
"displayName": kwargs.get("display_name", missing),
|
1927
|
-
"requestType": kwargs.get("request_type", missing),
|
1928
|
-
"id": kwargs.get("id", missing),
|
2954
|
+
"occHandoverResourceBlockId": occ_handover_resource_block_id,
|
2955
|
+
"hostId": kwargs.get("host_id", missing),
|
1929
2956
|
"limit": kwargs.get("limit", missing),
|
1930
2957
|
"page": kwargs.get("page", missing),
|
1931
2958
|
"sortOrder": kwargs.get("sort_order", missing),
|
@@ -1957,7 +2984,7 @@ class CapacityManagementClient(object):
|
|
1957
2984
|
method=method,
|
1958
2985
|
query_params=query_params,
|
1959
2986
|
header_params=header_params,
|
1960
|
-
response_type="
|
2987
|
+
response_type="OccHandoverResourceBlockDetailCollection",
|
1961
2988
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1962
2989
|
operation_name=operation_name,
|
1963
2990
|
api_reference_link=api_reference_link,
|
@@ -1968,30 +2995,36 @@ class CapacityManagementClient(object):
|
|
1968
2995
|
method=method,
|
1969
2996
|
query_params=query_params,
|
1970
2997
|
header_params=header_params,
|
1971
|
-
response_type="
|
2998
|
+
response_type="OccHandoverResourceBlockDetailCollection",
|
1972
2999
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1973
3000
|
operation_name=operation_name,
|
1974
3001
|
api_reference_link=api_reference_link,
|
1975
3002
|
required_arguments=required_arguments)
|
1976
3003
|
|
1977
|
-
def
|
3004
|
+
def list_occ_handover_resource_blocks(self, **kwargs):
|
1978
3005
|
"""
|
1979
|
-
|
3006
|
+
List Occ Handover Resource blocks.
|
1980
3007
|
|
1981
3008
|
|
1982
|
-
:param str
|
1983
|
-
The
|
3009
|
+
:param str namespace: (optional)
|
3010
|
+
The namespace by which we would filter the list.
|
1984
3011
|
|
1985
|
-
|
1986
|
-
A query filter to return the list result based on status.
|
3012
|
+
Allowed values are: "COMPUTE"
|
1987
3013
|
|
1988
|
-
|
3014
|
+
:param str compartment_id: (optional)
|
3015
|
+
The OCID of the compartment or tenancy in which resources are to be listed.
|
1989
3016
|
|
1990
|
-
:param str
|
1991
|
-
A filter to return only the resources that match the
|
3017
|
+
:param str handover_resource_name: (optional)
|
3018
|
+
A filter to return only the list of resources that match the name provided in this filter.
|
1992
3019
|
|
1993
|
-
:param
|
1994
|
-
|
3020
|
+
:param datetime handover_date_greater_than_or_equal_to: (optional)
|
3021
|
+
This filter helps in fetching all handed over resources for which the recordDate is greater than or equal to the startDate.
|
3022
|
+
|
3023
|
+
:param datetime handover_date_less_than_or_equal_to: (optional)
|
3024
|
+
This filter helps in fetching all handed over resources for which the recordDate is less than or equal to the endDate.
|
3025
|
+
|
3026
|
+
:param str occ_handover_resource_block_id: (optional)
|
3027
|
+
This filter helps in fetching the handed over resource for which the occHandoverResourceId is equal to the one provided here.
|
1995
3028
|
|
1996
3029
|
:param int limit: (optional)
|
1997
3030
|
The maximum number of items to return.
|
@@ -2009,9 +3042,10 @@ class CapacityManagementClient(object):
|
|
2009
3042
|
Allowed values are: "ASC", "DESC"
|
2010
3043
|
|
2011
3044
|
:param str sort_by: (optional)
|
2012
|
-
The field to sort by. Only one sort order may be provided.
|
3045
|
+
The field to sort by. Only one sort order may be provided.
|
3046
|
+
The default order for handoverDate is chronological order(latest date item at the end).
|
2013
3047
|
|
2014
|
-
Allowed values are: "
|
3048
|
+
Allowed values are: "handoverDate"
|
2015
3049
|
|
2016
3050
|
:param obj retry_strategy: (optional)
|
2017
3051
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -2025,26 +3059,29 @@ class CapacityManagementClient(object):
|
|
2025
3059
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2026
3060
|
By default, the response will not allow control characters in strings
|
2027
3061
|
|
2028
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.
|
3062
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccHandoverResourceBlockCollection`
|
2029
3063
|
:rtype: :class:`~oci.response.Response`
|
2030
3064
|
|
2031
3065
|
:example:
|
2032
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3066
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_handover_resource_blocks.py.html>`__ to see an example of how to use list_occ_handover_resource_blocks API.
|
2033
3067
|
"""
|
2034
3068
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2035
|
-
required_arguments = [
|
2036
|
-
resource_path = "/
|
3069
|
+
required_arguments = []
|
3070
|
+
resource_path = "/occHandoverResourceBlocks"
|
2037
3071
|
method = "GET"
|
2038
|
-
operation_name = "
|
2039
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/
|
3072
|
+
operation_name = "list_occ_handover_resource_blocks"
|
3073
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccHandoverResourceBlockCollection/ListOccHandoverResourceBlocks"
|
2040
3074
|
|
2041
3075
|
# Don't accept unknown kwargs
|
2042
3076
|
expected_kwargs = [
|
2043
3077
|
"allow_control_chars",
|
2044
3078
|
"retry_strategy",
|
2045
|
-
"
|
2046
|
-
"
|
2047
|
-
"
|
3079
|
+
"namespace",
|
3080
|
+
"compartment_id",
|
3081
|
+
"handover_resource_name",
|
3082
|
+
"handover_date_greater_than_or_equal_to",
|
3083
|
+
"handover_date_less_than_or_equal_to",
|
3084
|
+
"occ_handover_resource_block_id",
|
2048
3085
|
"limit",
|
2049
3086
|
"page",
|
2050
3087
|
"opc_request_id",
|
@@ -2054,13 +3091,13 @@ class CapacityManagementClient(object):
|
|
2054
3091
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2055
3092
|
if extra_kwargs:
|
2056
3093
|
raise ValueError(
|
2057
|
-
f"
|
3094
|
+
f"list_occ_handover_resource_blocks got unknown kwargs: {extra_kwargs!r}")
|
2058
3095
|
|
2059
|
-
if '
|
2060
|
-
|
2061
|
-
if kwargs['
|
3096
|
+
if 'namespace' in kwargs:
|
3097
|
+
namespace_allowed_values = ["COMPUTE"]
|
3098
|
+
if kwargs['namespace'] not in namespace_allowed_values:
|
2062
3099
|
raise ValueError(
|
2063
|
-
f"Invalid value for `
|
3100
|
+
f"Invalid value for `namespace`, must be one of { namespace_allowed_values }"
|
2064
3101
|
)
|
2065
3102
|
|
2066
3103
|
if 'sort_order' in kwargs:
|
@@ -2071,17 +3108,19 @@ class CapacityManagementClient(object):
|
|
2071
3108
|
)
|
2072
3109
|
|
2073
3110
|
if 'sort_by' in kwargs:
|
2074
|
-
sort_by_allowed_values = ["
|
3111
|
+
sort_by_allowed_values = ["handoverDate"]
|
2075
3112
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2076
3113
|
raise ValueError(
|
2077
3114
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2078
3115
|
)
|
2079
3116
|
|
2080
3117
|
query_params = {
|
2081
|
-
"
|
2082
|
-
"
|
2083
|
-
"
|
2084
|
-
"
|
3118
|
+
"namespace": kwargs.get("namespace", missing),
|
3119
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
3120
|
+
"handoverResourceName": kwargs.get("handover_resource_name", missing),
|
3121
|
+
"handoverDateGreaterThanOrEqualTo": kwargs.get("handover_date_greater_than_or_equal_to", missing),
|
3122
|
+
"handoverDateLessThanOrEqualTo": kwargs.get("handover_date_less_than_or_equal_to", missing),
|
3123
|
+
"occHandoverResourceBlockId": kwargs.get("occ_handover_resource_block_id", missing),
|
2085
3124
|
"limit": kwargs.get("limit", missing),
|
2086
3125
|
"page": kwargs.get("page", missing),
|
2087
3126
|
"sortOrder": kwargs.get("sort_order", missing),
|
@@ -2113,7 +3152,7 @@ class CapacityManagementClient(object):
|
|
2113
3152
|
method=method,
|
2114
3153
|
query_params=query_params,
|
2115
3154
|
header_params=header_params,
|
2116
|
-
response_type="
|
3155
|
+
response_type="OccHandoverResourceBlockCollection",
|
2117
3156
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2118
3157
|
operation_name=operation_name,
|
2119
3158
|
api_reference_link=api_reference_link,
|
@@ -2124,7 +3163,7 @@ class CapacityManagementClient(object):
|
|
2124
3163
|
method=method,
|
2125
3164
|
query_params=query_params,
|
2126
3165
|
header_params=header_params,
|
2127
|
-
response_type="
|
3166
|
+
response_type="OccHandoverResourceBlockCollection",
|
2128
3167
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2129
3168
|
operation_name=operation_name,
|
2130
3169
|
api_reference_link=api_reference_link,
|
@@ -2188,7 +3227,7 @@ class CapacityManagementClient(object):
|
|
2188
3227
|
:rtype: :class:`~oci.response.Response`
|
2189
3228
|
|
2190
3229
|
:example:
|
2191
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3230
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/list_occ_overviews.py.html>`__ to see an example of how to use list_occ_overviews API.
|
2192
3231
|
"""
|
2193
3232
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2194
3233
|
required_arguments = ['namespace', 'compartmentId']
|
@@ -2332,7 +3371,7 @@ class CapacityManagementClient(object):
|
|
2332
3371
|
:rtype: :class:`~oci.response.Response`
|
2333
3372
|
|
2334
3373
|
:example:
|
2335
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3374
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/patch_internal_occ_capacity_request.py.html>`__ to see an example of how to use patch_internal_occ_capacity_request API.
|
2336
3375
|
"""
|
2337
3376
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2338
3377
|
required_arguments = ['occCapacityRequestId']
|
@@ -2445,7 +3484,7 @@ class CapacityManagementClient(object):
|
|
2445
3484
|
:rtype: :class:`~oci.response.Response`
|
2446
3485
|
|
2447
3486
|
:example:
|
2448
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3487
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/patch_occ_capacity_request.py.html>`__ to see an example of how to use patch_occ_capacity_request API.
|
2449
3488
|
"""
|
2450
3489
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2451
3490
|
required_arguments = ['occCapacityRequestId']
|
@@ -2562,7 +3601,7 @@ class CapacityManagementClient(object):
|
|
2562
3601
|
:rtype: :class:`~oci.response.Response`
|
2563
3602
|
|
2564
3603
|
:example:
|
2565
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3604
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/publish_occ_availability_catalog.py.html>`__ to see an example of how to use publish_occ_availability_catalog API.
|
2566
3605
|
"""
|
2567
3606
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2568
3607
|
required_arguments = ['occAvailabilityCatalogId']
|
@@ -2674,7 +3713,7 @@ class CapacityManagementClient(object):
|
|
2674
3713
|
:rtype: :class:`~oci.response.Response`
|
2675
3714
|
|
2676
3715
|
:example:
|
2677
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3716
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/update_internal_occ_capacity_request.py.html>`__ to see an example of how to use update_internal_occ_capacity_request API.
|
2678
3717
|
"""
|
2679
3718
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2680
3719
|
required_arguments = ['occCapacityRequestId']
|
@@ -2787,7 +3826,7 @@ class CapacityManagementClient(object):
|
|
2787
3826
|
:rtype: :class:`~oci.response.Response`
|
2788
3827
|
|
2789
3828
|
:example:
|
2790
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3829
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/update_occ_availability_catalog.py.html>`__ to see an example of how to use update_occ_availability_catalog API.
|
2791
3830
|
"""
|
2792
3831
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2793
3832
|
required_arguments = ['occAvailabilityCatalogId']
|
@@ -2900,7 +3939,7 @@ class CapacityManagementClient(object):
|
|
2900
3939
|
:rtype: :class:`~oci.response.Response`
|
2901
3940
|
|
2902
3941
|
:example:
|
2903
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3942
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/update_occ_capacity_request.py.html>`__ to see an example of how to use update_occ_capacity_request API.
|
2904
3943
|
"""
|
2905
3944
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2906
3945
|
required_arguments = ['occCapacityRequestId']
|
@@ -2974,3 +4013,233 @@ class CapacityManagementClient(object):
|
|
2974
4013
|
operation_name=operation_name,
|
2975
4014
|
api_reference_link=api_reference_link,
|
2976
4015
|
required_arguments=required_arguments)
|
4016
|
+
|
4017
|
+
def update_occ_customer(self, update_occ_customer_details, occ_customer_group_id, occ_customer_id, **kwargs):
|
4018
|
+
"""
|
4019
|
+
The request to update the customer.
|
4020
|
+
|
4021
|
+
|
4022
|
+
:param oci.capacity_management.models.UpdateOccCustomerDetails update_occ_customer_details: (required)
|
4023
|
+
Request to update the properties of the customer group.
|
4024
|
+
|
4025
|
+
:param str occ_customer_group_id: (required)
|
4026
|
+
The OCID of the customer group.
|
4027
|
+
|
4028
|
+
:param str occ_customer_id: (required)
|
4029
|
+
The tenancy id of the customer.
|
4030
|
+
|
4031
|
+
:param str if_match: (optional)
|
4032
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4033
|
+
for a resource, set the `if-match` parameter to the value of the
|
4034
|
+
etag from a previous GET or POST response for that resource.
|
4035
|
+
The resource will be updated or deleted only if the etag you
|
4036
|
+
provide matches the resource's current etag value.
|
4037
|
+
|
4038
|
+
:param str opc_request_id: (optional)
|
4039
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
4040
|
+
underscore, and dash.
|
4041
|
+
|
4042
|
+
:param obj retry_strategy: (optional)
|
4043
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4044
|
+
|
4045
|
+
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.
|
4046
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4047
|
+
|
4048
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4049
|
+
|
4050
|
+
:param bool allow_control_chars: (optional)
|
4051
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4052
|
+
By default, the response will not allow control characters in strings
|
4053
|
+
|
4054
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomer`
|
4055
|
+
:rtype: :class:`~oci.response.Response`
|
4056
|
+
|
4057
|
+
:example:
|
4058
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/update_occ_customer.py.html>`__ to see an example of how to use update_occ_customer API.
|
4059
|
+
"""
|
4060
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4061
|
+
required_arguments = ['occCustomerGroupId', 'occCustomerId']
|
4062
|
+
resource_path = "/occCustomerGroups/{occCustomerGroupId}/occCustomers/{occCustomerId}"
|
4063
|
+
method = "PUT"
|
4064
|
+
operation_name = "update_occ_customer"
|
4065
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomer/UpdateOccCustomer"
|
4066
|
+
|
4067
|
+
# Don't accept unknown kwargs
|
4068
|
+
expected_kwargs = [
|
4069
|
+
"allow_control_chars",
|
4070
|
+
"retry_strategy",
|
4071
|
+
"if_match",
|
4072
|
+
"opc_request_id"
|
4073
|
+
]
|
4074
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4075
|
+
if extra_kwargs:
|
4076
|
+
raise ValueError(
|
4077
|
+
f"update_occ_customer got unknown kwargs: {extra_kwargs!r}")
|
4078
|
+
|
4079
|
+
path_params = {
|
4080
|
+
"occCustomerGroupId": occ_customer_group_id,
|
4081
|
+
"occCustomerId": occ_customer_id
|
4082
|
+
}
|
4083
|
+
|
4084
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4085
|
+
|
4086
|
+
for (k, v) in six.iteritems(path_params):
|
4087
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4088
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4089
|
+
|
4090
|
+
header_params = {
|
4091
|
+
"accept": "application/json",
|
4092
|
+
"content-type": "application/json",
|
4093
|
+
"if-match": kwargs.get("if_match", missing),
|
4094
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4095
|
+
}
|
4096
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4097
|
+
|
4098
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4099
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4100
|
+
client_retry_strategy=self.retry_strategy
|
4101
|
+
)
|
4102
|
+
if retry_strategy is None:
|
4103
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4104
|
+
|
4105
|
+
if retry_strategy:
|
4106
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4107
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4108
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4109
|
+
return retry_strategy.make_retrying_call(
|
4110
|
+
self.base_client.call_api,
|
4111
|
+
resource_path=resource_path,
|
4112
|
+
method=method,
|
4113
|
+
path_params=path_params,
|
4114
|
+
header_params=header_params,
|
4115
|
+
body=update_occ_customer_details,
|
4116
|
+
response_type="OccCustomer",
|
4117
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4118
|
+
operation_name=operation_name,
|
4119
|
+
api_reference_link=api_reference_link,
|
4120
|
+
required_arguments=required_arguments)
|
4121
|
+
else:
|
4122
|
+
return self.base_client.call_api(
|
4123
|
+
resource_path=resource_path,
|
4124
|
+
method=method,
|
4125
|
+
path_params=path_params,
|
4126
|
+
header_params=header_params,
|
4127
|
+
body=update_occ_customer_details,
|
4128
|
+
response_type="OccCustomer",
|
4129
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4130
|
+
operation_name=operation_name,
|
4131
|
+
api_reference_link=api_reference_link,
|
4132
|
+
required_arguments=required_arguments)
|
4133
|
+
|
4134
|
+
def update_occ_customer_group(self, update_occ_customer_group_details, occ_customer_group_id, **kwargs):
|
4135
|
+
"""
|
4136
|
+
The request to update the customer group.
|
4137
|
+
|
4138
|
+
|
4139
|
+
:param oci.capacity_management.models.UpdateOccCustomerGroupDetails update_occ_customer_group_details: (required)
|
4140
|
+
Request to update the properties of the customer group.
|
4141
|
+
|
4142
|
+
:param str occ_customer_group_id: (required)
|
4143
|
+
The OCID of the customer group.
|
4144
|
+
|
4145
|
+
:param str if_match: (optional)
|
4146
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4147
|
+
for a resource, set the `if-match` parameter to the value of the
|
4148
|
+
etag from a previous GET or POST response for that resource.
|
4149
|
+
The resource will be updated or deleted only if the etag you
|
4150
|
+
provide matches the resource's current etag value.
|
4151
|
+
|
4152
|
+
:param str opc_request_id: (optional)
|
4153
|
+
The client request ID for tracing. The only valid characters for request IDs are letters, numbers,
|
4154
|
+
underscore, and dash.
|
4155
|
+
|
4156
|
+
:param obj retry_strategy: (optional)
|
4157
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4158
|
+
|
4159
|
+
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.
|
4160
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4161
|
+
|
4162
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4163
|
+
|
4164
|
+
:param bool allow_control_chars: (optional)
|
4165
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4166
|
+
By default, the response will not allow control characters in strings
|
4167
|
+
|
4168
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomerGroup`
|
4169
|
+
:rtype: :class:`~oci.response.Response`
|
4170
|
+
|
4171
|
+
:example:
|
4172
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/capacitymanagement/update_occ_customer_group.py.html>`__ to see an example of how to use update_occ_customer_group API.
|
4173
|
+
"""
|
4174
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4175
|
+
required_arguments = ['occCustomerGroupId']
|
4176
|
+
resource_path = "/occCustomerGroups/{occCustomerGroupId}"
|
4177
|
+
method = "PUT"
|
4178
|
+
operation_name = "update_occ_customer_group"
|
4179
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroup/UpdateOccCustomerGroup"
|
4180
|
+
|
4181
|
+
# Don't accept unknown kwargs
|
4182
|
+
expected_kwargs = [
|
4183
|
+
"allow_control_chars",
|
4184
|
+
"retry_strategy",
|
4185
|
+
"if_match",
|
4186
|
+
"opc_request_id"
|
4187
|
+
]
|
4188
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4189
|
+
if extra_kwargs:
|
4190
|
+
raise ValueError(
|
4191
|
+
f"update_occ_customer_group got unknown kwargs: {extra_kwargs!r}")
|
4192
|
+
|
4193
|
+
path_params = {
|
4194
|
+
"occCustomerGroupId": occ_customer_group_id
|
4195
|
+
}
|
4196
|
+
|
4197
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4198
|
+
|
4199
|
+
for (k, v) in six.iteritems(path_params):
|
4200
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4201
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4202
|
+
|
4203
|
+
header_params = {
|
4204
|
+
"accept": "application/json",
|
4205
|
+
"content-type": "application/json",
|
4206
|
+
"if-match": kwargs.get("if_match", missing),
|
4207
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4208
|
+
}
|
4209
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4210
|
+
|
4211
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4212
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4213
|
+
client_retry_strategy=self.retry_strategy
|
4214
|
+
)
|
4215
|
+
if retry_strategy is None:
|
4216
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4217
|
+
|
4218
|
+
if retry_strategy:
|
4219
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4220
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4221
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4222
|
+
return retry_strategy.make_retrying_call(
|
4223
|
+
self.base_client.call_api,
|
4224
|
+
resource_path=resource_path,
|
4225
|
+
method=method,
|
4226
|
+
path_params=path_params,
|
4227
|
+
header_params=header_params,
|
4228
|
+
body=update_occ_customer_group_details,
|
4229
|
+
response_type="OccCustomerGroup",
|
4230
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4231
|
+
operation_name=operation_name,
|
4232
|
+
api_reference_link=api_reference_link,
|
4233
|
+
required_arguments=required_arguments)
|
4234
|
+
else:
|
4235
|
+
return self.base_client.call_api(
|
4236
|
+
resource_path=resource_path,
|
4237
|
+
method=method,
|
4238
|
+
path_params=path_params,
|
4239
|
+
header_params=header_params,
|
4240
|
+
body=update_occ_customer_group_details,
|
4241
|
+
response_type="OccCustomerGroup",
|
4242
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4243
|
+
operation_name=operation_name,
|
4244
|
+
api_reference_link=api_reference_link,
|
4245
|
+
required_arguments=required_arguments)
|