oci 2.131.0__py3-none-any.whl → 2.132.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +17 -17
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +142 -23
- oci/analytics/analytics_client_composite_operations.py +42 -0
- oci/analytics/models/__init__.py +2 -0
- oci/analytics/models/analytics_instance.py +123 -8
- oci/analytics/models/analytics_instance_summary.py +115 -0
- oci/analytics/models/capacity.py +8 -4
- oci/analytics/models/create_analytics_instance_details.py +121 -8
- oci/analytics/models/set_feature_bundle_details.py +96 -0
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +22 -22
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +287 -287
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +360 -360
- oci/database/models/autonomous_database_software_image.py +33 -2
- oci/database/models/autonomous_database_software_image_summary.py +33 -2
- oci/database/models/create_maintenance_run_details.py +46 -7
- oci/database/models/maintenance_run.py +44 -5
- oci/database/models/maintenance_run_summary.py +44 -5
- oci/database_management/db_management_client.py +208 -208
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/__init__.py +18 -0
- oci/database_management/models/basic_database_connection_string_details.py +7 -6
- oci/database_management/models/connector_details.py +5 -5
- oci/database_management/models/database_connection_credentails_by_name.py +1 -1
- oci/database_management/models/database_connection_credentials.py +11 -3
- oci/database_management/models/database_connection_credentials_by_details.py +1 -1
- oci/database_management/models/database_connection_string_details.py +5 -5
- oci/database_management/models/database_diagnostics_and_management_feature_configuration.py +9 -7
- oci/database_management/models/database_diagnostics_and_management_feature_details.py +1 -1
- oci/database_management/models/database_feature_configuration.py +27 -11
- oci/database_management/models/database_feature_details.py +19 -3
- oci/database_management/models/database_lifecycle_feature_configuration.py +122 -0
- oci/database_management/models/database_lifecycle_management_feature_details.py +65 -0
- oci/database_management/models/database_named_credential_connection_details.py +88 -0
- oci/database_management/models/database_sql_watch_feature_configuration.py +73 -0
- oci/database_management/models/database_sql_watch_feature_details.py +65 -0
- oci/database_management/models/database_ssl_connection_credentials.py +1 -1
- oci/database_management/models/disable_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_external_container_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_external_non_container_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_external_pluggable_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_pluggable_database_management_feature_details.py +11 -3
- oci/database_management/models/external_database_diagnostics_and_management_feature_details.py +1 -1
- oci/database_management/models/external_database_feature_details.py +19 -3
- oci/database_management/models/external_database_lifecycle_management_feature_details.py +105 -0
- oci/database_management/models/external_database_sql_watch_feature_details.py +58 -0
- oci/database_management/models/external_database_summary.py +95 -2
- oci/database_management/models/external_pluggable_database_diagnostics_and_management_feature_details.py +1 -1
- oci/database_management/models/external_pluggable_database_feature_details.py +19 -3
- oci/database_management/models/external_pluggable_database_lifecycle_management_feature_details.py +58 -0
- oci/database_management/models/external_pluggable_database_sql_watch_feature_details.py +58 -0
- oci/database_management/models/managed_database.py +64 -2
- oci/database_management/models/managed_database_summary.py +64 -2
- 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/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +29 -43
- oci/disaster_recovery/models/__init__.py +12 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_container_database_details.py +107 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +95 -3
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_movable_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_details.py +19 -3
- oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_network_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_object_storage_bucket_details.py +128 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +1 -1
- oci/disaster_recovery/models/dr_plan_step.py +99 -3
- oci/disaster_recovery/models/dr_plan_step_execution.py +99 -3
- oci/disaster_recovery/models/dr_protection_group_member.py +19 -3
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_container_database.py +108 -0
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +96 -3
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_movable.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_database.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_file_system.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_load_balancer.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_network_load_balancer.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_object_storage_bucket.py +128 -0
- oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_container_database_details.py +107 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +95 -3
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_movable_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_details.py +19 -3
- oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_network_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_object_storage_bucket_details.py +128 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +1 -1
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +51 -51
- oci/fleet_apps_management/__init__.py +22 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +1077 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client_composite_operations.py +124 -0
- oci/fleet_apps_management/fleet_apps_management_client.py +4532 -0
- oci/fleet_apps_management/fleet_apps_management_client_composite_operations.py +692 -0
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +685 -0
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client_composite_operations.py +157 -0
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +1730 -0
- oci/fleet_apps_management/fleet_apps_management_operations_client_composite_operations.py +270 -0
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +683 -0
- oci/fleet_apps_management/fleet_apps_management_runbooks_client_composite_operations.py +26 -0
- oci/fleet_apps_management/models/__init__.py +286 -0
- oci/fleet_apps_management/models/action_group.py +309 -0
- oci/fleet_apps_management/models/action_group_details.py +456 -0
- oci/fleet_apps_management/models/activity_resource_target.py +155 -0
- oci/fleet_apps_management/models/announcement_collection.py +72 -0
- oci/fleet_apps_management/models/announcement_summary.py +606 -0
- oci/fleet_apps_management/models/api_based_execution_details.py +82 -0
- oci/fleet_apps_management/models/associated_fleet_credential_details.py +190 -0
- oci/fleet_apps_management/models/associated_fleet_property_details.py +218 -0
- oci/fleet_apps_management/models/associated_fleet_resource_details.py +165 -0
- oci/fleet_apps_management/models/associated_local_task_details.py +281 -0
- oci/fleet_apps_management/models/associated_scheduler_definition.py +171 -0
- oci/fleet_apps_management/models/associated_shared_task_details.py +82 -0
- oci/fleet_apps_management/models/associated_task_details.py +109 -0
- oci/fleet_apps_management/models/associations.py +161 -0
- oci/fleet_apps_management/models/check_resource_tagging_details.py +134 -0
- oci/fleet_apps_management/models/compliance_report.py +189 -0
- oci/fleet_apps_management/models/compliance_report_patch_detail.py +196 -0
- oci/fleet_apps_management/models/compliance_report_product.py +103 -0
- oci/fleet_apps_management/models/compliance_report_resource.py +344 -0
- oci/fleet_apps_management/models/compliance_report_target.py +251 -0
- oci/fleet_apps_management/models/component_properties.py +154 -0
- oci/fleet_apps_management/models/condition.py +134 -0
- oci/fleet_apps_management/models/confirm_targets_details.py +72 -0
- oci/fleet_apps_management/models/content_details.py +101 -0
- oci/fleet_apps_management/models/create_fleet_credential_details.py +190 -0
- oci/fleet_apps_management/models/create_fleet_details.py +510 -0
- oci/fleet_apps_management/models/create_fleet_property_details.py +134 -0
- oci/fleet_apps_management/models/create_fleet_resource_details.py +196 -0
- oci/fleet_apps_management/models/create_maintenance_window_details.py +437 -0
- oci/fleet_apps_management/models/create_onboarding_details.py +134 -0
- oci/fleet_apps_management/models/create_property_details.py +238 -0
- oci/fleet_apps_management/models/create_scheduler_definition_details.py +328 -0
- oci/fleet_apps_management/models/credential_details.py +117 -0
- oci/fleet_apps_management/models/credential_entity_specific_details.py +101 -0
- oci/fleet_apps_management/models/details.py +224 -0
- oci/fleet_apps_management/models/discovered_target.py +196 -0
- oci/fleet_apps_management/models/entity_execution_details.py +341 -0
- oci/fleet_apps_management/models/execution.py +463 -0
- oci/fleet_apps_management/models/execution_collection.py +72 -0
- oci/fleet_apps_management/models/execution_details.py +109 -0
- oci/fleet_apps_management/models/execution_summary.py +405 -0
- oci/fleet_apps_management/models/execution_workflow_details.py +72 -0
- oci/fleet_apps_management/models/fleet.py +887 -0
- oci/fleet_apps_management/models/fleet_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_credential.py +398 -0
- oci/fleet_apps_management/models/fleet_credential_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_credential_summary.py +378 -0
- oci/fleet_apps_management/models/fleet_product_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_product_summary.py +200 -0
- oci/fleet_apps_management/models/fleet_property.py +477 -0
- oci/fleet_apps_management/models/fleet_property_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_property_summary.py +375 -0
- oci/fleet_apps_management/models/fleet_resource.py +717 -0
- oci/fleet_apps_management/models/fleet_resource_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_resource_summary.py +693 -0
- oci/fleet_apps_management/models/fleet_summary.py +456 -0
- oci/fleet_apps_management/models/fleet_target.py +399 -0
- oci/fleet_apps_management/models/fleet_target_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_target_summary.py +348 -0
- oci/fleet_apps_management/models/generate_compliance_report_details.py +72 -0
- oci/fleet_apps_management/models/group.py +150 -0
- oci/fleet_apps_management/models/input_argument.py +171 -0
- oci/fleet_apps_management/models/input_parameter.py +103 -0
- oci/fleet_apps_management/models/inventory_resource_collection.py +72 -0
- oci/fleet_apps_management/models/inventory_resource_summary.py +425 -0
- oci/fleet_apps_management/models/job_activity.py +310 -0
- oci/fleet_apps_management/models/key_encryption_credential_details.py +175 -0
- oci/fleet_apps_management/models/maintenance_window.py +688 -0
- oci/fleet_apps_management/models/maintenance_window_collection.py +72 -0
- oci/fleet_apps_management/models/maintenance_window_summary.py +656 -0
- oci/fleet_apps_management/models/model_property.py +641 -0
- oci/fleet_apps_management/models/notification_preferences.py +130 -0
- oci/fleet_apps_management/models/object_storage_bucket_content_details.py +176 -0
- oci/fleet_apps_management/models/onboarding.py +393 -0
- oci/fleet_apps_management/models/onboarding_collection.py +72 -0
- oci/fleet_apps_management/models/onboarding_policy_collection.py +72 -0
- oci/fleet_apps_management/models/onboarding_policy_summary.py +198 -0
- oci/fleet_apps_management/models/onboarding_summary.py +353 -0
- oci/fleet_apps_management/models/operation_runbook.py +103 -0
- oci/fleet_apps_management/models/outcome.py +134 -0
- oci/fleet_apps_management/models/output_variable_details.py +103 -0
- oci/fleet_apps_management/models/output_variable_input_argument.py +65 -0
- oci/fleet_apps_management/models/output_variable_mapping.py +99 -0
- oci/fleet_apps_management/models/plain_text_credential_details.py +82 -0
- oci/fleet_apps_management/models/preferences.py +134 -0
- oci/fleet_apps_management/models/properties.py +103 -0
- oci/fleet_apps_management/models/property_collection.py +72 -0
- oci/fleet_apps_management/models/property_summary.py +601 -0
- oci/fleet_apps_management/models/request_resource_validation_details.py +103 -0
- oci/fleet_apps_management/models/request_target_discovery_details.py +103 -0
- oci/fleet_apps_management/models/resource_tag_check_details.py +72 -0
- oci/fleet_apps_management/models/resource_tag_enablement_info.py +103 -0
- oci/fleet_apps_management/models/rule.py +165 -0
- oci/fleet_apps_management/models/runbook.py +747 -0
- oci/fleet_apps_management/models/runbook_collection.py +72 -0
- oci/fleet_apps_management/models/runbook_summary.py +664 -0
- oci/fleet_apps_management/models/schedule.py +212 -0
- oci/fleet_apps_management/models/scheduled_fleet_collection.py +72 -0
- oci/fleet_apps_management/models/scheduled_fleet_summary.py +313 -0
- oci/fleet_apps_management/models/scheduler_definition.py +847 -0
- oci/fleet_apps_management/models/scheduler_definition_collection.py +72 -0
- oci/fleet_apps_management/models/scheduler_definition_summary.py +718 -0
- oci/fleet_apps_management/models/scheduler_job.py +767 -0
- oci/fleet_apps_management/models/scheduler_job_collection.py +72 -0
- oci/fleet_apps_management/models/scheduler_job_summary.py +685 -0
- oci/fleet_apps_management/models/script_based_execution_details.py +136 -0
- oci/fleet_apps_management/models/selection_criteria.py +119 -0
- oci/fleet_apps_management/models/string_input_argument.py +65 -0
- oci/fleet_apps_management/models/target_credential_entity_specific_details.py +113 -0
- oci/fleet_apps_management/models/target_resource.py +109 -0
- oci/fleet_apps_management/models/task.py +200 -0
- oci/fleet_apps_management/models/task_argument.py +103 -0
- oci/fleet_apps_management/models/task_record.py +568 -0
- oci/fleet_apps_management/models/task_record_collection.py +72 -0
- oci/fleet_apps_management/models/task_record_summary.py +516 -0
- oci/fleet_apps_management/models/task_variable.py +103 -0
- oci/fleet_apps_management/models/update_fleet_credential_details.py +159 -0
- oci/fleet_apps_management/models/update_fleet_details.py +262 -0
- oci/fleet_apps_management/models/update_fleet_property_details.py +72 -0
- oci/fleet_apps_management/models/update_fleet_resource_details.py +103 -0
- oci/fleet_apps_management/models/update_maintenance_window_details.py +406 -0
- oci/fleet_apps_management/models/update_property_details.py +207 -0
- oci/fleet_apps_management/models/update_scheduler_definition_details.py +297 -0
- oci/fleet_apps_management/models/update_scheduler_job_details.py +138 -0
- oci/fleet_apps_management/models/vault_secret_credential_details.py +117 -0
- oci/fleet_apps_management/models/work_request.py +497 -0
- oci/fleet_apps_management/models/work_request_error.py +136 -0
- oci/fleet_apps_management/models/work_request_error_collection.py +72 -0
- oci/fleet_apps_management/models/work_request_log_entry.py +103 -0
- oci/fleet_apps_management/models/work_request_log_entry_collection.py +72 -0
- oci/fleet_apps_management/models/work_request_resource.py +234 -0
- oci/fleet_apps_management/models/work_request_summary.py +497 -0
- oci/fleet_apps_management/models/work_request_summary_collection.py +72 -0
- oci/fleet_apps_management/models/workflow_component.py +109 -0
- oci/fleet_apps_management/models/workflow_group.py +150 -0
- oci/fleet_apps_management/models/workflow_group_component.py +115 -0
- oci/fleet_apps_management/models/workflow_task_component.py +82 -0
- 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/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +68 -68
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +307 -307
- oci/integration/integration_instance_client.py +138 -17
- oci/integration/integration_instance_client_composite_operations.py +42 -0
- oci/integration/models/__init__.py +2 -0
- oci/integration/models/create_integration_instance_details.py +7 -3
- oci/integration/models/extend_data_retention_details.py +92 -0
- oci/integration/models/integration_instance.py +100 -8
- oci/integration/models/integration_instance_summary.py +100 -8
- oci/integration/models/update_integration_instance_details.py +7 -3
- oci/integration/models/work_request.py +7 -3
- oci/integration/models/work_request_summary.py +7 -3
- oci/jms/java_management_service_client.py +150 -150
- oci/jms_java_downloads/java_download_client.py +50 -50
- 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 +33 -12
- oci/limits/models/limit_definition_summary.py +64 -2
- oci/limits/models/service_summary.py +33 -2
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- 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/__init__.py +4 -0
- oci/mysql/models/create_db_system_details.py +27 -0
- oci/mysql/models/data_storage.py +232 -0
- oci/mysql/models/data_storage_details.py +123 -0
- oci/mysql/models/db_system.py +31 -2
- oci/mysql/models/db_system_snapshot.py +31 -2
- oci/mysql/models/update_db_system_details.py +27 -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/models/backend.py +3 -3
- oci/network_load_balancer/models/backend_details.py +2 -2
- oci/network_load_balancer/models/backend_set.py +7 -3
- oci/network_load_balancer/models/backend_set_details.py +5 -1
- oci/network_load_balancer/models/backend_set_summary.py +5 -7
- oci/network_load_balancer/models/backend_summary.py +3 -3
- oci/network_load_balancer/models/create_backend_details.py +3 -3
- oci/network_load_balancer/models/create_backend_set_details.py +1 -1
- oci/network_load_balancer/models/create_listener_details.py +71 -5
- oci/network_load_balancer/models/create_network_load_balancer_details.py +3 -3
- oci/network_load_balancer/models/health_checker.py +1 -1
- oci/network_load_balancer/models/health_checker_details.py +1 -1
- oci/network_load_balancer/models/listener.py +70 -4
- oci/network_load_balancer/models/listener_details.py +70 -4
- oci/network_load_balancer/models/listener_summary.py +70 -4
- oci/network_load_balancer/models/network_load_balancer.py +5 -5
- oci/network_load_balancer/models/network_load_balancer_summary.py +4 -4
- oci/network_load_balancer/models/update_backend_details.py +4 -4
- oci/network_load_balancer/models/update_backend_set_details.py +1 -1
- oci/network_load_balancer/models/update_listener_details.py +69 -3
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/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 +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +177 -177
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +25 -25
- oci/redis/models/__init__.py +4 -0
- oci/redis/models/change_redis_cluster_compartment_details.py +2 -2
- oci/redis/models/create_redis_cluster_details.py +78 -16
- oci/redis/models/node.py +3 -3
- oci/redis/models/node_collection.py +1 -1
- oci/redis/models/node_summary.py +196 -0
- oci/redis/models/redis_cluster.py +110 -32
- oci/redis/models/redis_cluster_collection.py +4 -4
- oci/redis/models/redis_cluster_summary.py +94 -32
- oci/redis/models/redis_node_collection.py +72 -0
- oci/redis/models/update_redis_cluster_details.py +40 -9
- oci/redis/redis_cluster_client.py +190 -41
- oci/redis/redis_cluster_client_composite_operations.py +4 -4
- oci/regions_definitions.py +6 -3
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/METADATA +3 -2
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/RECORD +539 -369
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/WHEEL +0 -0
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,4532 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230831
|
6
|
+
|
7
|
+
from __future__ import absolute_import
|
8
|
+
|
9
|
+
from oci._vendor import requests # noqa: F401
|
10
|
+
from oci._vendor import six
|
11
|
+
|
12
|
+
from oci import retry, circuit_breaker # noqa: F401
|
13
|
+
from oci.base_client import BaseClient
|
14
|
+
from oci.config import get_config_value_or_default, validate_config
|
15
|
+
from oci.signer import Signer
|
16
|
+
from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
|
17
|
+
from oci.exceptions import InvalidAlloyConfig
|
18
|
+
from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
|
19
|
+
from .models import fleet_apps_management_type_mapping
|
20
|
+
missing = Sentinel("Missing")
|
21
|
+
|
22
|
+
|
23
|
+
class FleetAppsManagementClient(object):
|
24
|
+
"""
|
25
|
+
Fleet Application Management Service API. Use this API to for all FAMS related activities.
|
26
|
+
To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities
|
27
|
+
"""
|
28
|
+
|
29
|
+
def __init__(self, config, **kwargs):
|
30
|
+
"""
|
31
|
+
Creates a new service client
|
32
|
+
|
33
|
+
:param dict config:
|
34
|
+
Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
|
35
|
+
The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
|
36
|
+
the dict using :py:meth:`~oci.config.validate_config`
|
37
|
+
|
38
|
+
:param str service_endpoint: (optional)
|
39
|
+
The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
|
40
|
+
not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
|
41
|
+
need to specify a service endpoint.
|
42
|
+
|
43
|
+
:param timeout: (optional)
|
44
|
+
The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
|
45
|
+
as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
|
46
|
+
a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
|
47
|
+
:type timeout: float or tuple(float, float)
|
48
|
+
|
49
|
+
:param signer: (optional)
|
50
|
+
The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
|
51
|
+
provided in the config parameter.
|
52
|
+
|
53
|
+
One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
|
54
|
+
by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
|
55
|
+
:type signer: :py:class:`~oci.signer.AbstractBaseSigner`
|
56
|
+
|
57
|
+
:param obj retry_strategy: (optional)
|
58
|
+
A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
|
59
|
+
Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
|
60
|
+
Any value provided at the operation level will override whatever is specified at the client level.
|
61
|
+
|
62
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
|
63
|
+
is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
64
|
+
|
65
|
+
:param obj circuit_breaker_strategy: (optional)
|
66
|
+
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
|
67
|
+
This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
|
68
|
+
The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
|
69
|
+
|
70
|
+
:param function circuit_breaker_callback: (optional)
|
71
|
+
Callback function to receive any exceptions triggerred by the circuit breaker.
|
72
|
+
|
73
|
+
:param bool client_level_realm_specific_endpoint_template_enabled: (optional)
|
74
|
+
A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
|
75
|
+
|
76
|
+
:param allow_control_chars: (optional)
|
77
|
+
allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
|
78
|
+
allow control characters to be in the response object.
|
79
|
+
"""
|
80
|
+
if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("fleet_apps_management"):
|
81
|
+
raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
|
82
|
+
|
83
|
+
validate_config(config, signer=kwargs.get('signer'))
|
84
|
+
if 'signer' in kwargs:
|
85
|
+
signer = kwargs['signer']
|
86
|
+
|
87
|
+
elif AUTHENTICATION_TYPE_FIELD_NAME in config:
|
88
|
+
signer = get_signer_from_authentication_type(config)
|
89
|
+
|
90
|
+
else:
|
91
|
+
signer = Signer(
|
92
|
+
tenancy=config["tenancy"],
|
93
|
+
user=config["user"],
|
94
|
+
fingerprint=config["fingerprint"],
|
95
|
+
private_key_file_location=config.get("key_file"),
|
96
|
+
pass_phrase=get_config_value_or_default(config, "pass_phrase"),
|
97
|
+
private_key_content=config.get("key_content")
|
98
|
+
)
|
99
|
+
|
100
|
+
base_client_init_kwargs = {
|
101
|
+
'regional_client': True,
|
102
|
+
'service_endpoint': kwargs.get('service_endpoint'),
|
103
|
+
'base_path': '/20230831',
|
104
|
+
'service_endpoint_template': 'https://fams.{region}.oci.{secondLevelDomain}',
|
105
|
+
'service_endpoint_template_per_realm': { }, # noqa: E201 E202
|
106
|
+
'skip_deserialization': kwargs.get('skip_deserialization', False),
|
107
|
+
'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
|
108
|
+
'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
|
109
|
+
}
|
110
|
+
if 'timeout' in kwargs:
|
111
|
+
base_client_init_kwargs['timeout'] = kwargs.get('timeout')
|
112
|
+
if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
|
113
|
+
base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
|
114
|
+
if 'allow_control_chars' in kwargs:
|
115
|
+
base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
|
116
|
+
self.base_client = BaseClient("fleet_apps_management", config, signer, fleet_apps_management_type_mapping, **base_client_init_kwargs)
|
117
|
+
self.retry_strategy = kwargs.get('retry_strategy')
|
118
|
+
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
119
|
+
|
120
|
+
def check_resource_tagging(self, check_resource_tagging_details, **kwargs):
|
121
|
+
"""
|
122
|
+
Check if FAMS tags can be added for the resources
|
123
|
+
|
124
|
+
|
125
|
+
:param oci.fleet_apps_management.models.CheckResourceTaggingDetails check_resource_tagging_details: (required)
|
126
|
+
Details for Checking if FAMS tags can be added for the resources
|
127
|
+
|
128
|
+
:param str opc_retry_token: (optional)
|
129
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
130
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
131
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
132
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
133
|
+
might be rejected.
|
134
|
+
|
135
|
+
:param str opc_request_id: (optional)
|
136
|
+
The client request ID for tracing.
|
137
|
+
|
138
|
+
:param obj retry_strategy: (optional)
|
139
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
140
|
+
|
141
|
+
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.
|
142
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
143
|
+
|
144
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
145
|
+
|
146
|
+
:param bool allow_control_chars: (optional)
|
147
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
148
|
+
By default, the response will not allow control characters in strings
|
149
|
+
|
150
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ResourceTagCheckDetails`
|
151
|
+
:rtype: :class:`~oci.response.Response`
|
152
|
+
|
153
|
+
:example:
|
154
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/check_resource_tagging.py.html>`__ to see an example of how to use check_resource_tagging API.
|
155
|
+
"""
|
156
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
157
|
+
required_arguments = []
|
158
|
+
resource_path = "/fleets/actions/checkResourceTagging"
|
159
|
+
method = "POST"
|
160
|
+
operation_name = "check_resource_tagging"
|
161
|
+
api_reference_link = ""
|
162
|
+
|
163
|
+
# Don't accept unknown kwargs
|
164
|
+
expected_kwargs = [
|
165
|
+
"allow_control_chars",
|
166
|
+
"retry_strategy",
|
167
|
+
"opc_retry_token",
|
168
|
+
"opc_request_id"
|
169
|
+
]
|
170
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
171
|
+
if extra_kwargs:
|
172
|
+
raise ValueError(
|
173
|
+
f"check_resource_tagging got unknown kwargs: {extra_kwargs!r}")
|
174
|
+
|
175
|
+
header_params = {
|
176
|
+
"accept": "application/json",
|
177
|
+
"content-type": "application/json",
|
178
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
179
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
180
|
+
}
|
181
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
182
|
+
|
183
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
184
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
185
|
+
client_retry_strategy=self.retry_strategy
|
186
|
+
)
|
187
|
+
if retry_strategy is None:
|
188
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
189
|
+
|
190
|
+
if retry_strategy:
|
191
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
192
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
193
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
194
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
195
|
+
return retry_strategy.make_retrying_call(
|
196
|
+
self.base_client.call_api,
|
197
|
+
resource_path=resource_path,
|
198
|
+
method=method,
|
199
|
+
header_params=header_params,
|
200
|
+
body=check_resource_tagging_details,
|
201
|
+
response_type="ResourceTagCheckDetails",
|
202
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
203
|
+
operation_name=operation_name,
|
204
|
+
api_reference_link=api_reference_link,
|
205
|
+
required_arguments=required_arguments)
|
206
|
+
else:
|
207
|
+
return self.base_client.call_api(
|
208
|
+
resource_path=resource_path,
|
209
|
+
method=method,
|
210
|
+
header_params=header_params,
|
211
|
+
body=check_resource_tagging_details,
|
212
|
+
response_type="ResourceTagCheckDetails",
|
213
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
214
|
+
operation_name=operation_name,
|
215
|
+
api_reference_link=api_reference_link,
|
216
|
+
required_arguments=required_arguments)
|
217
|
+
|
218
|
+
def confirm_targets(self, confirm_targets_details, fleet_id, **kwargs):
|
219
|
+
"""
|
220
|
+
Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS
|
221
|
+
|
222
|
+
|
223
|
+
:param oci.fleet_apps_management.models.ConfirmTargetsDetails confirm_targets_details: (required)
|
224
|
+
Details for confirming Targets.
|
225
|
+
|
226
|
+
:param str fleet_id: (required)
|
227
|
+
unique Fleet identifier
|
228
|
+
|
229
|
+
:param str opc_retry_token: (optional)
|
230
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
231
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
232
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
233
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
234
|
+
might be rejected.
|
235
|
+
|
236
|
+
:param str opc_request_id: (optional)
|
237
|
+
The client request ID for tracing.
|
238
|
+
|
239
|
+
:param obj retry_strategy: (optional)
|
240
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
241
|
+
|
242
|
+
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.
|
243
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
244
|
+
|
245
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
246
|
+
|
247
|
+
:param bool allow_control_chars: (optional)
|
248
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
249
|
+
By default, the response will not allow control characters in strings
|
250
|
+
|
251
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
252
|
+
:rtype: :class:`~oci.response.Response`
|
253
|
+
|
254
|
+
:example:
|
255
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/confirm_targets.py.html>`__ to see an example of how to use confirm_targets API.
|
256
|
+
"""
|
257
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
258
|
+
required_arguments = ['fleetId']
|
259
|
+
resource_path = "/fleets/{fleetId}/actions/confirmTargets"
|
260
|
+
method = "POST"
|
261
|
+
operation_name = "confirm_targets"
|
262
|
+
api_reference_link = ""
|
263
|
+
|
264
|
+
# Don't accept unknown kwargs
|
265
|
+
expected_kwargs = [
|
266
|
+
"allow_control_chars",
|
267
|
+
"retry_strategy",
|
268
|
+
"opc_retry_token",
|
269
|
+
"opc_request_id"
|
270
|
+
]
|
271
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
272
|
+
if extra_kwargs:
|
273
|
+
raise ValueError(
|
274
|
+
f"confirm_targets got unknown kwargs: {extra_kwargs!r}")
|
275
|
+
|
276
|
+
path_params = {
|
277
|
+
"fleetId": fleet_id
|
278
|
+
}
|
279
|
+
|
280
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
281
|
+
|
282
|
+
for (k, v) in six.iteritems(path_params):
|
283
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
284
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
285
|
+
|
286
|
+
header_params = {
|
287
|
+
"accept": "application/json",
|
288
|
+
"content-type": "application/json",
|
289
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
290
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
291
|
+
}
|
292
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
293
|
+
|
294
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
295
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
296
|
+
client_retry_strategy=self.retry_strategy
|
297
|
+
)
|
298
|
+
if retry_strategy is None:
|
299
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
300
|
+
|
301
|
+
if retry_strategy:
|
302
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
303
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
304
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
305
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
306
|
+
return retry_strategy.make_retrying_call(
|
307
|
+
self.base_client.call_api,
|
308
|
+
resource_path=resource_path,
|
309
|
+
method=method,
|
310
|
+
path_params=path_params,
|
311
|
+
header_params=header_params,
|
312
|
+
body=confirm_targets_details,
|
313
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
314
|
+
operation_name=operation_name,
|
315
|
+
api_reference_link=api_reference_link,
|
316
|
+
required_arguments=required_arguments)
|
317
|
+
else:
|
318
|
+
return self.base_client.call_api(
|
319
|
+
resource_path=resource_path,
|
320
|
+
method=method,
|
321
|
+
path_params=path_params,
|
322
|
+
header_params=header_params,
|
323
|
+
body=confirm_targets_details,
|
324
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
325
|
+
operation_name=operation_name,
|
326
|
+
api_reference_link=api_reference_link,
|
327
|
+
required_arguments=required_arguments)
|
328
|
+
|
329
|
+
def create_fleet(self, create_fleet_details, **kwargs):
|
330
|
+
"""
|
331
|
+
Creates a new fleet instance that includes fleet resources and properties.
|
332
|
+
For more information, please see the documentation.
|
333
|
+
|
334
|
+
|
335
|
+
:param oci.fleet_apps_management.models.CreateFleetDetails create_fleet_details: (required)
|
336
|
+
Details for the new Fleet.
|
337
|
+
|
338
|
+
:param str opc_retry_token: (optional)
|
339
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
340
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
341
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
342
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
343
|
+
might be rejected.
|
344
|
+
|
345
|
+
:param str opc_request_id: (optional)
|
346
|
+
The client request ID for tracing.
|
347
|
+
|
348
|
+
:param obj retry_strategy: (optional)
|
349
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
350
|
+
|
351
|
+
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.
|
352
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
353
|
+
|
354
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
355
|
+
|
356
|
+
:param bool allow_control_chars: (optional)
|
357
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
358
|
+
By default, the response will not allow control characters in strings
|
359
|
+
|
360
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Fleet`
|
361
|
+
:rtype: :class:`~oci.response.Response`
|
362
|
+
|
363
|
+
:example:
|
364
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/create_fleet.py.html>`__ to see an example of how to use create_fleet API.
|
365
|
+
"""
|
366
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
367
|
+
required_arguments = []
|
368
|
+
resource_path = "/fleets"
|
369
|
+
method = "POST"
|
370
|
+
operation_name = "create_fleet"
|
371
|
+
api_reference_link = ""
|
372
|
+
|
373
|
+
# Don't accept unknown kwargs
|
374
|
+
expected_kwargs = [
|
375
|
+
"allow_control_chars",
|
376
|
+
"retry_strategy",
|
377
|
+
"opc_retry_token",
|
378
|
+
"opc_request_id"
|
379
|
+
]
|
380
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
381
|
+
if extra_kwargs:
|
382
|
+
raise ValueError(
|
383
|
+
f"create_fleet got unknown kwargs: {extra_kwargs!r}")
|
384
|
+
|
385
|
+
header_params = {
|
386
|
+
"accept": "application/json",
|
387
|
+
"content-type": "application/json",
|
388
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
389
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
390
|
+
}
|
391
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
392
|
+
|
393
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
394
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
395
|
+
client_retry_strategy=self.retry_strategy
|
396
|
+
)
|
397
|
+
if retry_strategy is None:
|
398
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
399
|
+
|
400
|
+
if retry_strategy:
|
401
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
402
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
403
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
404
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
405
|
+
return retry_strategy.make_retrying_call(
|
406
|
+
self.base_client.call_api,
|
407
|
+
resource_path=resource_path,
|
408
|
+
method=method,
|
409
|
+
header_params=header_params,
|
410
|
+
body=create_fleet_details,
|
411
|
+
response_type="Fleet",
|
412
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
413
|
+
operation_name=operation_name,
|
414
|
+
api_reference_link=api_reference_link,
|
415
|
+
required_arguments=required_arguments)
|
416
|
+
else:
|
417
|
+
return self.base_client.call_api(
|
418
|
+
resource_path=resource_path,
|
419
|
+
method=method,
|
420
|
+
header_params=header_params,
|
421
|
+
body=create_fleet_details,
|
422
|
+
response_type="Fleet",
|
423
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
424
|
+
operation_name=operation_name,
|
425
|
+
api_reference_link=api_reference_link,
|
426
|
+
required_arguments=required_arguments)
|
427
|
+
|
428
|
+
def create_fleet_credential(self, create_fleet_credential_details, fleet_id, **kwargs):
|
429
|
+
"""
|
430
|
+
Creates a new FleetCredential.
|
431
|
+
|
432
|
+
|
433
|
+
:param oci.fleet_apps_management.models.CreateFleetCredentialDetails create_fleet_credential_details: (required)
|
434
|
+
Details for the new FleetCredential.
|
435
|
+
|
436
|
+
:param str fleet_id: (required)
|
437
|
+
unique Fleet identifier
|
438
|
+
|
439
|
+
:param str opc_retry_token: (optional)
|
440
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
441
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
442
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
443
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
444
|
+
might be rejected.
|
445
|
+
|
446
|
+
:param str opc_request_id: (optional)
|
447
|
+
The client request ID for tracing.
|
448
|
+
|
449
|
+
:param obj retry_strategy: (optional)
|
450
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
451
|
+
|
452
|
+
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.
|
453
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
454
|
+
|
455
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
456
|
+
|
457
|
+
:param bool allow_control_chars: (optional)
|
458
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
459
|
+
By default, the response will not allow control characters in strings
|
460
|
+
|
461
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetCredential`
|
462
|
+
:rtype: :class:`~oci.response.Response`
|
463
|
+
|
464
|
+
:example:
|
465
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/create_fleet_credential.py.html>`__ to see an example of how to use create_fleet_credential API.
|
466
|
+
"""
|
467
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
468
|
+
required_arguments = ['fleetId']
|
469
|
+
resource_path = "/fleets/{fleetId}/fleetCredentials"
|
470
|
+
method = "POST"
|
471
|
+
operation_name = "create_fleet_credential"
|
472
|
+
api_reference_link = ""
|
473
|
+
|
474
|
+
# Don't accept unknown kwargs
|
475
|
+
expected_kwargs = [
|
476
|
+
"allow_control_chars",
|
477
|
+
"retry_strategy",
|
478
|
+
"opc_retry_token",
|
479
|
+
"opc_request_id"
|
480
|
+
]
|
481
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
482
|
+
if extra_kwargs:
|
483
|
+
raise ValueError(
|
484
|
+
f"create_fleet_credential got unknown kwargs: {extra_kwargs!r}")
|
485
|
+
|
486
|
+
path_params = {
|
487
|
+
"fleetId": fleet_id
|
488
|
+
}
|
489
|
+
|
490
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
491
|
+
|
492
|
+
for (k, v) in six.iteritems(path_params):
|
493
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
494
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
495
|
+
|
496
|
+
header_params = {
|
497
|
+
"accept": "application/json",
|
498
|
+
"content-type": "application/json",
|
499
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
500
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
501
|
+
}
|
502
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
503
|
+
|
504
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
505
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
506
|
+
client_retry_strategy=self.retry_strategy
|
507
|
+
)
|
508
|
+
if retry_strategy is None:
|
509
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
510
|
+
|
511
|
+
if retry_strategy:
|
512
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
513
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
514
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
515
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
516
|
+
return retry_strategy.make_retrying_call(
|
517
|
+
self.base_client.call_api,
|
518
|
+
resource_path=resource_path,
|
519
|
+
method=method,
|
520
|
+
path_params=path_params,
|
521
|
+
header_params=header_params,
|
522
|
+
body=create_fleet_credential_details,
|
523
|
+
response_type="FleetCredential",
|
524
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
525
|
+
operation_name=operation_name,
|
526
|
+
api_reference_link=api_reference_link,
|
527
|
+
required_arguments=required_arguments)
|
528
|
+
else:
|
529
|
+
return self.base_client.call_api(
|
530
|
+
resource_path=resource_path,
|
531
|
+
method=method,
|
532
|
+
path_params=path_params,
|
533
|
+
header_params=header_params,
|
534
|
+
body=create_fleet_credential_details,
|
535
|
+
response_type="FleetCredential",
|
536
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
537
|
+
operation_name=operation_name,
|
538
|
+
api_reference_link=api_reference_link,
|
539
|
+
required_arguments=required_arguments)
|
540
|
+
|
541
|
+
def create_fleet_property(self, create_fleet_property_details, fleet_id, **kwargs):
|
542
|
+
"""
|
543
|
+
Creates a new FleetProperty.
|
544
|
+
|
545
|
+
|
546
|
+
:param oci.fleet_apps_management.models.CreateFleetPropertyDetails create_fleet_property_details: (required)
|
547
|
+
Details for the new FleetProperty.
|
548
|
+
|
549
|
+
:param str fleet_id: (required)
|
550
|
+
unique Fleet identifier
|
551
|
+
|
552
|
+
:param str opc_retry_token: (optional)
|
553
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
554
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
555
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
556
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
557
|
+
might be rejected.
|
558
|
+
|
559
|
+
:param str opc_request_id: (optional)
|
560
|
+
The client request ID for tracing.
|
561
|
+
|
562
|
+
:param obj retry_strategy: (optional)
|
563
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
564
|
+
|
565
|
+
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.
|
566
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
567
|
+
|
568
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
569
|
+
|
570
|
+
:param bool allow_control_chars: (optional)
|
571
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
572
|
+
By default, the response will not allow control characters in strings
|
573
|
+
|
574
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetProperty`
|
575
|
+
:rtype: :class:`~oci.response.Response`
|
576
|
+
|
577
|
+
:example:
|
578
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/create_fleet_property.py.html>`__ to see an example of how to use create_fleet_property API.
|
579
|
+
"""
|
580
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
581
|
+
required_arguments = ['fleetId']
|
582
|
+
resource_path = "/fleets/{fleetId}/fleetProperties"
|
583
|
+
method = "POST"
|
584
|
+
operation_name = "create_fleet_property"
|
585
|
+
api_reference_link = ""
|
586
|
+
|
587
|
+
# Don't accept unknown kwargs
|
588
|
+
expected_kwargs = [
|
589
|
+
"allow_control_chars",
|
590
|
+
"retry_strategy",
|
591
|
+
"opc_retry_token",
|
592
|
+
"opc_request_id"
|
593
|
+
]
|
594
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
595
|
+
if extra_kwargs:
|
596
|
+
raise ValueError(
|
597
|
+
f"create_fleet_property got unknown kwargs: {extra_kwargs!r}")
|
598
|
+
|
599
|
+
path_params = {
|
600
|
+
"fleetId": fleet_id
|
601
|
+
}
|
602
|
+
|
603
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
604
|
+
|
605
|
+
for (k, v) in six.iteritems(path_params):
|
606
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
607
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
608
|
+
|
609
|
+
header_params = {
|
610
|
+
"accept": "application/json",
|
611
|
+
"content-type": "application/json",
|
612
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
613
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
614
|
+
}
|
615
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
616
|
+
|
617
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
618
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
619
|
+
client_retry_strategy=self.retry_strategy
|
620
|
+
)
|
621
|
+
if retry_strategy is None:
|
622
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
623
|
+
|
624
|
+
if retry_strategy:
|
625
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
626
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
627
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
628
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
629
|
+
return retry_strategy.make_retrying_call(
|
630
|
+
self.base_client.call_api,
|
631
|
+
resource_path=resource_path,
|
632
|
+
method=method,
|
633
|
+
path_params=path_params,
|
634
|
+
header_params=header_params,
|
635
|
+
body=create_fleet_property_details,
|
636
|
+
response_type="FleetProperty",
|
637
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
638
|
+
operation_name=operation_name,
|
639
|
+
api_reference_link=api_reference_link,
|
640
|
+
required_arguments=required_arguments)
|
641
|
+
else:
|
642
|
+
return self.base_client.call_api(
|
643
|
+
resource_path=resource_path,
|
644
|
+
method=method,
|
645
|
+
path_params=path_params,
|
646
|
+
header_params=header_params,
|
647
|
+
body=create_fleet_property_details,
|
648
|
+
response_type="FleetProperty",
|
649
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
650
|
+
operation_name=operation_name,
|
651
|
+
api_reference_link=api_reference_link,
|
652
|
+
required_arguments=required_arguments)
|
653
|
+
|
654
|
+
def create_fleet_resource(self, create_fleet_resource_details, fleet_id, **kwargs):
|
655
|
+
"""
|
656
|
+
Creates a new FleetResource.
|
657
|
+
|
658
|
+
|
659
|
+
:param oci.fleet_apps_management.models.CreateFleetResourceDetails create_fleet_resource_details: (required)
|
660
|
+
Details for the new FleetResource.
|
661
|
+
|
662
|
+
:param str fleet_id: (required)
|
663
|
+
unique Fleet identifier
|
664
|
+
|
665
|
+
:param str opc_retry_token: (optional)
|
666
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
667
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
668
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
669
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
670
|
+
might be rejected.
|
671
|
+
|
672
|
+
:param str opc_request_id: (optional)
|
673
|
+
The client request ID for tracing.
|
674
|
+
|
675
|
+
:param obj retry_strategy: (optional)
|
676
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
677
|
+
|
678
|
+
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.
|
679
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
680
|
+
|
681
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
682
|
+
|
683
|
+
:param bool allow_control_chars: (optional)
|
684
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
685
|
+
By default, the response will not allow control characters in strings
|
686
|
+
|
687
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetResource`
|
688
|
+
:rtype: :class:`~oci.response.Response`
|
689
|
+
|
690
|
+
:example:
|
691
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/create_fleet_resource.py.html>`__ to see an example of how to use create_fleet_resource API.
|
692
|
+
"""
|
693
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
694
|
+
required_arguments = ['fleetId']
|
695
|
+
resource_path = "/fleets/{fleetId}/fleetResources"
|
696
|
+
method = "POST"
|
697
|
+
operation_name = "create_fleet_resource"
|
698
|
+
api_reference_link = ""
|
699
|
+
|
700
|
+
# Don't accept unknown kwargs
|
701
|
+
expected_kwargs = [
|
702
|
+
"allow_control_chars",
|
703
|
+
"retry_strategy",
|
704
|
+
"opc_retry_token",
|
705
|
+
"opc_request_id"
|
706
|
+
]
|
707
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
708
|
+
if extra_kwargs:
|
709
|
+
raise ValueError(
|
710
|
+
f"create_fleet_resource got unknown kwargs: {extra_kwargs!r}")
|
711
|
+
|
712
|
+
path_params = {
|
713
|
+
"fleetId": fleet_id
|
714
|
+
}
|
715
|
+
|
716
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
717
|
+
|
718
|
+
for (k, v) in six.iteritems(path_params):
|
719
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
720
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
721
|
+
|
722
|
+
header_params = {
|
723
|
+
"accept": "application/json",
|
724
|
+
"content-type": "application/json",
|
725
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
726
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
727
|
+
}
|
728
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
729
|
+
|
730
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
731
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
732
|
+
client_retry_strategy=self.retry_strategy
|
733
|
+
)
|
734
|
+
if retry_strategy is None:
|
735
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
736
|
+
|
737
|
+
if retry_strategy:
|
738
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
739
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
740
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
741
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
742
|
+
return retry_strategy.make_retrying_call(
|
743
|
+
self.base_client.call_api,
|
744
|
+
resource_path=resource_path,
|
745
|
+
method=method,
|
746
|
+
path_params=path_params,
|
747
|
+
header_params=header_params,
|
748
|
+
body=create_fleet_resource_details,
|
749
|
+
response_type="FleetResource",
|
750
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
751
|
+
operation_name=operation_name,
|
752
|
+
api_reference_link=api_reference_link,
|
753
|
+
required_arguments=required_arguments)
|
754
|
+
else:
|
755
|
+
return self.base_client.call_api(
|
756
|
+
resource_path=resource_path,
|
757
|
+
method=method,
|
758
|
+
path_params=path_params,
|
759
|
+
header_params=header_params,
|
760
|
+
body=create_fleet_resource_details,
|
761
|
+
response_type="FleetResource",
|
762
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
763
|
+
operation_name=operation_name,
|
764
|
+
api_reference_link=api_reference_link,
|
765
|
+
required_arguments=required_arguments)
|
766
|
+
|
767
|
+
def delete_fleet(self, fleet_id, **kwargs):
|
768
|
+
"""
|
769
|
+
Deletes a Fleet resource by identifier
|
770
|
+
|
771
|
+
|
772
|
+
:param str fleet_id: (required)
|
773
|
+
unique Fleet identifier
|
774
|
+
|
775
|
+
:param str if_match: (optional)
|
776
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
777
|
+
for a resource, set the `if-match` parameter to the value of the
|
778
|
+
etag from a previous GET or POST response for that resource.
|
779
|
+
The resource will be updated or deleted only if the etag you
|
780
|
+
provide matches the resource's current etag value.
|
781
|
+
|
782
|
+
:param str opc_request_id: (optional)
|
783
|
+
The client request ID for tracing.
|
784
|
+
|
785
|
+
:param obj retry_strategy: (optional)
|
786
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
787
|
+
|
788
|
+
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.
|
789
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
790
|
+
|
791
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
792
|
+
|
793
|
+
:param bool allow_control_chars: (optional)
|
794
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
795
|
+
By default, the response will not allow control characters in strings
|
796
|
+
|
797
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
798
|
+
:rtype: :class:`~oci.response.Response`
|
799
|
+
|
800
|
+
:example:
|
801
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/delete_fleet.py.html>`__ to see an example of how to use delete_fleet API.
|
802
|
+
"""
|
803
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
804
|
+
required_arguments = ['fleetId']
|
805
|
+
resource_path = "/fleets/{fleetId}"
|
806
|
+
method = "DELETE"
|
807
|
+
operation_name = "delete_fleet"
|
808
|
+
api_reference_link = ""
|
809
|
+
|
810
|
+
# Don't accept unknown kwargs
|
811
|
+
expected_kwargs = [
|
812
|
+
"allow_control_chars",
|
813
|
+
"retry_strategy",
|
814
|
+
"if_match",
|
815
|
+
"opc_request_id"
|
816
|
+
]
|
817
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
818
|
+
if extra_kwargs:
|
819
|
+
raise ValueError(
|
820
|
+
f"delete_fleet got unknown kwargs: {extra_kwargs!r}")
|
821
|
+
|
822
|
+
path_params = {
|
823
|
+
"fleetId": fleet_id
|
824
|
+
}
|
825
|
+
|
826
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
827
|
+
|
828
|
+
for (k, v) in six.iteritems(path_params):
|
829
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
830
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
831
|
+
|
832
|
+
header_params = {
|
833
|
+
"accept": "application/json",
|
834
|
+
"content-type": "application/json",
|
835
|
+
"if-match": kwargs.get("if_match", missing),
|
836
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
837
|
+
}
|
838
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
839
|
+
|
840
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
841
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
842
|
+
client_retry_strategy=self.retry_strategy
|
843
|
+
)
|
844
|
+
if retry_strategy is None:
|
845
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
846
|
+
|
847
|
+
if retry_strategy:
|
848
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
849
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
850
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
851
|
+
return retry_strategy.make_retrying_call(
|
852
|
+
self.base_client.call_api,
|
853
|
+
resource_path=resource_path,
|
854
|
+
method=method,
|
855
|
+
path_params=path_params,
|
856
|
+
header_params=header_params,
|
857
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
858
|
+
operation_name=operation_name,
|
859
|
+
api_reference_link=api_reference_link,
|
860
|
+
required_arguments=required_arguments)
|
861
|
+
else:
|
862
|
+
return self.base_client.call_api(
|
863
|
+
resource_path=resource_path,
|
864
|
+
method=method,
|
865
|
+
path_params=path_params,
|
866
|
+
header_params=header_params,
|
867
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
868
|
+
operation_name=operation_name,
|
869
|
+
api_reference_link=api_reference_link,
|
870
|
+
required_arguments=required_arguments)
|
871
|
+
|
872
|
+
def delete_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs):
|
873
|
+
"""
|
874
|
+
Deletes a FleetCredential resource by identifier
|
875
|
+
|
876
|
+
|
877
|
+
:param str fleet_credential_id: (required)
|
878
|
+
unique FleetCredential identifier
|
879
|
+
|
880
|
+
:param str fleet_id: (required)
|
881
|
+
unique Fleet identifier
|
882
|
+
|
883
|
+
:param str if_match: (optional)
|
884
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
885
|
+
for a resource, set the `if-match` parameter to the value of the
|
886
|
+
etag from a previous GET or POST response for that resource.
|
887
|
+
The resource will be updated or deleted only if the etag you
|
888
|
+
provide matches the resource's current etag value.
|
889
|
+
|
890
|
+
:param str opc_request_id: (optional)
|
891
|
+
The client request ID for tracing.
|
892
|
+
|
893
|
+
:param obj retry_strategy: (optional)
|
894
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
895
|
+
|
896
|
+
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.
|
897
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
898
|
+
|
899
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
900
|
+
|
901
|
+
:param bool allow_control_chars: (optional)
|
902
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
903
|
+
By default, the response will not allow control characters in strings
|
904
|
+
|
905
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
906
|
+
:rtype: :class:`~oci.response.Response`
|
907
|
+
|
908
|
+
:example:
|
909
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/delete_fleet_credential.py.html>`__ to see an example of how to use delete_fleet_credential API.
|
910
|
+
"""
|
911
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
912
|
+
required_arguments = ['fleetCredentialId', 'fleetId']
|
913
|
+
resource_path = "/fleets/{fleetId}/fleetCredentials/{fleetCredentialId}"
|
914
|
+
method = "DELETE"
|
915
|
+
operation_name = "delete_fleet_credential"
|
916
|
+
api_reference_link = ""
|
917
|
+
|
918
|
+
# Don't accept unknown kwargs
|
919
|
+
expected_kwargs = [
|
920
|
+
"allow_control_chars",
|
921
|
+
"retry_strategy",
|
922
|
+
"if_match",
|
923
|
+
"opc_request_id"
|
924
|
+
]
|
925
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
926
|
+
if extra_kwargs:
|
927
|
+
raise ValueError(
|
928
|
+
f"delete_fleet_credential got unknown kwargs: {extra_kwargs!r}")
|
929
|
+
|
930
|
+
path_params = {
|
931
|
+
"fleetCredentialId": fleet_credential_id,
|
932
|
+
"fleetId": fleet_id
|
933
|
+
}
|
934
|
+
|
935
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
936
|
+
|
937
|
+
for (k, v) in six.iteritems(path_params):
|
938
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
939
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
940
|
+
|
941
|
+
header_params = {
|
942
|
+
"accept": "application/json",
|
943
|
+
"content-type": "application/json",
|
944
|
+
"if-match": kwargs.get("if_match", missing),
|
945
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
946
|
+
}
|
947
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
948
|
+
|
949
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
950
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
951
|
+
client_retry_strategy=self.retry_strategy
|
952
|
+
)
|
953
|
+
if retry_strategy is None:
|
954
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
955
|
+
|
956
|
+
if retry_strategy:
|
957
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
958
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
959
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
960
|
+
return retry_strategy.make_retrying_call(
|
961
|
+
self.base_client.call_api,
|
962
|
+
resource_path=resource_path,
|
963
|
+
method=method,
|
964
|
+
path_params=path_params,
|
965
|
+
header_params=header_params,
|
966
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
967
|
+
operation_name=operation_name,
|
968
|
+
api_reference_link=api_reference_link,
|
969
|
+
required_arguments=required_arguments)
|
970
|
+
else:
|
971
|
+
return self.base_client.call_api(
|
972
|
+
resource_path=resource_path,
|
973
|
+
method=method,
|
974
|
+
path_params=path_params,
|
975
|
+
header_params=header_params,
|
976
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
977
|
+
operation_name=operation_name,
|
978
|
+
api_reference_link=api_reference_link,
|
979
|
+
required_arguments=required_arguments)
|
980
|
+
|
981
|
+
def delete_fleet_property(self, fleet_property_id, fleet_id, **kwargs):
|
982
|
+
"""
|
983
|
+
Deletes a FleetProperty resource by identifier
|
984
|
+
|
985
|
+
|
986
|
+
:param str fleet_property_id: (required)
|
987
|
+
unique FleetProperty identifier
|
988
|
+
|
989
|
+
:param str fleet_id: (required)
|
990
|
+
unique Fleet identifier
|
991
|
+
|
992
|
+
:param str if_match: (optional)
|
993
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
994
|
+
for a resource, set the `if-match` parameter to the value of the
|
995
|
+
etag from a previous GET or POST response for that resource.
|
996
|
+
The resource will be updated or deleted only if the etag you
|
997
|
+
provide matches the resource's current etag value.
|
998
|
+
|
999
|
+
:param str opc_request_id: (optional)
|
1000
|
+
The client request ID for tracing.
|
1001
|
+
|
1002
|
+
:param obj retry_strategy: (optional)
|
1003
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1004
|
+
|
1005
|
+
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.
|
1006
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1007
|
+
|
1008
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1009
|
+
|
1010
|
+
:param bool allow_control_chars: (optional)
|
1011
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1012
|
+
By default, the response will not allow control characters in strings
|
1013
|
+
|
1014
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1015
|
+
:rtype: :class:`~oci.response.Response`
|
1016
|
+
|
1017
|
+
:example:
|
1018
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/delete_fleet_property.py.html>`__ to see an example of how to use delete_fleet_property API.
|
1019
|
+
"""
|
1020
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1021
|
+
required_arguments = ['fleetPropertyId', 'fleetId']
|
1022
|
+
resource_path = "/fleets/{fleetId}/fleetProperties/{fleetPropertyId}"
|
1023
|
+
method = "DELETE"
|
1024
|
+
operation_name = "delete_fleet_property"
|
1025
|
+
api_reference_link = ""
|
1026
|
+
|
1027
|
+
# Don't accept unknown kwargs
|
1028
|
+
expected_kwargs = [
|
1029
|
+
"allow_control_chars",
|
1030
|
+
"retry_strategy",
|
1031
|
+
"if_match",
|
1032
|
+
"opc_request_id"
|
1033
|
+
]
|
1034
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1035
|
+
if extra_kwargs:
|
1036
|
+
raise ValueError(
|
1037
|
+
f"delete_fleet_property got unknown kwargs: {extra_kwargs!r}")
|
1038
|
+
|
1039
|
+
path_params = {
|
1040
|
+
"fleetPropertyId": fleet_property_id,
|
1041
|
+
"fleetId": fleet_id
|
1042
|
+
}
|
1043
|
+
|
1044
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1045
|
+
|
1046
|
+
for (k, v) in six.iteritems(path_params):
|
1047
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1048
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1049
|
+
|
1050
|
+
header_params = {
|
1051
|
+
"accept": "application/json",
|
1052
|
+
"content-type": "application/json",
|
1053
|
+
"if-match": kwargs.get("if_match", missing),
|
1054
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1055
|
+
}
|
1056
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1057
|
+
|
1058
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1059
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1060
|
+
client_retry_strategy=self.retry_strategy
|
1061
|
+
)
|
1062
|
+
if retry_strategy is None:
|
1063
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1064
|
+
|
1065
|
+
if retry_strategy:
|
1066
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1067
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1068
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1069
|
+
return retry_strategy.make_retrying_call(
|
1070
|
+
self.base_client.call_api,
|
1071
|
+
resource_path=resource_path,
|
1072
|
+
method=method,
|
1073
|
+
path_params=path_params,
|
1074
|
+
header_params=header_params,
|
1075
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1076
|
+
operation_name=operation_name,
|
1077
|
+
api_reference_link=api_reference_link,
|
1078
|
+
required_arguments=required_arguments)
|
1079
|
+
else:
|
1080
|
+
return self.base_client.call_api(
|
1081
|
+
resource_path=resource_path,
|
1082
|
+
method=method,
|
1083
|
+
path_params=path_params,
|
1084
|
+
header_params=header_params,
|
1085
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1086
|
+
operation_name=operation_name,
|
1087
|
+
api_reference_link=api_reference_link,
|
1088
|
+
required_arguments=required_arguments)
|
1089
|
+
|
1090
|
+
def delete_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs):
|
1091
|
+
"""
|
1092
|
+
Deletes a FleetResource resource by identifier
|
1093
|
+
|
1094
|
+
|
1095
|
+
:param str fleet_resource_id: (required)
|
1096
|
+
unique FleetResource identifier
|
1097
|
+
|
1098
|
+
:param str fleet_id: (required)
|
1099
|
+
unique Fleet identifier
|
1100
|
+
|
1101
|
+
:param str if_match: (optional)
|
1102
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1103
|
+
for a resource, set the `if-match` parameter to the value of the
|
1104
|
+
etag from a previous GET or POST response for that resource.
|
1105
|
+
The resource will be updated or deleted only if the etag you
|
1106
|
+
provide matches the resource's current etag value.
|
1107
|
+
|
1108
|
+
:param str opc_request_id: (optional)
|
1109
|
+
The client request ID for tracing.
|
1110
|
+
|
1111
|
+
:param obj retry_strategy: (optional)
|
1112
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1113
|
+
|
1114
|
+
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.
|
1115
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1116
|
+
|
1117
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1118
|
+
|
1119
|
+
:param bool allow_control_chars: (optional)
|
1120
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1121
|
+
By default, the response will not allow control characters in strings
|
1122
|
+
|
1123
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1124
|
+
:rtype: :class:`~oci.response.Response`
|
1125
|
+
|
1126
|
+
:example:
|
1127
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/delete_fleet_resource.py.html>`__ to see an example of how to use delete_fleet_resource API.
|
1128
|
+
"""
|
1129
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1130
|
+
required_arguments = ['fleetResourceId', 'fleetId']
|
1131
|
+
resource_path = "/fleets/{fleetId}/fleetResources/{fleetResourceId}"
|
1132
|
+
method = "DELETE"
|
1133
|
+
operation_name = "delete_fleet_resource"
|
1134
|
+
api_reference_link = ""
|
1135
|
+
|
1136
|
+
# Don't accept unknown kwargs
|
1137
|
+
expected_kwargs = [
|
1138
|
+
"allow_control_chars",
|
1139
|
+
"retry_strategy",
|
1140
|
+
"if_match",
|
1141
|
+
"opc_request_id"
|
1142
|
+
]
|
1143
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1144
|
+
if extra_kwargs:
|
1145
|
+
raise ValueError(
|
1146
|
+
f"delete_fleet_resource got unknown kwargs: {extra_kwargs!r}")
|
1147
|
+
|
1148
|
+
path_params = {
|
1149
|
+
"fleetResourceId": fleet_resource_id,
|
1150
|
+
"fleetId": fleet_id
|
1151
|
+
}
|
1152
|
+
|
1153
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1154
|
+
|
1155
|
+
for (k, v) in six.iteritems(path_params):
|
1156
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1157
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1158
|
+
|
1159
|
+
header_params = {
|
1160
|
+
"accept": "application/json",
|
1161
|
+
"content-type": "application/json",
|
1162
|
+
"if-match": kwargs.get("if_match", missing),
|
1163
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1164
|
+
}
|
1165
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1166
|
+
|
1167
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1168
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1169
|
+
client_retry_strategy=self.retry_strategy
|
1170
|
+
)
|
1171
|
+
if retry_strategy is None:
|
1172
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1173
|
+
|
1174
|
+
if retry_strategy:
|
1175
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1176
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1177
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1178
|
+
return retry_strategy.make_retrying_call(
|
1179
|
+
self.base_client.call_api,
|
1180
|
+
resource_path=resource_path,
|
1181
|
+
method=method,
|
1182
|
+
path_params=path_params,
|
1183
|
+
header_params=header_params,
|
1184
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1185
|
+
operation_name=operation_name,
|
1186
|
+
api_reference_link=api_reference_link,
|
1187
|
+
required_arguments=required_arguments)
|
1188
|
+
else:
|
1189
|
+
return self.base_client.call_api(
|
1190
|
+
resource_path=resource_path,
|
1191
|
+
method=method,
|
1192
|
+
path_params=path_params,
|
1193
|
+
header_params=header_params,
|
1194
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1195
|
+
operation_name=operation_name,
|
1196
|
+
api_reference_link=api_reference_link,
|
1197
|
+
required_arguments=required_arguments)
|
1198
|
+
|
1199
|
+
def generate_compliance_report(self, generate_compliance_report_details, fleet_id, **kwargs):
|
1200
|
+
"""
|
1201
|
+
Request to generate compliance report for a Fleet
|
1202
|
+
|
1203
|
+
|
1204
|
+
:param oci.fleet_apps_management.models.GenerateComplianceReportDetails generate_compliance_report_details: (required)
|
1205
|
+
Details for generating Compliance Report fort the Fleet.
|
1206
|
+
|
1207
|
+
:param str fleet_id: (required)
|
1208
|
+
unique Fleet identifier
|
1209
|
+
|
1210
|
+
:param str opc_retry_token: (optional)
|
1211
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1212
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1213
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1214
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1215
|
+
might be rejected.
|
1216
|
+
|
1217
|
+
:param str opc_request_id: (optional)
|
1218
|
+
The client request ID for tracing.
|
1219
|
+
|
1220
|
+
:param obj retry_strategy: (optional)
|
1221
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1222
|
+
|
1223
|
+
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.
|
1224
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1225
|
+
|
1226
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1227
|
+
|
1228
|
+
:param bool allow_control_chars: (optional)
|
1229
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1230
|
+
By default, the response will not allow control characters in strings
|
1231
|
+
|
1232
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1233
|
+
:rtype: :class:`~oci.response.Response`
|
1234
|
+
|
1235
|
+
:example:
|
1236
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/generate_compliance_report.py.html>`__ to see an example of how to use generate_compliance_report API.
|
1237
|
+
"""
|
1238
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1239
|
+
required_arguments = ['fleetId']
|
1240
|
+
resource_path = "/fleets/{fleetId}/actions/generateComplianceReport"
|
1241
|
+
method = "POST"
|
1242
|
+
operation_name = "generate_compliance_report"
|
1243
|
+
api_reference_link = ""
|
1244
|
+
|
1245
|
+
# Don't accept unknown kwargs
|
1246
|
+
expected_kwargs = [
|
1247
|
+
"allow_control_chars",
|
1248
|
+
"retry_strategy",
|
1249
|
+
"opc_retry_token",
|
1250
|
+
"opc_request_id"
|
1251
|
+
]
|
1252
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1253
|
+
if extra_kwargs:
|
1254
|
+
raise ValueError(
|
1255
|
+
f"generate_compliance_report got unknown kwargs: {extra_kwargs!r}")
|
1256
|
+
|
1257
|
+
path_params = {
|
1258
|
+
"fleetId": fleet_id
|
1259
|
+
}
|
1260
|
+
|
1261
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1262
|
+
|
1263
|
+
for (k, v) in six.iteritems(path_params):
|
1264
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1265
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1266
|
+
|
1267
|
+
header_params = {
|
1268
|
+
"accept": "application/json",
|
1269
|
+
"content-type": "application/json",
|
1270
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
1271
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1272
|
+
}
|
1273
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1274
|
+
|
1275
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1276
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1277
|
+
client_retry_strategy=self.retry_strategy
|
1278
|
+
)
|
1279
|
+
if retry_strategy is None:
|
1280
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1281
|
+
|
1282
|
+
if retry_strategy:
|
1283
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1284
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1285
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1286
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1287
|
+
return retry_strategy.make_retrying_call(
|
1288
|
+
self.base_client.call_api,
|
1289
|
+
resource_path=resource_path,
|
1290
|
+
method=method,
|
1291
|
+
path_params=path_params,
|
1292
|
+
header_params=header_params,
|
1293
|
+
body=generate_compliance_report_details,
|
1294
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1295
|
+
operation_name=operation_name,
|
1296
|
+
api_reference_link=api_reference_link,
|
1297
|
+
required_arguments=required_arguments)
|
1298
|
+
else:
|
1299
|
+
return self.base_client.call_api(
|
1300
|
+
resource_path=resource_path,
|
1301
|
+
method=method,
|
1302
|
+
path_params=path_params,
|
1303
|
+
header_params=header_params,
|
1304
|
+
body=generate_compliance_report_details,
|
1305
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1306
|
+
operation_name=operation_name,
|
1307
|
+
api_reference_link=api_reference_link,
|
1308
|
+
required_arguments=required_arguments)
|
1309
|
+
|
1310
|
+
def get_compliance_report(self, fleet_id, compliance_report_id, **kwargs):
|
1311
|
+
"""
|
1312
|
+
Retrieve compiane report for a Fleet
|
1313
|
+
|
1314
|
+
|
1315
|
+
:param str fleet_id: (required)
|
1316
|
+
unique Fleet identifier
|
1317
|
+
|
1318
|
+
:param str compliance_report_id: (required)
|
1319
|
+
compliance report identifier
|
1320
|
+
|
1321
|
+
:param str opc_request_id: (optional)
|
1322
|
+
The client request ID for tracing.
|
1323
|
+
|
1324
|
+
:param obj retry_strategy: (optional)
|
1325
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1326
|
+
|
1327
|
+
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.
|
1328
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1329
|
+
|
1330
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1331
|
+
|
1332
|
+
:param bool allow_control_chars: (optional)
|
1333
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1334
|
+
By default, the response will not allow control characters in strings
|
1335
|
+
|
1336
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ComplianceReport`
|
1337
|
+
:rtype: :class:`~oci.response.Response`
|
1338
|
+
|
1339
|
+
:example:
|
1340
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_compliance_report.py.html>`__ to see an example of how to use get_compliance_report API.
|
1341
|
+
"""
|
1342
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1343
|
+
required_arguments = ['fleetId', 'complianceReportId']
|
1344
|
+
resource_path = "/fleets/{fleetId}/complianceReports/{complianceReportId}"
|
1345
|
+
method = "GET"
|
1346
|
+
operation_name = "get_compliance_report"
|
1347
|
+
api_reference_link = ""
|
1348
|
+
|
1349
|
+
# Don't accept unknown kwargs
|
1350
|
+
expected_kwargs = [
|
1351
|
+
"allow_control_chars",
|
1352
|
+
"retry_strategy",
|
1353
|
+
"opc_request_id"
|
1354
|
+
]
|
1355
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1356
|
+
if extra_kwargs:
|
1357
|
+
raise ValueError(
|
1358
|
+
f"get_compliance_report got unknown kwargs: {extra_kwargs!r}")
|
1359
|
+
|
1360
|
+
path_params = {
|
1361
|
+
"fleetId": fleet_id,
|
1362
|
+
"complianceReportId": compliance_report_id
|
1363
|
+
}
|
1364
|
+
|
1365
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1366
|
+
|
1367
|
+
for (k, v) in six.iteritems(path_params):
|
1368
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1369
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1370
|
+
|
1371
|
+
header_params = {
|
1372
|
+
"accept": "application/json",
|
1373
|
+
"content-type": "application/json",
|
1374
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1375
|
+
}
|
1376
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1377
|
+
|
1378
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1379
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1380
|
+
client_retry_strategy=self.retry_strategy
|
1381
|
+
)
|
1382
|
+
if retry_strategy is None:
|
1383
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1384
|
+
|
1385
|
+
if retry_strategy:
|
1386
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1387
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1388
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1389
|
+
return retry_strategy.make_retrying_call(
|
1390
|
+
self.base_client.call_api,
|
1391
|
+
resource_path=resource_path,
|
1392
|
+
method=method,
|
1393
|
+
path_params=path_params,
|
1394
|
+
header_params=header_params,
|
1395
|
+
response_type="ComplianceReport",
|
1396
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1397
|
+
operation_name=operation_name,
|
1398
|
+
api_reference_link=api_reference_link,
|
1399
|
+
required_arguments=required_arguments)
|
1400
|
+
else:
|
1401
|
+
return self.base_client.call_api(
|
1402
|
+
resource_path=resource_path,
|
1403
|
+
method=method,
|
1404
|
+
path_params=path_params,
|
1405
|
+
header_params=header_params,
|
1406
|
+
response_type="ComplianceReport",
|
1407
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1408
|
+
operation_name=operation_name,
|
1409
|
+
api_reference_link=api_reference_link,
|
1410
|
+
required_arguments=required_arguments)
|
1411
|
+
|
1412
|
+
def get_fleet(self, fleet_id, **kwargs):
|
1413
|
+
"""
|
1414
|
+
Gets a Fleet by identifier
|
1415
|
+
|
1416
|
+
|
1417
|
+
:param str fleet_id: (required)
|
1418
|
+
unique Fleet identifier
|
1419
|
+
|
1420
|
+
:param str opc_request_id: (optional)
|
1421
|
+
The client request ID for tracing.
|
1422
|
+
|
1423
|
+
:param obj retry_strategy: (optional)
|
1424
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1425
|
+
|
1426
|
+
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.
|
1427
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1428
|
+
|
1429
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1430
|
+
|
1431
|
+
:param bool allow_control_chars: (optional)
|
1432
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1433
|
+
By default, the response will not allow control characters in strings
|
1434
|
+
|
1435
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Fleet`
|
1436
|
+
:rtype: :class:`~oci.response.Response`
|
1437
|
+
|
1438
|
+
:example:
|
1439
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_fleet.py.html>`__ to see an example of how to use get_fleet API.
|
1440
|
+
"""
|
1441
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1442
|
+
required_arguments = ['fleetId']
|
1443
|
+
resource_path = "/fleets/{fleetId}"
|
1444
|
+
method = "GET"
|
1445
|
+
operation_name = "get_fleet"
|
1446
|
+
api_reference_link = ""
|
1447
|
+
|
1448
|
+
# Don't accept unknown kwargs
|
1449
|
+
expected_kwargs = [
|
1450
|
+
"allow_control_chars",
|
1451
|
+
"retry_strategy",
|
1452
|
+
"opc_request_id"
|
1453
|
+
]
|
1454
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1455
|
+
if extra_kwargs:
|
1456
|
+
raise ValueError(
|
1457
|
+
f"get_fleet got unknown kwargs: {extra_kwargs!r}")
|
1458
|
+
|
1459
|
+
path_params = {
|
1460
|
+
"fleetId": fleet_id
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1464
|
+
|
1465
|
+
for (k, v) in six.iteritems(path_params):
|
1466
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1467
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1468
|
+
|
1469
|
+
header_params = {
|
1470
|
+
"accept": "application/json",
|
1471
|
+
"content-type": "application/json",
|
1472
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1473
|
+
}
|
1474
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1475
|
+
|
1476
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1477
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1478
|
+
client_retry_strategy=self.retry_strategy
|
1479
|
+
)
|
1480
|
+
if retry_strategy is None:
|
1481
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1482
|
+
|
1483
|
+
if retry_strategy:
|
1484
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1485
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1486
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1487
|
+
return retry_strategy.make_retrying_call(
|
1488
|
+
self.base_client.call_api,
|
1489
|
+
resource_path=resource_path,
|
1490
|
+
method=method,
|
1491
|
+
path_params=path_params,
|
1492
|
+
header_params=header_params,
|
1493
|
+
response_type="Fleet",
|
1494
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1495
|
+
operation_name=operation_name,
|
1496
|
+
api_reference_link=api_reference_link,
|
1497
|
+
required_arguments=required_arguments)
|
1498
|
+
else:
|
1499
|
+
return self.base_client.call_api(
|
1500
|
+
resource_path=resource_path,
|
1501
|
+
method=method,
|
1502
|
+
path_params=path_params,
|
1503
|
+
header_params=header_params,
|
1504
|
+
response_type="Fleet",
|
1505
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1506
|
+
operation_name=operation_name,
|
1507
|
+
api_reference_link=api_reference_link,
|
1508
|
+
required_arguments=required_arguments)
|
1509
|
+
|
1510
|
+
def get_fleet_credential(self, fleet_credential_id, fleet_id, **kwargs):
|
1511
|
+
"""
|
1512
|
+
Gets a FleetCredential by identifier
|
1513
|
+
|
1514
|
+
|
1515
|
+
:param str fleet_credential_id: (required)
|
1516
|
+
unique FleetCredential identifier
|
1517
|
+
|
1518
|
+
:param str fleet_id: (required)
|
1519
|
+
unique Fleet identifier
|
1520
|
+
|
1521
|
+
:param str opc_request_id: (optional)
|
1522
|
+
The client request ID for tracing.
|
1523
|
+
|
1524
|
+
:param obj retry_strategy: (optional)
|
1525
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1526
|
+
|
1527
|
+
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.
|
1528
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1529
|
+
|
1530
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1531
|
+
|
1532
|
+
:param bool allow_control_chars: (optional)
|
1533
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1534
|
+
By default, the response will not allow control characters in strings
|
1535
|
+
|
1536
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetCredential`
|
1537
|
+
:rtype: :class:`~oci.response.Response`
|
1538
|
+
|
1539
|
+
:example:
|
1540
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_fleet_credential.py.html>`__ to see an example of how to use get_fleet_credential API.
|
1541
|
+
"""
|
1542
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1543
|
+
required_arguments = ['fleetCredentialId', 'fleetId']
|
1544
|
+
resource_path = "/fleets/{fleetId}/fleetCredentials/{fleetCredentialId}"
|
1545
|
+
method = "GET"
|
1546
|
+
operation_name = "get_fleet_credential"
|
1547
|
+
api_reference_link = ""
|
1548
|
+
|
1549
|
+
# Don't accept unknown kwargs
|
1550
|
+
expected_kwargs = [
|
1551
|
+
"allow_control_chars",
|
1552
|
+
"retry_strategy",
|
1553
|
+
"opc_request_id"
|
1554
|
+
]
|
1555
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1556
|
+
if extra_kwargs:
|
1557
|
+
raise ValueError(
|
1558
|
+
f"get_fleet_credential got unknown kwargs: {extra_kwargs!r}")
|
1559
|
+
|
1560
|
+
path_params = {
|
1561
|
+
"fleetCredentialId": fleet_credential_id,
|
1562
|
+
"fleetId": fleet_id
|
1563
|
+
}
|
1564
|
+
|
1565
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1566
|
+
|
1567
|
+
for (k, v) in six.iteritems(path_params):
|
1568
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1569
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1570
|
+
|
1571
|
+
header_params = {
|
1572
|
+
"accept": "application/json",
|
1573
|
+
"content-type": "application/json",
|
1574
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1575
|
+
}
|
1576
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1577
|
+
|
1578
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1579
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1580
|
+
client_retry_strategy=self.retry_strategy
|
1581
|
+
)
|
1582
|
+
if retry_strategy is None:
|
1583
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1584
|
+
|
1585
|
+
if retry_strategy:
|
1586
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1587
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1588
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1589
|
+
return retry_strategy.make_retrying_call(
|
1590
|
+
self.base_client.call_api,
|
1591
|
+
resource_path=resource_path,
|
1592
|
+
method=method,
|
1593
|
+
path_params=path_params,
|
1594
|
+
header_params=header_params,
|
1595
|
+
response_type="FleetCredential",
|
1596
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1597
|
+
operation_name=operation_name,
|
1598
|
+
api_reference_link=api_reference_link,
|
1599
|
+
required_arguments=required_arguments)
|
1600
|
+
else:
|
1601
|
+
return self.base_client.call_api(
|
1602
|
+
resource_path=resource_path,
|
1603
|
+
method=method,
|
1604
|
+
path_params=path_params,
|
1605
|
+
header_params=header_params,
|
1606
|
+
response_type="FleetCredential",
|
1607
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1608
|
+
operation_name=operation_name,
|
1609
|
+
api_reference_link=api_reference_link,
|
1610
|
+
required_arguments=required_arguments)
|
1611
|
+
|
1612
|
+
def get_fleet_property(self, fleet_property_id, fleet_id, **kwargs):
|
1613
|
+
"""
|
1614
|
+
Gets a FleetProperty by identifier
|
1615
|
+
|
1616
|
+
|
1617
|
+
:param str fleet_property_id: (required)
|
1618
|
+
unique FleetProperty identifier
|
1619
|
+
|
1620
|
+
:param str fleet_id: (required)
|
1621
|
+
unique Fleet identifier
|
1622
|
+
|
1623
|
+
:param str opc_request_id: (optional)
|
1624
|
+
The client request ID for tracing.
|
1625
|
+
|
1626
|
+
:param obj retry_strategy: (optional)
|
1627
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1628
|
+
|
1629
|
+
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.
|
1630
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1631
|
+
|
1632
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1633
|
+
|
1634
|
+
:param bool allow_control_chars: (optional)
|
1635
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1636
|
+
By default, the response will not allow control characters in strings
|
1637
|
+
|
1638
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetProperty`
|
1639
|
+
:rtype: :class:`~oci.response.Response`
|
1640
|
+
|
1641
|
+
:example:
|
1642
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_fleet_property.py.html>`__ to see an example of how to use get_fleet_property API.
|
1643
|
+
"""
|
1644
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1645
|
+
required_arguments = ['fleetPropertyId', 'fleetId']
|
1646
|
+
resource_path = "/fleets/{fleetId}/fleetProperties/{fleetPropertyId}"
|
1647
|
+
method = "GET"
|
1648
|
+
operation_name = "get_fleet_property"
|
1649
|
+
api_reference_link = ""
|
1650
|
+
|
1651
|
+
# Don't accept unknown kwargs
|
1652
|
+
expected_kwargs = [
|
1653
|
+
"allow_control_chars",
|
1654
|
+
"retry_strategy",
|
1655
|
+
"opc_request_id"
|
1656
|
+
]
|
1657
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1658
|
+
if extra_kwargs:
|
1659
|
+
raise ValueError(
|
1660
|
+
f"get_fleet_property got unknown kwargs: {extra_kwargs!r}")
|
1661
|
+
|
1662
|
+
path_params = {
|
1663
|
+
"fleetPropertyId": fleet_property_id,
|
1664
|
+
"fleetId": fleet_id
|
1665
|
+
}
|
1666
|
+
|
1667
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1668
|
+
|
1669
|
+
for (k, v) in six.iteritems(path_params):
|
1670
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1671
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1672
|
+
|
1673
|
+
header_params = {
|
1674
|
+
"accept": "application/json",
|
1675
|
+
"content-type": "application/json",
|
1676
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1677
|
+
}
|
1678
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1679
|
+
|
1680
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1681
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1682
|
+
client_retry_strategy=self.retry_strategy
|
1683
|
+
)
|
1684
|
+
if retry_strategy is None:
|
1685
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1686
|
+
|
1687
|
+
if retry_strategy:
|
1688
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1689
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1690
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1691
|
+
return retry_strategy.make_retrying_call(
|
1692
|
+
self.base_client.call_api,
|
1693
|
+
resource_path=resource_path,
|
1694
|
+
method=method,
|
1695
|
+
path_params=path_params,
|
1696
|
+
header_params=header_params,
|
1697
|
+
response_type="FleetProperty",
|
1698
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1699
|
+
operation_name=operation_name,
|
1700
|
+
api_reference_link=api_reference_link,
|
1701
|
+
required_arguments=required_arguments)
|
1702
|
+
else:
|
1703
|
+
return self.base_client.call_api(
|
1704
|
+
resource_path=resource_path,
|
1705
|
+
method=method,
|
1706
|
+
path_params=path_params,
|
1707
|
+
header_params=header_params,
|
1708
|
+
response_type="FleetProperty",
|
1709
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1710
|
+
operation_name=operation_name,
|
1711
|
+
api_reference_link=api_reference_link,
|
1712
|
+
required_arguments=required_arguments)
|
1713
|
+
|
1714
|
+
def get_fleet_resource(self, fleet_resource_id, fleet_id, **kwargs):
|
1715
|
+
"""
|
1716
|
+
Gets a FleetResource by identifier
|
1717
|
+
|
1718
|
+
|
1719
|
+
:param str fleet_resource_id: (required)
|
1720
|
+
unique FleetResource identifier
|
1721
|
+
|
1722
|
+
:param str fleet_id: (required)
|
1723
|
+
unique Fleet identifier
|
1724
|
+
|
1725
|
+
:param str opc_request_id: (optional)
|
1726
|
+
The client request ID for tracing.
|
1727
|
+
|
1728
|
+
:param obj retry_strategy: (optional)
|
1729
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1730
|
+
|
1731
|
+
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.
|
1732
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1733
|
+
|
1734
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1735
|
+
|
1736
|
+
:param bool allow_control_chars: (optional)
|
1737
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1738
|
+
By default, the response will not allow control characters in strings
|
1739
|
+
|
1740
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetResource`
|
1741
|
+
:rtype: :class:`~oci.response.Response`
|
1742
|
+
|
1743
|
+
:example:
|
1744
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_fleet_resource.py.html>`__ to see an example of how to use get_fleet_resource API.
|
1745
|
+
"""
|
1746
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1747
|
+
required_arguments = ['fleetResourceId', 'fleetId']
|
1748
|
+
resource_path = "/fleets/{fleetId}/fleetResources/{fleetResourceId}"
|
1749
|
+
method = "GET"
|
1750
|
+
operation_name = "get_fleet_resource"
|
1751
|
+
api_reference_link = ""
|
1752
|
+
|
1753
|
+
# Don't accept unknown kwargs
|
1754
|
+
expected_kwargs = [
|
1755
|
+
"allow_control_chars",
|
1756
|
+
"retry_strategy",
|
1757
|
+
"opc_request_id"
|
1758
|
+
]
|
1759
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1760
|
+
if extra_kwargs:
|
1761
|
+
raise ValueError(
|
1762
|
+
f"get_fleet_resource got unknown kwargs: {extra_kwargs!r}")
|
1763
|
+
|
1764
|
+
path_params = {
|
1765
|
+
"fleetResourceId": fleet_resource_id,
|
1766
|
+
"fleetId": fleet_id
|
1767
|
+
}
|
1768
|
+
|
1769
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1770
|
+
|
1771
|
+
for (k, v) in six.iteritems(path_params):
|
1772
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1773
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1774
|
+
|
1775
|
+
header_params = {
|
1776
|
+
"accept": "application/json",
|
1777
|
+
"content-type": "application/json",
|
1778
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1779
|
+
}
|
1780
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1781
|
+
|
1782
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1783
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1784
|
+
client_retry_strategy=self.retry_strategy
|
1785
|
+
)
|
1786
|
+
if retry_strategy is None:
|
1787
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1788
|
+
|
1789
|
+
if retry_strategy:
|
1790
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1791
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1792
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1793
|
+
return retry_strategy.make_retrying_call(
|
1794
|
+
self.base_client.call_api,
|
1795
|
+
resource_path=resource_path,
|
1796
|
+
method=method,
|
1797
|
+
path_params=path_params,
|
1798
|
+
header_params=header_params,
|
1799
|
+
response_type="FleetResource",
|
1800
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1801
|
+
operation_name=operation_name,
|
1802
|
+
api_reference_link=api_reference_link,
|
1803
|
+
required_arguments=required_arguments)
|
1804
|
+
else:
|
1805
|
+
return self.base_client.call_api(
|
1806
|
+
resource_path=resource_path,
|
1807
|
+
method=method,
|
1808
|
+
path_params=path_params,
|
1809
|
+
header_params=header_params,
|
1810
|
+
response_type="FleetResource",
|
1811
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1812
|
+
operation_name=operation_name,
|
1813
|
+
api_reference_link=api_reference_link,
|
1814
|
+
required_arguments=required_arguments)
|
1815
|
+
|
1816
|
+
def get_work_request(self, work_request_id, **kwargs):
|
1817
|
+
"""
|
1818
|
+
Gets details of the work request with the given ID.
|
1819
|
+
|
1820
|
+
|
1821
|
+
:param str work_request_id: (required)
|
1822
|
+
The ID of the asynchronous request.
|
1823
|
+
|
1824
|
+
:param str opc_request_id: (optional)
|
1825
|
+
The client request ID for tracing.
|
1826
|
+
|
1827
|
+
:param obj retry_strategy: (optional)
|
1828
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1829
|
+
|
1830
|
+
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.
|
1831
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1832
|
+
|
1833
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1834
|
+
|
1835
|
+
:param bool allow_control_chars: (optional)
|
1836
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1837
|
+
By default, the response will not allow control characters in strings
|
1838
|
+
|
1839
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.WorkRequest`
|
1840
|
+
:rtype: :class:`~oci.response.Response`
|
1841
|
+
|
1842
|
+
:example:
|
1843
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
1844
|
+
"""
|
1845
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1846
|
+
required_arguments = ['workRequestId']
|
1847
|
+
resource_path = "/workRequests/{workRequestId}"
|
1848
|
+
method = "GET"
|
1849
|
+
operation_name = "get_work_request"
|
1850
|
+
api_reference_link = ""
|
1851
|
+
|
1852
|
+
# Don't accept unknown kwargs
|
1853
|
+
expected_kwargs = [
|
1854
|
+
"allow_control_chars",
|
1855
|
+
"retry_strategy",
|
1856
|
+
"opc_request_id"
|
1857
|
+
]
|
1858
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1859
|
+
if extra_kwargs:
|
1860
|
+
raise ValueError(
|
1861
|
+
f"get_work_request got unknown kwargs: {extra_kwargs!r}")
|
1862
|
+
|
1863
|
+
path_params = {
|
1864
|
+
"workRequestId": work_request_id
|
1865
|
+
}
|
1866
|
+
|
1867
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1868
|
+
|
1869
|
+
for (k, v) in six.iteritems(path_params):
|
1870
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1871
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1872
|
+
|
1873
|
+
header_params = {
|
1874
|
+
"accept": "application/json",
|
1875
|
+
"content-type": "application/json",
|
1876
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1877
|
+
}
|
1878
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1879
|
+
|
1880
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1881
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1882
|
+
client_retry_strategy=self.retry_strategy
|
1883
|
+
)
|
1884
|
+
if retry_strategy is None:
|
1885
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1886
|
+
|
1887
|
+
if retry_strategy:
|
1888
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1889
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1890
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1891
|
+
return retry_strategy.make_retrying_call(
|
1892
|
+
self.base_client.call_api,
|
1893
|
+
resource_path=resource_path,
|
1894
|
+
method=method,
|
1895
|
+
path_params=path_params,
|
1896
|
+
header_params=header_params,
|
1897
|
+
response_type="WorkRequest",
|
1898
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1899
|
+
operation_name=operation_name,
|
1900
|
+
api_reference_link=api_reference_link,
|
1901
|
+
required_arguments=required_arguments)
|
1902
|
+
else:
|
1903
|
+
return self.base_client.call_api(
|
1904
|
+
resource_path=resource_path,
|
1905
|
+
method=method,
|
1906
|
+
path_params=path_params,
|
1907
|
+
header_params=header_params,
|
1908
|
+
response_type="WorkRequest",
|
1909
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1910
|
+
operation_name=operation_name,
|
1911
|
+
api_reference_link=api_reference_link,
|
1912
|
+
required_arguments=required_arguments)
|
1913
|
+
|
1914
|
+
def list_announcements(self, **kwargs):
|
1915
|
+
"""
|
1916
|
+
Return a list of AnnouncementSummary items
|
1917
|
+
|
1918
|
+
|
1919
|
+
:param str summary_contains: (optional)
|
1920
|
+
Filter the list with summary contains the given value.
|
1921
|
+
|
1922
|
+
:param str display_name: (optional)
|
1923
|
+
A filter to return only resources that match the entire display name given.
|
1924
|
+
|
1925
|
+
:param int limit: (optional)
|
1926
|
+
The maximum number of items to return.
|
1927
|
+
|
1928
|
+
:param str page: (optional)
|
1929
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
1930
|
+
|
1931
|
+
:param str sort_order: (optional)
|
1932
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1933
|
+
|
1934
|
+
Allowed values are: "ASC", "DESC"
|
1935
|
+
|
1936
|
+
:param str sort_by: (optional)
|
1937
|
+
The field to sort AnnouncementSummary by. Only one sort order may be provided.
|
1938
|
+
If no value is specified _timeReleased_ is default.
|
1939
|
+
|
1940
|
+
Allowed values are: "timeReleased", "summary"
|
1941
|
+
|
1942
|
+
:param str opc_request_id: (optional)
|
1943
|
+
The client request ID for tracing.
|
1944
|
+
|
1945
|
+
:param obj retry_strategy: (optional)
|
1946
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1947
|
+
|
1948
|
+
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.
|
1949
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1950
|
+
|
1951
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1952
|
+
|
1953
|
+
:param bool allow_control_chars: (optional)
|
1954
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1955
|
+
By default, the response will not allow control characters in strings
|
1956
|
+
|
1957
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.AnnouncementCollection`
|
1958
|
+
:rtype: :class:`~oci.response.Response`
|
1959
|
+
|
1960
|
+
:example:
|
1961
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_announcements.py.html>`__ to see an example of how to use list_announcements API.
|
1962
|
+
"""
|
1963
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1964
|
+
required_arguments = []
|
1965
|
+
resource_path = "/announcements"
|
1966
|
+
method = "GET"
|
1967
|
+
operation_name = "list_announcements"
|
1968
|
+
api_reference_link = ""
|
1969
|
+
|
1970
|
+
# Don't accept unknown kwargs
|
1971
|
+
expected_kwargs = [
|
1972
|
+
"allow_control_chars",
|
1973
|
+
"retry_strategy",
|
1974
|
+
"summary_contains",
|
1975
|
+
"display_name",
|
1976
|
+
"limit",
|
1977
|
+
"page",
|
1978
|
+
"sort_order",
|
1979
|
+
"sort_by",
|
1980
|
+
"opc_request_id"
|
1981
|
+
]
|
1982
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1983
|
+
if extra_kwargs:
|
1984
|
+
raise ValueError(
|
1985
|
+
f"list_announcements got unknown kwargs: {extra_kwargs!r}")
|
1986
|
+
|
1987
|
+
if 'sort_order' in kwargs:
|
1988
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1989
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1990
|
+
raise ValueError(
|
1991
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1992
|
+
)
|
1993
|
+
|
1994
|
+
if 'sort_by' in kwargs:
|
1995
|
+
sort_by_allowed_values = ["timeReleased", "summary"]
|
1996
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1997
|
+
raise ValueError(
|
1998
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1999
|
+
)
|
2000
|
+
|
2001
|
+
query_params = {
|
2002
|
+
"summaryContains": kwargs.get("summary_contains", missing),
|
2003
|
+
"displayName": kwargs.get("display_name", missing),
|
2004
|
+
"limit": kwargs.get("limit", missing),
|
2005
|
+
"page": kwargs.get("page", missing),
|
2006
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2007
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2008
|
+
}
|
2009
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2010
|
+
|
2011
|
+
header_params = {
|
2012
|
+
"accept": "application/json",
|
2013
|
+
"content-type": "application/json",
|
2014
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2015
|
+
}
|
2016
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2017
|
+
|
2018
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2019
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2020
|
+
client_retry_strategy=self.retry_strategy
|
2021
|
+
)
|
2022
|
+
if retry_strategy is None:
|
2023
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2024
|
+
|
2025
|
+
if retry_strategy:
|
2026
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2027
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2028
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2029
|
+
return retry_strategy.make_retrying_call(
|
2030
|
+
self.base_client.call_api,
|
2031
|
+
resource_path=resource_path,
|
2032
|
+
method=method,
|
2033
|
+
query_params=query_params,
|
2034
|
+
header_params=header_params,
|
2035
|
+
response_type="AnnouncementCollection",
|
2036
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2037
|
+
operation_name=operation_name,
|
2038
|
+
api_reference_link=api_reference_link,
|
2039
|
+
required_arguments=required_arguments)
|
2040
|
+
else:
|
2041
|
+
return self.base_client.call_api(
|
2042
|
+
resource_path=resource_path,
|
2043
|
+
method=method,
|
2044
|
+
query_params=query_params,
|
2045
|
+
header_params=header_params,
|
2046
|
+
response_type="AnnouncementCollection",
|
2047
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2048
|
+
operation_name=operation_name,
|
2049
|
+
api_reference_link=api_reference_link,
|
2050
|
+
required_arguments=required_arguments)
|
2051
|
+
|
2052
|
+
def list_fleet_credentials(self, fleet_id, **kwargs):
|
2053
|
+
"""
|
2054
|
+
Returns a list of FleetCredentials.
|
2055
|
+
|
2056
|
+
|
2057
|
+
:param str fleet_id: (required)
|
2058
|
+
unique Fleet identifier
|
2059
|
+
|
2060
|
+
:param str compartment_id: (optional)
|
2061
|
+
The ID of the compartment in which to list resources.
|
2062
|
+
|
2063
|
+
:param str lifecycle_state: (optional)
|
2064
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
2065
|
+
|
2066
|
+
Allowed values are: "ACTIVE", "DELETED", "FAILED"
|
2067
|
+
|
2068
|
+
:param str display_name: (optional)
|
2069
|
+
A filter to return only resources that match the entire display name given.
|
2070
|
+
|
2071
|
+
:param str credential_level: (optional)
|
2072
|
+
Credential Level.
|
2073
|
+
|
2074
|
+
Allowed values are: "TARGET"
|
2075
|
+
|
2076
|
+
:param str id: (optional)
|
2077
|
+
unique FleetCredential identifier
|
2078
|
+
|
2079
|
+
:param int limit: (optional)
|
2080
|
+
The maximum number of items to return.
|
2081
|
+
|
2082
|
+
:param str page: (optional)
|
2083
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
2084
|
+
|
2085
|
+
:param str sort_order: (optional)
|
2086
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2087
|
+
|
2088
|
+
Allowed values are: "ASC", "DESC"
|
2089
|
+
|
2090
|
+
:param str sort_by: (optional)
|
2091
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
2092
|
+
|
2093
|
+
Allowed values are: "timeCreated", "displayName"
|
2094
|
+
|
2095
|
+
:param str opc_request_id: (optional)
|
2096
|
+
The client request ID for tracing.
|
2097
|
+
|
2098
|
+
:param obj retry_strategy: (optional)
|
2099
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2100
|
+
|
2101
|
+
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.
|
2102
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2103
|
+
|
2104
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2105
|
+
|
2106
|
+
:param bool allow_control_chars: (optional)
|
2107
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2108
|
+
By default, the response will not allow control characters in strings
|
2109
|
+
|
2110
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetCredentialCollection`
|
2111
|
+
:rtype: :class:`~oci.response.Response`
|
2112
|
+
|
2113
|
+
:example:
|
2114
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_fleet_credentials.py.html>`__ to see an example of how to use list_fleet_credentials API.
|
2115
|
+
"""
|
2116
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2117
|
+
required_arguments = ['fleetId']
|
2118
|
+
resource_path = "/fleets/{fleetId}/fleetCredentials"
|
2119
|
+
method = "GET"
|
2120
|
+
operation_name = "list_fleet_credentials"
|
2121
|
+
api_reference_link = ""
|
2122
|
+
|
2123
|
+
# Don't accept unknown kwargs
|
2124
|
+
expected_kwargs = [
|
2125
|
+
"allow_control_chars",
|
2126
|
+
"retry_strategy",
|
2127
|
+
"compartment_id",
|
2128
|
+
"lifecycle_state",
|
2129
|
+
"display_name",
|
2130
|
+
"credential_level",
|
2131
|
+
"id",
|
2132
|
+
"limit",
|
2133
|
+
"page",
|
2134
|
+
"sort_order",
|
2135
|
+
"sort_by",
|
2136
|
+
"opc_request_id"
|
2137
|
+
]
|
2138
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2139
|
+
if extra_kwargs:
|
2140
|
+
raise ValueError(
|
2141
|
+
f"list_fleet_credentials got unknown kwargs: {extra_kwargs!r}")
|
2142
|
+
|
2143
|
+
path_params = {
|
2144
|
+
"fleetId": fleet_id
|
2145
|
+
}
|
2146
|
+
|
2147
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2148
|
+
|
2149
|
+
for (k, v) in six.iteritems(path_params):
|
2150
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2151
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2152
|
+
|
2153
|
+
if 'lifecycle_state' in kwargs:
|
2154
|
+
lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED"]
|
2155
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
2156
|
+
raise ValueError(
|
2157
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
2158
|
+
)
|
2159
|
+
|
2160
|
+
if 'credential_level' in kwargs:
|
2161
|
+
credential_level_allowed_values = ["TARGET"]
|
2162
|
+
if kwargs['credential_level'] not in credential_level_allowed_values:
|
2163
|
+
raise ValueError(
|
2164
|
+
f"Invalid value for `credential_level`, must be one of { credential_level_allowed_values }"
|
2165
|
+
)
|
2166
|
+
|
2167
|
+
if 'sort_order' in kwargs:
|
2168
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2169
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2170
|
+
raise ValueError(
|
2171
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2172
|
+
)
|
2173
|
+
|
2174
|
+
if 'sort_by' in kwargs:
|
2175
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
2176
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2177
|
+
raise ValueError(
|
2178
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2179
|
+
)
|
2180
|
+
|
2181
|
+
query_params = {
|
2182
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
2183
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
2184
|
+
"displayName": kwargs.get("display_name", missing),
|
2185
|
+
"credentialLevel": kwargs.get("credential_level", missing),
|
2186
|
+
"id": kwargs.get("id", missing),
|
2187
|
+
"limit": kwargs.get("limit", missing),
|
2188
|
+
"page": kwargs.get("page", missing),
|
2189
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2190
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2191
|
+
}
|
2192
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2193
|
+
|
2194
|
+
header_params = {
|
2195
|
+
"accept": "application/json",
|
2196
|
+
"content-type": "application/json",
|
2197
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2198
|
+
}
|
2199
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2200
|
+
|
2201
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2202
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2203
|
+
client_retry_strategy=self.retry_strategy
|
2204
|
+
)
|
2205
|
+
if retry_strategy is None:
|
2206
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2207
|
+
|
2208
|
+
if retry_strategy:
|
2209
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2210
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2211
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2212
|
+
return retry_strategy.make_retrying_call(
|
2213
|
+
self.base_client.call_api,
|
2214
|
+
resource_path=resource_path,
|
2215
|
+
method=method,
|
2216
|
+
path_params=path_params,
|
2217
|
+
query_params=query_params,
|
2218
|
+
header_params=header_params,
|
2219
|
+
response_type="FleetCredentialCollection",
|
2220
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2221
|
+
operation_name=operation_name,
|
2222
|
+
api_reference_link=api_reference_link,
|
2223
|
+
required_arguments=required_arguments)
|
2224
|
+
else:
|
2225
|
+
return self.base_client.call_api(
|
2226
|
+
resource_path=resource_path,
|
2227
|
+
method=method,
|
2228
|
+
path_params=path_params,
|
2229
|
+
query_params=query_params,
|
2230
|
+
header_params=header_params,
|
2231
|
+
response_type="FleetCredentialCollection",
|
2232
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2233
|
+
operation_name=operation_name,
|
2234
|
+
api_reference_link=api_reference_link,
|
2235
|
+
required_arguments=required_arguments)
|
2236
|
+
|
2237
|
+
def list_fleet_products(self, fleet_id, **kwargs):
|
2238
|
+
"""
|
2239
|
+
Returns a list of FleetProducts.
|
2240
|
+
|
2241
|
+
|
2242
|
+
:param str fleet_id: (required)
|
2243
|
+
unique Fleet identifier
|
2244
|
+
|
2245
|
+
:param str compartment_id: (optional)
|
2246
|
+
The ID of the compartment in which to list resources.
|
2247
|
+
|
2248
|
+
:param str resource_id: (optional)
|
2249
|
+
Resource Identifier
|
2250
|
+
|
2251
|
+
:param str resource_display_name: (optional)
|
2252
|
+
Resource Display Name
|
2253
|
+
|
2254
|
+
:param str display_name: (optional)
|
2255
|
+
A filter to return only resources that match the entire display name given.
|
2256
|
+
|
2257
|
+
:param int limit: (optional)
|
2258
|
+
The maximum number of items to return.
|
2259
|
+
|
2260
|
+
:param str page: (optional)
|
2261
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
2262
|
+
|
2263
|
+
:param str sort_order: (optional)
|
2264
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2265
|
+
|
2266
|
+
Allowed values are: "ASC", "DESC"
|
2267
|
+
|
2268
|
+
:param str sort_by: (optional)
|
2269
|
+
The field to sort by. Only one sort order may be provided. Default order for displayName and resourceDisplayName is ascending.
|
2270
|
+
|
2271
|
+
Allowed values are: "displayName", "resourceDisplayName"
|
2272
|
+
|
2273
|
+
:param str opc_request_id: (optional)
|
2274
|
+
The client request ID for tracing.
|
2275
|
+
|
2276
|
+
:param obj retry_strategy: (optional)
|
2277
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2278
|
+
|
2279
|
+
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.
|
2280
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2281
|
+
|
2282
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2283
|
+
|
2284
|
+
:param bool allow_control_chars: (optional)
|
2285
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2286
|
+
By default, the response will not allow control characters in strings
|
2287
|
+
|
2288
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetProductCollection`
|
2289
|
+
:rtype: :class:`~oci.response.Response`
|
2290
|
+
|
2291
|
+
:example:
|
2292
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_fleet_products.py.html>`__ to see an example of how to use list_fleet_products API.
|
2293
|
+
"""
|
2294
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2295
|
+
required_arguments = ['fleetId']
|
2296
|
+
resource_path = "/fleets/{fleetId}/fleetProducts"
|
2297
|
+
method = "GET"
|
2298
|
+
operation_name = "list_fleet_products"
|
2299
|
+
api_reference_link = ""
|
2300
|
+
|
2301
|
+
# Don't accept unknown kwargs
|
2302
|
+
expected_kwargs = [
|
2303
|
+
"allow_control_chars",
|
2304
|
+
"retry_strategy",
|
2305
|
+
"compartment_id",
|
2306
|
+
"resource_id",
|
2307
|
+
"resource_display_name",
|
2308
|
+
"display_name",
|
2309
|
+
"limit",
|
2310
|
+
"page",
|
2311
|
+
"sort_order",
|
2312
|
+
"sort_by",
|
2313
|
+
"opc_request_id"
|
2314
|
+
]
|
2315
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2316
|
+
if extra_kwargs:
|
2317
|
+
raise ValueError(
|
2318
|
+
f"list_fleet_products got unknown kwargs: {extra_kwargs!r}")
|
2319
|
+
|
2320
|
+
path_params = {
|
2321
|
+
"fleetId": fleet_id
|
2322
|
+
}
|
2323
|
+
|
2324
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2325
|
+
|
2326
|
+
for (k, v) in six.iteritems(path_params):
|
2327
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2328
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2329
|
+
|
2330
|
+
if 'sort_order' in kwargs:
|
2331
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2332
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2333
|
+
raise ValueError(
|
2334
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2335
|
+
)
|
2336
|
+
|
2337
|
+
if 'sort_by' in kwargs:
|
2338
|
+
sort_by_allowed_values = ["displayName", "resourceDisplayName"]
|
2339
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2340
|
+
raise ValueError(
|
2341
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2342
|
+
)
|
2343
|
+
|
2344
|
+
query_params = {
|
2345
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
2346
|
+
"resourceId": kwargs.get("resource_id", missing),
|
2347
|
+
"resourceDisplayName": kwargs.get("resource_display_name", missing),
|
2348
|
+
"displayName": kwargs.get("display_name", missing),
|
2349
|
+
"limit": kwargs.get("limit", missing),
|
2350
|
+
"page": kwargs.get("page", missing),
|
2351
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2352
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2353
|
+
}
|
2354
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2355
|
+
|
2356
|
+
header_params = {
|
2357
|
+
"accept": "application/json",
|
2358
|
+
"content-type": "application/json",
|
2359
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2360
|
+
}
|
2361
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2362
|
+
|
2363
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2364
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2365
|
+
client_retry_strategy=self.retry_strategy
|
2366
|
+
)
|
2367
|
+
if retry_strategy is None:
|
2368
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2369
|
+
|
2370
|
+
if retry_strategy:
|
2371
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2372
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2373
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2374
|
+
return retry_strategy.make_retrying_call(
|
2375
|
+
self.base_client.call_api,
|
2376
|
+
resource_path=resource_path,
|
2377
|
+
method=method,
|
2378
|
+
path_params=path_params,
|
2379
|
+
query_params=query_params,
|
2380
|
+
header_params=header_params,
|
2381
|
+
response_type="FleetProductCollection",
|
2382
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2383
|
+
operation_name=operation_name,
|
2384
|
+
api_reference_link=api_reference_link,
|
2385
|
+
required_arguments=required_arguments)
|
2386
|
+
else:
|
2387
|
+
return self.base_client.call_api(
|
2388
|
+
resource_path=resource_path,
|
2389
|
+
method=method,
|
2390
|
+
path_params=path_params,
|
2391
|
+
query_params=query_params,
|
2392
|
+
header_params=header_params,
|
2393
|
+
response_type="FleetProductCollection",
|
2394
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2395
|
+
operation_name=operation_name,
|
2396
|
+
api_reference_link=api_reference_link,
|
2397
|
+
required_arguments=required_arguments)
|
2398
|
+
|
2399
|
+
def list_fleet_properties(self, fleet_id, **kwargs):
|
2400
|
+
"""
|
2401
|
+
Returns a list of FleetProperties.
|
2402
|
+
|
2403
|
+
|
2404
|
+
:param str fleet_id: (required)
|
2405
|
+
unique Fleet identifier
|
2406
|
+
|
2407
|
+
:param str compartment_id: (optional)
|
2408
|
+
The ID of the compartment in which to list resources.
|
2409
|
+
|
2410
|
+
:param str lifecycle_state: (optional)
|
2411
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
2412
|
+
|
2413
|
+
Allowed values are: "ACTIVE", "DELETED", "FAILED"
|
2414
|
+
|
2415
|
+
:param str display_name: (optional)
|
2416
|
+
A filter to return only resources that match the entire display name given.
|
2417
|
+
|
2418
|
+
:param str id: (optional)
|
2419
|
+
unique FleetProperty identifier
|
2420
|
+
|
2421
|
+
:param int limit: (optional)
|
2422
|
+
The maximum number of items to return.
|
2423
|
+
|
2424
|
+
:param str page: (optional)
|
2425
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
2426
|
+
|
2427
|
+
:param str sort_order: (optional)
|
2428
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2429
|
+
|
2430
|
+
Allowed values are: "ASC", "DESC"
|
2431
|
+
|
2432
|
+
:param str sort_by: (optional)
|
2433
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
2434
|
+
|
2435
|
+
Allowed values are: "timeCreated", "displayName"
|
2436
|
+
|
2437
|
+
:param str opc_request_id: (optional)
|
2438
|
+
The client request ID for tracing.
|
2439
|
+
|
2440
|
+
:param obj retry_strategy: (optional)
|
2441
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2442
|
+
|
2443
|
+
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.
|
2444
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2445
|
+
|
2446
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2447
|
+
|
2448
|
+
:param bool allow_control_chars: (optional)
|
2449
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2450
|
+
By default, the response will not allow control characters in strings
|
2451
|
+
|
2452
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetPropertyCollection`
|
2453
|
+
:rtype: :class:`~oci.response.Response`
|
2454
|
+
|
2455
|
+
:example:
|
2456
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_fleet_properties.py.html>`__ to see an example of how to use list_fleet_properties API.
|
2457
|
+
"""
|
2458
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2459
|
+
required_arguments = ['fleetId']
|
2460
|
+
resource_path = "/fleets/{fleetId}/fleetProperties"
|
2461
|
+
method = "GET"
|
2462
|
+
operation_name = "list_fleet_properties"
|
2463
|
+
api_reference_link = ""
|
2464
|
+
|
2465
|
+
# Don't accept unknown kwargs
|
2466
|
+
expected_kwargs = [
|
2467
|
+
"allow_control_chars",
|
2468
|
+
"retry_strategy",
|
2469
|
+
"compartment_id",
|
2470
|
+
"lifecycle_state",
|
2471
|
+
"display_name",
|
2472
|
+
"id",
|
2473
|
+
"limit",
|
2474
|
+
"page",
|
2475
|
+
"sort_order",
|
2476
|
+
"sort_by",
|
2477
|
+
"opc_request_id"
|
2478
|
+
]
|
2479
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2480
|
+
if extra_kwargs:
|
2481
|
+
raise ValueError(
|
2482
|
+
f"list_fleet_properties got unknown kwargs: {extra_kwargs!r}")
|
2483
|
+
|
2484
|
+
path_params = {
|
2485
|
+
"fleetId": fleet_id
|
2486
|
+
}
|
2487
|
+
|
2488
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2489
|
+
|
2490
|
+
for (k, v) in six.iteritems(path_params):
|
2491
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2492
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2493
|
+
|
2494
|
+
if 'lifecycle_state' in kwargs:
|
2495
|
+
lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED"]
|
2496
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
2497
|
+
raise ValueError(
|
2498
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
2499
|
+
)
|
2500
|
+
|
2501
|
+
if 'sort_order' in kwargs:
|
2502
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2503
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2504
|
+
raise ValueError(
|
2505
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2506
|
+
)
|
2507
|
+
|
2508
|
+
if 'sort_by' in kwargs:
|
2509
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
2510
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2511
|
+
raise ValueError(
|
2512
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2513
|
+
)
|
2514
|
+
|
2515
|
+
query_params = {
|
2516
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
2517
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
2518
|
+
"displayName": kwargs.get("display_name", missing),
|
2519
|
+
"id": kwargs.get("id", missing),
|
2520
|
+
"limit": kwargs.get("limit", missing),
|
2521
|
+
"page": kwargs.get("page", missing),
|
2522
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2523
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2524
|
+
}
|
2525
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2526
|
+
|
2527
|
+
header_params = {
|
2528
|
+
"accept": "application/json",
|
2529
|
+
"content-type": "application/json",
|
2530
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2531
|
+
}
|
2532
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2533
|
+
|
2534
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2535
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2536
|
+
client_retry_strategy=self.retry_strategy
|
2537
|
+
)
|
2538
|
+
if retry_strategy is None:
|
2539
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2540
|
+
|
2541
|
+
if retry_strategy:
|
2542
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2543
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2544
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2545
|
+
return retry_strategy.make_retrying_call(
|
2546
|
+
self.base_client.call_api,
|
2547
|
+
resource_path=resource_path,
|
2548
|
+
method=method,
|
2549
|
+
path_params=path_params,
|
2550
|
+
query_params=query_params,
|
2551
|
+
header_params=header_params,
|
2552
|
+
response_type="FleetPropertyCollection",
|
2553
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2554
|
+
operation_name=operation_name,
|
2555
|
+
api_reference_link=api_reference_link,
|
2556
|
+
required_arguments=required_arguments)
|
2557
|
+
else:
|
2558
|
+
return self.base_client.call_api(
|
2559
|
+
resource_path=resource_path,
|
2560
|
+
method=method,
|
2561
|
+
path_params=path_params,
|
2562
|
+
query_params=query_params,
|
2563
|
+
header_params=header_params,
|
2564
|
+
response_type="FleetPropertyCollection",
|
2565
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2566
|
+
operation_name=operation_name,
|
2567
|
+
api_reference_link=api_reference_link,
|
2568
|
+
required_arguments=required_arguments)
|
2569
|
+
|
2570
|
+
def list_fleet_resources(self, fleet_id, **kwargs):
|
2571
|
+
"""
|
2572
|
+
Returns a list of FleetResources.
|
2573
|
+
|
2574
|
+
|
2575
|
+
:param str fleet_id: (required)
|
2576
|
+
unique Fleet identifier
|
2577
|
+
|
2578
|
+
:param str tenancy_id: (optional)
|
2579
|
+
Resource Tenancy Id
|
2580
|
+
|
2581
|
+
:param str lifecycle_state: (optional)
|
2582
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
2583
|
+
|
2584
|
+
Allowed values are: "ACTIVE", "DELETED", "FAILED", "NEEDS_ATTENTION"
|
2585
|
+
|
2586
|
+
:param str display_name: (optional)
|
2587
|
+
A filter to return only resources that match the entire display name given.
|
2588
|
+
|
2589
|
+
:param str id: (optional)
|
2590
|
+
unique FleetResource identifier
|
2591
|
+
|
2592
|
+
:param str fleet_resource_type: (optional)
|
2593
|
+
A filter to return resources that match the Type
|
2594
|
+
|
2595
|
+
:param int limit: (optional)
|
2596
|
+
The maximum number of items to return.
|
2597
|
+
|
2598
|
+
:param str page: (optional)
|
2599
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
2600
|
+
|
2601
|
+
:param str sort_order: (optional)
|
2602
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2603
|
+
|
2604
|
+
Allowed values are: "ASC", "DESC"
|
2605
|
+
|
2606
|
+
:param str sort_by: (optional)
|
2607
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
2608
|
+
|
2609
|
+
Allowed values are: "timeCreated", "displayName"
|
2610
|
+
|
2611
|
+
:param str opc_request_id: (optional)
|
2612
|
+
The client request ID for tracing.
|
2613
|
+
|
2614
|
+
:param obj retry_strategy: (optional)
|
2615
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2616
|
+
|
2617
|
+
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.
|
2618
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2619
|
+
|
2620
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2621
|
+
|
2622
|
+
:param bool allow_control_chars: (optional)
|
2623
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2624
|
+
By default, the response will not allow control characters in strings
|
2625
|
+
|
2626
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetResourceCollection`
|
2627
|
+
:rtype: :class:`~oci.response.Response`
|
2628
|
+
|
2629
|
+
:example:
|
2630
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_fleet_resources.py.html>`__ to see an example of how to use list_fleet_resources API.
|
2631
|
+
"""
|
2632
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2633
|
+
required_arguments = ['fleetId']
|
2634
|
+
resource_path = "/fleets/{fleetId}/fleetResources"
|
2635
|
+
method = "GET"
|
2636
|
+
operation_name = "list_fleet_resources"
|
2637
|
+
api_reference_link = ""
|
2638
|
+
|
2639
|
+
# Don't accept unknown kwargs
|
2640
|
+
expected_kwargs = [
|
2641
|
+
"allow_control_chars",
|
2642
|
+
"retry_strategy",
|
2643
|
+
"tenancy_id",
|
2644
|
+
"lifecycle_state",
|
2645
|
+
"display_name",
|
2646
|
+
"id",
|
2647
|
+
"fleet_resource_type",
|
2648
|
+
"limit",
|
2649
|
+
"page",
|
2650
|
+
"sort_order",
|
2651
|
+
"sort_by",
|
2652
|
+
"opc_request_id"
|
2653
|
+
]
|
2654
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2655
|
+
if extra_kwargs:
|
2656
|
+
raise ValueError(
|
2657
|
+
f"list_fleet_resources got unknown kwargs: {extra_kwargs!r}")
|
2658
|
+
|
2659
|
+
path_params = {
|
2660
|
+
"fleetId": fleet_id
|
2661
|
+
}
|
2662
|
+
|
2663
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2664
|
+
|
2665
|
+
for (k, v) in six.iteritems(path_params):
|
2666
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2667
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2668
|
+
|
2669
|
+
if 'lifecycle_state' in kwargs:
|
2670
|
+
lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED", "NEEDS_ATTENTION"]
|
2671
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
2672
|
+
raise ValueError(
|
2673
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
2674
|
+
)
|
2675
|
+
|
2676
|
+
if 'sort_order' in kwargs:
|
2677
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2678
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2679
|
+
raise ValueError(
|
2680
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2681
|
+
)
|
2682
|
+
|
2683
|
+
if 'sort_by' in kwargs:
|
2684
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
2685
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2686
|
+
raise ValueError(
|
2687
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2688
|
+
)
|
2689
|
+
|
2690
|
+
query_params = {
|
2691
|
+
"tenancyId": kwargs.get("tenancy_id", missing),
|
2692
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
2693
|
+
"displayName": kwargs.get("display_name", missing),
|
2694
|
+
"id": kwargs.get("id", missing),
|
2695
|
+
"fleetResourceType": kwargs.get("fleet_resource_type", missing),
|
2696
|
+
"limit": kwargs.get("limit", missing),
|
2697
|
+
"page": kwargs.get("page", missing),
|
2698
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2699
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2700
|
+
}
|
2701
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2702
|
+
|
2703
|
+
header_params = {
|
2704
|
+
"accept": "application/json",
|
2705
|
+
"content-type": "application/json",
|
2706
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2707
|
+
}
|
2708
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2709
|
+
|
2710
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2711
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2712
|
+
client_retry_strategy=self.retry_strategy
|
2713
|
+
)
|
2714
|
+
if retry_strategy is None:
|
2715
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2716
|
+
|
2717
|
+
if retry_strategy:
|
2718
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2719
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2720
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2721
|
+
return retry_strategy.make_retrying_call(
|
2722
|
+
self.base_client.call_api,
|
2723
|
+
resource_path=resource_path,
|
2724
|
+
method=method,
|
2725
|
+
path_params=path_params,
|
2726
|
+
query_params=query_params,
|
2727
|
+
header_params=header_params,
|
2728
|
+
response_type="FleetResourceCollection",
|
2729
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2730
|
+
operation_name=operation_name,
|
2731
|
+
api_reference_link=api_reference_link,
|
2732
|
+
required_arguments=required_arguments)
|
2733
|
+
else:
|
2734
|
+
return self.base_client.call_api(
|
2735
|
+
resource_path=resource_path,
|
2736
|
+
method=method,
|
2737
|
+
path_params=path_params,
|
2738
|
+
query_params=query_params,
|
2739
|
+
header_params=header_params,
|
2740
|
+
response_type="FleetResourceCollection",
|
2741
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2742
|
+
operation_name=operation_name,
|
2743
|
+
api_reference_link=api_reference_link,
|
2744
|
+
required_arguments=required_arguments)
|
2745
|
+
|
2746
|
+
def list_fleet_targets(self, fleet_id, **kwargs):
|
2747
|
+
"""
|
2748
|
+
Returns a list of FleetTargets.
|
2749
|
+
|
2750
|
+
|
2751
|
+
:param str fleet_id: (required)
|
2752
|
+
unique Fleet identifier
|
2753
|
+
|
2754
|
+
:param str display_name: (optional)
|
2755
|
+
A filter to return only resources that match the entire display name given.
|
2756
|
+
|
2757
|
+
:param str product: (optional)
|
2758
|
+
Product Name
|
2759
|
+
|
2760
|
+
:param str resource_id: (optional)
|
2761
|
+
Resource Identifier
|
2762
|
+
|
2763
|
+
:param str resource_display_name: (optional)
|
2764
|
+
Resource Display Name
|
2765
|
+
|
2766
|
+
:param int limit: (optional)
|
2767
|
+
The maximum number of items to return.
|
2768
|
+
|
2769
|
+
:param str page: (optional)
|
2770
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
2771
|
+
|
2772
|
+
:param str sort_order: (optional)
|
2773
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2774
|
+
|
2775
|
+
Allowed values are: "ASC", "DESC"
|
2776
|
+
|
2777
|
+
:param str sort_by: (optional)
|
2778
|
+
The field to sort by. Only one sort order may be provided. Default order for displayName,product and resourceDisplayName is ascending.
|
2779
|
+
|
2780
|
+
Allowed values are: "displayName", "product", "resourceDisplayName"
|
2781
|
+
|
2782
|
+
:param str opc_request_id: (optional)
|
2783
|
+
The client request ID for tracing.
|
2784
|
+
|
2785
|
+
:param obj retry_strategy: (optional)
|
2786
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2787
|
+
|
2788
|
+
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.
|
2789
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2790
|
+
|
2791
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2792
|
+
|
2793
|
+
:param bool allow_control_chars: (optional)
|
2794
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2795
|
+
By default, the response will not allow control characters in strings
|
2796
|
+
|
2797
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetTargetCollection`
|
2798
|
+
:rtype: :class:`~oci.response.Response`
|
2799
|
+
|
2800
|
+
:example:
|
2801
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_fleet_targets.py.html>`__ to see an example of how to use list_fleet_targets API.
|
2802
|
+
"""
|
2803
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2804
|
+
required_arguments = ['fleetId']
|
2805
|
+
resource_path = "/fleets/{fleetId}/fleetTargets"
|
2806
|
+
method = "GET"
|
2807
|
+
operation_name = "list_fleet_targets"
|
2808
|
+
api_reference_link = ""
|
2809
|
+
|
2810
|
+
# Don't accept unknown kwargs
|
2811
|
+
expected_kwargs = [
|
2812
|
+
"allow_control_chars",
|
2813
|
+
"retry_strategy",
|
2814
|
+
"display_name",
|
2815
|
+
"product",
|
2816
|
+
"resource_id",
|
2817
|
+
"resource_display_name",
|
2818
|
+
"limit",
|
2819
|
+
"page",
|
2820
|
+
"sort_order",
|
2821
|
+
"sort_by",
|
2822
|
+
"opc_request_id"
|
2823
|
+
]
|
2824
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2825
|
+
if extra_kwargs:
|
2826
|
+
raise ValueError(
|
2827
|
+
f"list_fleet_targets got unknown kwargs: {extra_kwargs!r}")
|
2828
|
+
|
2829
|
+
path_params = {
|
2830
|
+
"fleetId": fleet_id
|
2831
|
+
}
|
2832
|
+
|
2833
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2834
|
+
|
2835
|
+
for (k, v) in six.iteritems(path_params):
|
2836
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2837
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2838
|
+
|
2839
|
+
if 'sort_order' in kwargs:
|
2840
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2841
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2842
|
+
raise ValueError(
|
2843
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2844
|
+
)
|
2845
|
+
|
2846
|
+
if 'sort_by' in kwargs:
|
2847
|
+
sort_by_allowed_values = ["displayName", "product", "resourceDisplayName"]
|
2848
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2849
|
+
raise ValueError(
|
2850
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2851
|
+
)
|
2852
|
+
|
2853
|
+
query_params = {
|
2854
|
+
"displayName": kwargs.get("display_name", missing),
|
2855
|
+
"product": kwargs.get("product", missing),
|
2856
|
+
"resourceId": kwargs.get("resource_id", missing),
|
2857
|
+
"resourceDisplayName": kwargs.get("resource_display_name", missing),
|
2858
|
+
"limit": kwargs.get("limit", missing),
|
2859
|
+
"page": kwargs.get("page", missing),
|
2860
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2861
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2862
|
+
}
|
2863
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2864
|
+
|
2865
|
+
header_params = {
|
2866
|
+
"accept": "application/json",
|
2867
|
+
"content-type": "application/json",
|
2868
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2869
|
+
}
|
2870
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2871
|
+
|
2872
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2873
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2874
|
+
client_retry_strategy=self.retry_strategy
|
2875
|
+
)
|
2876
|
+
if retry_strategy is None:
|
2877
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2878
|
+
|
2879
|
+
if retry_strategy:
|
2880
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2881
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2882
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2883
|
+
return retry_strategy.make_retrying_call(
|
2884
|
+
self.base_client.call_api,
|
2885
|
+
resource_path=resource_path,
|
2886
|
+
method=method,
|
2887
|
+
path_params=path_params,
|
2888
|
+
query_params=query_params,
|
2889
|
+
header_params=header_params,
|
2890
|
+
response_type="FleetTargetCollection",
|
2891
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2892
|
+
operation_name=operation_name,
|
2893
|
+
api_reference_link=api_reference_link,
|
2894
|
+
required_arguments=required_arguments)
|
2895
|
+
else:
|
2896
|
+
return self.base_client.call_api(
|
2897
|
+
resource_path=resource_path,
|
2898
|
+
method=method,
|
2899
|
+
path_params=path_params,
|
2900
|
+
query_params=query_params,
|
2901
|
+
header_params=header_params,
|
2902
|
+
response_type="FleetTargetCollection",
|
2903
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2904
|
+
operation_name=operation_name,
|
2905
|
+
api_reference_link=api_reference_link,
|
2906
|
+
required_arguments=required_arguments)
|
2907
|
+
|
2908
|
+
def list_fleets(self, **kwargs):
|
2909
|
+
"""
|
2910
|
+
Returns a list of Fleets in the specified Tenancy.
|
2911
|
+
|
2912
|
+
|
2913
|
+
:param str lifecycle_state: (optional)
|
2914
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
2915
|
+
|
2916
|
+
Allowed values are: "ACTIVE", "INACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", "NEEDS_ATTENTION"
|
2917
|
+
|
2918
|
+
:param str compartment_id: (optional)
|
2919
|
+
The ID of the compartment in which to list resources.
|
2920
|
+
|
2921
|
+
:param str fleet_type: (optional)
|
2922
|
+
A filter to return only resources their fleetType matches the given fleetType.
|
2923
|
+
|
2924
|
+
Allowed values are: "PRODUCT", "ENVIRONMENT", "GENERIC", "GROUP"
|
2925
|
+
|
2926
|
+
:param str application_type: (optional)
|
2927
|
+
A filter to return only resources that match the Application Type given.
|
2928
|
+
|
2929
|
+
:param str product: (optional)
|
2930
|
+
A filter to return only resources that match the Product Type given.
|
2931
|
+
|
2932
|
+
:param str environment_type: (optional)
|
2933
|
+
A filter to return only resources that match the Environment Type given.
|
2934
|
+
|
2935
|
+
:param str display_name: (optional)
|
2936
|
+
A filter to return only resources that match the entire display name given.
|
2937
|
+
|
2938
|
+
:param str id: (optional)
|
2939
|
+
unique Fleet identifier
|
2940
|
+
|
2941
|
+
:param int limit: (optional)
|
2942
|
+
The maximum number of items to return.
|
2943
|
+
|
2944
|
+
:param str page: (optional)
|
2945
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
2946
|
+
|
2947
|
+
:param str sort_order: (optional)
|
2948
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2949
|
+
|
2950
|
+
Allowed values are: "ASC", "DESC"
|
2951
|
+
|
2952
|
+
:param str sort_by: (optional)
|
2953
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
2954
|
+
|
2955
|
+
Allowed values are: "timeCreated", "displayName"
|
2956
|
+
|
2957
|
+
:param str opc_request_id: (optional)
|
2958
|
+
The client request ID for tracing.
|
2959
|
+
|
2960
|
+
:param obj retry_strategy: (optional)
|
2961
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2962
|
+
|
2963
|
+
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.
|
2964
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2965
|
+
|
2966
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2967
|
+
|
2968
|
+
:param bool allow_control_chars: (optional)
|
2969
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2970
|
+
By default, the response will not allow control characters in strings
|
2971
|
+
|
2972
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetCollection`
|
2973
|
+
:rtype: :class:`~oci.response.Response`
|
2974
|
+
|
2975
|
+
:example:
|
2976
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_fleets.py.html>`__ to see an example of how to use list_fleets API.
|
2977
|
+
"""
|
2978
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2979
|
+
required_arguments = []
|
2980
|
+
resource_path = "/fleets"
|
2981
|
+
method = "GET"
|
2982
|
+
operation_name = "list_fleets"
|
2983
|
+
api_reference_link = ""
|
2984
|
+
|
2985
|
+
# Don't accept unknown kwargs
|
2986
|
+
expected_kwargs = [
|
2987
|
+
"allow_control_chars",
|
2988
|
+
"retry_strategy",
|
2989
|
+
"lifecycle_state",
|
2990
|
+
"compartment_id",
|
2991
|
+
"fleet_type",
|
2992
|
+
"application_type",
|
2993
|
+
"product",
|
2994
|
+
"environment_type",
|
2995
|
+
"display_name",
|
2996
|
+
"id",
|
2997
|
+
"limit",
|
2998
|
+
"page",
|
2999
|
+
"sort_order",
|
3000
|
+
"sort_by",
|
3001
|
+
"opc_request_id"
|
3002
|
+
]
|
3003
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3004
|
+
if extra_kwargs:
|
3005
|
+
raise ValueError(
|
3006
|
+
f"list_fleets got unknown kwargs: {extra_kwargs!r}")
|
3007
|
+
|
3008
|
+
if 'lifecycle_state' in kwargs:
|
3009
|
+
lifecycle_state_allowed_values = ["ACTIVE", "INACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", "NEEDS_ATTENTION"]
|
3010
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
3011
|
+
raise ValueError(
|
3012
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
3013
|
+
)
|
3014
|
+
|
3015
|
+
if 'fleet_type' in kwargs:
|
3016
|
+
fleet_type_allowed_values = ["PRODUCT", "ENVIRONMENT", "GENERIC", "GROUP"]
|
3017
|
+
if kwargs['fleet_type'] not in fleet_type_allowed_values:
|
3018
|
+
raise ValueError(
|
3019
|
+
f"Invalid value for `fleet_type`, must be one of { fleet_type_allowed_values }"
|
3020
|
+
)
|
3021
|
+
|
3022
|
+
if 'sort_order' in kwargs:
|
3023
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
3024
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
3025
|
+
raise ValueError(
|
3026
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3027
|
+
)
|
3028
|
+
|
3029
|
+
if 'sort_by' in kwargs:
|
3030
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
3031
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
3032
|
+
raise ValueError(
|
3033
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
3034
|
+
)
|
3035
|
+
|
3036
|
+
query_params = {
|
3037
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
3038
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
3039
|
+
"fleetType": kwargs.get("fleet_type", missing),
|
3040
|
+
"applicationType": kwargs.get("application_type", missing),
|
3041
|
+
"product": kwargs.get("product", missing),
|
3042
|
+
"environmentType": kwargs.get("environment_type", missing),
|
3043
|
+
"displayName": kwargs.get("display_name", missing),
|
3044
|
+
"id": kwargs.get("id", missing),
|
3045
|
+
"limit": kwargs.get("limit", missing),
|
3046
|
+
"page": kwargs.get("page", missing),
|
3047
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
3048
|
+
"sortBy": kwargs.get("sort_by", missing)
|
3049
|
+
}
|
3050
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3051
|
+
|
3052
|
+
header_params = {
|
3053
|
+
"accept": "application/json",
|
3054
|
+
"content-type": "application/json",
|
3055
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3056
|
+
}
|
3057
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3058
|
+
|
3059
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3060
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3061
|
+
client_retry_strategy=self.retry_strategy
|
3062
|
+
)
|
3063
|
+
if retry_strategy is None:
|
3064
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3065
|
+
|
3066
|
+
if retry_strategy:
|
3067
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3068
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3069
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3070
|
+
return retry_strategy.make_retrying_call(
|
3071
|
+
self.base_client.call_api,
|
3072
|
+
resource_path=resource_path,
|
3073
|
+
method=method,
|
3074
|
+
query_params=query_params,
|
3075
|
+
header_params=header_params,
|
3076
|
+
response_type="FleetCollection",
|
3077
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3078
|
+
operation_name=operation_name,
|
3079
|
+
api_reference_link=api_reference_link,
|
3080
|
+
required_arguments=required_arguments)
|
3081
|
+
else:
|
3082
|
+
return self.base_client.call_api(
|
3083
|
+
resource_path=resource_path,
|
3084
|
+
method=method,
|
3085
|
+
query_params=query_params,
|
3086
|
+
header_params=header_params,
|
3087
|
+
response_type="FleetCollection",
|
3088
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3089
|
+
operation_name=operation_name,
|
3090
|
+
api_reference_link=api_reference_link,
|
3091
|
+
required_arguments=required_arguments)
|
3092
|
+
|
3093
|
+
def list_inventory_resources(self, compartment_id, resource_compartment_id, **kwargs):
|
3094
|
+
"""
|
3095
|
+
Returns a list of InventoryResources.
|
3096
|
+
|
3097
|
+
|
3098
|
+
:param str compartment_id: (required)
|
3099
|
+
The ID of the compartment in which to list resources.
|
3100
|
+
|
3101
|
+
:param str resource_compartment_id: (required)
|
3102
|
+
Resource Compartment ID
|
3103
|
+
|
3104
|
+
:param str lifecycle_state: (optional)
|
3105
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
3106
|
+
|
3107
|
+
:param str display_name: (optional)
|
3108
|
+
A filter to return only resources that match the entire display name given.
|
3109
|
+
|
3110
|
+
:param str resource_region: (optional)
|
3111
|
+
Resource Region
|
3112
|
+
|
3113
|
+
:param list[str] defined_tag_equals: (optional)
|
3114
|
+
A list of tag filters to apply. Only resources with a defined tag matching the value will be returned.
|
3115
|
+
Each item in the list has the format \"{namespace}.{tagName}={value}\". All inputs are case-insensitive.
|
3116
|
+
Multiple values for the same key (i.e. same namespace and tag name) are interpreted as \"OR\".
|
3117
|
+
Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as \"AND\".
|
3118
|
+
|
3119
|
+
:param list[str] freeform_tag_equals: (optional)
|
3120
|
+
A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned.
|
3121
|
+
The key for each tag is \"{tagName}.{value}\". All inputs are case-insensitive.
|
3122
|
+
Multiple values for the same tag name are interpreted as \"OR\". Values for different tag names are interpreted as \"AND\".
|
3123
|
+
|
3124
|
+
:param list[str] inventory_properties: (optional)
|
3125
|
+
A list of inventory properties filters to apply.
|
3126
|
+
The key for each inventory property and value for each resource type is \"{resourceType}.{inventoryProperty}={value}\".
|
3127
|
+
|
3128
|
+
:param str matching_criteria: (optional)
|
3129
|
+
Fetch resources matching matching ANY or ALL criteria passed as params in \"tags\" and \"inventoryProperties\"
|
3130
|
+
|
3131
|
+
:param int limit: (optional)
|
3132
|
+
The maximum number of items to return.
|
3133
|
+
|
3134
|
+
:param str page: (optional)
|
3135
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
3136
|
+
|
3137
|
+
:param str sort_order: (optional)
|
3138
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
3139
|
+
|
3140
|
+
Allowed values are: "ASC", "DESC"
|
3141
|
+
|
3142
|
+
:param str sort_by: (optional)
|
3143
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
3144
|
+
|
3145
|
+
Allowed values are: "timeCreated", "displayName"
|
3146
|
+
|
3147
|
+
:param str opc_request_id: (optional)
|
3148
|
+
The client request ID for tracing.
|
3149
|
+
|
3150
|
+
:param obj retry_strategy: (optional)
|
3151
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3152
|
+
|
3153
|
+
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.
|
3154
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3155
|
+
|
3156
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3157
|
+
|
3158
|
+
:param bool allow_control_chars: (optional)
|
3159
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3160
|
+
By default, the response will not allow control characters in strings
|
3161
|
+
|
3162
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.InventoryResourceCollection`
|
3163
|
+
:rtype: :class:`~oci.response.Response`
|
3164
|
+
|
3165
|
+
:example:
|
3166
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_inventory_resources.py.html>`__ to see an example of how to use list_inventory_resources API.
|
3167
|
+
"""
|
3168
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3169
|
+
required_arguments = ['compartmentId', 'resourceCompartmentId']
|
3170
|
+
resource_path = "/inventoryResources"
|
3171
|
+
method = "GET"
|
3172
|
+
operation_name = "list_inventory_resources"
|
3173
|
+
api_reference_link = ""
|
3174
|
+
|
3175
|
+
# Don't accept unknown kwargs
|
3176
|
+
expected_kwargs = [
|
3177
|
+
"allow_control_chars",
|
3178
|
+
"retry_strategy",
|
3179
|
+
"lifecycle_state",
|
3180
|
+
"display_name",
|
3181
|
+
"resource_region",
|
3182
|
+
"defined_tag_equals",
|
3183
|
+
"freeform_tag_equals",
|
3184
|
+
"inventory_properties",
|
3185
|
+
"matching_criteria",
|
3186
|
+
"limit",
|
3187
|
+
"page",
|
3188
|
+
"sort_order",
|
3189
|
+
"sort_by",
|
3190
|
+
"opc_request_id"
|
3191
|
+
]
|
3192
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3193
|
+
if extra_kwargs:
|
3194
|
+
raise ValueError(
|
3195
|
+
f"list_inventory_resources got unknown kwargs: {extra_kwargs!r}")
|
3196
|
+
|
3197
|
+
if 'sort_order' in kwargs:
|
3198
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
3199
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
3200
|
+
raise ValueError(
|
3201
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3202
|
+
)
|
3203
|
+
|
3204
|
+
if 'sort_by' in kwargs:
|
3205
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
3206
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
3207
|
+
raise ValueError(
|
3208
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
3209
|
+
)
|
3210
|
+
|
3211
|
+
query_params = {
|
3212
|
+
"compartmentId": compartment_id,
|
3213
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
3214
|
+
"displayName": kwargs.get("display_name", missing),
|
3215
|
+
"resourceRegion": kwargs.get("resource_region", missing),
|
3216
|
+
"resourceCompartmentId": resource_compartment_id,
|
3217
|
+
"definedTagEquals": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_equals", missing), 'multi'),
|
3218
|
+
"freeformTagEquals": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_equals", missing), 'multi'),
|
3219
|
+
"inventoryProperties": self.base_client.generate_collection_format_param(kwargs.get("inventory_properties", missing), 'multi'),
|
3220
|
+
"matchingCriteria": kwargs.get("matching_criteria", missing),
|
3221
|
+
"limit": kwargs.get("limit", missing),
|
3222
|
+
"page": kwargs.get("page", missing),
|
3223
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
3224
|
+
"sortBy": kwargs.get("sort_by", missing)
|
3225
|
+
}
|
3226
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3227
|
+
|
3228
|
+
header_params = {
|
3229
|
+
"accept": "application/json",
|
3230
|
+
"content-type": "application/json",
|
3231
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3232
|
+
}
|
3233
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3234
|
+
|
3235
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3236
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3237
|
+
client_retry_strategy=self.retry_strategy
|
3238
|
+
)
|
3239
|
+
if retry_strategy is None:
|
3240
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3241
|
+
|
3242
|
+
if retry_strategy:
|
3243
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3244
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3245
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3246
|
+
return retry_strategy.make_retrying_call(
|
3247
|
+
self.base_client.call_api,
|
3248
|
+
resource_path=resource_path,
|
3249
|
+
method=method,
|
3250
|
+
query_params=query_params,
|
3251
|
+
header_params=header_params,
|
3252
|
+
response_type="InventoryResourceCollection",
|
3253
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3254
|
+
operation_name=operation_name,
|
3255
|
+
api_reference_link=api_reference_link,
|
3256
|
+
required_arguments=required_arguments)
|
3257
|
+
else:
|
3258
|
+
return self.base_client.call_api(
|
3259
|
+
resource_path=resource_path,
|
3260
|
+
method=method,
|
3261
|
+
query_params=query_params,
|
3262
|
+
header_params=header_params,
|
3263
|
+
response_type="InventoryResourceCollection",
|
3264
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3265
|
+
operation_name=operation_name,
|
3266
|
+
api_reference_link=api_reference_link,
|
3267
|
+
required_arguments=required_arguments)
|
3268
|
+
|
3269
|
+
def list_targets(self, fleet_id, **kwargs):
|
3270
|
+
"""
|
3271
|
+
Returns a list of FleetTargets.
|
3272
|
+
|
3273
|
+
|
3274
|
+
:param str fleet_id: (required)
|
3275
|
+
unique Fleet identifier
|
3276
|
+
|
3277
|
+
:param str display_name: (optional)
|
3278
|
+
A filter to return only resources that match the entire display name given.
|
3279
|
+
|
3280
|
+
:param int limit: (optional)
|
3281
|
+
The maximum number of items to return.
|
3282
|
+
|
3283
|
+
:param str page: (optional)
|
3284
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
3285
|
+
|
3286
|
+
:param str sort_order: (optional)
|
3287
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
3288
|
+
|
3289
|
+
Allowed values are: "ASC", "DESC"
|
3290
|
+
|
3291
|
+
:param str sort_by: (optional)
|
3292
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
3293
|
+
|
3294
|
+
Allowed values are: "timeCreated", "displayName"
|
3295
|
+
|
3296
|
+
:param str opc_request_id: (optional)
|
3297
|
+
The client request ID for tracing.
|
3298
|
+
|
3299
|
+
:param obj retry_strategy: (optional)
|
3300
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3301
|
+
|
3302
|
+
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.
|
3303
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3304
|
+
|
3305
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3306
|
+
|
3307
|
+
:param bool allow_control_chars: (optional)
|
3308
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3309
|
+
By default, the response will not allow control characters in strings
|
3310
|
+
|
3311
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetTargetCollection`
|
3312
|
+
:rtype: :class:`~oci.response.Response`
|
3313
|
+
|
3314
|
+
:example:
|
3315
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_targets.py.html>`__ to see an example of how to use list_targets API.
|
3316
|
+
"""
|
3317
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3318
|
+
required_arguments = ['fleetId']
|
3319
|
+
resource_path = "/fleets/{fleetId}/targets"
|
3320
|
+
method = "GET"
|
3321
|
+
operation_name = "list_targets"
|
3322
|
+
api_reference_link = ""
|
3323
|
+
|
3324
|
+
# Don't accept unknown kwargs
|
3325
|
+
expected_kwargs = [
|
3326
|
+
"allow_control_chars",
|
3327
|
+
"retry_strategy",
|
3328
|
+
"display_name",
|
3329
|
+
"limit",
|
3330
|
+
"page",
|
3331
|
+
"sort_order",
|
3332
|
+
"sort_by",
|
3333
|
+
"opc_request_id"
|
3334
|
+
]
|
3335
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3336
|
+
if extra_kwargs:
|
3337
|
+
raise ValueError(
|
3338
|
+
f"list_targets got unknown kwargs: {extra_kwargs!r}")
|
3339
|
+
|
3340
|
+
path_params = {
|
3341
|
+
"fleetId": fleet_id
|
3342
|
+
}
|
3343
|
+
|
3344
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3345
|
+
|
3346
|
+
for (k, v) in six.iteritems(path_params):
|
3347
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3348
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3349
|
+
|
3350
|
+
if 'sort_order' in kwargs:
|
3351
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
3352
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
3353
|
+
raise ValueError(
|
3354
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3355
|
+
)
|
3356
|
+
|
3357
|
+
if 'sort_by' in kwargs:
|
3358
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
3359
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
3360
|
+
raise ValueError(
|
3361
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
3362
|
+
)
|
3363
|
+
|
3364
|
+
query_params = {
|
3365
|
+
"displayName": kwargs.get("display_name", missing),
|
3366
|
+
"limit": kwargs.get("limit", missing),
|
3367
|
+
"page": kwargs.get("page", missing),
|
3368
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
3369
|
+
"sortBy": kwargs.get("sort_by", missing)
|
3370
|
+
}
|
3371
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3372
|
+
|
3373
|
+
header_params = {
|
3374
|
+
"accept": "application/json",
|
3375
|
+
"content-type": "application/json",
|
3376
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3377
|
+
}
|
3378
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3379
|
+
|
3380
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3381
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3382
|
+
client_retry_strategy=self.retry_strategy
|
3383
|
+
)
|
3384
|
+
if retry_strategy is None:
|
3385
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3386
|
+
|
3387
|
+
if retry_strategy:
|
3388
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3389
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3390
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3391
|
+
return retry_strategy.make_retrying_call(
|
3392
|
+
self.base_client.call_api,
|
3393
|
+
resource_path=resource_path,
|
3394
|
+
method=method,
|
3395
|
+
path_params=path_params,
|
3396
|
+
query_params=query_params,
|
3397
|
+
header_params=header_params,
|
3398
|
+
response_type="FleetTargetCollection",
|
3399
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3400
|
+
operation_name=operation_name,
|
3401
|
+
api_reference_link=api_reference_link,
|
3402
|
+
required_arguments=required_arguments)
|
3403
|
+
else:
|
3404
|
+
return self.base_client.call_api(
|
3405
|
+
resource_path=resource_path,
|
3406
|
+
method=method,
|
3407
|
+
path_params=path_params,
|
3408
|
+
query_params=query_params,
|
3409
|
+
header_params=header_params,
|
3410
|
+
response_type="FleetTargetCollection",
|
3411
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3412
|
+
operation_name=operation_name,
|
3413
|
+
api_reference_link=api_reference_link,
|
3414
|
+
required_arguments=required_arguments)
|
3415
|
+
|
3416
|
+
def list_work_request_errors(self, work_request_id, **kwargs):
|
3417
|
+
"""
|
3418
|
+
Returns a (paginated) list of errors for the work request with the given ID.
|
3419
|
+
|
3420
|
+
|
3421
|
+
:param str work_request_id: (required)
|
3422
|
+
The ID of the asynchronous request.
|
3423
|
+
|
3424
|
+
:param str opc_request_id: (optional)
|
3425
|
+
The client request ID for tracing.
|
3426
|
+
|
3427
|
+
:param str page: (optional)
|
3428
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
3429
|
+
|
3430
|
+
:param int limit: (optional)
|
3431
|
+
The maximum number of items to return.
|
3432
|
+
|
3433
|
+
:param str sort_by: (optional)
|
3434
|
+
The field to sort by. Only one sort order may be provided. Default order for timestamp is descending.
|
3435
|
+
|
3436
|
+
Allowed values are: "timestamp"
|
3437
|
+
|
3438
|
+
:param str sort_order: (optional)
|
3439
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
3440
|
+
|
3441
|
+
Allowed values are: "ASC", "DESC"
|
3442
|
+
|
3443
|
+
:param obj retry_strategy: (optional)
|
3444
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3445
|
+
|
3446
|
+
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.
|
3447
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3448
|
+
|
3449
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3450
|
+
|
3451
|
+
:param bool allow_control_chars: (optional)
|
3452
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3453
|
+
By default, the response will not allow control characters in strings
|
3454
|
+
|
3455
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.WorkRequestErrorCollection`
|
3456
|
+
:rtype: :class:`~oci.response.Response`
|
3457
|
+
|
3458
|
+
:example:
|
3459
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
3460
|
+
"""
|
3461
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3462
|
+
required_arguments = ['workRequestId']
|
3463
|
+
resource_path = "/workRequests/{workRequestId}/errors"
|
3464
|
+
method = "GET"
|
3465
|
+
operation_name = "list_work_request_errors"
|
3466
|
+
api_reference_link = ""
|
3467
|
+
|
3468
|
+
# Don't accept unknown kwargs
|
3469
|
+
expected_kwargs = [
|
3470
|
+
"allow_control_chars",
|
3471
|
+
"retry_strategy",
|
3472
|
+
"opc_request_id",
|
3473
|
+
"page",
|
3474
|
+
"limit",
|
3475
|
+
"sort_by",
|
3476
|
+
"sort_order"
|
3477
|
+
]
|
3478
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3479
|
+
if extra_kwargs:
|
3480
|
+
raise ValueError(
|
3481
|
+
f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}")
|
3482
|
+
|
3483
|
+
path_params = {
|
3484
|
+
"workRequestId": work_request_id
|
3485
|
+
}
|
3486
|
+
|
3487
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3488
|
+
|
3489
|
+
for (k, v) in six.iteritems(path_params):
|
3490
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3491
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3492
|
+
|
3493
|
+
if 'sort_by' in kwargs:
|
3494
|
+
sort_by_allowed_values = ["timestamp"]
|
3495
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
3496
|
+
raise ValueError(
|
3497
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
3498
|
+
)
|
3499
|
+
|
3500
|
+
if 'sort_order' in kwargs:
|
3501
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
3502
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
3503
|
+
raise ValueError(
|
3504
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3505
|
+
)
|
3506
|
+
|
3507
|
+
query_params = {
|
3508
|
+
"page": kwargs.get("page", missing),
|
3509
|
+
"limit": kwargs.get("limit", missing),
|
3510
|
+
"sortBy": kwargs.get("sort_by", missing),
|
3511
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
3512
|
+
}
|
3513
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3514
|
+
|
3515
|
+
header_params = {
|
3516
|
+
"accept": "application/json",
|
3517
|
+
"content-type": "application/json",
|
3518
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3519
|
+
}
|
3520
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3521
|
+
|
3522
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3523
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3524
|
+
client_retry_strategy=self.retry_strategy
|
3525
|
+
)
|
3526
|
+
if retry_strategy is None:
|
3527
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3528
|
+
|
3529
|
+
if retry_strategy:
|
3530
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3531
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3532
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3533
|
+
return retry_strategy.make_retrying_call(
|
3534
|
+
self.base_client.call_api,
|
3535
|
+
resource_path=resource_path,
|
3536
|
+
method=method,
|
3537
|
+
path_params=path_params,
|
3538
|
+
query_params=query_params,
|
3539
|
+
header_params=header_params,
|
3540
|
+
response_type="WorkRequestErrorCollection",
|
3541
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3542
|
+
operation_name=operation_name,
|
3543
|
+
api_reference_link=api_reference_link,
|
3544
|
+
required_arguments=required_arguments)
|
3545
|
+
else:
|
3546
|
+
return self.base_client.call_api(
|
3547
|
+
resource_path=resource_path,
|
3548
|
+
method=method,
|
3549
|
+
path_params=path_params,
|
3550
|
+
query_params=query_params,
|
3551
|
+
header_params=header_params,
|
3552
|
+
response_type="WorkRequestErrorCollection",
|
3553
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3554
|
+
operation_name=operation_name,
|
3555
|
+
api_reference_link=api_reference_link,
|
3556
|
+
required_arguments=required_arguments)
|
3557
|
+
|
3558
|
+
def list_work_request_logs(self, work_request_id, **kwargs):
|
3559
|
+
"""
|
3560
|
+
Returns a (paginated) list of logs for the work request with the given ID.
|
3561
|
+
|
3562
|
+
|
3563
|
+
:param str work_request_id: (required)
|
3564
|
+
The ID of the asynchronous request.
|
3565
|
+
|
3566
|
+
:param str opc_request_id: (optional)
|
3567
|
+
The client request ID for tracing.
|
3568
|
+
|
3569
|
+
:param str page: (optional)
|
3570
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
3571
|
+
|
3572
|
+
:param int limit: (optional)
|
3573
|
+
The maximum number of items to return.
|
3574
|
+
|
3575
|
+
:param str sort_by: (optional)
|
3576
|
+
The field to sort by. Only one sort order may be provided. Default order for timestamp is descending.
|
3577
|
+
|
3578
|
+
Allowed values are: "timestamp"
|
3579
|
+
|
3580
|
+
:param str sort_order: (optional)
|
3581
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
3582
|
+
|
3583
|
+
Allowed values are: "ASC", "DESC"
|
3584
|
+
|
3585
|
+
:param obj retry_strategy: (optional)
|
3586
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3587
|
+
|
3588
|
+
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.
|
3589
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3590
|
+
|
3591
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3592
|
+
|
3593
|
+
:param bool allow_control_chars: (optional)
|
3594
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3595
|
+
By default, the response will not allow control characters in strings
|
3596
|
+
|
3597
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.WorkRequestLogEntryCollection`
|
3598
|
+
:rtype: :class:`~oci.response.Response`
|
3599
|
+
|
3600
|
+
:example:
|
3601
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
3602
|
+
"""
|
3603
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3604
|
+
required_arguments = ['workRequestId']
|
3605
|
+
resource_path = "/workRequests/{workRequestId}/logs"
|
3606
|
+
method = "GET"
|
3607
|
+
operation_name = "list_work_request_logs"
|
3608
|
+
api_reference_link = ""
|
3609
|
+
|
3610
|
+
# Don't accept unknown kwargs
|
3611
|
+
expected_kwargs = [
|
3612
|
+
"allow_control_chars",
|
3613
|
+
"retry_strategy",
|
3614
|
+
"opc_request_id",
|
3615
|
+
"page",
|
3616
|
+
"limit",
|
3617
|
+
"sort_by",
|
3618
|
+
"sort_order"
|
3619
|
+
]
|
3620
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3621
|
+
if extra_kwargs:
|
3622
|
+
raise ValueError(
|
3623
|
+
f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}")
|
3624
|
+
|
3625
|
+
path_params = {
|
3626
|
+
"workRequestId": work_request_id
|
3627
|
+
}
|
3628
|
+
|
3629
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3630
|
+
|
3631
|
+
for (k, v) in six.iteritems(path_params):
|
3632
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3633
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3634
|
+
|
3635
|
+
if 'sort_by' in kwargs:
|
3636
|
+
sort_by_allowed_values = ["timestamp"]
|
3637
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
3638
|
+
raise ValueError(
|
3639
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
3640
|
+
)
|
3641
|
+
|
3642
|
+
if 'sort_order' in kwargs:
|
3643
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
3644
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
3645
|
+
raise ValueError(
|
3646
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3647
|
+
)
|
3648
|
+
|
3649
|
+
query_params = {
|
3650
|
+
"page": kwargs.get("page", missing),
|
3651
|
+
"limit": kwargs.get("limit", missing),
|
3652
|
+
"sortBy": kwargs.get("sort_by", missing),
|
3653
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
3654
|
+
}
|
3655
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3656
|
+
|
3657
|
+
header_params = {
|
3658
|
+
"accept": "application/json",
|
3659
|
+
"content-type": "application/json",
|
3660
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3661
|
+
}
|
3662
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3663
|
+
|
3664
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3665
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3666
|
+
client_retry_strategy=self.retry_strategy
|
3667
|
+
)
|
3668
|
+
if retry_strategy is None:
|
3669
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3670
|
+
|
3671
|
+
if retry_strategy:
|
3672
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3673
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3674
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3675
|
+
return retry_strategy.make_retrying_call(
|
3676
|
+
self.base_client.call_api,
|
3677
|
+
resource_path=resource_path,
|
3678
|
+
method=method,
|
3679
|
+
path_params=path_params,
|
3680
|
+
query_params=query_params,
|
3681
|
+
header_params=header_params,
|
3682
|
+
response_type="WorkRequestLogEntryCollection",
|
3683
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3684
|
+
operation_name=operation_name,
|
3685
|
+
api_reference_link=api_reference_link,
|
3686
|
+
required_arguments=required_arguments)
|
3687
|
+
else:
|
3688
|
+
return self.base_client.call_api(
|
3689
|
+
resource_path=resource_path,
|
3690
|
+
method=method,
|
3691
|
+
path_params=path_params,
|
3692
|
+
query_params=query_params,
|
3693
|
+
header_params=header_params,
|
3694
|
+
response_type="WorkRequestLogEntryCollection",
|
3695
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3696
|
+
operation_name=operation_name,
|
3697
|
+
api_reference_link=api_reference_link,
|
3698
|
+
required_arguments=required_arguments)
|
3699
|
+
|
3700
|
+
def list_work_requests(self, **kwargs):
|
3701
|
+
"""
|
3702
|
+
Lists the work requests in a compartment.
|
3703
|
+
|
3704
|
+
|
3705
|
+
:param str compartment_id: (optional)
|
3706
|
+
The ID of the compartment in which to list resources.
|
3707
|
+
|
3708
|
+
:param str work_request_id: (optional)
|
3709
|
+
The ID of the asynchronous work request.
|
3710
|
+
|
3711
|
+
:param str status: (optional)
|
3712
|
+
A filter to return only resources their lifecycleState matches the given OperationStatus.
|
3713
|
+
|
3714
|
+
Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
|
3715
|
+
|
3716
|
+
:param str resource_id: (optional)
|
3717
|
+
Resource Identifier
|
3718
|
+
|
3719
|
+
:param str opc_request_id: (optional)
|
3720
|
+
The client request ID for tracing.
|
3721
|
+
|
3722
|
+
:param str page: (optional)
|
3723
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
3724
|
+
|
3725
|
+
:param int limit: (optional)
|
3726
|
+
The maximum number of items to return.
|
3727
|
+
|
3728
|
+
:param str sort_order: (optional)
|
3729
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
3730
|
+
|
3731
|
+
Allowed values are: "ASC", "DESC"
|
3732
|
+
|
3733
|
+
:param str sort_by: (optional)
|
3734
|
+
The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
|
3735
|
+
|
3736
|
+
Allowed values are: "timeAccepted"
|
3737
|
+
|
3738
|
+
:param obj retry_strategy: (optional)
|
3739
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3740
|
+
|
3741
|
+
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.
|
3742
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3743
|
+
|
3744
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3745
|
+
|
3746
|
+
:param bool allow_control_chars: (optional)
|
3747
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3748
|
+
By default, the response will not allow control characters in strings
|
3749
|
+
|
3750
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.WorkRequestSummaryCollection`
|
3751
|
+
:rtype: :class:`~oci.response.Response`
|
3752
|
+
|
3753
|
+
:example:
|
3754
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
3755
|
+
"""
|
3756
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3757
|
+
required_arguments = []
|
3758
|
+
resource_path = "/workRequests"
|
3759
|
+
method = "GET"
|
3760
|
+
operation_name = "list_work_requests"
|
3761
|
+
api_reference_link = ""
|
3762
|
+
|
3763
|
+
# Don't accept unknown kwargs
|
3764
|
+
expected_kwargs = [
|
3765
|
+
"allow_control_chars",
|
3766
|
+
"retry_strategy",
|
3767
|
+
"compartment_id",
|
3768
|
+
"work_request_id",
|
3769
|
+
"status",
|
3770
|
+
"resource_id",
|
3771
|
+
"opc_request_id",
|
3772
|
+
"page",
|
3773
|
+
"limit",
|
3774
|
+
"sort_order",
|
3775
|
+
"sort_by"
|
3776
|
+
]
|
3777
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3778
|
+
if extra_kwargs:
|
3779
|
+
raise ValueError(
|
3780
|
+
f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
|
3781
|
+
|
3782
|
+
if 'status' in kwargs:
|
3783
|
+
status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
|
3784
|
+
if kwargs['status'] not in status_allowed_values:
|
3785
|
+
raise ValueError(
|
3786
|
+
f"Invalid value for `status`, must be one of { status_allowed_values }"
|
3787
|
+
)
|
3788
|
+
|
3789
|
+
if 'sort_order' in kwargs:
|
3790
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
3791
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
3792
|
+
raise ValueError(
|
3793
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3794
|
+
)
|
3795
|
+
|
3796
|
+
if 'sort_by' in kwargs:
|
3797
|
+
sort_by_allowed_values = ["timeAccepted"]
|
3798
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
3799
|
+
raise ValueError(
|
3800
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
3801
|
+
)
|
3802
|
+
|
3803
|
+
query_params = {
|
3804
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
3805
|
+
"workRequestId": kwargs.get("work_request_id", missing),
|
3806
|
+
"status": kwargs.get("status", missing),
|
3807
|
+
"resourceId": kwargs.get("resource_id", missing),
|
3808
|
+
"page": kwargs.get("page", missing),
|
3809
|
+
"limit": kwargs.get("limit", missing),
|
3810
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
3811
|
+
"sortBy": kwargs.get("sort_by", missing)
|
3812
|
+
}
|
3813
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3814
|
+
|
3815
|
+
header_params = {
|
3816
|
+
"accept": "application/json",
|
3817
|
+
"content-type": "application/json",
|
3818
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3819
|
+
}
|
3820
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3821
|
+
|
3822
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3823
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3824
|
+
client_retry_strategy=self.retry_strategy
|
3825
|
+
)
|
3826
|
+
if retry_strategy is None:
|
3827
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3828
|
+
|
3829
|
+
if retry_strategy:
|
3830
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3831
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3832
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3833
|
+
return retry_strategy.make_retrying_call(
|
3834
|
+
self.base_client.call_api,
|
3835
|
+
resource_path=resource_path,
|
3836
|
+
method=method,
|
3837
|
+
query_params=query_params,
|
3838
|
+
header_params=header_params,
|
3839
|
+
response_type="WorkRequestSummaryCollection",
|
3840
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3841
|
+
operation_name=operation_name,
|
3842
|
+
api_reference_link=api_reference_link,
|
3843
|
+
required_arguments=required_arguments)
|
3844
|
+
else:
|
3845
|
+
return self.base_client.call_api(
|
3846
|
+
resource_path=resource_path,
|
3847
|
+
method=method,
|
3848
|
+
query_params=query_params,
|
3849
|
+
header_params=header_params,
|
3850
|
+
response_type="WorkRequestSummaryCollection",
|
3851
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3852
|
+
operation_name=operation_name,
|
3853
|
+
api_reference_link=api_reference_link,
|
3854
|
+
required_arguments=required_arguments)
|
3855
|
+
|
3856
|
+
def request_resource_validation(self, request_resource_validation_details, fleet_id, **kwargs):
|
3857
|
+
"""
|
3858
|
+
Request validation for resources with in a fleet
|
3859
|
+
|
3860
|
+
|
3861
|
+
:param oci.fleet_apps_management.models.RequestResourceValidationDetails request_resource_validation_details: (required)
|
3862
|
+
Details for requesting resource validation
|
3863
|
+
|
3864
|
+
:param str fleet_id: (required)
|
3865
|
+
unique Fleet identifier
|
3866
|
+
|
3867
|
+
:param str opc_retry_token: (optional)
|
3868
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3869
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
3870
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3871
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
3872
|
+
might be rejected.
|
3873
|
+
|
3874
|
+
:param str opc_request_id: (optional)
|
3875
|
+
The client request ID for tracing.
|
3876
|
+
|
3877
|
+
:param obj retry_strategy: (optional)
|
3878
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3879
|
+
|
3880
|
+
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.
|
3881
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3882
|
+
|
3883
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3884
|
+
|
3885
|
+
:param bool allow_control_chars: (optional)
|
3886
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3887
|
+
By default, the response will not allow control characters in strings
|
3888
|
+
|
3889
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
3890
|
+
:rtype: :class:`~oci.response.Response`
|
3891
|
+
|
3892
|
+
:example:
|
3893
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/request_resource_validation.py.html>`__ to see an example of how to use request_resource_validation API.
|
3894
|
+
"""
|
3895
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3896
|
+
required_arguments = ['fleetId']
|
3897
|
+
resource_path = "/fleets/{fleetId}/actions/requestResourceValidation"
|
3898
|
+
method = "POST"
|
3899
|
+
operation_name = "request_resource_validation"
|
3900
|
+
api_reference_link = ""
|
3901
|
+
|
3902
|
+
# Don't accept unknown kwargs
|
3903
|
+
expected_kwargs = [
|
3904
|
+
"allow_control_chars",
|
3905
|
+
"retry_strategy",
|
3906
|
+
"opc_retry_token",
|
3907
|
+
"opc_request_id"
|
3908
|
+
]
|
3909
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3910
|
+
if extra_kwargs:
|
3911
|
+
raise ValueError(
|
3912
|
+
f"request_resource_validation got unknown kwargs: {extra_kwargs!r}")
|
3913
|
+
|
3914
|
+
path_params = {
|
3915
|
+
"fleetId": fleet_id
|
3916
|
+
}
|
3917
|
+
|
3918
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3919
|
+
|
3920
|
+
for (k, v) in six.iteritems(path_params):
|
3921
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3922
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3923
|
+
|
3924
|
+
header_params = {
|
3925
|
+
"accept": "application/json",
|
3926
|
+
"content-type": "application/json",
|
3927
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
3928
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3929
|
+
}
|
3930
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3931
|
+
|
3932
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3933
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3934
|
+
client_retry_strategy=self.retry_strategy
|
3935
|
+
)
|
3936
|
+
if retry_strategy is None:
|
3937
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3938
|
+
|
3939
|
+
if retry_strategy:
|
3940
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3941
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
3942
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3943
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3944
|
+
return retry_strategy.make_retrying_call(
|
3945
|
+
self.base_client.call_api,
|
3946
|
+
resource_path=resource_path,
|
3947
|
+
method=method,
|
3948
|
+
path_params=path_params,
|
3949
|
+
header_params=header_params,
|
3950
|
+
body=request_resource_validation_details,
|
3951
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3952
|
+
operation_name=operation_name,
|
3953
|
+
api_reference_link=api_reference_link,
|
3954
|
+
required_arguments=required_arguments)
|
3955
|
+
else:
|
3956
|
+
return self.base_client.call_api(
|
3957
|
+
resource_path=resource_path,
|
3958
|
+
method=method,
|
3959
|
+
path_params=path_params,
|
3960
|
+
header_params=header_params,
|
3961
|
+
body=request_resource_validation_details,
|
3962
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3963
|
+
operation_name=operation_name,
|
3964
|
+
api_reference_link=api_reference_link,
|
3965
|
+
required_arguments=required_arguments)
|
3966
|
+
|
3967
|
+
def request_target_discovery(self, request_target_discovery_details, fleet_id, **kwargs):
|
3968
|
+
"""
|
3969
|
+
Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS
|
3970
|
+
|
3971
|
+
|
3972
|
+
:param oci.fleet_apps_management.models.RequestTargetDiscoveryDetails request_target_discovery_details: (required)
|
3973
|
+
Details for requesting target discovery
|
3974
|
+
|
3975
|
+
:param str fleet_id: (required)
|
3976
|
+
unique Fleet identifier
|
3977
|
+
|
3978
|
+
:param str opc_retry_token: (optional)
|
3979
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3980
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
3981
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3982
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
3983
|
+
might be rejected.
|
3984
|
+
|
3985
|
+
:param str opc_request_id: (optional)
|
3986
|
+
The client request ID for tracing.
|
3987
|
+
|
3988
|
+
:param obj retry_strategy: (optional)
|
3989
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3990
|
+
|
3991
|
+
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.
|
3992
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3993
|
+
|
3994
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3995
|
+
|
3996
|
+
:param bool allow_control_chars: (optional)
|
3997
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3998
|
+
By default, the response will not allow control characters in strings
|
3999
|
+
|
4000
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
4001
|
+
:rtype: :class:`~oci.response.Response`
|
4002
|
+
|
4003
|
+
:example:
|
4004
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/request_target_discovery.py.html>`__ to see an example of how to use request_target_discovery API.
|
4005
|
+
"""
|
4006
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4007
|
+
required_arguments = ['fleetId']
|
4008
|
+
resource_path = "/fleets/{fleetId}/actions/requestTargetDiscovery"
|
4009
|
+
method = "POST"
|
4010
|
+
operation_name = "request_target_discovery"
|
4011
|
+
api_reference_link = ""
|
4012
|
+
|
4013
|
+
# Don't accept unknown kwargs
|
4014
|
+
expected_kwargs = [
|
4015
|
+
"allow_control_chars",
|
4016
|
+
"retry_strategy",
|
4017
|
+
"opc_retry_token",
|
4018
|
+
"opc_request_id"
|
4019
|
+
]
|
4020
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4021
|
+
if extra_kwargs:
|
4022
|
+
raise ValueError(
|
4023
|
+
f"request_target_discovery got unknown kwargs: {extra_kwargs!r}")
|
4024
|
+
|
4025
|
+
path_params = {
|
4026
|
+
"fleetId": fleet_id
|
4027
|
+
}
|
4028
|
+
|
4029
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4030
|
+
|
4031
|
+
for (k, v) in six.iteritems(path_params):
|
4032
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4033
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4034
|
+
|
4035
|
+
header_params = {
|
4036
|
+
"accept": "application/json",
|
4037
|
+
"content-type": "application/json",
|
4038
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
4039
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4040
|
+
}
|
4041
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4042
|
+
|
4043
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4044
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4045
|
+
client_retry_strategy=self.retry_strategy
|
4046
|
+
)
|
4047
|
+
if retry_strategy is None:
|
4048
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4049
|
+
|
4050
|
+
if retry_strategy:
|
4051
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4052
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
4053
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4054
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4055
|
+
return retry_strategy.make_retrying_call(
|
4056
|
+
self.base_client.call_api,
|
4057
|
+
resource_path=resource_path,
|
4058
|
+
method=method,
|
4059
|
+
path_params=path_params,
|
4060
|
+
header_params=header_params,
|
4061
|
+
body=request_target_discovery_details,
|
4062
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4063
|
+
operation_name=operation_name,
|
4064
|
+
api_reference_link=api_reference_link,
|
4065
|
+
required_arguments=required_arguments)
|
4066
|
+
else:
|
4067
|
+
return self.base_client.call_api(
|
4068
|
+
resource_path=resource_path,
|
4069
|
+
method=method,
|
4070
|
+
path_params=path_params,
|
4071
|
+
header_params=header_params,
|
4072
|
+
body=request_target_discovery_details,
|
4073
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4074
|
+
operation_name=operation_name,
|
4075
|
+
api_reference_link=api_reference_link,
|
4076
|
+
required_arguments=required_arguments)
|
4077
|
+
|
4078
|
+
def update_fleet(self, fleet_id, update_fleet_details, **kwargs):
|
4079
|
+
"""
|
4080
|
+
Updates the Fleet
|
4081
|
+
|
4082
|
+
|
4083
|
+
:param str fleet_id: (required)
|
4084
|
+
unique Fleet identifier
|
4085
|
+
|
4086
|
+
:param oci.fleet_apps_management.models.UpdateFleetDetails update_fleet_details: (required)
|
4087
|
+
The information to be updated.
|
4088
|
+
|
4089
|
+
:param str if_match: (optional)
|
4090
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4091
|
+
for a resource, set the `if-match` parameter to the value of the
|
4092
|
+
etag from a previous GET or POST response for that resource.
|
4093
|
+
The resource will be updated or deleted only if the etag you
|
4094
|
+
provide matches the resource's current etag value.
|
4095
|
+
|
4096
|
+
:param str opc_request_id: (optional)
|
4097
|
+
The client request ID for tracing.
|
4098
|
+
|
4099
|
+
:param obj retry_strategy: (optional)
|
4100
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4101
|
+
|
4102
|
+
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.
|
4103
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4104
|
+
|
4105
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4106
|
+
|
4107
|
+
:param bool allow_control_chars: (optional)
|
4108
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4109
|
+
By default, the response will not allow control characters in strings
|
4110
|
+
|
4111
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Fleet`
|
4112
|
+
:rtype: :class:`~oci.response.Response`
|
4113
|
+
|
4114
|
+
:example:
|
4115
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/update_fleet.py.html>`__ to see an example of how to use update_fleet API.
|
4116
|
+
"""
|
4117
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4118
|
+
required_arguments = ['fleetId']
|
4119
|
+
resource_path = "/fleets/{fleetId}"
|
4120
|
+
method = "PUT"
|
4121
|
+
operation_name = "update_fleet"
|
4122
|
+
api_reference_link = ""
|
4123
|
+
|
4124
|
+
# Don't accept unknown kwargs
|
4125
|
+
expected_kwargs = [
|
4126
|
+
"allow_control_chars",
|
4127
|
+
"retry_strategy",
|
4128
|
+
"if_match",
|
4129
|
+
"opc_request_id"
|
4130
|
+
]
|
4131
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4132
|
+
if extra_kwargs:
|
4133
|
+
raise ValueError(
|
4134
|
+
f"update_fleet got unknown kwargs: {extra_kwargs!r}")
|
4135
|
+
|
4136
|
+
path_params = {
|
4137
|
+
"fleetId": fleet_id
|
4138
|
+
}
|
4139
|
+
|
4140
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4141
|
+
|
4142
|
+
for (k, v) in six.iteritems(path_params):
|
4143
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4144
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4145
|
+
|
4146
|
+
header_params = {
|
4147
|
+
"accept": "application/json",
|
4148
|
+
"content-type": "application/json",
|
4149
|
+
"if-match": kwargs.get("if_match", missing),
|
4150
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4151
|
+
}
|
4152
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4153
|
+
|
4154
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4155
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4156
|
+
client_retry_strategy=self.retry_strategy
|
4157
|
+
)
|
4158
|
+
if retry_strategy is None:
|
4159
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4160
|
+
|
4161
|
+
if retry_strategy:
|
4162
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4163
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4164
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4165
|
+
return retry_strategy.make_retrying_call(
|
4166
|
+
self.base_client.call_api,
|
4167
|
+
resource_path=resource_path,
|
4168
|
+
method=method,
|
4169
|
+
path_params=path_params,
|
4170
|
+
header_params=header_params,
|
4171
|
+
body=update_fleet_details,
|
4172
|
+
response_type="Fleet",
|
4173
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4174
|
+
operation_name=operation_name,
|
4175
|
+
api_reference_link=api_reference_link,
|
4176
|
+
required_arguments=required_arguments)
|
4177
|
+
else:
|
4178
|
+
return self.base_client.call_api(
|
4179
|
+
resource_path=resource_path,
|
4180
|
+
method=method,
|
4181
|
+
path_params=path_params,
|
4182
|
+
header_params=header_params,
|
4183
|
+
body=update_fleet_details,
|
4184
|
+
response_type="Fleet",
|
4185
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4186
|
+
operation_name=operation_name,
|
4187
|
+
api_reference_link=api_reference_link,
|
4188
|
+
required_arguments=required_arguments)
|
4189
|
+
|
4190
|
+
def update_fleet_credential(self, fleet_credential_id, fleet_id, update_fleet_credential_details, **kwargs):
|
4191
|
+
"""
|
4192
|
+
Updates the FleetCredential
|
4193
|
+
|
4194
|
+
|
4195
|
+
:param str fleet_credential_id: (required)
|
4196
|
+
unique FleetCredential identifier
|
4197
|
+
|
4198
|
+
:param str fleet_id: (required)
|
4199
|
+
unique Fleet identifier
|
4200
|
+
|
4201
|
+
:param oci.fleet_apps_management.models.UpdateFleetCredentialDetails update_fleet_credential_details: (required)
|
4202
|
+
The information to be updated.
|
4203
|
+
|
4204
|
+
:param str if_match: (optional)
|
4205
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4206
|
+
for a resource, set the `if-match` parameter to the value of the
|
4207
|
+
etag from a previous GET or POST response for that resource.
|
4208
|
+
The resource will be updated or deleted only if the etag you
|
4209
|
+
provide matches the resource's current etag value.
|
4210
|
+
|
4211
|
+
:param str opc_request_id: (optional)
|
4212
|
+
The client request ID for tracing.
|
4213
|
+
|
4214
|
+
:param obj retry_strategy: (optional)
|
4215
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4216
|
+
|
4217
|
+
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.
|
4218
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4219
|
+
|
4220
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4221
|
+
|
4222
|
+
:param bool allow_control_chars: (optional)
|
4223
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4224
|
+
By default, the response will not allow control characters in strings
|
4225
|
+
|
4226
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
4227
|
+
:rtype: :class:`~oci.response.Response`
|
4228
|
+
|
4229
|
+
:example:
|
4230
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/update_fleet_credential.py.html>`__ to see an example of how to use update_fleet_credential API.
|
4231
|
+
"""
|
4232
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4233
|
+
required_arguments = ['fleetCredentialId', 'fleetId']
|
4234
|
+
resource_path = "/fleets/{fleetId}/fleetCredentials/{fleetCredentialId}"
|
4235
|
+
method = "PUT"
|
4236
|
+
operation_name = "update_fleet_credential"
|
4237
|
+
api_reference_link = ""
|
4238
|
+
|
4239
|
+
# Don't accept unknown kwargs
|
4240
|
+
expected_kwargs = [
|
4241
|
+
"allow_control_chars",
|
4242
|
+
"retry_strategy",
|
4243
|
+
"if_match",
|
4244
|
+
"opc_request_id"
|
4245
|
+
]
|
4246
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4247
|
+
if extra_kwargs:
|
4248
|
+
raise ValueError(
|
4249
|
+
f"update_fleet_credential got unknown kwargs: {extra_kwargs!r}")
|
4250
|
+
|
4251
|
+
path_params = {
|
4252
|
+
"fleetCredentialId": fleet_credential_id,
|
4253
|
+
"fleetId": fleet_id
|
4254
|
+
}
|
4255
|
+
|
4256
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4257
|
+
|
4258
|
+
for (k, v) in six.iteritems(path_params):
|
4259
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4260
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4261
|
+
|
4262
|
+
header_params = {
|
4263
|
+
"accept": "application/json",
|
4264
|
+
"content-type": "application/json",
|
4265
|
+
"if-match": kwargs.get("if_match", missing),
|
4266
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4267
|
+
}
|
4268
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4269
|
+
|
4270
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4271
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4272
|
+
client_retry_strategy=self.retry_strategy
|
4273
|
+
)
|
4274
|
+
if retry_strategy is None:
|
4275
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4276
|
+
|
4277
|
+
if retry_strategy:
|
4278
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4279
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4280
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4281
|
+
return retry_strategy.make_retrying_call(
|
4282
|
+
self.base_client.call_api,
|
4283
|
+
resource_path=resource_path,
|
4284
|
+
method=method,
|
4285
|
+
path_params=path_params,
|
4286
|
+
header_params=header_params,
|
4287
|
+
body=update_fleet_credential_details,
|
4288
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4289
|
+
operation_name=operation_name,
|
4290
|
+
api_reference_link=api_reference_link,
|
4291
|
+
required_arguments=required_arguments)
|
4292
|
+
else:
|
4293
|
+
return self.base_client.call_api(
|
4294
|
+
resource_path=resource_path,
|
4295
|
+
method=method,
|
4296
|
+
path_params=path_params,
|
4297
|
+
header_params=header_params,
|
4298
|
+
body=update_fleet_credential_details,
|
4299
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4300
|
+
operation_name=operation_name,
|
4301
|
+
api_reference_link=api_reference_link,
|
4302
|
+
required_arguments=required_arguments)
|
4303
|
+
|
4304
|
+
def update_fleet_property(self, fleet_property_id, fleet_id, update_fleet_property_details, **kwargs):
|
4305
|
+
"""
|
4306
|
+
Updates the FleetProperty
|
4307
|
+
|
4308
|
+
|
4309
|
+
:param str fleet_property_id: (required)
|
4310
|
+
unique FleetProperty identifier
|
4311
|
+
|
4312
|
+
:param str fleet_id: (required)
|
4313
|
+
unique Fleet identifier
|
4314
|
+
|
4315
|
+
:param oci.fleet_apps_management.models.UpdateFleetPropertyDetails update_fleet_property_details: (required)
|
4316
|
+
The information to be updated.
|
4317
|
+
|
4318
|
+
:param str if_match: (optional)
|
4319
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4320
|
+
for a resource, set the `if-match` parameter to the value of the
|
4321
|
+
etag from a previous GET or POST response for that resource.
|
4322
|
+
The resource will be updated or deleted only if the etag you
|
4323
|
+
provide matches the resource's current etag value.
|
4324
|
+
|
4325
|
+
:param str opc_request_id: (optional)
|
4326
|
+
The client request ID for tracing.
|
4327
|
+
|
4328
|
+
:param obj retry_strategy: (optional)
|
4329
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4330
|
+
|
4331
|
+
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.
|
4332
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4333
|
+
|
4334
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4335
|
+
|
4336
|
+
:param bool allow_control_chars: (optional)
|
4337
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4338
|
+
By default, the response will not allow control characters in strings
|
4339
|
+
|
4340
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.FleetProperty`
|
4341
|
+
:rtype: :class:`~oci.response.Response`
|
4342
|
+
|
4343
|
+
:example:
|
4344
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/update_fleet_property.py.html>`__ to see an example of how to use update_fleet_property API.
|
4345
|
+
"""
|
4346
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4347
|
+
required_arguments = ['fleetPropertyId', 'fleetId']
|
4348
|
+
resource_path = "/fleets/{fleetId}/fleetProperties/{fleetPropertyId}"
|
4349
|
+
method = "PUT"
|
4350
|
+
operation_name = "update_fleet_property"
|
4351
|
+
api_reference_link = ""
|
4352
|
+
|
4353
|
+
# Don't accept unknown kwargs
|
4354
|
+
expected_kwargs = [
|
4355
|
+
"allow_control_chars",
|
4356
|
+
"retry_strategy",
|
4357
|
+
"if_match",
|
4358
|
+
"opc_request_id"
|
4359
|
+
]
|
4360
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4361
|
+
if extra_kwargs:
|
4362
|
+
raise ValueError(
|
4363
|
+
f"update_fleet_property got unknown kwargs: {extra_kwargs!r}")
|
4364
|
+
|
4365
|
+
path_params = {
|
4366
|
+
"fleetPropertyId": fleet_property_id,
|
4367
|
+
"fleetId": fleet_id
|
4368
|
+
}
|
4369
|
+
|
4370
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4371
|
+
|
4372
|
+
for (k, v) in six.iteritems(path_params):
|
4373
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4374
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4375
|
+
|
4376
|
+
header_params = {
|
4377
|
+
"accept": "application/json",
|
4378
|
+
"content-type": "application/json",
|
4379
|
+
"if-match": kwargs.get("if_match", missing),
|
4380
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4381
|
+
}
|
4382
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4383
|
+
|
4384
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4385
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4386
|
+
client_retry_strategy=self.retry_strategy
|
4387
|
+
)
|
4388
|
+
if retry_strategy is None:
|
4389
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4390
|
+
|
4391
|
+
if retry_strategy:
|
4392
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4393
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4394
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4395
|
+
return retry_strategy.make_retrying_call(
|
4396
|
+
self.base_client.call_api,
|
4397
|
+
resource_path=resource_path,
|
4398
|
+
method=method,
|
4399
|
+
path_params=path_params,
|
4400
|
+
header_params=header_params,
|
4401
|
+
body=update_fleet_property_details,
|
4402
|
+
response_type="FleetProperty",
|
4403
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4404
|
+
operation_name=operation_name,
|
4405
|
+
api_reference_link=api_reference_link,
|
4406
|
+
required_arguments=required_arguments)
|
4407
|
+
else:
|
4408
|
+
return self.base_client.call_api(
|
4409
|
+
resource_path=resource_path,
|
4410
|
+
method=method,
|
4411
|
+
path_params=path_params,
|
4412
|
+
header_params=header_params,
|
4413
|
+
body=update_fleet_property_details,
|
4414
|
+
response_type="FleetProperty",
|
4415
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4416
|
+
operation_name=operation_name,
|
4417
|
+
api_reference_link=api_reference_link,
|
4418
|
+
required_arguments=required_arguments)
|
4419
|
+
|
4420
|
+
def update_fleet_resource(self, fleet_resource_id, fleet_id, update_fleet_resource_details, **kwargs):
|
4421
|
+
"""
|
4422
|
+
Updates the FleetResource
|
4423
|
+
|
4424
|
+
|
4425
|
+
:param str fleet_resource_id: (required)
|
4426
|
+
unique FleetResource identifier
|
4427
|
+
|
4428
|
+
:param str fleet_id: (required)
|
4429
|
+
unique Fleet identifier
|
4430
|
+
|
4431
|
+
:param oci.fleet_apps_management.models.UpdateFleetResourceDetails update_fleet_resource_details: (required)
|
4432
|
+
The information to be updated.
|
4433
|
+
|
4434
|
+
:param str if_match: (optional)
|
4435
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4436
|
+
for a resource, set the `if-match` parameter to the value of the
|
4437
|
+
etag from a previous GET or POST response for that resource.
|
4438
|
+
The resource will be updated or deleted only if the etag you
|
4439
|
+
provide matches the resource's current etag value.
|
4440
|
+
|
4441
|
+
:param str opc_request_id: (optional)
|
4442
|
+
The client request ID for tracing.
|
4443
|
+
|
4444
|
+
:param obj retry_strategy: (optional)
|
4445
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4446
|
+
|
4447
|
+
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.
|
4448
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4449
|
+
|
4450
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4451
|
+
|
4452
|
+
:param bool allow_control_chars: (optional)
|
4453
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4454
|
+
By default, the response will not allow control characters in strings
|
4455
|
+
|
4456
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
4457
|
+
:rtype: :class:`~oci.response.Response`
|
4458
|
+
|
4459
|
+
:example:
|
4460
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/update_fleet_resource.py.html>`__ to see an example of how to use update_fleet_resource API.
|
4461
|
+
"""
|
4462
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4463
|
+
required_arguments = ['fleetResourceId', 'fleetId']
|
4464
|
+
resource_path = "/fleets/{fleetId}/fleetResources/{fleetResourceId}"
|
4465
|
+
method = "PUT"
|
4466
|
+
operation_name = "update_fleet_resource"
|
4467
|
+
api_reference_link = ""
|
4468
|
+
|
4469
|
+
# Don't accept unknown kwargs
|
4470
|
+
expected_kwargs = [
|
4471
|
+
"allow_control_chars",
|
4472
|
+
"retry_strategy",
|
4473
|
+
"if_match",
|
4474
|
+
"opc_request_id"
|
4475
|
+
]
|
4476
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4477
|
+
if extra_kwargs:
|
4478
|
+
raise ValueError(
|
4479
|
+
f"update_fleet_resource got unknown kwargs: {extra_kwargs!r}")
|
4480
|
+
|
4481
|
+
path_params = {
|
4482
|
+
"fleetResourceId": fleet_resource_id,
|
4483
|
+
"fleetId": fleet_id
|
4484
|
+
}
|
4485
|
+
|
4486
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4487
|
+
|
4488
|
+
for (k, v) in six.iteritems(path_params):
|
4489
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4490
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4491
|
+
|
4492
|
+
header_params = {
|
4493
|
+
"accept": "application/json",
|
4494
|
+
"content-type": "application/json",
|
4495
|
+
"if-match": kwargs.get("if_match", missing),
|
4496
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4497
|
+
}
|
4498
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4499
|
+
|
4500
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4501
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4502
|
+
client_retry_strategy=self.retry_strategy
|
4503
|
+
)
|
4504
|
+
if retry_strategy is None:
|
4505
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4506
|
+
|
4507
|
+
if retry_strategy:
|
4508
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4509
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4510
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4511
|
+
return retry_strategy.make_retrying_call(
|
4512
|
+
self.base_client.call_api,
|
4513
|
+
resource_path=resource_path,
|
4514
|
+
method=method,
|
4515
|
+
path_params=path_params,
|
4516
|
+
header_params=header_params,
|
4517
|
+
body=update_fleet_resource_details,
|
4518
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4519
|
+
operation_name=operation_name,
|
4520
|
+
api_reference_link=api_reference_link,
|
4521
|
+
required_arguments=required_arguments)
|
4522
|
+
else:
|
4523
|
+
return self.base_client.call_api(
|
4524
|
+
resource_path=resource_path,
|
4525
|
+
method=method,
|
4526
|
+
path_params=path_params,
|
4527
|
+
header_params=header_params,
|
4528
|
+
body=update_fleet_resource_details,
|
4529
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4530
|
+
operation_name=operation_name,
|
4531
|
+
api_reference_link=api_reference_link,
|
4532
|
+
required_arguments=required_arguments)
|