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,1730 @@
|
|
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 FleetAppsManagementOperationsClient(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_operations", 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 create_scheduler_definition(self, create_scheduler_definition_details, **kwargs):
|
121
|
+
"""
|
122
|
+
Creates a new SchedulerDefinition.
|
123
|
+
|
124
|
+
|
125
|
+
:param oci.fleet_apps_management.models.CreateSchedulerDefinitionDetails create_scheduler_definition_details: (required)
|
126
|
+
Details for the new SchedulerDefinition.
|
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.SchedulerDefinition`
|
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/create_scheduler_definition.py.html>`__ to see an example of how to use create_scheduler_definition API.
|
155
|
+
"""
|
156
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
157
|
+
required_arguments = []
|
158
|
+
resource_path = "/schedulerDefinitions"
|
159
|
+
method = "POST"
|
160
|
+
operation_name = "create_scheduler_definition"
|
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"create_scheduler_definition 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=create_scheduler_definition_details,
|
201
|
+
response_type="SchedulerDefinition",
|
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=create_scheduler_definition_details,
|
212
|
+
response_type="SchedulerDefinition",
|
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 delete_scheduler_definition(self, scheduler_definition_id, **kwargs):
|
219
|
+
"""
|
220
|
+
Deletes a SchedulerDefinition resource by identifier
|
221
|
+
|
222
|
+
|
223
|
+
:param str scheduler_definition_id: (required)
|
224
|
+
unique SchedulerDefinition identifier
|
225
|
+
|
226
|
+
:param str if_match: (optional)
|
227
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
228
|
+
for a resource, set the `if-match` parameter to the value of the
|
229
|
+
etag from a previous GET or POST response for that resource.
|
230
|
+
The resource will be updated or deleted only if the etag you
|
231
|
+
provide matches the resource's current etag value.
|
232
|
+
|
233
|
+
:param str opc_request_id: (optional)
|
234
|
+
The client request ID for tracing.
|
235
|
+
|
236
|
+
:param obj retry_strategy: (optional)
|
237
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
238
|
+
|
239
|
+
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.
|
240
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
241
|
+
|
242
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
243
|
+
|
244
|
+
:param bool allow_control_chars: (optional)
|
245
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
246
|
+
By default, the response will not allow control characters in strings
|
247
|
+
|
248
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
249
|
+
:rtype: :class:`~oci.response.Response`
|
250
|
+
|
251
|
+
:example:
|
252
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/delete_scheduler_definition.py.html>`__ to see an example of how to use delete_scheduler_definition API.
|
253
|
+
"""
|
254
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
255
|
+
required_arguments = ['schedulerDefinitionId']
|
256
|
+
resource_path = "/schedulerDefinitions/{schedulerDefinitionId}"
|
257
|
+
method = "DELETE"
|
258
|
+
operation_name = "delete_scheduler_definition"
|
259
|
+
api_reference_link = ""
|
260
|
+
|
261
|
+
# Don't accept unknown kwargs
|
262
|
+
expected_kwargs = [
|
263
|
+
"allow_control_chars",
|
264
|
+
"retry_strategy",
|
265
|
+
"if_match",
|
266
|
+
"opc_request_id"
|
267
|
+
]
|
268
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
269
|
+
if extra_kwargs:
|
270
|
+
raise ValueError(
|
271
|
+
f"delete_scheduler_definition got unknown kwargs: {extra_kwargs!r}")
|
272
|
+
|
273
|
+
path_params = {
|
274
|
+
"schedulerDefinitionId": scheduler_definition_id
|
275
|
+
}
|
276
|
+
|
277
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
278
|
+
|
279
|
+
for (k, v) in six.iteritems(path_params):
|
280
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
281
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
282
|
+
|
283
|
+
header_params = {
|
284
|
+
"accept": "application/json",
|
285
|
+
"content-type": "application/json",
|
286
|
+
"if-match": kwargs.get("if_match", missing),
|
287
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
288
|
+
}
|
289
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
290
|
+
|
291
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
292
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
293
|
+
client_retry_strategy=self.retry_strategy
|
294
|
+
)
|
295
|
+
if retry_strategy is None:
|
296
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
297
|
+
|
298
|
+
if retry_strategy:
|
299
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
300
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
301
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
302
|
+
return retry_strategy.make_retrying_call(
|
303
|
+
self.base_client.call_api,
|
304
|
+
resource_path=resource_path,
|
305
|
+
method=method,
|
306
|
+
path_params=path_params,
|
307
|
+
header_params=header_params,
|
308
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
309
|
+
operation_name=operation_name,
|
310
|
+
api_reference_link=api_reference_link,
|
311
|
+
required_arguments=required_arguments)
|
312
|
+
else:
|
313
|
+
return self.base_client.call_api(
|
314
|
+
resource_path=resource_path,
|
315
|
+
method=method,
|
316
|
+
path_params=path_params,
|
317
|
+
header_params=header_params,
|
318
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
319
|
+
operation_name=operation_name,
|
320
|
+
api_reference_link=api_reference_link,
|
321
|
+
required_arguments=required_arguments)
|
322
|
+
|
323
|
+
def delete_scheduler_job(self, scheduler_job_id, **kwargs):
|
324
|
+
"""
|
325
|
+
Deletes a SchedulerJob resource by identifier
|
326
|
+
|
327
|
+
|
328
|
+
:param str scheduler_job_id: (required)
|
329
|
+
unique SchedulerJob identifier
|
330
|
+
|
331
|
+
:param str if_match: (optional)
|
332
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
333
|
+
for a resource, set the `if-match` parameter to the value of the
|
334
|
+
etag from a previous GET or POST response for that resource.
|
335
|
+
The resource will be updated or deleted only if the etag you
|
336
|
+
provide matches the resource's current etag value.
|
337
|
+
|
338
|
+
:param str opc_request_id: (optional)
|
339
|
+
The client request ID for tracing.
|
340
|
+
|
341
|
+
:param obj retry_strategy: (optional)
|
342
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
343
|
+
|
344
|
+
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.
|
345
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
346
|
+
|
347
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
348
|
+
|
349
|
+
:param bool allow_control_chars: (optional)
|
350
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
351
|
+
By default, the response will not allow control characters in strings
|
352
|
+
|
353
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
354
|
+
:rtype: :class:`~oci.response.Response`
|
355
|
+
|
356
|
+
:example:
|
357
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/delete_scheduler_job.py.html>`__ to see an example of how to use delete_scheduler_job API.
|
358
|
+
"""
|
359
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
360
|
+
required_arguments = ['schedulerJobId']
|
361
|
+
resource_path = "/schedulerJobs/{schedulerJobId}"
|
362
|
+
method = "DELETE"
|
363
|
+
operation_name = "delete_scheduler_job"
|
364
|
+
api_reference_link = ""
|
365
|
+
|
366
|
+
# Don't accept unknown kwargs
|
367
|
+
expected_kwargs = [
|
368
|
+
"allow_control_chars",
|
369
|
+
"retry_strategy",
|
370
|
+
"if_match",
|
371
|
+
"opc_request_id"
|
372
|
+
]
|
373
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
374
|
+
if extra_kwargs:
|
375
|
+
raise ValueError(
|
376
|
+
f"delete_scheduler_job got unknown kwargs: {extra_kwargs!r}")
|
377
|
+
|
378
|
+
path_params = {
|
379
|
+
"schedulerJobId": scheduler_job_id
|
380
|
+
}
|
381
|
+
|
382
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
383
|
+
|
384
|
+
for (k, v) in six.iteritems(path_params):
|
385
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
386
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
387
|
+
|
388
|
+
header_params = {
|
389
|
+
"accept": "application/json",
|
390
|
+
"content-type": "application/json",
|
391
|
+
"if-match": kwargs.get("if_match", missing),
|
392
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
393
|
+
}
|
394
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
395
|
+
|
396
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
397
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
398
|
+
client_retry_strategy=self.retry_strategy
|
399
|
+
)
|
400
|
+
if retry_strategy is None:
|
401
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
402
|
+
|
403
|
+
if retry_strategy:
|
404
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
405
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
406
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
407
|
+
return retry_strategy.make_retrying_call(
|
408
|
+
self.base_client.call_api,
|
409
|
+
resource_path=resource_path,
|
410
|
+
method=method,
|
411
|
+
path_params=path_params,
|
412
|
+
header_params=header_params,
|
413
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
414
|
+
operation_name=operation_name,
|
415
|
+
api_reference_link=api_reference_link,
|
416
|
+
required_arguments=required_arguments)
|
417
|
+
else:
|
418
|
+
return self.base_client.call_api(
|
419
|
+
resource_path=resource_path,
|
420
|
+
method=method,
|
421
|
+
path_params=path_params,
|
422
|
+
header_params=header_params,
|
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 get_execution(self, scheduler_job_id, job_activity_id, resource_id, execution_id, **kwargs):
|
429
|
+
"""
|
430
|
+
Gets a JobActivity by identifier
|
431
|
+
|
432
|
+
|
433
|
+
:param str scheduler_job_id: (required)
|
434
|
+
unique SchedulerJob identifier
|
435
|
+
|
436
|
+
:param str job_activity_id: (required)
|
437
|
+
unique jobActivity identifier
|
438
|
+
|
439
|
+
:param str resource_id: (required)
|
440
|
+
unique Resource identifier
|
441
|
+
|
442
|
+
:param str execution_id: (required)
|
443
|
+
Execution Id
|
444
|
+
|
445
|
+
:param str opc_request_id: (optional)
|
446
|
+
The client request ID for tracing.
|
447
|
+
|
448
|
+
:param obj retry_strategy: (optional)
|
449
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
450
|
+
|
451
|
+
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.
|
452
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
453
|
+
|
454
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
455
|
+
|
456
|
+
:param bool allow_control_chars: (optional)
|
457
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
458
|
+
By default, the response will not allow control characters in strings
|
459
|
+
|
460
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Execution`
|
461
|
+
:rtype: :class:`~oci.response.Response`
|
462
|
+
|
463
|
+
:example:
|
464
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_execution.py.html>`__ to see an example of how to use get_execution API.
|
465
|
+
"""
|
466
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
467
|
+
required_arguments = ['schedulerJobId', 'jobActivityId', 'resourceId', 'executionId']
|
468
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions/{executionId}"
|
469
|
+
method = "GET"
|
470
|
+
operation_name = "get_execution"
|
471
|
+
api_reference_link = ""
|
472
|
+
|
473
|
+
# Don't accept unknown kwargs
|
474
|
+
expected_kwargs = [
|
475
|
+
"allow_control_chars",
|
476
|
+
"retry_strategy",
|
477
|
+
"opc_request_id"
|
478
|
+
]
|
479
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
480
|
+
if extra_kwargs:
|
481
|
+
raise ValueError(
|
482
|
+
f"get_execution got unknown kwargs: {extra_kwargs!r}")
|
483
|
+
|
484
|
+
path_params = {
|
485
|
+
"schedulerJobId": scheduler_job_id,
|
486
|
+
"jobActivityId": job_activity_id,
|
487
|
+
"resourceId": resource_id,
|
488
|
+
"executionId": execution_id
|
489
|
+
}
|
490
|
+
|
491
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
492
|
+
|
493
|
+
for (k, v) in six.iteritems(path_params):
|
494
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
495
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
496
|
+
|
497
|
+
header_params = {
|
498
|
+
"accept": "application/json",
|
499
|
+
"content-type": "application/json",
|
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_client_retries_header(header_params)
|
514
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
515
|
+
return retry_strategy.make_retrying_call(
|
516
|
+
self.base_client.call_api,
|
517
|
+
resource_path=resource_path,
|
518
|
+
method=method,
|
519
|
+
path_params=path_params,
|
520
|
+
header_params=header_params,
|
521
|
+
response_type="Execution",
|
522
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
523
|
+
operation_name=operation_name,
|
524
|
+
api_reference_link=api_reference_link,
|
525
|
+
required_arguments=required_arguments)
|
526
|
+
else:
|
527
|
+
return self.base_client.call_api(
|
528
|
+
resource_path=resource_path,
|
529
|
+
method=method,
|
530
|
+
path_params=path_params,
|
531
|
+
header_params=header_params,
|
532
|
+
response_type="Execution",
|
533
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
534
|
+
operation_name=operation_name,
|
535
|
+
api_reference_link=api_reference_link,
|
536
|
+
required_arguments=required_arguments)
|
537
|
+
|
538
|
+
def get_job_activity(self, scheduler_job_id, job_activity_id, **kwargs):
|
539
|
+
"""
|
540
|
+
Gets a JobActivity by identifier
|
541
|
+
|
542
|
+
|
543
|
+
:param str scheduler_job_id: (required)
|
544
|
+
unique SchedulerJob identifier
|
545
|
+
|
546
|
+
:param str job_activity_id: (required)
|
547
|
+
unique jobActivity identifier
|
548
|
+
|
549
|
+
:param str opc_request_id: (optional)
|
550
|
+
The client request ID for tracing.
|
551
|
+
|
552
|
+
:param obj retry_strategy: (optional)
|
553
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
554
|
+
|
555
|
+
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.
|
556
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
557
|
+
|
558
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
559
|
+
|
560
|
+
:param bool allow_control_chars: (optional)
|
561
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
562
|
+
By default, the response will not allow control characters in strings
|
563
|
+
|
564
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.JobActivity`
|
565
|
+
:rtype: :class:`~oci.response.Response`
|
566
|
+
|
567
|
+
:example:
|
568
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_job_activity.py.html>`__ to see an example of how to use get_job_activity API.
|
569
|
+
"""
|
570
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
571
|
+
required_arguments = ['schedulerJobId', 'jobActivityId']
|
572
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}"
|
573
|
+
method = "GET"
|
574
|
+
operation_name = "get_job_activity"
|
575
|
+
api_reference_link = ""
|
576
|
+
|
577
|
+
# Don't accept unknown kwargs
|
578
|
+
expected_kwargs = [
|
579
|
+
"allow_control_chars",
|
580
|
+
"retry_strategy",
|
581
|
+
"opc_request_id"
|
582
|
+
]
|
583
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
584
|
+
if extra_kwargs:
|
585
|
+
raise ValueError(
|
586
|
+
f"get_job_activity got unknown kwargs: {extra_kwargs!r}")
|
587
|
+
|
588
|
+
path_params = {
|
589
|
+
"schedulerJobId": scheduler_job_id,
|
590
|
+
"jobActivityId": job_activity_id
|
591
|
+
}
|
592
|
+
|
593
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
594
|
+
|
595
|
+
for (k, v) in six.iteritems(path_params):
|
596
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
597
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
598
|
+
|
599
|
+
header_params = {
|
600
|
+
"accept": "application/json",
|
601
|
+
"content-type": "application/json",
|
602
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
603
|
+
}
|
604
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
605
|
+
|
606
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
607
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
608
|
+
client_retry_strategy=self.retry_strategy
|
609
|
+
)
|
610
|
+
if retry_strategy is None:
|
611
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
612
|
+
|
613
|
+
if retry_strategy:
|
614
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
615
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
616
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
617
|
+
return retry_strategy.make_retrying_call(
|
618
|
+
self.base_client.call_api,
|
619
|
+
resource_path=resource_path,
|
620
|
+
method=method,
|
621
|
+
path_params=path_params,
|
622
|
+
header_params=header_params,
|
623
|
+
response_type="JobActivity",
|
624
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
625
|
+
operation_name=operation_name,
|
626
|
+
api_reference_link=api_reference_link,
|
627
|
+
required_arguments=required_arguments)
|
628
|
+
else:
|
629
|
+
return self.base_client.call_api(
|
630
|
+
resource_path=resource_path,
|
631
|
+
method=method,
|
632
|
+
path_params=path_params,
|
633
|
+
header_params=header_params,
|
634
|
+
response_type="JobActivity",
|
635
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
636
|
+
operation_name=operation_name,
|
637
|
+
api_reference_link=api_reference_link,
|
638
|
+
required_arguments=required_arguments)
|
639
|
+
|
640
|
+
def get_scheduler_definition(self, scheduler_definition_id, **kwargs):
|
641
|
+
"""
|
642
|
+
Gets a SchedulerDefinition by identifier
|
643
|
+
|
644
|
+
|
645
|
+
:param str scheduler_definition_id: (required)
|
646
|
+
unique SchedulerDefinition identifier
|
647
|
+
|
648
|
+
:param str opc_request_id: (optional)
|
649
|
+
The client request ID for tracing.
|
650
|
+
|
651
|
+
:param obj retry_strategy: (optional)
|
652
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
653
|
+
|
654
|
+
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.
|
655
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
656
|
+
|
657
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
658
|
+
|
659
|
+
:param bool allow_control_chars: (optional)
|
660
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
661
|
+
By default, the response will not allow control characters in strings
|
662
|
+
|
663
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerDefinition`
|
664
|
+
:rtype: :class:`~oci.response.Response`
|
665
|
+
|
666
|
+
:example:
|
667
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_scheduler_definition.py.html>`__ to see an example of how to use get_scheduler_definition API.
|
668
|
+
"""
|
669
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
670
|
+
required_arguments = ['schedulerDefinitionId']
|
671
|
+
resource_path = "/schedulerDefinitions/{schedulerDefinitionId}"
|
672
|
+
method = "GET"
|
673
|
+
operation_name = "get_scheduler_definition"
|
674
|
+
api_reference_link = ""
|
675
|
+
|
676
|
+
# Don't accept unknown kwargs
|
677
|
+
expected_kwargs = [
|
678
|
+
"allow_control_chars",
|
679
|
+
"retry_strategy",
|
680
|
+
"opc_request_id"
|
681
|
+
]
|
682
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
683
|
+
if extra_kwargs:
|
684
|
+
raise ValueError(
|
685
|
+
f"get_scheduler_definition got unknown kwargs: {extra_kwargs!r}")
|
686
|
+
|
687
|
+
path_params = {
|
688
|
+
"schedulerDefinitionId": scheduler_definition_id
|
689
|
+
}
|
690
|
+
|
691
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
692
|
+
|
693
|
+
for (k, v) in six.iteritems(path_params):
|
694
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
695
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
696
|
+
|
697
|
+
header_params = {
|
698
|
+
"accept": "application/json",
|
699
|
+
"content-type": "application/json",
|
700
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
701
|
+
}
|
702
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
703
|
+
|
704
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
705
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
706
|
+
client_retry_strategy=self.retry_strategy
|
707
|
+
)
|
708
|
+
if retry_strategy is None:
|
709
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
710
|
+
|
711
|
+
if retry_strategy:
|
712
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
713
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
714
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
715
|
+
return retry_strategy.make_retrying_call(
|
716
|
+
self.base_client.call_api,
|
717
|
+
resource_path=resource_path,
|
718
|
+
method=method,
|
719
|
+
path_params=path_params,
|
720
|
+
header_params=header_params,
|
721
|
+
response_type="SchedulerDefinition",
|
722
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
723
|
+
operation_name=operation_name,
|
724
|
+
api_reference_link=api_reference_link,
|
725
|
+
required_arguments=required_arguments)
|
726
|
+
else:
|
727
|
+
return self.base_client.call_api(
|
728
|
+
resource_path=resource_path,
|
729
|
+
method=method,
|
730
|
+
path_params=path_params,
|
731
|
+
header_params=header_params,
|
732
|
+
response_type="SchedulerDefinition",
|
733
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
734
|
+
operation_name=operation_name,
|
735
|
+
api_reference_link=api_reference_link,
|
736
|
+
required_arguments=required_arguments)
|
737
|
+
|
738
|
+
def get_scheduler_job(self, scheduler_job_id, **kwargs):
|
739
|
+
"""
|
740
|
+
Gets a SchedulerJob by identifier
|
741
|
+
|
742
|
+
|
743
|
+
:param str scheduler_job_id: (required)
|
744
|
+
unique SchedulerJob identifier
|
745
|
+
|
746
|
+
:param str opc_request_id: (optional)
|
747
|
+
The client request ID for tracing.
|
748
|
+
|
749
|
+
:param obj retry_strategy: (optional)
|
750
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
751
|
+
|
752
|
+
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.
|
753
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
754
|
+
|
755
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
756
|
+
|
757
|
+
:param bool allow_control_chars: (optional)
|
758
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
759
|
+
By default, the response will not allow control characters in strings
|
760
|
+
|
761
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerJob`
|
762
|
+
:rtype: :class:`~oci.response.Response`
|
763
|
+
|
764
|
+
:example:
|
765
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/get_scheduler_job.py.html>`__ to see an example of how to use get_scheduler_job API.
|
766
|
+
"""
|
767
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
768
|
+
required_arguments = ['schedulerJobId']
|
769
|
+
resource_path = "/schedulerJobs/{schedulerJobId}"
|
770
|
+
method = "GET"
|
771
|
+
operation_name = "get_scheduler_job"
|
772
|
+
api_reference_link = ""
|
773
|
+
|
774
|
+
# Don't accept unknown kwargs
|
775
|
+
expected_kwargs = [
|
776
|
+
"allow_control_chars",
|
777
|
+
"retry_strategy",
|
778
|
+
"opc_request_id"
|
779
|
+
]
|
780
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
781
|
+
if extra_kwargs:
|
782
|
+
raise ValueError(
|
783
|
+
f"get_scheduler_job got unknown kwargs: {extra_kwargs!r}")
|
784
|
+
|
785
|
+
path_params = {
|
786
|
+
"schedulerJobId": scheduler_job_id
|
787
|
+
}
|
788
|
+
|
789
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
790
|
+
|
791
|
+
for (k, v) in six.iteritems(path_params):
|
792
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
793
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
794
|
+
|
795
|
+
header_params = {
|
796
|
+
"accept": "application/json",
|
797
|
+
"content-type": "application/json",
|
798
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
799
|
+
}
|
800
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
801
|
+
|
802
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
803
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
804
|
+
client_retry_strategy=self.retry_strategy
|
805
|
+
)
|
806
|
+
if retry_strategy is None:
|
807
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
808
|
+
|
809
|
+
if retry_strategy:
|
810
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
811
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
812
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
813
|
+
return retry_strategy.make_retrying_call(
|
814
|
+
self.base_client.call_api,
|
815
|
+
resource_path=resource_path,
|
816
|
+
method=method,
|
817
|
+
path_params=path_params,
|
818
|
+
header_params=header_params,
|
819
|
+
response_type="SchedulerJob",
|
820
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
821
|
+
operation_name=operation_name,
|
822
|
+
api_reference_link=api_reference_link,
|
823
|
+
required_arguments=required_arguments)
|
824
|
+
else:
|
825
|
+
return self.base_client.call_api(
|
826
|
+
resource_path=resource_path,
|
827
|
+
method=method,
|
828
|
+
path_params=path_params,
|
829
|
+
header_params=header_params,
|
830
|
+
response_type="SchedulerJob",
|
831
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
832
|
+
operation_name=operation_name,
|
833
|
+
api_reference_link=api_reference_link,
|
834
|
+
required_arguments=required_arguments)
|
835
|
+
|
836
|
+
def list_executions(self, scheduler_job_id, job_activity_id, resource_id, **kwargs):
|
837
|
+
"""
|
838
|
+
Returns a list of Task Executions for a Resource.
|
839
|
+
|
840
|
+
|
841
|
+
:param str scheduler_job_id: (required)
|
842
|
+
unique SchedulerJob identifier
|
843
|
+
|
844
|
+
:param str job_activity_id: (required)
|
845
|
+
unique jobActivity identifier
|
846
|
+
|
847
|
+
:param str resource_id: (required)
|
848
|
+
unique Resource identifier
|
849
|
+
|
850
|
+
:param str resource_task_id: (optional)
|
851
|
+
Task Id
|
852
|
+
|
853
|
+
:param str step_name: (optional)
|
854
|
+
Unique step name
|
855
|
+
|
856
|
+
:param str target_name: (optional)
|
857
|
+
Unique target name
|
858
|
+
|
859
|
+
:param str sequence: (optional)
|
860
|
+
Task Order Sequence
|
861
|
+
|
862
|
+
:param int limit: (optional)
|
863
|
+
The maximum number of items to return.
|
864
|
+
|
865
|
+
:param str page: (optional)
|
866
|
+
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.
|
867
|
+
|
868
|
+
:param str sort_order: (optional)
|
869
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
870
|
+
|
871
|
+
Allowed values are: "ASC", "DESC"
|
872
|
+
|
873
|
+
:param str sort_by: (optional)
|
874
|
+
The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending.
|
875
|
+
|
876
|
+
Allowed values are: "timeStarted"
|
877
|
+
|
878
|
+
:param str opc_request_id: (optional)
|
879
|
+
The client request ID for tracing.
|
880
|
+
|
881
|
+
:param obj retry_strategy: (optional)
|
882
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
883
|
+
|
884
|
+
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.
|
885
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
886
|
+
|
887
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
888
|
+
|
889
|
+
:param bool allow_control_chars: (optional)
|
890
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
891
|
+
By default, the response will not allow control characters in strings
|
892
|
+
|
893
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ExecutionCollection`
|
894
|
+
:rtype: :class:`~oci.response.Response`
|
895
|
+
|
896
|
+
:example:
|
897
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_executions.py.html>`__ to see an example of how to use list_executions API.
|
898
|
+
"""
|
899
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
900
|
+
required_arguments = ['schedulerJobId', 'jobActivityId', 'resourceId']
|
901
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions"
|
902
|
+
method = "GET"
|
903
|
+
operation_name = "list_executions"
|
904
|
+
api_reference_link = ""
|
905
|
+
|
906
|
+
# Don't accept unknown kwargs
|
907
|
+
expected_kwargs = [
|
908
|
+
"allow_control_chars",
|
909
|
+
"retry_strategy",
|
910
|
+
"resource_task_id",
|
911
|
+
"step_name",
|
912
|
+
"target_name",
|
913
|
+
"sequence",
|
914
|
+
"limit",
|
915
|
+
"page",
|
916
|
+
"sort_order",
|
917
|
+
"sort_by",
|
918
|
+
"opc_request_id"
|
919
|
+
]
|
920
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
921
|
+
if extra_kwargs:
|
922
|
+
raise ValueError(
|
923
|
+
f"list_executions got unknown kwargs: {extra_kwargs!r}")
|
924
|
+
|
925
|
+
path_params = {
|
926
|
+
"schedulerJobId": scheduler_job_id,
|
927
|
+
"jobActivityId": job_activity_id,
|
928
|
+
"resourceId": resource_id
|
929
|
+
}
|
930
|
+
|
931
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
932
|
+
|
933
|
+
for (k, v) in six.iteritems(path_params):
|
934
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
935
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
936
|
+
|
937
|
+
if 'sort_order' in kwargs:
|
938
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
939
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
940
|
+
raise ValueError(
|
941
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
942
|
+
)
|
943
|
+
|
944
|
+
if 'sort_by' in kwargs:
|
945
|
+
sort_by_allowed_values = ["timeStarted"]
|
946
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
947
|
+
raise ValueError(
|
948
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
949
|
+
)
|
950
|
+
|
951
|
+
query_params = {
|
952
|
+
"resourceTaskId": kwargs.get("resource_task_id", missing),
|
953
|
+
"stepName": kwargs.get("step_name", missing),
|
954
|
+
"targetName": kwargs.get("target_name", missing),
|
955
|
+
"sequence": kwargs.get("sequence", missing),
|
956
|
+
"limit": kwargs.get("limit", missing),
|
957
|
+
"page": kwargs.get("page", missing),
|
958
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
959
|
+
"sortBy": kwargs.get("sort_by", missing)
|
960
|
+
}
|
961
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
962
|
+
|
963
|
+
header_params = {
|
964
|
+
"accept": "application/json",
|
965
|
+
"content-type": "application/json",
|
966
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
967
|
+
}
|
968
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
969
|
+
|
970
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
971
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
972
|
+
client_retry_strategy=self.retry_strategy
|
973
|
+
)
|
974
|
+
if retry_strategy is None:
|
975
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
976
|
+
|
977
|
+
if retry_strategy:
|
978
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
979
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
980
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
981
|
+
return retry_strategy.make_retrying_call(
|
982
|
+
self.base_client.call_api,
|
983
|
+
resource_path=resource_path,
|
984
|
+
method=method,
|
985
|
+
path_params=path_params,
|
986
|
+
query_params=query_params,
|
987
|
+
header_params=header_params,
|
988
|
+
response_type="ExecutionCollection",
|
989
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
990
|
+
operation_name=operation_name,
|
991
|
+
api_reference_link=api_reference_link,
|
992
|
+
required_arguments=required_arguments)
|
993
|
+
else:
|
994
|
+
return self.base_client.call_api(
|
995
|
+
resource_path=resource_path,
|
996
|
+
method=method,
|
997
|
+
path_params=path_params,
|
998
|
+
query_params=query_params,
|
999
|
+
header_params=header_params,
|
1000
|
+
response_type="ExecutionCollection",
|
1001
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1002
|
+
operation_name=operation_name,
|
1003
|
+
api_reference_link=api_reference_link,
|
1004
|
+
required_arguments=required_arguments)
|
1005
|
+
|
1006
|
+
def list_scheduled_fleets(self, scheduler_definition_id, **kwargs):
|
1007
|
+
"""
|
1008
|
+
Returns a list of ScheduledFleets
|
1009
|
+
|
1010
|
+
|
1011
|
+
:param str scheduler_definition_id: (required)
|
1012
|
+
unique SchedulerDefinition identifier
|
1013
|
+
|
1014
|
+
:param str compartment_id: (optional)
|
1015
|
+
The ID of the compartment in which to list resources.
|
1016
|
+
|
1017
|
+
:param str display_name: (optional)
|
1018
|
+
A filter to return only resources that match the entire display name given.
|
1019
|
+
|
1020
|
+
:param int limit: (optional)
|
1021
|
+
The maximum number of items to return.
|
1022
|
+
|
1023
|
+
:param str page: (optional)
|
1024
|
+
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.
|
1025
|
+
|
1026
|
+
:param str sort_order: (optional)
|
1027
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1028
|
+
|
1029
|
+
Allowed values are: "ASC", "DESC"
|
1030
|
+
|
1031
|
+
:param str sort_by: (optional)
|
1032
|
+
The field to sort by. Only one sort order may be provided. Default order for displayName is ascending.
|
1033
|
+
|
1034
|
+
Allowed values are: "displayName"
|
1035
|
+
|
1036
|
+
:param str opc_request_id: (optional)
|
1037
|
+
The client request ID for tracing.
|
1038
|
+
|
1039
|
+
:param obj retry_strategy: (optional)
|
1040
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1041
|
+
|
1042
|
+
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.
|
1043
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1044
|
+
|
1045
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1046
|
+
|
1047
|
+
:param bool allow_control_chars: (optional)
|
1048
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1049
|
+
By default, the response will not allow control characters in strings
|
1050
|
+
|
1051
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ScheduledFleetCollection`
|
1052
|
+
:rtype: :class:`~oci.response.Response`
|
1053
|
+
|
1054
|
+
:example:
|
1055
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_scheduled_fleets.py.html>`__ to see an example of how to use list_scheduled_fleets API.
|
1056
|
+
"""
|
1057
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1058
|
+
required_arguments = ['schedulerDefinitionId']
|
1059
|
+
resource_path = "/schedulerDefinitions/{schedulerDefinitionId}/scheduledFleets"
|
1060
|
+
method = "GET"
|
1061
|
+
operation_name = "list_scheduled_fleets"
|
1062
|
+
api_reference_link = ""
|
1063
|
+
|
1064
|
+
# Don't accept unknown kwargs
|
1065
|
+
expected_kwargs = [
|
1066
|
+
"allow_control_chars",
|
1067
|
+
"retry_strategy",
|
1068
|
+
"compartment_id",
|
1069
|
+
"display_name",
|
1070
|
+
"limit",
|
1071
|
+
"page",
|
1072
|
+
"sort_order",
|
1073
|
+
"sort_by",
|
1074
|
+
"opc_request_id"
|
1075
|
+
]
|
1076
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1077
|
+
if extra_kwargs:
|
1078
|
+
raise ValueError(
|
1079
|
+
f"list_scheduled_fleets got unknown kwargs: {extra_kwargs!r}")
|
1080
|
+
|
1081
|
+
path_params = {
|
1082
|
+
"schedulerDefinitionId": scheduler_definition_id
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1086
|
+
|
1087
|
+
for (k, v) in six.iteritems(path_params):
|
1088
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1089
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1090
|
+
|
1091
|
+
if 'sort_order' in kwargs:
|
1092
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1093
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1094
|
+
raise ValueError(
|
1095
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1096
|
+
)
|
1097
|
+
|
1098
|
+
if 'sort_by' in kwargs:
|
1099
|
+
sort_by_allowed_values = ["displayName"]
|
1100
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1101
|
+
raise ValueError(
|
1102
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1103
|
+
)
|
1104
|
+
|
1105
|
+
query_params = {
|
1106
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1107
|
+
"displayName": kwargs.get("display_name", missing),
|
1108
|
+
"limit": kwargs.get("limit", missing),
|
1109
|
+
"page": kwargs.get("page", missing),
|
1110
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1111
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1112
|
+
}
|
1113
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1114
|
+
|
1115
|
+
header_params = {
|
1116
|
+
"accept": "application/json",
|
1117
|
+
"content-type": "application/json",
|
1118
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1119
|
+
}
|
1120
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1121
|
+
|
1122
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1123
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1124
|
+
client_retry_strategy=self.retry_strategy
|
1125
|
+
)
|
1126
|
+
if retry_strategy is None:
|
1127
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1128
|
+
|
1129
|
+
if retry_strategy:
|
1130
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1131
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1132
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1133
|
+
return retry_strategy.make_retrying_call(
|
1134
|
+
self.base_client.call_api,
|
1135
|
+
resource_path=resource_path,
|
1136
|
+
method=method,
|
1137
|
+
path_params=path_params,
|
1138
|
+
query_params=query_params,
|
1139
|
+
header_params=header_params,
|
1140
|
+
response_type="ScheduledFleetCollection",
|
1141
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1142
|
+
operation_name=operation_name,
|
1143
|
+
api_reference_link=api_reference_link,
|
1144
|
+
required_arguments=required_arguments)
|
1145
|
+
else:
|
1146
|
+
return self.base_client.call_api(
|
1147
|
+
resource_path=resource_path,
|
1148
|
+
method=method,
|
1149
|
+
path_params=path_params,
|
1150
|
+
query_params=query_params,
|
1151
|
+
header_params=header_params,
|
1152
|
+
response_type="ScheduledFleetCollection",
|
1153
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1154
|
+
operation_name=operation_name,
|
1155
|
+
api_reference_link=api_reference_link,
|
1156
|
+
required_arguments=required_arguments)
|
1157
|
+
|
1158
|
+
def list_scheduler_definitions(self, **kwargs):
|
1159
|
+
"""
|
1160
|
+
Returns a list of SchedulerDefinitions.
|
1161
|
+
|
1162
|
+
|
1163
|
+
:param str compartment_id: (optional)
|
1164
|
+
The ID of the compartment in which to list resources.
|
1165
|
+
|
1166
|
+
:param str lifecycle_state: (optional)
|
1167
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
1168
|
+
|
1169
|
+
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "INACTIVE"
|
1170
|
+
|
1171
|
+
:param str display_name: (optional)
|
1172
|
+
A filter to return only resources that match the entire display name given.
|
1173
|
+
|
1174
|
+
:param str product: (optional)
|
1175
|
+
A filter to return only Scheduler Definitions whose assocaited product matches the given product
|
1176
|
+
|
1177
|
+
:param str id: (optional)
|
1178
|
+
unique SchedulerDefinition identifier
|
1179
|
+
|
1180
|
+
:param str maintenance_window_id: (optional)
|
1181
|
+
unique MaintenanceWindow identifier
|
1182
|
+
|
1183
|
+
:param str fleet_id: (optional)
|
1184
|
+
unique Fleet identifier
|
1185
|
+
|
1186
|
+
:param int limit: (optional)
|
1187
|
+
The maximum number of items to return.
|
1188
|
+
|
1189
|
+
:param str page: (optional)
|
1190
|
+
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.
|
1191
|
+
|
1192
|
+
:param str sort_order: (optional)
|
1193
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1194
|
+
|
1195
|
+
Allowed values are: "ASC", "DESC"
|
1196
|
+
|
1197
|
+
:param str sort_by: (optional)
|
1198
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated and timeOfNextRun is descending. Default order for displayName is ascending.
|
1199
|
+
|
1200
|
+
Allowed values are: "timeCreated", "displayName", "timeOfNextRun"
|
1201
|
+
|
1202
|
+
:param str opc_request_id: (optional)
|
1203
|
+
The client request ID for tracing.
|
1204
|
+
|
1205
|
+
:param obj retry_strategy: (optional)
|
1206
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1207
|
+
|
1208
|
+
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.
|
1209
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1210
|
+
|
1211
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1212
|
+
|
1213
|
+
:param bool allow_control_chars: (optional)
|
1214
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1215
|
+
By default, the response will not allow control characters in strings
|
1216
|
+
|
1217
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerDefinitionCollection`
|
1218
|
+
:rtype: :class:`~oci.response.Response`
|
1219
|
+
|
1220
|
+
:example:
|
1221
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_scheduler_definitions.py.html>`__ to see an example of how to use list_scheduler_definitions API.
|
1222
|
+
"""
|
1223
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1224
|
+
required_arguments = []
|
1225
|
+
resource_path = "/schedulerDefinitions"
|
1226
|
+
method = "GET"
|
1227
|
+
operation_name = "list_scheduler_definitions"
|
1228
|
+
api_reference_link = ""
|
1229
|
+
|
1230
|
+
# Don't accept unknown kwargs
|
1231
|
+
expected_kwargs = [
|
1232
|
+
"allow_control_chars",
|
1233
|
+
"retry_strategy",
|
1234
|
+
"compartment_id",
|
1235
|
+
"lifecycle_state",
|
1236
|
+
"display_name",
|
1237
|
+
"product",
|
1238
|
+
"id",
|
1239
|
+
"maintenance_window_id",
|
1240
|
+
"fleet_id",
|
1241
|
+
"limit",
|
1242
|
+
"page",
|
1243
|
+
"sort_order",
|
1244
|
+
"sort_by",
|
1245
|
+
"opc_request_id"
|
1246
|
+
]
|
1247
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1248
|
+
if extra_kwargs:
|
1249
|
+
raise ValueError(
|
1250
|
+
f"list_scheduler_definitions got unknown kwargs: {extra_kwargs!r}")
|
1251
|
+
|
1252
|
+
if 'lifecycle_state' in kwargs:
|
1253
|
+
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "INACTIVE"]
|
1254
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
1255
|
+
raise ValueError(
|
1256
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
1257
|
+
)
|
1258
|
+
|
1259
|
+
if 'sort_order' in kwargs:
|
1260
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1261
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1262
|
+
raise ValueError(
|
1263
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1264
|
+
)
|
1265
|
+
|
1266
|
+
if 'sort_by' in kwargs:
|
1267
|
+
sort_by_allowed_values = ["timeCreated", "displayName", "timeOfNextRun"]
|
1268
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1269
|
+
raise ValueError(
|
1270
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1271
|
+
)
|
1272
|
+
|
1273
|
+
query_params = {
|
1274
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1275
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
1276
|
+
"displayName": kwargs.get("display_name", missing),
|
1277
|
+
"product": kwargs.get("product", missing),
|
1278
|
+
"id": kwargs.get("id", missing),
|
1279
|
+
"maintenanceWindowId": kwargs.get("maintenance_window_id", missing),
|
1280
|
+
"fleetId": kwargs.get("fleet_id", missing),
|
1281
|
+
"limit": kwargs.get("limit", missing),
|
1282
|
+
"page": kwargs.get("page", missing),
|
1283
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1284
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1285
|
+
}
|
1286
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1287
|
+
|
1288
|
+
header_params = {
|
1289
|
+
"accept": "application/json",
|
1290
|
+
"content-type": "application/json",
|
1291
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1292
|
+
}
|
1293
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1294
|
+
|
1295
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1296
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1297
|
+
client_retry_strategy=self.retry_strategy
|
1298
|
+
)
|
1299
|
+
if retry_strategy is None:
|
1300
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1301
|
+
|
1302
|
+
if retry_strategy:
|
1303
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1304
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1305
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1306
|
+
return retry_strategy.make_retrying_call(
|
1307
|
+
self.base_client.call_api,
|
1308
|
+
resource_path=resource_path,
|
1309
|
+
method=method,
|
1310
|
+
query_params=query_params,
|
1311
|
+
header_params=header_params,
|
1312
|
+
response_type="SchedulerDefinitionCollection",
|
1313
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1314
|
+
operation_name=operation_name,
|
1315
|
+
api_reference_link=api_reference_link,
|
1316
|
+
required_arguments=required_arguments)
|
1317
|
+
else:
|
1318
|
+
return self.base_client.call_api(
|
1319
|
+
resource_path=resource_path,
|
1320
|
+
method=method,
|
1321
|
+
query_params=query_params,
|
1322
|
+
header_params=header_params,
|
1323
|
+
response_type="SchedulerDefinitionCollection",
|
1324
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1325
|
+
operation_name=operation_name,
|
1326
|
+
api_reference_link=api_reference_link,
|
1327
|
+
required_arguments=required_arguments)
|
1328
|
+
|
1329
|
+
def list_scheduler_jobs(self, **kwargs):
|
1330
|
+
"""
|
1331
|
+
Returns a list of SchedulerJobs.
|
1332
|
+
|
1333
|
+
|
1334
|
+
:param str compartment_id: (optional)
|
1335
|
+
The ID of the compartment in which to list resources.
|
1336
|
+
|
1337
|
+
:param str lifecycle_state: (optional)
|
1338
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
1339
|
+
|
1340
|
+
Allowed values are: "ACTIVE", "DELETED", "FAILED"
|
1341
|
+
|
1342
|
+
:param str fleet_id: (optional)
|
1343
|
+
unique Fleet identifier
|
1344
|
+
|
1345
|
+
:param datetime time_scheduled_greater_than_or_equal_to: (optional)
|
1346
|
+
Scheduled Time
|
1347
|
+
|
1348
|
+
:param datetime time_scheduled_less_than: (optional)
|
1349
|
+
Scheduled Time
|
1350
|
+
|
1351
|
+
:param bool is_remediation_job_needed: (optional)
|
1352
|
+
Fetch next remediation Job
|
1353
|
+
|
1354
|
+
:param str display_name: (optional)
|
1355
|
+
A filter to return only resources that match the entire display name given.
|
1356
|
+
|
1357
|
+
:param str id: (optional)
|
1358
|
+
unique SchedulerJob identifier
|
1359
|
+
|
1360
|
+
:param str defintion_id: (optional)
|
1361
|
+
SchedulerJob Definition identifier
|
1362
|
+
|
1363
|
+
:param int limit: (optional)
|
1364
|
+
The maximum number of items to return.
|
1365
|
+
|
1366
|
+
:param str page: (optional)
|
1367
|
+
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.
|
1368
|
+
|
1369
|
+
:param str sort_order: (optional)
|
1370
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1371
|
+
|
1372
|
+
Allowed values are: "ASC", "DESC"
|
1373
|
+
|
1374
|
+
:param str sort_by: (optional)
|
1375
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated and timeScheduled is descending. Default order for displayName is ascending.
|
1376
|
+
|
1377
|
+
Allowed values are: "timeCreated", "timeScheduled", "displayName"
|
1378
|
+
|
1379
|
+
:param str opc_request_id: (optional)
|
1380
|
+
The client request ID for tracing.
|
1381
|
+
|
1382
|
+
:param obj retry_strategy: (optional)
|
1383
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1384
|
+
|
1385
|
+
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.
|
1386
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1387
|
+
|
1388
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1389
|
+
|
1390
|
+
:param bool allow_control_chars: (optional)
|
1391
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1392
|
+
By default, the response will not allow control characters in strings
|
1393
|
+
|
1394
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerJobCollection`
|
1395
|
+
:rtype: :class:`~oci.response.Response`
|
1396
|
+
|
1397
|
+
:example:
|
1398
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/list_scheduler_jobs.py.html>`__ to see an example of how to use list_scheduler_jobs API.
|
1399
|
+
"""
|
1400
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1401
|
+
required_arguments = []
|
1402
|
+
resource_path = "/schedulerJobs"
|
1403
|
+
method = "GET"
|
1404
|
+
operation_name = "list_scheduler_jobs"
|
1405
|
+
api_reference_link = ""
|
1406
|
+
|
1407
|
+
# Don't accept unknown kwargs
|
1408
|
+
expected_kwargs = [
|
1409
|
+
"allow_control_chars",
|
1410
|
+
"retry_strategy",
|
1411
|
+
"compartment_id",
|
1412
|
+
"lifecycle_state",
|
1413
|
+
"fleet_id",
|
1414
|
+
"time_scheduled_greater_than_or_equal_to",
|
1415
|
+
"time_scheduled_less_than",
|
1416
|
+
"is_remediation_job_needed",
|
1417
|
+
"display_name",
|
1418
|
+
"id",
|
1419
|
+
"defintion_id",
|
1420
|
+
"limit",
|
1421
|
+
"page",
|
1422
|
+
"sort_order",
|
1423
|
+
"sort_by",
|
1424
|
+
"opc_request_id"
|
1425
|
+
]
|
1426
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1427
|
+
if extra_kwargs:
|
1428
|
+
raise ValueError(
|
1429
|
+
f"list_scheduler_jobs got unknown kwargs: {extra_kwargs!r}")
|
1430
|
+
|
1431
|
+
if 'lifecycle_state' in kwargs:
|
1432
|
+
lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED"]
|
1433
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
1434
|
+
raise ValueError(
|
1435
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
1436
|
+
)
|
1437
|
+
|
1438
|
+
if 'sort_order' in kwargs:
|
1439
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1440
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1441
|
+
raise ValueError(
|
1442
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1443
|
+
)
|
1444
|
+
|
1445
|
+
if 'sort_by' in kwargs:
|
1446
|
+
sort_by_allowed_values = ["timeCreated", "timeScheduled", "displayName"]
|
1447
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1448
|
+
raise ValueError(
|
1449
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1450
|
+
)
|
1451
|
+
|
1452
|
+
query_params = {
|
1453
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1454
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
1455
|
+
"fleetId": kwargs.get("fleet_id", missing),
|
1456
|
+
"timeScheduledGreaterThanOrEqualTo": kwargs.get("time_scheduled_greater_than_or_equal_to", missing),
|
1457
|
+
"timeScheduledLessThan": kwargs.get("time_scheduled_less_than", missing),
|
1458
|
+
"isRemediationJobNeeded": kwargs.get("is_remediation_job_needed", missing),
|
1459
|
+
"displayName": kwargs.get("display_name", missing),
|
1460
|
+
"id": kwargs.get("id", missing),
|
1461
|
+
"defintionId": kwargs.get("defintion_id", missing),
|
1462
|
+
"limit": kwargs.get("limit", missing),
|
1463
|
+
"page": kwargs.get("page", missing),
|
1464
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1465
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1466
|
+
}
|
1467
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
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
|
+
query_params=query_params,
|
1492
|
+
header_params=header_params,
|
1493
|
+
response_type="SchedulerJobCollection",
|
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
|
+
query_params=query_params,
|
1503
|
+
header_params=header_params,
|
1504
|
+
response_type="SchedulerJobCollection",
|
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 update_scheduler_definition(self, scheduler_definition_id, update_scheduler_definition_details, **kwargs):
|
1511
|
+
"""
|
1512
|
+
Updates the SchedulerDefinition
|
1513
|
+
|
1514
|
+
|
1515
|
+
:param str scheduler_definition_id: (required)
|
1516
|
+
unique SchedulerDefinition identifier
|
1517
|
+
|
1518
|
+
:param oci.fleet_apps_management.models.UpdateSchedulerDefinitionDetails update_scheduler_definition_details: (required)
|
1519
|
+
The information to be updated.
|
1520
|
+
|
1521
|
+
:param str if_match: (optional)
|
1522
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1523
|
+
for a resource, set the `if-match` parameter to the value of the
|
1524
|
+
etag from a previous GET or POST response for that resource.
|
1525
|
+
The resource will be updated or deleted only if the etag you
|
1526
|
+
provide matches the resource's current etag value.
|
1527
|
+
|
1528
|
+
:param str opc_request_id: (optional)
|
1529
|
+
The client request ID for tracing.
|
1530
|
+
|
1531
|
+
:param obj retry_strategy: (optional)
|
1532
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1533
|
+
|
1534
|
+
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.
|
1535
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1536
|
+
|
1537
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1538
|
+
|
1539
|
+
:param bool allow_control_chars: (optional)
|
1540
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1541
|
+
By default, the response will not allow control characters in strings
|
1542
|
+
|
1543
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1544
|
+
:rtype: :class:`~oci.response.Response`
|
1545
|
+
|
1546
|
+
:example:
|
1547
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/update_scheduler_definition.py.html>`__ to see an example of how to use update_scheduler_definition API.
|
1548
|
+
"""
|
1549
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1550
|
+
required_arguments = ['schedulerDefinitionId']
|
1551
|
+
resource_path = "/schedulerDefinitions/{schedulerDefinitionId}"
|
1552
|
+
method = "PUT"
|
1553
|
+
operation_name = "update_scheduler_definition"
|
1554
|
+
api_reference_link = ""
|
1555
|
+
|
1556
|
+
# Don't accept unknown kwargs
|
1557
|
+
expected_kwargs = [
|
1558
|
+
"allow_control_chars",
|
1559
|
+
"retry_strategy",
|
1560
|
+
"if_match",
|
1561
|
+
"opc_request_id"
|
1562
|
+
]
|
1563
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1564
|
+
if extra_kwargs:
|
1565
|
+
raise ValueError(
|
1566
|
+
f"update_scheduler_definition got unknown kwargs: {extra_kwargs!r}")
|
1567
|
+
|
1568
|
+
path_params = {
|
1569
|
+
"schedulerDefinitionId": scheduler_definition_id
|
1570
|
+
}
|
1571
|
+
|
1572
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1573
|
+
|
1574
|
+
for (k, v) in six.iteritems(path_params):
|
1575
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1576
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1577
|
+
|
1578
|
+
header_params = {
|
1579
|
+
"accept": "application/json",
|
1580
|
+
"content-type": "application/json",
|
1581
|
+
"if-match": kwargs.get("if_match", missing),
|
1582
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1583
|
+
}
|
1584
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1585
|
+
|
1586
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1587
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1588
|
+
client_retry_strategy=self.retry_strategy
|
1589
|
+
)
|
1590
|
+
if retry_strategy is None:
|
1591
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1592
|
+
|
1593
|
+
if retry_strategy:
|
1594
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1595
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1596
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1597
|
+
return retry_strategy.make_retrying_call(
|
1598
|
+
self.base_client.call_api,
|
1599
|
+
resource_path=resource_path,
|
1600
|
+
method=method,
|
1601
|
+
path_params=path_params,
|
1602
|
+
header_params=header_params,
|
1603
|
+
body=update_scheduler_definition_details,
|
1604
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1605
|
+
operation_name=operation_name,
|
1606
|
+
api_reference_link=api_reference_link,
|
1607
|
+
required_arguments=required_arguments)
|
1608
|
+
else:
|
1609
|
+
return self.base_client.call_api(
|
1610
|
+
resource_path=resource_path,
|
1611
|
+
method=method,
|
1612
|
+
path_params=path_params,
|
1613
|
+
header_params=header_params,
|
1614
|
+
body=update_scheduler_definition_details,
|
1615
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1616
|
+
operation_name=operation_name,
|
1617
|
+
api_reference_link=api_reference_link,
|
1618
|
+
required_arguments=required_arguments)
|
1619
|
+
|
1620
|
+
def update_scheduler_job(self, scheduler_job_id, update_scheduler_job_details, **kwargs):
|
1621
|
+
"""
|
1622
|
+
Updates the SchedulerJob
|
1623
|
+
|
1624
|
+
|
1625
|
+
:param str scheduler_job_id: (required)
|
1626
|
+
unique SchedulerJob identifier
|
1627
|
+
|
1628
|
+
:param oci.fleet_apps_management.models.UpdateSchedulerJobDetails update_scheduler_job_details: (required)
|
1629
|
+
The information to be updated.
|
1630
|
+
|
1631
|
+
:param str if_match: (optional)
|
1632
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1633
|
+
for a resource, set the `if-match` parameter to the value of the
|
1634
|
+
etag from a previous GET or POST response for that resource.
|
1635
|
+
The resource will be updated or deleted only if the etag you
|
1636
|
+
provide matches the resource's current etag value.
|
1637
|
+
|
1638
|
+
:param str opc_request_id: (optional)
|
1639
|
+
The client request ID for tracing.
|
1640
|
+
|
1641
|
+
:param obj retry_strategy: (optional)
|
1642
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1643
|
+
|
1644
|
+
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.
|
1645
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1646
|
+
|
1647
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1648
|
+
|
1649
|
+
:param bool allow_control_chars: (optional)
|
1650
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1651
|
+
By default, the response will not allow control characters in strings
|
1652
|
+
|
1653
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerJob`
|
1654
|
+
:rtype: :class:`~oci.response.Response`
|
1655
|
+
|
1656
|
+
:example:
|
1657
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.132.0/fleetappsmanagement/update_scheduler_job.py.html>`__ to see an example of how to use update_scheduler_job API.
|
1658
|
+
"""
|
1659
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1660
|
+
required_arguments = ['schedulerJobId']
|
1661
|
+
resource_path = "/schedulerJobs/{schedulerJobId}"
|
1662
|
+
method = "PUT"
|
1663
|
+
operation_name = "update_scheduler_job"
|
1664
|
+
api_reference_link = ""
|
1665
|
+
|
1666
|
+
# Don't accept unknown kwargs
|
1667
|
+
expected_kwargs = [
|
1668
|
+
"allow_control_chars",
|
1669
|
+
"retry_strategy",
|
1670
|
+
"if_match",
|
1671
|
+
"opc_request_id"
|
1672
|
+
]
|
1673
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1674
|
+
if extra_kwargs:
|
1675
|
+
raise ValueError(
|
1676
|
+
f"update_scheduler_job got unknown kwargs: {extra_kwargs!r}")
|
1677
|
+
|
1678
|
+
path_params = {
|
1679
|
+
"schedulerJobId": scheduler_job_id
|
1680
|
+
}
|
1681
|
+
|
1682
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1683
|
+
|
1684
|
+
for (k, v) in six.iteritems(path_params):
|
1685
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1686
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1687
|
+
|
1688
|
+
header_params = {
|
1689
|
+
"accept": "application/json",
|
1690
|
+
"content-type": "application/json",
|
1691
|
+
"if-match": kwargs.get("if_match", missing),
|
1692
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1693
|
+
}
|
1694
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1695
|
+
|
1696
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1697
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1698
|
+
client_retry_strategy=self.retry_strategy
|
1699
|
+
)
|
1700
|
+
if retry_strategy is None:
|
1701
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1702
|
+
|
1703
|
+
if retry_strategy:
|
1704
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1705
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1706
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1707
|
+
return retry_strategy.make_retrying_call(
|
1708
|
+
self.base_client.call_api,
|
1709
|
+
resource_path=resource_path,
|
1710
|
+
method=method,
|
1711
|
+
path_params=path_params,
|
1712
|
+
header_params=header_params,
|
1713
|
+
body=update_scheduler_job_details,
|
1714
|
+
response_type="SchedulerJob",
|
1715
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1716
|
+
operation_name=operation_name,
|
1717
|
+
api_reference_link=api_reference_link,
|
1718
|
+
required_arguments=required_arguments)
|
1719
|
+
else:
|
1720
|
+
return self.base_client.call_api(
|
1721
|
+
resource_path=resource_path,
|
1722
|
+
method=method,
|
1723
|
+
path_params=path_params,
|
1724
|
+
header_params=header_params,
|
1725
|
+
body=update_scheduler_job_details,
|
1726
|
+
response_type="SchedulerJob",
|
1727
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1728
|
+
operation_name=operation_name,
|
1729
|
+
api_reference_link=api_reference_link,
|
1730
|
+
required_arguments=required_arguments)
|