oci 2.145.0__py3-none-any.whl → 2.146.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 +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- 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 +84 -84
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- 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_engine/models/open_id_connect_token_authentication_config.py +37 -2
- oci/container_instances/container_instance_client.py +18 -18
- oci/container_instances/models/__init__.py +0 -4
- oci/container_instances/models/container_health_check.py +3 -11
- oci/container_instances/models/container_http_health_check.py +1 -1
- oci/container_instances/models/container_tcp_health_check.py +1 -1
- oci/container_instances/models/create_container_details.py +2 -2
- oci/container_instances/models/create_container_health_check_details.py +3 -11
- oci/container_instances/models/create_container_http_health_check_details.py +1 -1
- oci/container_instances/models/create_container_tcp_health_check_details.py +1 -1
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/models/create_byoip_range_details.py +66 -0
- oci/core/models/create_ipv6_details.py +97 -3
- oci/core/models/create_private_ip_details.py +96 -2
- oci/core/models/create_vnic_details.py +18 -18
- oci/core/models/ipv6.py +107 -3
- oci/core/models/launch_attach_volume_details.py +2 -2
- oci/core/models/network_security_group.py +7 -7
- oci/core/models/private_ip.py +107 -3
- oci/core/models/update_byoip_range_details.py +68 -2
- oci/core/models/update_ipv6_details.py +61 -4
- oci/core/models/update_private_ip_details.py +59 -2
- oci/core/models/update_vnic_details.py +8 -4
- oci/core/models/vnic.py +6 -2
- oci/core/virtual_network_client.py +519 -257
- oci/core/virtual_network_client_composite_operations.py +44 -0
- 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 +45 -45
- 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 +306 -306
- oci/data_science/data_science_client.py +101 -101
- oci/data_science/models/__init__.py +8 -0
- oci/data_science/models/create_pipeline_details.py +31 -0
- oci/data_science/models/pipeline.py +31 -0
- oci/data_science/models/pipeline_container_step_details.py +32 -1
- oci/data_science/models/pipeline_container_step_run.py +1 -1
- oci/data_science/models/pipeline_container_step_update_details.py +34 -3
- oci/data_science/models/pipeline_custom_script_step_details.py +32 -1
- oci/data_science/models/pipeline_custom_script_step_run.py +1 -1
- oci/data_science/models/pipeline_custom_script_step_update_details.py +34 -3
- oci/data_science/models/pipeline_dataflow_configuration_details.py +281 -0
- oci/data_science/models/pipeline_dataflow_step_details.py +141 -0
- oci/data_science/models/pipeline_dataflow_step_run.py +122 -0
- oci/data_science/models/pipeline_dataflow_step_update_details.py +99 -0
- oci/data_science/models/pipeline_ml_job_step_details.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_run.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_update_details.py +1 -1
- oci/data_science/models/pipeline_step_details.py +11 -3
- oci/data_science/models/pipeline_step_override_details.py +29 -2
- oci/data_science/models/pipeline_step_run.py +11 -3
- oci/data_science/models/pipeline_step_update_details.py +11 -3
- oci/data_science/models/update_pipeline_details.py +31 -0
- oci/database/database_client.py +404 -404
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- 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/dblm/__init__.py +14 -0
- oci/dblm/db_life_cycle_management_client.py +1762 -0
- oci/dblm/db_life_cycle_management_client_composite_operations.py +65 -0
- oci/dblm/models/__init__.py +70 -0
- oci/dblm/models/aggregated_vulnerability_collection.py +72 -0
- oci/dblm/models/aggregated_vulnerability_summary.py +134 -0
- oci/dblm/models/child_pdb.py +227 -0
- oci/dblm/models/create_vulnerability_scan_details.py +103 -0
- oci/dblm/models/dblm_vulnerability.py +393 -0
- oci/dblm/models/host_info.py +103 -0
- oci/dblm/models/metric_error.py +227 -0
- oci/dblm/models/notification_collection.py +72 -0
- oci/dblm/models/notification_summary.py +185 -0
- oci/dblm/models/patch_recommendation_summary.py +134 -0
- oci/dblm/models/patch_recommendations_details_summary.py +227 -0
- oci/dblm/models/resource_info.py +382 -0
- oci/dblm/models/resource_summary.py +227 -0
- oci/dblm/models/vulnerabilities_summary.py +227 -0
- oci/dblm/models/vulnerability_collection.py +72 -0
- oci/dblm/models/vulnerability_resource_collection.py +72 -0
- oci/dblm/models/vulnerability_resource_summary.py +475 -0
- oci/dblm/models/vulnerability_scan.py +525 -0
- oci/dblm/models/vulnerability_scan_collection.py +72 -0
- oci/dblm/models/vulnerability_scan_summary.py +443 -0
- oci/dblm/models/vulnerability_summary.py +196 -0
- oci/dblm/models/work_request.py +426 -0
- oci/dblm/models/work_request_error.py +136 -0
- oci/dblm/models/work_request_error_collection.py +72 -0
- oci/dblm/models/work_request_log_entry.py +103 -0
- oci/dblm/models/work_request_log_entry_collection.py +72 -0
- oci/dblm/models/work_request_resource.py +234 -0
- oci/dblm/models/work_request_summary.py +426 -0
- oci/dblm/models/work_request_summary_collection.py +72 -0
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- 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 +31 -31
- oci/dns/dns_client.py +54 -54
- 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_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email/models/create_dkim_details.py +31 -0
- oci/email/models/dkim.py +62 -0
- oci/email/models/dkim_summary.py +62 -0
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +68 -68
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
- 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 +84 -84
- 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 +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- 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 +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/load_balancer/models/create_load_balancer_details.py +15 -15
- oci/load_balancer/models/load_balancer.py +15 -15
- oci/load_balancer/models/update_load_balancer_details.py +15 -15
- oci/lockbox/lockbox_client.py +24 -24
- 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/backup.py +33 -0
- oci/mysql/models/backup_summary.py +33 -0
- oci/mysql/models/channel.py +35 -2
- oci/mysql/models/channel_summary.py +35 -2
- oci/mysql/models/configuration.py +35 -2
- oci/mysql/models/configuration_summary.py +35 -2
- oci/mysql/models/configuration_variables.py +4949 -1858
- oci/mysql/models/db_system.py +33 -0
- oci/mysql/models/db_system_summary.py +33 -0
- 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 +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- 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 +16 -16
- 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 +181 -181
- 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 +10 -10
- oci/os_management_hub/lifecycle_environment_client.py +138 -16
- oci/os_management_hub/lifecycle_environment_client_composite_operations.py +44 -0
- oci/os_management_hub/managed_instance_client.py +309 -35
- oci/os_management_hub/managed_instance_client_composite_operations.py +91 -0
- oci/os_management_hub/managed_instance_group_client.py +149 -27
- oci/os_management_hub/managed_instance_group_client_composite_operations.py +44 -0
- oci/os_management_hub/management_station_client.py +59 -16
- oci/os_management_hub/models/__init__.py +54 -0
- oci/os_management_hub/models/add_packages_to_software_source_details.py +35 -4
- oci/os_management_hub/models/agent_event.py +1 -1
- oci/os_management_hub/models/associate_managed_instances_with_management_station_details.py +103 -0
- oci/os_management_hub/models/attach_lifecycle_stage_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_managed_instance_group_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_managed_instances_to_lifecycle_stage_details.py +1 -1
- oci/os_management_hub/models/attach_management_station_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_software_sources_to_profile_details.py +76 -0
- oci/os_management_hub/models/available_package_summary.py +1 -1
- oci/os_management_hub/models/create_custom_software_source_details.py +54 -3
- oci/os_management_hub/models/create_lifecycle_environment_details.py +7 -3
- oci/os_management_hub/models/create_managed_instance_group_details.py +7 -3
- oci/os_management_hub/models/create_management_station_details.py +31 -0
- oci/os_management_hub/models/create_mirror_configuration_details.py +33 -2
- oci/os_management_hub/models/create_private_software_source_details.py +406 -0
- oci/os_management_hub/models/create_profile_details.py +12 -4
- oci/os_management_hub/models/create_scheduled_job_details.py +37 -2
- oci/os_management_hub/models/create_software_source_details.py +19 -3
- oci/os_management_hub/models/create_software_source_profile_details.py +7 -3
- oci/os_management_hub/models/create_station_profile_details.py +7 -3
- oci/os_management_hub/models/create_third_party_software_source_details.py +406 -0
- oci/os_management_hub/models/create_vendor_software_source_details.py +1 -1
- oci/os_management_hub/models/create_versioned_custom_software_source_details.py +54 -3
- oci/os_management_hub/models/create_windows_stand_alone_profile_details.py +288 -0
- oci/os_management_hub/models/custom_software_source.py +102 -9
- oci/os_management_hub/models/custom_software_source_summary.py +64 -8
- oci/os_management_hub/models/detach_managed_instances_from_lifecycle_stage_details.py +1 -1
- oci/os_management_hub/models/detach_software_sources_from_profile_details.py +76 -0
- oci/os_management_hub/models/event.py +23 -3
- oci/os_management_hub/models/event_summary.py +11 -3
- oci/os_management_hub/models/exploit_attempt_event.py +1 -1
- oci/os_management_hub/models/group_profile.py +16 -2
- oci/os_management_hub/models/install_packages_on_managed_instance_group_details.py +33 -2
- oci/os_management_hub/models/installed_package_summary.py +1 -1
- oci/os_management_hub/models/kernel_crash_event.py +1 -1
- oci/os_management_hub/models/kernel_oops_event.py +1 -1
- oci/os_management_hub/models/ksplice_update_event.py +1 -1
- oci/os_management_hub/models/lifecycle_environment.py +7 -3
- oci/os_management_hub/models/lifecycle_environment_summary.py +7 -3
- oci/os_management_hub/models/lifecycle_profile.py +16 -2
- oci/os_management_hub/models/lifecycle_stage.py +7 -3
- oci/os_management_hub/models/lifecycle_stage_summary.py +7 -3
- oci/os_management_hub/models/managed_instance.py +80 -10
- oci/os_management_hub/models/managed_instance_analytic_summary.py +11 -3
- oci/os_management_hub/models/managed_instance_group.py +7 -3
- oci/os_management_hub/models/managed_instance_group_available_package_summary.py +7 -3
- oci/os_management_hub/models/managed_instance_group_summary.py +7 -3
- oci/os_management_hub/models/managed_instance_summary.py +47 -8
- oci/os_management_hub/models/management_station.py +276 -0
- oci/os_management_hub/models/management_station_event.py +1 -1
- oci/os_management_hub/models/management_station_event_data.py +58 -3
- oci/os_management_hub/models/management_station_summary.py +67 -4
- oci/os_management_hub/models/mirror_configuration.py +33 -2
- oci/os_management_hub/models/mirror_summary.py +107 -25
- oci/os_management_hub/models/mirrors_collection.py +2 -1
- oci/os_management_hub/models/module_stream.py +7 -3
- oci/os_management_hub/models/package_name_summary.py +7 -3
- oci/os_management_hub/models/package_summary.py +7 -3
- oci/os_management_hub/models/peer_management_station.py +108 -0
- oci/os_management_hub/models/private_software_source.py +330 -0
- oci/os_management_hub/models/private_software_source_summary.py +212 -0
- oci/os_management_hub/models/profile.py +84 -8
- oci/os_management_hub/models/profile_collection.py +1 -1
- oci/os_management_hub/models/profile_summary.py +17 -7
- oci/os_management_hub/models/profile_version.py +811 -0
- oci/os_management_hub/models/reboot_event.py +184 -0
- oci/os_management_hub/models/reboot_event_data.py +123 -0
- oci/os_management_hub/models/reboot_lifecycle_stage_details.py +101 -0
- oci/os_management_hub/models/reboot_managed_instance_details.py +101 -0
- oci/os_management_hub/models/reboot_managed_instance_group_details.py +101 -0
- oci/os_management_hub/models/remove_packages_from_software_source_details.py +72 -0
- oci/os_management_hub/models/replace_packages_in_software_source_details.py +72 -0
- oci/os_management_hub/models/rerun_work_request_details.py +103 -0
- oci/os_management_hub/models/scheduled_job.py +37 -2
- oci/os_management_hub/models/scheduled_job_operation.py +46 -5
- oci/os_management_hub/models/scheduled_job_summary.py +37 -2
- oci/os_management_hub/models/software_source.py +39 -15
- oci/os_management_hub/models/software_source_details.py +11 -3
- oci/os_management_hub/models/software_source_event.py +1 -1
- oci/os_management_hub/models/software_source_profile.py +16 -2
- oci/os_management_hub/models/software_source_summary.py +30 -10
- oci/os_management_hub/models/software_source_vendor_summary.py +7 -3
- oci/os_management_hub/models/software_update_event.py +1 -1
- oci/os_management_hub/models/station_health.py +7 -3
- oci/os_management_hub/models/station_profile.py +16 -2
- oci/os_management_hub/models/synchronize_mirrors_details.py +7 -3
- oci/os_management_hub/models/sysadmin_event.py +184 -0
- oci/os_management_hub/models/sysadmin_event_data.py +239 -0
- oci/os_management_hub/models/system_details.py +7 -3
- oci/os_management_hub/models/third_party_software_source.py +330 -0
- oci/os_management_hub/models/third_party_software_source_summary.py +212 -0
- oci/os_management_hub/models/updatable_package_summary.py +1 -1
- oci/os_management_hub/models/update_custom_software_source_details.py +1 -1
- oci/os_management_hub/models/update_management_station_details.py +31 -0
- oci/os_management_hub/models/update_mirror_configuration_details.py +33 -2
- oci/os_management_hub/models/update_private_software_source_details.py +272 -0
- oci/os_management_hub/models/update_profile_details.py +1 -1
- oci/os_management_hub/models/update_scheduled_job_details.py +2 -2
- oci/os_management_hub/models/update_software_source_details.py +19 -3
- oci/os_management_hub/models/update_third_party_software_source_details.py +272 -0
- oci/os_management_hub/models/update_vendor_software_source_details.py +1 -1
- oci/os_management_hub/models/update_versioned_custom_software_source_details.py +1 -1
- oci/os_management_hub/models/update_work_request_details.py +9 -5
- oci/os_management_hub/models/vendor_software_source.py +5 -5
- oci/os_management_hub/models/vendor_software_source_summary.py +2 -2
- oci/os_management_hub/models/versioned_custom_software_source.py +102 -9
- oci/os_management_hub/models/versioned_custom_software_source_summary.py +63 -7
- oci/os_management_hub/models/windows_standalone_profile.py +17 -3
- oci/os_management_hub/models/work_request.py +102 -14
- oci/os_management_hub/models/work_request_error.py +4 -4
- oci/os_management_hub/models/work_request_error_collection.py +1 -1
- oci/os_management_hub/models/work_request_log_entry_collection.py +1 -1
- oci/os_management_hub/models/work_request_summary.py +47 -8
- oci/os_management_hub/models/work_request_summary_collection.py +1 -1
- oci/os_management_hub/onboarding_client.py +991 -75
- oci/os_management_hub/reporting_managed_instance_client.py +9 -9
- oci/os_management_hub/scheduled_job_client.py +9 -9
- oci/os_management_hub/software_source_client.py +848 -47
- oci/os_management_hub/software_source_client_composite_operations.py +132 -0
- oci/os_management_hub/work_request_client.py +144 -11
- oci/os_management_hub/work_request_client_composite_operations.py +46 -0
- 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 +26 -26
- oci/redis/models/redis_cluster.py +7 -3
- oci/redis/models/update_redis_cluster_details.py +31 -0
- oci/redis/redis_cluster_client.py +12 -12
- 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/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +87 -87
- 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 +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/METADATA +1 -1
- {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/RECORD +473 -411
- oci/container_instances/models/container_command_health_check.py +0 -147
- oci/container_instances/models/create_container_command_health_check_details.py +0 -132
- {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/WHEEL +0 -0
- {oci-2.145.0.dist-info → oci-2.146.0.dist-info}/top_level.txt +0 -0
@@ -117,9 +117,834 @@ class OnboardingClient(object):
|
|
117
117
|
self.retry_strategy = kwargs.get('retry_strategy')
|
118
118
|
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
119
119
|
|
120
|
+
def attach_lifecycle_stage_to_profile(self, profile_id, attach_lifecycle_stage_to_profile_details, **kwargs):
|
121
|
+
"""
|
122
|
+
Attaches the specified lifecycle stage to a profile.
|
123
|
+
|
124
|
+
|
125
|
+
:param str profile_id: (required)
|
126
|
+
The `OCID`__ of the registration profile.
|
127
|
+
|
128
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
129
|
+
|
130
|
+
:param oci.os_management_hub.models.AttachLifecycleStageToProfileDetails attach_lifecycle_stage_to_profile_details: (required)
|
131
|
+
The lifecycle stage `OCID`__ to attach to the profile
|
132
|
+
|
133
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
134
|
+
|
135
|
+
:param str opc_request_id: (optional)
|
136
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
137
|
+
|
138
|
+
:param str opc_retry_token: (optional)
|
139
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
140
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
141
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
142
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
143
|
+
might be rejected.
|
144
|
+
|
145
|
+
:param str if_match: (optional)
|
146
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
147
|
+
for a resource, set the `if-match` parameter to the value of the
|
148
|
+
etag from a previous GET or POST response for that resource.
|
149
|
+
The resource will be updated or deleted only if the etag you
|
150
|
+
provide matches the resource's current etag value.
|
151
|
+
|
152
|
+
:param obj retry_strategy: (optional)
|
153
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
154
|
+
|
155
|
+
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.
|
156
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
157
|
+
|
158
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
159
|
+
|
160
|
+
:param bool allow_control_chars: (optional)
|
161
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
162
|
+
By default, the response will not allow control characters in strings
|
163
|
+
|
164
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
165
|
+
:rtype: :class:`~oci.response.Response`
|
166
|
+
|
167
|
+
:example:
|
168
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/attach_lifecycle_stage_to_profile.py.html>`__ to see an example of how to use attach_lifecycle_stage_to_profile API.
|
169
|
+
"""
|
170
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
171
|
+
required_arguments = ['profileId']
|
172
|
+
resource_path = "/profiles/{profileId}/actions/attachLifecycleStage"
|
173
|
+
method = "POST"
|
174
|
+
operation_name = "attach_lifecycle_stage_to_profile"
|
175
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachLifecycleStageToProfile"
|
176
|
+
|
177
|
+
# Don't accept unknown kwargs
|
178
|
+
expected_kwargs = [
|
179
|
+
"allow_control_chars",
|
180
|
+
"retry_strategy",
|
181
|
+
"opc_request_id",
|
182
|
+
"opc_retry_token",
|
183
|
+
"if_match"
|
184
|
+
]
|
185
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
186
|
+
if extra_kwargs:
|
187
|
+
raise ValueError(
|
188
|
+
f"attach_lifecycle_stage_to_profile got unknown kwargs: {extra_kwargs!r}")
|
189
|
+
|
190
|
+
path_params = {
|
191
|
+
"profileId": profile_id
|
192
|
+
}
|
193
|
+
|
194
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
195
|
+
|
196
|
+
for (k, v) in six.iteritems(path_params):
|
197
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
198
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
199
|
+
|
200
|
+
header_params = {
|
201
|
+
"accept": "application/json",
|
202
|
+
"content-type": "application/json",
|
203
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
204
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
205
|
+
"if-match": kwargs.get("if_match", missing)
|
206
|
+
}
|
207
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
208
|
+
|
209
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
210
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
211
|
+
client_retry_strategy=self.retry_strategy
|
212
|
+
)
|
213
|
+
if retry_strategy is None:
|
214
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
215
|
+
|
216
|
+
if retry_strategy:
|
217
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
218
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
219
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
220
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
221
|
+
return retry_strategy.make_retrying_call(
|
222
|
+
self.base_client.call_api,
|
223
|
+
resource_path=resource_path,
|
224
|
+
method=method,
|
225
|
+
path_params=path_params,
|
226
|
+
header_params=header_params,
|
227
|
+
body=attach_lifecycle_stage_to_profile_details,
|
228
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
229
|
+
operation_name=operation_name,
|
230
|
+
api_reference_link=api_reference_link,
|
231
|
+
required_arguments=required_arguments)
|
232
|
+
else:
|
233
|
+
return self.base_client.call_api(
|
234
|
+
resource_path=resource_path,
|
235
|
+
method=method,
|
236
|
+
path_params=path_params,
|
237
|
+
header_params=header_params,
|
238
|
+
body=attach_lifecycle_stage_to_profile_details,
|
239
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
240
|
+
operation_name=operation_name,
|
241
|
+
api_reference_link=api_reference_link,
|
242
|
+
required_arguments=required_arguments)
|
243
|
+
|
244
|
+
def attach_managed_instance_group_to_profile(self, profile_id, attach_managed_instance_group_to_profile_details, **kwargs):
|
245
|
+
"""
|
246
|
+
Attaches the specified managed instance group to a profile.
|
247
|
+
|
248
|
+
|
249
|
+
:param str profile_id: (required)
|
250
|
+
The `OCID`__ of the registration profile.
|
251
|
+
|
252
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
253
|
+
|
254
|
+
:param oci.os_management_hub.models.AttachManagedInstanceGroupToProfileDetails attach_managed_instance_group_to_profile_details: (required)
|
255
|
+
The managed instance group `OCID`__ to attach to the profile
|
256
|
+
|
257
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
258
|
+
|
259
|
+
:param str opc_request_id: (optional)
|
260
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
261
|
+
|
262
|
+
:param str opc_retry_token: (optional)
|
263
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
264
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
265
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
266
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
267
|
+
might be rejected.
|
268
|
+
|
269
|
+
:param str if_match: (optional)
|
270
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
271
|
+
for a resource, set the `if-match` parameter to the value of the
|
272
|
+
etag from a previous GET or POST response for that resource.
|
273
|
+
The resource will be updated or deleted only if the etag you
|
274
|
+
provide matches the resource's current etag value.
|
275
|
+
|
276
|
+
:param obj retry_strategy: (optional)
|
277
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
278
|
+
|
279
|
+
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.
|
280
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
281
|
+
|
282
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
283
|
+
|
284
|
+
:param bool allow_control_chars: (optional)
|
285
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
286
|
+
By default, the response will not allow control characters in strings
|
287
|
+
|
288
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
289
|
+
:rtype: :class:`~oci.response.Response`
|
290
|
+
|
291
|
+
:example:
|
292
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/attach_managed_instance_group_to_profile.py.html>`__ to see an example of how to use attach_managed_instance_group_to_profile API.
|
293
|
+
"""
|
294
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
295
|
+
required_arguments = ['profileId']
|
296
|
+
resource_path = "/profiles/{profileId}/actions/attachManagedInstanceGroup"
|
297
|
+
method = "POST"
|
298
|
+
operation_name = "attach_managed_instance_group_to_profile"
|
299
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachManagedInstanceGroupToProfile"
|
300
|
+
|
301
|
+
# Don't accept unknown kwargs
|
302
|
+
expected_kwargs = [
|
303
|
+
"allow_control_chars",
|
304
|
+
"retry_strategy",
|
305
|
+
"opc_request_id",
|
306
|
+
"opc_retry_token",
|
307
|
+
"if_match"
|
308
|
+
]
|
309
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
310
|
+
if extra_kwargs:
|
311
|
+
raise ValueError(
|
312
|
+
f"attach_managed_instance_group_to_profile got unknown kwargs: {extra_kwargs!r}")
|
313
|
+
|
314
|
+
path_params = {
|
315
|
+
"profileId": profile_id
|
316
|
+
}
|
317
|
+
|
318
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
319
|
+
|
320
|
+
for (k, v) in six.iteritems(path_params):
|
321
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
322
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
323
|
+
|
324
|
+
header_params = {
|
325
|
+
"accept": "application/json",
|
326
|
+
"content-type": "application/json",
|
327
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
328
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
329
|
+
"if-match": kwargs.get("if_match", missing)
|
330
|
+
}
|
331
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
332
|
+
|
333
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
334
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
335
|
+
client_retry_strategy=self.retry_strategy
|
336
|
+
)
|
337
|
+
if retry_strategy is None:
|
338
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
339
|
+
|
340
|
+
if retry_strategy:
|
341
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
342
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
343
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
344
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
345
|
+
return retry_strategy.make_retrying_call(
|
346
|
+
self.base_client.call_api,
|
347
|
+
resource_path=resource_path,
|
348
|
+
method=method,
|
349
|
+
path_params=path_params,
|
350
|
+
header_params=header_params,
|
351
|
+
body=attach_managed_instance_group_to_profile_details,
|
352
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
353
|
+
operation_name=operation_name,
|
354
|
+
api_reference_link=api_reference_link,
|
355
|
+
required_arguments=required_arguments)
|
356
|
+
else:
|
357
|
+
return self.base_client.call_api(
|
358
|
+
resource_path=resource_path,
|
359
|
+
method=method,
|
360
|
+
path_params=path_params,
|
361
|
+
header_params=header_params,
|
362
|
+
body=attach_managed_instance_group_to_profile_details,
|
363
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
364
|
+
operation_name=operation_name,
|
365
|
+
api_reference_link=api_reference_link,
|
366
|
+
required_arguments=required_arguments)
|
367
|
+
|
368
|
+
def attach_management_station_to_profile(self, profile_id, attach_management_station_to_profile_details, **kwargs):
|
369
|
+
"""
|
370
|
+
Attaches the specified management station to a profile.
|
371
|
+
|
372
|
+
|
373
|
+
:param str profile_id: (required)
|
374
|
+
The `OCID`__ of the registration profile.
|
375
|
+
|
376
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
377
|
+
|
378
|
+
:param oci.os_management_hub.models.AttachManagementStationToProfileDetails attach_management_station_to_profile_details: (required)
|
379
|
+
The management station `OCID`__ to attach to the profile
|
380
|
+
|
381
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
382
|
+
|
383
|
+
:param str opc_request_id: (optional)
|
384
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
385
|
+
|
386
|
+
:param str opc_retry_token: (optional)
|
387
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
388
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
389
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
390
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
391
|
+
might be rejected.
|
392
|
+
|
393
|
+
:param str if_match: (optional)
|
394
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
395
|
+
for a resource, set the `if-match` parameter to the value of the
|
396
|
+
etag from a previous GET or POST response for that resource.
|
397
|
+
The resource will be updated or deleted only if the etag you
|
398
|
+
provide matches the resource's current etag value.
|
399
|
+
|
400
|
+
:param obj retry_strategy: (optional)
|
401
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
402
|
+
|
403
|
+
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.
|
404
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
405
|
+
|
406
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
407
|
+
|
408
|
+
:param bool allow_control_chars: (optional)
|
409
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
410
|
+
By default, the response will not allow control characters in strings
|
411
|
+
|
412
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
413
|
+
:rtype: :class:`~oci.response.Response`
|
414
|
+
|
415
|
+
:example:
|
416
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/attach_management_station_to_profile.py.html>`__ to see an example of how to use attach_management_station_to_profile API.
|
417
|
+
"""
|
418
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
419
|
+
required_arguments = ['profileId']
|
420
|
+
resource_path = "/profiles/{profileId}/actions/attachManagementStation"
|
421
|
+
method = "POST"
|
422
|
+
operation_name = "attach_management_station_to_profile"
|
423
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachManagementStationToProfile"
|
424
|
+
|
425
|
+
# Don't accept unknown kwargs
|
426
|
+
expected_kwargs = [
|
427
|
+
"allow_control_chars",
|
428
|
+
"retry_strategy",
|
429
|
+
"opc_request_id",
|
430
|
+
"opc_retry_token",
|
431
|
+
"if_match"
|
432
|
+
]
|
433
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
434
|
+
if extra_kwargs:
|
435
|
+
raise ValueError(
|
436
|
+
f"attach_management_station_to_profile got unknown kwargs: {extra_kwargs!r}")
|
437
|
+
|
438
|
+
path_params = {
|
439
|
+
"profileId": profile_id
|
440
|
+
}
|
441
|
+
|
442
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
443
|
+
|
444
|
+
for (k, v) in six.iteritems(path_params):
|
445
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
446
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
447
|
+
|
448
|
+
header_params = {
|
449
|
+
"accept": "application/json",
|
450
|
+
"content-type": "application/json",
|
451
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
452
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
453
|
+
"if-match": kwargs.get("if_match", missing)
|
454
|
+
}
|
455
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
456
|
+
|
457
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
458
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
459
|
+
client_retry_strategy=self.retry_strategy
|
460
|
+
)
|
461
|
+
if retry_strategy is None:
|
462
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
463
|
+
|
464
|
+
if retry_strategy:
|
465
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
466
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
467
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
468
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
469
|
+
return retry_strategy.make_retrying_call(
|
470
|
+
self.base_client.call_api,
|
471
|
+
resource_path=resource_path,
|
472
|
+
method=method,
|
473
|
+
path_params=path_params,
|
474
|
+
header_params=header_params,
|
475
|
+
body=attach_management_station_to_profile_details,
|
476
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
477
|
+
operation_name=operation_name,
|
478
|
+
api_reference_link=api_reference_link,
|
479
|
+
required_arguments=required_arguments)
|
480
|
+
else:
|
481
|
+
return self.base_client.call_api(
|
482
|
+
resource_path=resource_path,
|
483
|
+
method=method,
|
484
|
+
path_params=path_params,
|
485
|
+
header_params=header_params,
|
486
|
+
body=attach_management_station_to_profile_details,
|
487
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
488
|
+
operation_name=operation_name,
|
489
|
+
api_reference_link=api_reference_link,
|
490
|
+
required_arguments=required_arguments)
|
491
|
+
|
492
|
+
def attach_software_sources_to_profile(self, profile_id, attach_software_sources_to_profile_details, **kwargs):
|
493
|
+
"""
|
494
|
+
Attaches the specified software sources to a profile.
|
495
|
+
|
496
|
+
|
497
|
+
:param str profile_id: (required)
|
498
|
+
The `OCID`__ of the registration profile.
|
499
|
+
|
500
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
501
|
+
|
502
|
+
:param oci.os_management_hub.models.AttachSoftwareSourcesToProfileDetails attach_software_sources_to_profile_details: (required)
|
503
|
+
The software source `OCIDs`__ to attach to the profile
|
504
|
+
|
505
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
506
|
+
|
507
|
+
:param str opc_request_id: (optional)
|
508
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
509
|
+
|
510
|
+
:param str opc_retry_token: (optional)
|
511
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
512
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
513
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
514
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
515
|
+
might be rejected.
|
516
|
+
|
517
|
+
:param str if_match: (optional)
|
518
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
519
|
+
for a resource, set the `if-match` parameter to the value of the
|
520
|
+
etag from a previous GET or POST response for that resource.
|
521
|
+
The resource will be updated or deleted only if the etag you
|
522
|
+
provide matches the resource's current etag value.
|
523
|
+
|
524
|
+
:param obj retry_strategy: (optional)
|
525
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
526
|
+
|
527
|
+
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.
|
528
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
529
|
+
|
530
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
531
|
+
|
532
|
+
:param bool allow_control_chars: (optional)
|
533
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
534
|
+
By default, the response will not allow control characters in strings
|
535
|
+
|
536
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
537
|
+
:rtype: :class:`~oci.response.Response`
|
538
|
+
|
539
|
+
:example:
|
540
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/attach_software_sources_to_profile.py.html>`__ to see an example of how to use attach_software_sources_to_profile API.
|
541
|
+
"""
|
542
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
543
|
+
required_arguments = ['profileId']
|
544
|
+
resource_path = "/profiles/{profileId}/actions/attachSoftwareSources"
|
545
|
+
method = "POST"
|
546
|
+
operation_name = "attach_software_sources_to_profile"
|
547
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachSoftwareSourcesToProfile"
|
548
|
+
|
549
|
+
# Don't accept unknown kwargs
|
550
|
+
expected_kwargs = [
|
551
|
+
"allow_control_chars",
|
552
|
+
"retry_strategy",
|
553
|
+
"opc_request_id",
|
554
|
+
"opc_retry_token",
|
555
|
+
"if_match"
|
556
|
+
]
|
557
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
558
|
+
if extra_kwargs:
|
559
|
+
raise ValueError(
|
560
|
+
f"attach_software_sources_to_profile got unknown kwargs: {extra_kwargs!r}")
|
561
|
+
|
562
|
+
path_params = {
|
563
|
+
"profileId": profile_id
|
564
|
+
}
|
565
|
+
|
566
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
567
|
+
|
568
|
+
for (k, v) in six.iteritems(path_params):
|
569
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
570
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
571
|
+
|
572
|
+
header_params = {
|
573
|
+
"accept": "application/json",
|
574
|
+
"content-type": "application/json",
|
575
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
576
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
577
|
+
"if-match": kwargs.get("if_match", missing)
|
578
|
+
}
|
579
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
580
|
+
|
581
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
582
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
583
|
+
client_retry_strategy=self.retry_strategy
|
584
|
+
)
|
585
|
+
if retry_strategy is None:
|
586
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
587
|
+
|
588
|
+
if retry_strategy:
|
589
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
590
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
591
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
592
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
593
|
+
return retry_strategy.make_retrying_call(
|
594
|
+
self.base_client.call_api,
|
595
|
+
resource_path=resource_path,
|
596
|
+
method=method,
|
597
|
+
path_params=path_params,
|
598
|
+
header_params=header_params,
|
599
|
+
body=attach_software_sources_to_profile_details,
|
600
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
601
|
+
operation_name=operation_name,
|
602
|
+
api_reference_link=api_reference_link,
|
603
|
+
required_arguments=required_arguments)
|
604
|
+
else:
|
605
|
+
return self.base_client.call_api(
|
606
|
+
resource_path=resource_path,
|
607
|
+
method=method,
|
608
|
+
path_params=path_params,
|
609
|
+
header_params=header_params,
|
610
|
+
body=attach_software_sources_to_profile_details,
|
611
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
612
|
+
operation_name=operation_name,
|
613
|
+
api_reference_link=api_reference_link,
|
614
|
+
required_arguments=required_arguments)
|
615
|
+
|
120
616
|
def change_profile_compartment(self, profile_id, change_profile_compartment_details, **kwargs):
|
121
617
|
"""
|
122
|
-
Moves the profile to a different compartment.
|
618
|
+
Moves the profile to a different compartment.
|
619
|
+
|
620
|
+
|
621
|
+
:param str profile_id: (required)
|
622
|
+
The `OCID`__ of the registration profile.
|
623
|
+
|
624
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
625
|
+
|
626
|
+
:param oci.os_management_hub.models.ChangeProfileCompartmentDetails change_profile_compartment_details: (required)
|
627
|
+
The `OCID`__ of the compartment to move the profile to.
|
628
|
+
|
629
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
630
|
+
|
631
|
+
:param str opc_retry_token: (optional)
|
632
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
633
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
634
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
635
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
636
|
+
might be rejected.
|
637
|
+
|
638
|
+
:param str if_match: (optional)
|
639
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
640
|
+
for a resource, set the `if-match` parameter to the value of the
|
641
|
+
etag from a previous GET or POST response for that resource.
|
642
|
+
The resource will be updated or deleted only if the etag you
|
643
|
+
provide matches the resource's current etag value.
|
644
|
+
|
645
|
+
:param str opc_request_id: (optional)
|
646
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
647
|
+
|
648
|
+
:param obj retry_strategy: (optional)
|
649
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
650
|
+
|
651
|
+
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.
|
652
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
653
|
+
|
654
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
655
|
+
|
656
|
+
:param bool allow_control_chars: (optional)
|
657
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
658
|
+
By default, the response will not allow control characters in strings
|
659
|
+
|
660
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
661
|
+
:rtype: :class:`~oci.response.Response`
|
662
|
+
|
663
|
+
:example:
|
664
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/change_profile_compartment.py.html>`__ to see an example of how to use change_profile_compartment API.
|
665
|
+
"""
|
666
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
667
|
+
required_arguments = ['profileId']
|
668
|
+
resource_path = "/profiles/{profileId}/actions/changeCompartment"
|
669
|
+
method = "POST"
|
670
|
+
operation_name = "change_profile_compartment"
|
671
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/ChangeProfileCompartment"
|
672
|
+
|
673
|
+
# Don't accept unknown kwargs
|
674
|
+
expected_kwargs = [
|
675
|
+
"allow_control_chars",
|
676
|
+
"retry_strategy",
|
677
|
+
"opc_retry_token",
|
678
|
+
"if_match",
|
679
|
+
"opc_request_id"
|
680
|
+
]
|
681
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
682
|
+
if extra_kwargs:
|
683
|
+
raise ValueError(
|
684
|
+
f"change_profile_compartment got unknown kwargs: {extra_kwargs!r}")
|
685
|
+
|
686
|
+
path_params = {
|
687
|
+
"profileId": profile_id
|
688
|
+
}
|
689
|
+
|
690
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
691
|
+
|
692
|
+
for (k, v) in six.iteritems(path_params):
|
693
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
694
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
695
|
+
|
696
|
+
header_params = {
|
697
|
+
"accept": "application/json",
|
698
|
+
"content-type": "application/json",
|
699
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
700
|
+
"if-match": kwargs.get("if_match", missing),
|
701
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
702
|
+
}
|
703
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
704
|
+
|
705
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
706
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
707
|
+
client_retry_strategy=self.retry_strategy
|
708
|
+
)
|
709
|
+
if retry_strategy is None:
|
710
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
711
|
+
|
712
|
+
if retry_strategy:
|
713
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
714
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
715
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
716
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
717
|
+
return retry_strategy.make_retrying_call(
|
718
|
+
self.base_client.call_api,
|
719
|
+
resource_path=resource_path,
|
720
|
+
method=method,
|
721
|
+
path_params=path_params,
|
722
|
+
header_params=header_params,
|
723
|
+
body=change_profile_compartment_details,
|
724
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
725
|
+
operation_name=operation_name,
|
726
|
+
api_reference_link=api_reference_link,
|
727
|
+
required_arguments=required_arguments)
|
728
|
+
else:
|
729
|
+
return self.base_client.call_api(
|
730
|
+
resource_path=resource_path,
|
731
|
+
method=method,
|
732
|
+
path_params=path_params,
|
733
|
+
header_params=header_params,
|
734
|
+
body=change_profile_compartment_details,
|
735
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
736
|
+
operation_name=operation_name,
|
737
|
+
api_reference_link=api_reference_link,
|
738
|
+
required_arguments=required_arguments)
|
739
|
+
|
740
|
+
def create_profile(self, create_profile_details, **kwargs):
|
741
|
+
"""
|
742
|
+
Creates a registration profile. A profile defines the content applied to the instance when registering it with the service.
|
743
|
+
|
744
|
+
|
745
|
+
:param oci.os_management_hub.models.CreateProfileDetails create_profile_details: (required)
|
746
|
+
Provides the information used to create the registration profile.
|
747
|
+
|
748
|
+
:param str opc_retry_token: (optional)
|
749
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
750
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
751
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
752
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
753
|
+
might be rejected.
|
754
|
+
|
755
|
+
:param str opc_request_id: (optional)
|
756
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
757
|
+
|
758
|
+
:param obj retry_strategy: (optional)
|
759
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
760
|
+
|
761
|
+
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.
|
762
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
763
|
+
|
764
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
765
|
+
|
766
|
+
:param bool allow_control_chars: (optional)
|
767
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
768
|
+
By default, the response will not allow control characters in strings
|
769
|
+
|
770
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.Profile`
|
771
|
+
:rtype: :class:`~oci.response.Response`
|
772
|
+
|
773
|
+
:example:
|
774
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/create_profile.py.html>`__ to see an example of how to use create_profile API.
|
775
|
+
"""
|
776
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
777
|
+
required_arguments = []
|
778
|
+
resource_path = "/profiles"
|
779
|
+
method = "POST"
|
780
|
+
operation_name = "create_profile"
|
781
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/CreateProfile"
|
782
|
+
|
783
|
+
# Don't accept unknown kwargs
|
784
|
+
expected_kwargs = [
|
785
|
+
"allow_control_chars",
|
786
|
+
"retry_strategy",
|
787
|
+
"opc_retry_token",
|
788
|
+
"opc_request_id"
|
789
|
+
]
|
790
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
791
|
+
if extra_kwargs:
|
792
|
+
raise ValueError(
|
793
|
+
f"create_profile got unknown kwargs: {extra_kwargs!r}")
|
794
|
+
|
795
|
+
header_params = {
|
796
|
+
"accept": "application/json",
|
797
|
+
"content-type": "application/json",
|
798
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
799
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
800
|
+
}
|
801
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
802
|
+
|
803
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
804
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
805
|
+
client_retry_strategy=self.retry_strategy
|
806
|
+
)
|
807
|
+
if retry_strategy is None:
|
808
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
809
|
+
|
810
|
+
if retry_strategy:
|
811
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
812
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
813
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
814
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
815
|
+
return retry_strategy.make_retrying_call(
|
816
|
+
self.base_client.call_api,
|
817
|
+
resource_path=resource_path,
|
818
|
+
method=method,
|
819
|
+
header_params=header_params,
|
820
|
+
body=create_profile_details,
|
821
|
+
response_type="Profile",
|
822
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
823
|
+
operation_name=operation_name,
|
824
|
+
api_reference_link=api_reference_link,
|
825
|
+
required_arguments=required_arguments)
|
826
|
+
else:
|
827
|
+
return self.base_client.call_api(
|
828
|
+
resource_path=resource_path,
|
829
|
+
method=method,
|
830
|
+
header_params=header_params,
|
831
|
+
body=create_profile_details,
|
832
|
+
response_type="Profile",
|
833
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
834
|
+
operation_name=operation_name,
|
835
|
+
api_reference_link=api_reference_link,
|
836
|
+
required_arguments=required_arguments)
|
837
|
+
|
838
|
+
def delete_profile(self, profile_id, **kwargs):
|
839
|
+
"""
|
840
|
+
Deletes a specified registration profile.
|
841
|
+
|
842
|
+
|
843
|
+
:param str profile_id: (required)
|
844
|
+
The `OCID`__ of the registration profile.
|
845
|
+
|
846
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
847
|
+
|
848
|
+
:param str if_match: (optional)
|
849
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
850
|
+
for a resource, set the `if-match` parameter to the value of the
|
851
|
+
etag from a previous GET or POST response for that resource.
|
852
|
+
The resource will be updated or deleted only if the etag you
|
853
|
+
provide matches the resource's current etag value.
|
854
|
+
|
855
|
+
:param str opc_request_id: (optional)
|
856
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
857
|
+
|
858
|
+
:param obj retry_strategy: (optional)
|
859
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
860
|
+
|
861
|
+
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.
|
862
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
863
|
+
|
864
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
865
|
+
|
866
|
+
:param bool allow_control_chars: (optional)
|
867
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
868
|
+
By default, the response will not allow control characters in strings
|
869
|
+
|
870
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
871
|
+
:rtype: :class:`~oci.response.Response`
|
872
|
+
|
873
|
+
:example:
|
874
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/delete_profile.py.html>`__ to see an example of how to use delete_profile API.
|
875
|
+
"""
|
876
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
877
|
+
required_arguments = ['profileId']
|
878
|
+
resource_path = "/profiles/{profileId}"
|
879
|
+
method = "DELETE"
|
880
|
+
operation_name = "delete_profile"
|
881
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/DeleteProfile"
|
882
|
+
|
883
|
+
# Don't accept unknown kwargs
|
884
|
+
expected_kwargs = [
|
885
|
+
"allow_control_chars",
|
886
|
+
"retry_strategy",
|
887
|
+
"if_match",
|
888
|
+
"opc_request_id"
|
889
|
+
]
|
890
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
891
|
+
if extra_kwargs:
|
892
|
+
raise ValueError(
|
893
|
+
f"delete_profile got unknown kwargs: {extra_kwargs!r}")
|
894
|
+
|
895
|
+
path_params = {
|
896
|
+
"profileId": profile_id
|
897
|
+
}
|
898
|
+
|
899
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
900
|
+
|
901
|
+
for (k, v) in six.iteritems(path_params):
|
902
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
903
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
904
|
+
|
905
|
+
header_params = {
|
906
|
+
"accept": "application/json",
|
907
|
+
"content-type": "application/json",
|
908
|
+
"if-match": kwargs.get("if_match", missing),
|
909
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
910
|
+
}
|
911
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
912
|
+
|
913
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
914
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
915
|
+
client_retry_strategy=self.retry_strategy
|
916
|
+
)
|
917
|
+
if retry_strategy is None:
|
918
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
919
|
+
|
920
|
+
if retry_strategy:
|
921
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
922
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
923
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
924
|
+
return retry_strategy.make_retrying_call(
|
925
|
+
self.base_client.call_api,
|
926
|
+
resource_path=resource_path,
|
927
|
+
method=method,
|
928
|
+
path_params=path_params,
|
929
|
+
header_params=header_params,
|
930
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
931
|
+
operation_name=operation_name,
|
932
|
+
api_reference_link=api_reference_link,
|
933
|
+
required_arguments=required_arguments)
|
934
|
+
else:
|
935
|
+
return self.base_client.call_api(
|
936
|
+
resource_path=resource_path,
|
937
|
+
method=method,
|
938
|
+
path_params=path_params,
|
939
|
+
header_params=header_params,
|
940
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
941
|
+
operation_name=operation_name,
|
942
|
+
api_reference_link=api_reference_link,
|
943
|
+
required_arguments=required_arguments)
|
944
|
+
|
945
|
+
def detach_software_sources_from_profile(self, profile_id, detach_software_sources_from_profile_details, **kwargs):
|
946
|
+
"""
|
947
|
+
Detaches the specified software sources from a profile.
|
123
948
|
|
124
949
|
|
125
950
|
:param str profile_id: (required)
|
@@ -127,11 +952,14 @@ class OnboardingClient(object):
|
|
127
952
|
|
128
953
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
129
954
|
|
130
|
-
:param oci.os_management_hub.models.
|
131
|
-
The `
|
955
|
+
:param oci.os_management_hub.models.DetachSoftwareSourcesFromProfileDetails detach_software_sources_from_profile_details: (required)
|
956
|
+
The software source `OCIDs`__ to detach from the profile
|
132
957
|
|
133
958
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
134
959
|
|
960
|
+
:param str opc_request_id: (optional)
|
961
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
962
|
+
|
135
963
|
:param str opc_retry_token: (optional)
|
136
964
|
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
137
965
|
server error without risk of executing that same action again. Retry tokens expire after 24
|
@@ -146,9 +974,6 @@ class OnboardingClient(object):
|
|
146
974
|
The resource will be updated or deleted only if the etag you
|
147
975
|
provide matches the resource's current etag value.
|
148
976
|
|
149
|
-
:param str opc_request_id: (optional)
|
150
|
-
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
151
|
-
|
152
977
|
:param obj retry_strategy: (optional)
|
153
978
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
154
979
|
|
@@ -165,27 +990,27 @@ class OnboardingClient(object):
|
|
165
990
|
:rtype: :class:`~oci.response.Response`
|
166
991
|
|
167
992
|
:example:
|
168
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
993
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/detach_software_sources_from_profile.py.html>`__ to see an example of how to use detach_software_sources_from_profile API.
|
169
994
|
"""
|
170
995
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
171
996
|
required_arguments = ['profileId']
|
172
|
-
resource_path = "/profiles/{profileId}/actions/
|
997
|
+
resource_path = "/profiles/{profileId}/actions/detachSoftwareSources"
|
173
998
|
method = "POST"
|
174
|
-
operation_name = "
|
175
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/
|
999
|
+
operation_name = "detach_software_sources_from_profile"
|
1000
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/DetachSoftwareSourcesFromProfile"
|
176
1001
|
|
177
1002
|
# Don't accept unknown kwargs
|
178
1003
|
expected_kwargs = [
|
179
1004
|
"allow_control_chars",
|
180
1005
|
"retry_strategy",
|
1006
|
+
"opc_request_id",
|
181
1007
|
"opc_retry_token",
|
182
|
-
"if_match"
|
183
|
-
"opc_request_id"
|
1008
|
+
"if_match"
|
184
1009
|
]
|
185
1010
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
186
1011
|
if extra_kwargs:
|
187
1012
|
raise ValueError(
|
188
|
-
f"
|
1013
|
+
f"detach_software_sources_from_profile got unknown kwargs: {extra_kwargs!r}")
|
189
1014
|
|
190
1015
|
path_params = {
|
191
1016
|
"profileId": profile_id
|
@@ -200,9 +1025,9 @@ class OnboardingClient(object):
|
|
200
1025
|
header_params = {
|
201
1026
|
"accept": "application/json",
|
202
1027
|
"content-type": "application/json",
|
1028
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
203
1029
|
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
204
|
-
"if-match": kwargs.get("if_match", missing)
|
205
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1030
|
+
"if-match": kwargs.get("if_match", missing)
|
206
1031
|
}
|
207
1032
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
208
1033
|
|
@@ -224,7 +1049,7 @@ class OnboardingClient(object):
|
|
224
1049
|
method=method,
|
225
1050
|
path_params=path_params,
|
226
1051
|
header_params=header_params,
|
227
|
-
body=
|
1052
|
+
body=detach_software_sources_from_profile_details,
|
228
1053
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
229
1054
|
operation_name=operation_name,
|
230
1055
|
api_reference_link=api_reference_link,
|
@@ -235,26 +1060,21 @@ class OnboardingClient(object):
|
|
235
1060
|
method=method,
|
236
1061
|
path_params=path_params,
|
237
1062
|
header_params=header_params,
|
238
|
-
body=
|
1063
|
+
body=detach_software_sources_from_profile_details,
|
239
1064
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
240
1065
|
operation_name=operation_name,
|
241
1066
|
api_reference_link=api_reference_link,
|
242
1067
|
required_arguments=required_arguments)
|
243
1068
|
|
244
|
-
def
|
1069
|
+
def get_profile(self, profile_id, **kwargs):
|
245
1070
|
"""
|
246
|
-
|
1071
|
+
Returns information about the specified registration profile.
|
247
1072
|
|
248
1073
|
|
249
|
-
:param
|
250
|
-
|
1074
|
+
:param str profile_id: (required)
|
1075
|
+
The `OCID`__ of the registration profile.
|
251
1076
|
|
252
|
-
|
253
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
254
|
-
server error without risk of executing that same action again. Retry tokens expire after 24
|
255
|
-
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
256
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
257
|
-
might be rejected.
|
1077
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
258
1078
|
|
259
1079
|
:param str opc_request_id: (optional)
|
260
1080
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
@@ -275,31 +1095,39 @@ class OnboardingClient(object):
|
|
275
1095
|
:rtype: :class:`~oci.response.Response`
|
276
1096
|
|
277
1097
|
:example:
|
278
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1098
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/get_profile.py.html>`__ to see an example of how to use get_profile API.
|
279
1099
|
"""
|
280
1100
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
281
|
-
required_arguments = []
|
282
|
-
resource_path = "/profiles"
|
283
|
-
method = "
|
284
|
-
operation_name = "
|
285
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/
|
1101
|
+
required_arguments = ['profileId']
|
1102
|
+
resource_path = "/profiles/{profileId}"
|
1103
|
+
method = "GET"
|
1104
|
+
operation_name = "get_profile"
|
1105
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/GetProfile"
|
286
1106
|
|
287
1107
|
# Don't accept unknown kwargs
|
288
1108
|
expected_kwargs = [
|
289
1109
|
"allow_control_chars",
|
290
1110
|
"retry_strategy",
|
291
|
-
"opc_retry_token",
|
292
1111
|
"opc_request_id"
|
293
1112
|
]
|
294
1113
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
295
1114
|
if extra_kwargs:
|
296
1115
|
raise ValueError(
|
297
|
-
f"
|
1116
|
+
f"get_profile got unknown kwargs: {extra_kwargs!r}")
|
1117
|
+
|
1118
|
+
path_params = {
|
1119
|
+
"profileId": profile_id
|
1120
|
+
}
|
1121
|
+
|
1122
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1123
|
+
|
1124
|
+
for (k, v) in six.iteritems(path_params):
|
1125
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1126
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
298
1127
|
|
299
1128
|
header_params = {
|
300
1129
|
"accept": "application/json",
|
301
1130
|
"content-type": "application/json",
|
302
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
303
1131
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
304
1132
|
}
|
305
1133
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -313,15 +1141,14 @@ class OnboardingClient(object):
|
|
313
1141
|
|
314
1142
|
if retry_strategy:
|
315
1143
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
316
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
317
1144
|
self.base_client.add_opc_client_retries_header(header_params)
|
318
1145
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
319
1146
|
return retry_strategy.make_retrying_call(
|
320
1147
|
self.base_client.call_api,
|
321
1148
|
resource_path=resource_path,
|
322
1149
|
method=method,
|
1150
|
+
path_params=path_params,
|
323
1151
|
header_params=header_params,
|
324
|
-
body=create_profile_details,
|
325
1152
|
response_type="Profile",
|
326
1153
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
327
1154
|
operation_name=operation_name,
|
@@ -331,17 +1158,17 @@ class OnboardingClient(object):
|
|
331
1158
|
return self.base_client.call_api(
|
332
1159
|
resource_path=resource_path,
|
333
1160
|
method=method,
|
1161
|
+
path_params=path_params,
|
334
1162
|
header_params=header_params,
|
335
|
-
body=create_profile_details,
|
336
1163
|
response_type="Profile",
|
337
1164
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
338
1165
|
operation_name=operation_name,
|
339
1166
|
api_reference_link=api_reference_link,
|
340
1167
|
required_arguments=required_arguments)
|
341
1168
|
|
342
|
-
def
|
1169
|
+
def get_profile_version(self, profile_id, profile_version, **kwargs):
|
343
1170
|
"""
|
344
|
-
|
1171
|
+
Returns information about the version of the specified registration profile.
|
345
1172
|
|
346
1173
|
|
347
1174
|
:param str profile_id: (required)
|
@@ -349,12 +1176,8 @@ class OnboardingClient(object):
|
|
349
1176
|
|
350
1177
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
351
1178
|
|
352
|
-
:param str
|
353
|
-
|
354
|
-
for a resource, set the `if-match` parameter to the value of the
|
355
|
-
etag from a previous GET or POST response for that resource.
|
356
|
-
The resource will be updated or deleted only if the etag you
|
357
|
-
provide matches the resource's current etag value.
|
1179
|
+
:param str profile_version: (required)
|
1180
|
+
The version of the registration profile.
|
358
1181
|
|
359
1182
|
:param str opc_request_id: (optional)
|
360
1183
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
@@ -371,33 +1194,33 @@ class OnboardingClient(object):
|
|
371
1194
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
372
1195
|
By default, the response will not allow control characters in strings
|
373
1196
|
|
374
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
1197
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.ProfileVersion`
|
375
1198
|
:rtype: :class:`~oci.response.Response`
|
376
1199
|
|
377
1200
|
:example:
|
378
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1201
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/get_profile_version.py.html>`__ to see an example of how to use get_profile_version API.
|
379
1202
|
"""
|
380
1203
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
381
|
-
required_arguments = ['profileId']
|
382
|
-
resource_path = "/profiles/{profileId}"
|
383
|
-
method = "
|
384
|
-
operation_name = "
|
385
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/
|
1204
|
+
required_arguments = ['profileId', 'profileVersion']
|
1205
|
+
resource_path = "/profiles/{profileId}/version/{profileVersion}"
|
1206
|
+
method = "GET"
|
1207
|
+
operation_name = "get_profile_version"
|
1208
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ProfileVersion/GetProfileVersion"
|
386
1209
|
|
387
1210
|
# Don't accept unknown kwargs
|
388
1211
|
expected_kwargs = [
|
389
1212
|
"allow_control_chars",
|
390
1213
|
"retry_strategy",
|
391
|
-
"if_match",
|
392
1214
|
"opc_request_id"
|
393
1215
|
]
|
394
1216
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
395
1217
|
if extra_kwargs:
|
396
1218
|
raise ValueError(
|
397
|
-
f"
|
1219
|
+
f"get_profile_version got unknown kwargs: {extra_kwargs!r}")
|
398
1220
|
|
399
1221
|
path_params = {
|
400
|
-
"profileId": profile_id
|
1222
|
+
"profileId": profile_id,
|
1223
|
+
"profileVersion": profile_version
|
401
1224
|
}
|
402
1225
|
|
403
1226
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -409,7 +1232,6 @@ class OnboardingClient(object):
|
|
409
1232
|
header_params = {
|
410
1233
|
"accept": "application/json",
|
411
1234
|
"content-type": "application/json",
|
412
|
-
"if-match": kwargs.get("if_match", missing),
|
413
1235
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
414
1236
|
}
|
415
1237
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -431,6 +1253,7 @@ class OnboardingClient(object):
|
|
431
1253
|
method=method,
|
432
1254
|
path_params=path_params,
|
433
1255
|
header_params=header_params,
|
1256
|
+
response_type="ProfileVersion",
|
434
1257
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
435
1258
|
operation_name=operation_name,
|
436
1259
|
api_reference_link=api_reference_link,
|
@@ -441,14 +1264,15 @@ class OnboardingClient(object):
|
|
441
1264
|
method=method,
|
442
1265
|
path_params=path_params,
|
443
1266
|
header_params=header_params,
|
1267
|
+
response_type="ProfileVersion",
|
444
1268
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
445
1269
|
operation_name=operation_name,
|
446
1270
|
api_reference_link=api_reference_link,
|
447
1271
|
required_arguments=required_arguments)
|
448
1272
|
|
449
|
-
def
|
1273
|
+
def list_profile_available_software_sources(self, profile_id, **kwargs):
|
450
1274
|
"""
|
451
|
-
|
1275
|
+
Lists available software sources for a specified profile. Filter the list against a variety of criteria including but not limited to the software source name. The results list only software sources that have not already been added to the profile.
|
452
1276
|
|
453
1277
|
|
454
1278
|
:param str profile_id: (required)
|
@@ -456,6 +1280,43 @@ class OnboardingClient(object):
|
|
456
1280
|
|
457
1281
|
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
458
1282
|
|
1283
|
+
:param list[str] display_name: (optional)
|
1284
|
+
A filter to return resources that match the given display names.
|
1285
|
+
|
1286
|
+
:param str display_name_contains: (optional)
|
1287
|
+
A filter to return resources that may partially match the given display name.
|
1288
|
+
|
1289
|
+
:param str compartment_id: (optional)
|
1290
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1291
|
+
|
1292
|
+
:param int limit: (optional)
|
1293
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
1294
|
+
For important details about how pagination works, see `List Pagination`__.
|
1295
|
+
|
1296
|
+
Example: `50`
|
1297
|
+
|
1298
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
1299
|
+
|
1300
|
+
:param str page: (optional)
|
1301
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
1302
|
+
For important details about how pagination works, see `List Pagination`__.
|
1303
|
+
|
1304
|
+
Example: `3`
|
1305
|
+
|
1306
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
1307
|
+
|
1308
|
+
:param str sort_order: (optional)
|
1309
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1310
|
+
|
1311
|
+
Allowed values are: "ASC", "DESC"
|
1312
|
+
|
1313
|
+
:param str sort_by: (optional)
|
1314
|
+
The field to sort by. Only one sort order may be provided.
|
1315
|
+
Default order for timeCreated is descending.
|
1316
|
+
Default order for displayName is ascending.
|
1317
|
+
|
1318
|
+
Allowed values are: "timeCreated", "displayName"
|
1319
|
+
|
459
1320
|
:param str opc_request_id: (optional)
|
460
1321
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
461
1322
|
|
@@ -471,29 +1332,36 @@ class OnboardingClient(object):
|
|
471
1332
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
472
1333
|
By default, the response will not allow control characters in strings
|
473
1334
|
|
474
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.
|
1335
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.AvailableSoftwareSourceCollection`
|
475
1336
|
:rtype: :class:`~oci.response.Response`
|
476
1337
|
|
477
1338
|
:example:
|
478
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1339
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/list_profile_available_software_sources.py.html>`__ to see an example of how to use list_profile_available_software_sources API.
|
479
1340
|
"""
|
480
1341
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
481
1342
|
required_arguments = ['profileId']
|
482
|
-
resource_path = "/profiles/{profileId}"
|
1343
|
+
resource_path = "/profiles/{profileId}/availableSoftwareSources"
|
483
1344
|
method = "GET"
|
484
|
-
operation_name = "
|
485
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/
|
1345
|
+
operation_name = "list_profile_available_software_sources"
|
1346
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/ListProfileAvailableSoftwareSources"
|
486
1347
|
|
487
1348
|
# Don't accept unknown kwargs
|
488
1349
|
expected_kwargs = [
|
489
1350
|
"allow_control_chars",
|
490
1351
|
"retry_strategy",
|
1352
|
+
"display_name",
|
1353
|
+
"display_name_contains",
|
1354
|
+
"compartment_id",
|
1355
|
+
"limit",
|
1356
|
+
"page",
|
1357
|
+
"sort_order",
|
1358
|
+
"sort_by",
|
491
1359
|
"opc_request_id"
|
492
1360
|
]
|
493
1361
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
494
1362
|
if extra_kwargs:
|
495
1363
|
raise ValueError(
|
496
|
-
f"
|
1364
|
+
f"list_profile_available_software_sources got unknown kwargs: {extra_kwargs!r}")
|
497
1365
|
|
498
1366
|
path_params = {
|
499
1367
|
"profileId": profile_id
|
@@ -505,6 +1373,31 @@ class OnboardingClient(object):
|
|
505
1373
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
506
1374
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
507
1375
|
|
1376
|
+
if 'sort_order' in kwargs:
|
1377
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1378
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1379
|
+
raise ValueError(
|
1380
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1381
|
+
)
|
1382
|
+
|
1383
|
+
if 'sort_by' in kwargs:
|
1384
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1385
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1386
|
+
raise ValueError(
|
1387
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1388
|
+
)
|
1389
|
+
|
1390
|
+
query_params = {
|
1391
|
+
"displayName": self.base_client.generate_collection_format_param(kwargs.get("display_name", missing), 'multi'),
|
1392
|
+
"displayNameContains": kwargs.get("display_name_contains", missing),
|
1393
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1394
|
+
"limit": kwargs.get("limit", missing),
|
1395
|
+
"page": kwargs.get("page", missing),
|
1396
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1397
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1398
|
+
}
|
1399
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1400
|
+
|
508
1401
|
header_params = {
|
509
1402
|
"accept": "application/json",
|
510
1403
|
"content-type": "application/json",
|
@@ -528,8 +1421,9 @@ class OnboardingClient(object):
|
|
528
1421
|
resource_path=resource_path,
|
529
1422
|
method=method,
|
530
1423
|
path_params=path_params,
|
1424
|
+
query_params=query_params,
|
531
1425
|
header_params=header_params,
|
532
|
-
response_type="
|
1426
|
+
response_type="AvailableSoftwareSourceCollection",
|
533
1427
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
534
1428
|
operation_name=operation_name,
|
535
1429
|
api_reference_link=api_reference_link,
|
@@ -539,8 +1433,9 @@ class OnboardingClient(object):
|
|
539
1433
|
resource_path=resource_path,
|
540
1434
|
method=method,
|
541
1435
|
path_params=path_params,
|
1436
|
+
query_params=query_params,
|
542
1437
|
header_params=header_params,
|
543
|
-
response_type="
|
1438
|
+
response_type="AvailableSoftwareSourceCollection",
|
544
1439
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
545
1440
|
operation_name=operation_name,
|
546
1441
|
api_reference_link=api_reference_link,
|
@@ -579,17 +1474,32 @@ class OnboardingClient(object):
|
|
579
1474
|
:param str arch_type: (optional)
|
580
1475
|
A filter to return only profiles that match the given archType.
|
581
1476
|
|
582
|
-
Allowed values are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC"
|
1477
|
+
Allowed values are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC", "I386"
|
583
1478
|
|
584
1479
|
:param list[ProfileRegistrationType] registration_type: (optional)
|
585
1480
|
A filter to return profiles that match the given instance type.
|
586
1481
|
|
587
1482
|
:param bool is_default_profile: (optional)
|
588
|
-
A
|
1483
|
+
A filter to return only default profiles.
|
589
1484
|
|
590
1485
|
:param bool is_service_provided_profile: (optional)
|
591
1486
|
A filter to return only service-provided profiles.
|
592
1487
|
|
1488
|
+
:param list[str] management_station: (optional)
|
1489
|
+
A filter to return resources that are associated with the specified management
|
1490
|
+
station `OCIDs`__.
|
1491
|
+
|
1492
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1493
|
+
|
1494
|
+
:param list[str] management_station_not_equal_to: (optional)
|
1495
|
+
A filter to return resources that aren't associated with the specified management
|
1496
|
+
station `OCIDs`__.
|
1497
|
+
|
1498
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1499
|
+
|
1500
|
+
:param str profile_version: (optional)
|
1501
|
+
The version of the registration profile.
|
1502
|
+
|
593
1503
|
:param str vendor_name: (optional)
|
594
1504
|
A filter to return only resources that match the given vendor name.
|
595
1505
|
|
@@ -614,7 +1524,7 @@ class OnboardingClient(object):
|
|
614
1524
|
:param str lifecycle_state: (optional)
|
615
1525
|
A filter to return only registration profiles in the given state.
|
616
1526
|
|
617
|
-
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
|
1527
|
+
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
|
618
1528
|
|
619
1529
|
:param str sort_order: (optional)
|
620
1530
|
The sort order to use, either 'ASC' or 'DESC'.
|
@@ -647,7 +1557,7 @@ class OnboardingClient(object):
|
|
647
1557
|
:rtype: :class:`~oci.response.Response`
|
648
1558
|
|
649
1559
|
:example:
|
650
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1560
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/list_profiles.py.html>`__ to see an example of how to use list_profiles API.
|
651
1561
|
"""
|
652
1562
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
653
1563
|
required_arguments = []
|
@@ -670,6 +1580,9 @@ class OnboardingClient(object):
|
|
670
1580
|
"registration_type",
|
671
1581
|
"is_default_profile",
|
672
1582
|
"is_service_provided_profile",
|
1583
|
+
"management_station",
|
1584
|
+
"management_station_not_equal_to",
|
1585
|
+
"profile_version",
|
673
1586
|
"vendor_name",
|
674
1587
|
"limit",
|
675
1588
|
"page",
|
@@ -699,7 +1612,7 @@ class OnboardingClient(object):
|
|
699
1612
|
)
|
700
1613
|
|
701
1614
|
if 'arch_type' in kwargs:
|
702
|
-
arch_type_allowed_values = ["X86_64", "AARCH64", "I686", "NOARCH", "SRC"]
|
1615
|
+
arch_type_allowed_values = ["X86_64", "AARCH64", "I686", "NOARCH", "SRC", "I386"]
|
703
1616
|
if kwargs['arch_type'] not in arch_type_allowed_values:
|
704
1617
|
raise ValueError(
|
705
1618
|
f"Invalid value for `arch_type`, must be one of { arch_type_allowed_values }"
|
@@ -713,7 +1626,7 @@ class OnboardingClient(object):
|
|
713
1626
|
)
|
714
1627
|
|
715
1628
|
if 'lifecycle_state' in kwargs:
|
716
|
-
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
|
1629
|
+
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
|
717
1630
|
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
718
1631
|
raise ValueError(
|
719
1632
|
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
@@ -744,6 +1657,9 @@ class OnboardingClient(object):
|
|
744
1657
|
"registrationType": self.base_client.generate_collection_format_param(kwargs.get("registration_type", missing), 'multi'),
|
745
1658
|
"isDefaultProfile": kwargs.get("is_default_profile", missing),
|
746
1659
|
"isServiceProvidedProfile": kwargs.get("is_service_provided_profile", missing),
|
1660
|
+
"managementStation": self.base_client.generate_collection_format_param(kwargs.get("management_station", missing), 'multi'),
|
1661
|
+
"managementStationNotEqualTo": self.base_client.generate_collection_format_param(kwargs.get("management_station_not_equal_to", missing), 'multi'),
|
1662
|
+
"profileVersion": kwargs.get("profile_version", missing),
|
747
1663
|
"vendorName": kwargs.get("vendor_name", missing),
|
748
1664
|
"limit": kwargs.get("limit", missing),
|
749
1665
|
"page": kwargs.get("page", missing),
|
@@ -833,7 +1749,7 @@ class OnboardingClient(object):
|
|
833
1749
|
:rtype: :class:`~oci.response.Response`
|
834
1750
|
|
835
1751
|
:example:
|
836
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1752
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.146.0/osmanagementhub/update_profile.py.html>`__ to see an example of how to use update_profile API.
|
837
1753
|
"""
|
838
1754
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
839
1755
|
required_arguments = ['profileId']
|