oci 2.136.0__py3-none-any.whl → 2.137.1__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/_vendor/jwt/__init__.py +65 -26
- oci/_vendor/jwt/algorithms.py +404 -130
- oci/_vendor/jwt/api_jwk.py +108 -0
- oci/_vendor/jwt/api_jws.py +153 -106
- oci/_vendor/jwt/api_jwt.py +146 -137
- oci/_vendor/jwt/exceptions.py +13 -6
- oci/_vendor/jwt/help.py +16 -15
- oci/_vendor/jwt/jwks_client.py +64 -0
- oci/_vendor/jwt/utils.py +101 -54
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/auth/security_token_container.py +1 -1
- 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 +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +160 -14
- oci/cloud_bridge/inventory_client.py +20 -20
- oci/cloud_bridge/models/__init__.py +48 -2
- oci/cloud_bridge/models/asset.py +19 -3
- oci/cloud_bridge/models/asset_source.py +11 -3
- oci/cloud_bridge/models/asset_source_credentials.py +17 -7
- oci/cloud_bridge/models/asset_source_summary.py +11 -3
- oci/cloud_bridge/models/asset_summary.py +11 -3
- oci/cloud_bridge/models/aws_asset_source.py +359 -0
- oci/cloud_bridge/models/aws_asset_source_summary.py +205 -0
- oci/cloud_bridge/models/aws_ebs_asset.py +170 -0
- oci/cloud_bridge/models/aws_ebs_properties.py +382 -0
- oci/cloud_bridge/models/aws_ec2_asset.py +278 -0
- oci/cloud_bridge/models/aws_ec2_properties.py +1056 -0
- oci/cloud_bridge/models/create_asset_details.py +19 -3
- oci/cloud_bridge/models/create_asset_source_details.py +11 -3
- oci/cloud_bridge/models/create_aws_asset_source_details.py +323 -0
- oci/cloud_bridge/models/create_aws_ebs_asset_details.py +134 -0
- oci/cloud_bridge/models/create_aws_ec2_asset_details.py +242 -0
- oci/cloud_bridge/models/create_vm_ware_asset_source_details.py +2 -2
- oci/cloud_bridge/models/create_vmware_vm_asset_details.py +5 -5
- oci/cloud_bridge/models/group_identifier.py +103 -0
- oci/cloud_bridge/models/import_inventory_via_assets_details.py +13 -5
- oci/cloud_bridge/models/instance_network_interface.py +498 -0
- oci/cloud_bridge/models/instance_network_interface_association.py +196 -0
- oci/cloud_bridge/models/instance_network_interface_attachment.py +227 -0
- oci/cloud_bridge/models/instance_private_ip_address.py +161 -0
- oci/cloud_bridge/models/instance_state.py +103 -0
- oci/cloud_bridge/models/monthly_cost_summary.py +103 -0
- oci/cloud_bridge/models/placement.py +289 -0
- oci/cloud_bridge/models/supported_cloud_region_collection.py +72 -0
- oci/cloud_bridge/models/supported_cloud_region_summary.py +244 -0
- oci/cloud_bridge/models/tag.py +103 -0
- oci/cloud_bridge/models/update_asset_details.py +19 -3
- oci/cloud_bridge/models/update_asset_source_details.py +47 -4
- oci/cloud_bridge/models/update_aws_asset_source_details.py +240 -0
- oci/cloud_bridge/models/update_aws_ebs_asset_details.py +106 -0
- oci/cloud_bridge/models/update_aws_ec2_asset_details.py +214 -0
- oci/cloud_bridge/models/update_vm_asset_details.py +1 -1
- oci/cloud_bridge/models/update_vm_ware_asset_source_details.py +11 -39
- oci/cloud_bridge/models/update_vmware_vm_asset_details.py +1 -1
- oci/cloud_bridge/models/vm_asset.py +3 -3
- oci/cloud_bridge/models/vm_ware_asset_source.py +2 -2
- oci/cloud_bridge/models/vm_ware_asset_source_summary.py +2 -2
- oci/cloud_bridge/models/vmware_vm_asset.py +5 -5
- oci/cloud_bridge/models/volume_attachment.py +196 -0
- oci/cloud_bridge/models/work_request.py +15 -3
- oci/cloud_bridge/models/work_request_summary.py +15 -3
- oci/cloud_bridge/ocb_agent_svc_client.py +22 -138
- oci/cloud_bridge/ocb_agent_svc_client_composite_operations.py +0 -48
- 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 +88 -88
- oci/container_engine/models/install_addon_details.py +33 -2
- 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/models/__init__.py +2 -0
- oci/core/models/virtual_circuit.py +29 -2
- oci/core/models/virtual_circuit_redundancy_metadata.py +202 -0
- 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 +292 -292
- oci/data_science/data_science_client.py +217 -93
- oci/data_science/data_science_client_composite_operations.py +41 -0
- oci/data_science/models/__init__.py +8 -0
- oci/data_science/models/backup_operation_details.py +154 -0
- oci/data_science/models/backup_setting.py +158 -0
- oci/data_science/models/create_model_details.py +56 -2
- oci/data_science/models/model.py +141 -2
- oci/data_science/models/model_summary.py +31 -0
- oci/data_science/models/retention_operation_details.py +267 -0
- oci/data_science/models/retention_setting.py +158 -0
- oci/data_science/models/update_model_details.py +56 -2
- oci/data_science/models/work_request.py +7 -3
- oci/data_science/models/work_request_summary.py +7 -3
- oci/database/database_client.py +396 -396
- oci/database/models/__init__.py +14 -0
- oci/database/models/autonomous_database.py +58 -0
- oci/database/models/autonomous_database_encryption_key_details.py +133 -0
- oci/database/models/autonomous_database_encryption_key_history_entry.py +99 -0
- oci/database/models/autonomous_database_summary.py +58 -0
- oci/database/models/aws_key_details.py +175 -0
- oci/database/models/azure_key_details.py +113 -0
- oci/database/models/create_autonomous_database_base.py +27 -0
- oci/database/models/create_autonomous_database_clone_details.py +7 -0
- oci/database/models/create_autonomous_database_details.py +7 -0
- oci/database/models/create_autonomous_database_from_backup_details.py +7 -0
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +7 -0
- oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +7 -0
- oci/database/models/create_cross_region_disaster_recovery_details.py +7 -0
- oci/database/models/create_cross_tenancy_disaster_recovery_details.py +7 -0
- oci/database/models/create_refreshable_autonomous_database_clone_details.py +7 -0
- oci/database/models/oci_key_details.py +119 -0
- oci/database/models/okv_key_details.py +206 -0
- oci/database/models/oracle_managed_key_details.py +51 -0
- oci/database/models/undelete_autonomous_database_details.py +7 -0
- oci/database/models/update_autonomous_database_details.py +29 -2
- oci/database_management/db_management_client.py +211 -211
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +3599 -1776
- oci/file_storage/file_storage_client_composite_operations.py +881 -223
- oci/file_storage/models/__init__.py +2 -0
- oci/file_storage/models/create_export_details.py +31 -0
- oci/file_storage/models/create_file_system_details.py +31 -0
- oci/file_storage/models/create_filesystem_snapshot_policy_details.py +33 -2
- oci/file_storage/models/create_ldap_bind_account_details.py +7 -0
- oci/file_storage/models/create_mount_target_details.py +31 -0
- oci/file_storage/models/create_outbound_connector_details.py +33 -2
- oci/file_storage/models/create_replication_details.py +33 -2
- oci/file_storage/models/create_snapshot_details.py +33 -2
- oci/file_storage/models/export.py +33 -2
- oci/file_storage/models/export_summary.py +33 -2
- oci/file_storage/models/file_system.py +31 -0
- oci/file_storage/models/file_system_summary.py +31 -0
- oci/file_storage/models/filesystem_snapshot_policy.py +31 -0
- oci/file_storage/models/filesystem_snapshot_policy_summary.py +31 -0
- oci/file_storage/models/ldap_bind_account.py +7 -0
- oci/file_storage/models/ldap_bind_account_summary.py +7 -0
- oci/file_storage/models/mount_target.py +31 -0
- oci/file_storage/models/mount_target_summary.py +31 -0
- oci/file_storage/models/outbound_connector.py +31 -0
- oci/file_storage/models/outbound_connector_summary.py +31 -0
- oci/file_storage/models/replication.py +31 -0
- oci/file_storage/models/replication_summary.py +31 -0
- oci/file_storage/models/resource_lock.py +185 -0
- oci/file_storage/models/snapshot.py +31 -0
- oci/file_storage/models/snapshot_summary.py +31 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +2261 -294
- oci/fleet_apps_management/fleet_apps_management_admin_client_composite_operations.py +349 -1
- oci/fleet_apps_management/fleet_apps_management_client.py +141 -127
- oci/fleet_apps_management/fleet_apps_management_client_composite_operations.py +19 -19
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +19 -15
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client_composite_operations.py +1 -1
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +2058 -363
- oci/fleet_apps_management/fleet_apps_management_operations_client_composite_operations.py +173 -0
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +1097 -260
- oci/fleet_apps_management/fleet_apps_management_runbooks_client_composite_operations.py +298 -0
- oci/fleet_apps_management/models/__init__.py +168 -0
- oci/fleet_apps_management/models/action_group.py +2 -2
- oci/fleet_apps_management/models/action_group_based_user_action_details.py +90 -0
- oci/fleet_apps_management/models/action_group_details.py +20 -16
- oci/fleet_apps_management/models/activity_resource_target.py +44 -7
- oci/fleet_apps_management/models/announcement_collection.py +1 -1
- oci/fleet_apps_management/models/announcement_summary.py +13 -13
- oci/fleet_apps_management/models/api_based_execution_details.py +1 -1
- oci/fleet_apps_management/models/artifact_details.py +109 -0
- oci/fleet_apps_management/models/associated_fleet_credential_details.py +1 -1
- oci/fleet_apps_management/models/associated_fleet_property_details.py +5 -5
- oci/fleet_apps_management/models/associated_fleet_resource_details.py +6 -6
- oci/fleet_apps_management/models/associated_local_task_details.py +64 -1
- oci/fleet_apps_management/models/associated_scheduler_definition.py +3 -3
- oci/fleet_apps_management/models/associated_shared_task_details.py +2 -1
- oci/fleet_apps_management/models/associations.py +32 -5
- oci/fleet_apps_management/models/check_resource_tagging_details.py +5 -5
- oci/fleet_apps_management/models/compliance_detail_policy.py +223 -0
- oci/fleet_apps_management/models/compliance_detail_product.py +134 -0
- oci/fleet_apps_management/models/compliance_detail_resource.py +196 -0
- oci/fleet_apps_management/models/compliance_detail_target.py +134 -0
- oci/fleet_apps_management/models/compliance_patch_detail.py +278 -0
- oci/fleet_apps_management/models/compliance_policy.py +439 -0
- oci/fleet_apps_management/models/compliance_policy_collection.py +72 -0
- oci/fleet_apps_management/models/compliance_policy_rule.py +618 -0
- oci/fleet_apps_management/models/compliance_policy_rule_collection.py +72 -0
- oci/fleet_apps_management/models/compliance_policy_rule_summary.py +585 -0
- oci/fleet_apps_management/models/compliance_policy_summary.py +406 -0
- oci/fleet_apps_management/models/compliance_record.py +457 -0
- oci/fleet_apps_management/models/compliance_record_aggregation.py +99 -0
- oci/fleet_apps_management/models/compliance_record_aggregation_collection.py +72 -0
- oci/fleet_apps_management/models/compliance_record_collection.py +72 -0
- oci/fleet_apps_management/models/compliance_record_dimension.py +143 -0
- oci/fleet_apps_management/models/compliance_record_summary.py +437 -0
- oci/fleet_apps_management/models/compliance_report.py +5 -5
- oci/fleet_apps_management/models/compliance_report_patch_detail.py +9 -9
- oci/fleet_apps_management/models/compliance_report_product.py +3 -3
- oci/fleet_apps_management/models/compliance_report_resource.py +8 -6
- oci/fleet_apps_management/models/compliance_report_target.py +7 -7
- oci/fleet_apps_management/models/component_properties.py +69 -9
- oci/fleet_apps_management/models/condition.py +12 -6
- oci/fleet_apps_management/models/config_association_details.py +109 -0
- oci/fleet_apps_management/models/config_category_details.py +133 -0
- oci/fleet_apps_management/models/confirm_targets_details.py +1 -1
- oci/fleet_apps_management/models/content_details.py +3 -3
- oci/fleet_apps_management/models/create_compliance_policy_rule_details.py +382 -0
- oci/fleet_apps_management/models/create_fleet_details.py +63 -16
- oci/fleet_apps_management/models/create_fleet_property_details.py +5 -5
- oci/fleet_apps_management/models/create_fleet_resource_details.py +1 -1
- oci/fleet_apps_management/models/create_maintenance_window_details.py +19 -11
- oci/fleet_apps_management/models/create_onboarding_details.py +8 -4
- oci/fleet_apps_management/models/create_patch_details.py +402 -0
- oci/fleet_apps_management/models/create_platform_configuration_details.py +169 -0
- oci/fleet_apps_management/models/create_property_details.py +6 -6
- oci/fleet_apps_management/models/create_runbook_details.py +441 -0
- oci/fleet_apps_management/models/create_task_record_details.py +235 -0
- oci/fleet_apps_management/models/credential_config_category_details.py +52 -0
- oci/fleet_apps_management/models/credential_details.py +3 -3
- oci/fleet_apps_management/models/credential_entity_specific_details.py +22 -6
- oci/{cloud_bridge/models/update_plugin_details.py → fleet_apps_management/models/dependent_patch_details.py} +21 -21
- oci/fleet_apps_management/models/details.py +67 -3
- oci/fleet_apps_management/models/discovered_target.py +6 -6
- oci/fleet_apps_management/models/enable_latest_policy_details.py +72 -0
- oci/fleet_apps_management/models/entity_execution_details.py +22 -16
- oci/fleet_apps_management/models/environment_config_category_details.py +53 -0
- oci/fleet_apps_management/models/execution.py +122 -21
- oci/fleet_apps_management/models/execution_collection.py +1 -1
- oci/fleet_apps_management/models/execution_details.py +1 -1
- oci/fleet_apps_management/models/execution_summary.py +123 -22
- oci/fleet_apps_management/models/execution_workflow_details.py +1 -1
- oci/fleet_apps_management/models/export_compliance_report_details.py +251 -0
- oci/fleet_apps_management/models/fleet.py +37 -19
- oci/fleet_apps_management/models/fleet_credential.py +1 -1
- oci/fleet_apps_management/models/fleet_credential_entity_specific_details.py +82 -0
- oci/fleet_apps_management/models/fleet_product_summary.py +3 -3
- oci/fleet_apps_management/models/fleet_property.py +11 -11
- oci/fleet_apps_management/models/fleet_property_collection.py +3 -3
- oci/fleet_apps_management/models/fleet_property_summary.py +6 -6
- oci/fleet_apps_management/models/fleet_resource.py +21 -15
- oci/fleet_apps_management/models/fleet_resource_collection.py +1 -1
- oci/fleet_apps_management/models/fleet_resource_summary.py +20 -14
- oci/fleet_apps_management/models/fleet_summary.py +15 -5
- oci/fleet_apps_management/models/fleet_target.py +98 -5
- oci/fleet_apps_management/models/fleet_target_summary.py +98 -5
- oci/fleet_apps_management/models/generate_compliance_report_details.py +5 -3
- oci/fleet_apps_management/models/generic_artifact.py +68 -0
- oci/fleet_apps_management/models/generic_artifact_details.py +78 -0
- oci/fleet_apps_management/models/group.py +11 -5
- oci/fleet_apps_management/models/input_argument.py +2 -2
- oci/fleet_apps_management/models/inventory_resource_summary.py +6 -6
- oci/fleet_apps_management/models/job_activity.py +57 -18
- oci/fleet_apps_management/models/key_encryption_credential_details.py +5 -5
- oci/fleet_apps_management/models/maintenance_window.py +19 -11
- oci/fleet_apps_management/models/maintenance_window_collection.py +1 -1
- oci/fleet_apps_management/models/maintenance_window_summary.py +18 -10
- oci/fleet_apps_management/models/manage_job_execution_details.py +68 -0
- oci/fleet_apps_management/models/manage_settings_details.py +72 -0
- oci/fleet_apps_management/models/managed_entity_aggregation.py +99 -0
- oci/fleet_apps_management/models/managed_entity_aggregation_collection.py +72 -0
- oci/fleet_apps_management/models/managed_entity_dimension.py +88 -0
- oci/fleet_apps_management/models/model_property.py +9 -9
- oci/fleet_apps_management/models/notification_preferences.py +7 -5
- oci/fleet_apps_management/models/object_storage_bucket_content_details.py +3 -3
- oci/fleet_apps_management/models/onboarding.py +70 -7
- oci/fleet_apps_management/models/onboarding_collection.py +3 -3
- oci/fleet_apps_management/models/onboarding_policy_collection.py +3 -3
- oci/fleet_apps_management/models/onboarding_policy_summary.py +1 -1
- oci/fleet_apps_management/models/onboarding_summary.py +69 -7
- oci/fleet_apps_management/models/outcome.py +7 -7
- oci/fleet_apps_management/models/output_variable_details.py +2 -2
- oci/fleet_apps_management/models/output_variable_input_argument.py +1 -1
- oci/fleet_apps_management/models/output_variable_mapping.py +4 -3
- oci/fleet_apps_management/models/patch.py +704 -0
- oci/fleet_apps_management/models/patch_collection.py +72 -0
- oci/fleet_apps_management/models/patch_level_selection_details.py +106 -0
- oci/fleet_apps_management/models/patch_name_selection_details.py +83 -0
- oci/fleet_apps_management/models/patch_product.py +103 -0
- oci/fleet_apps_management/models/patch_release_date_selection_details.py +83 -0
- oci/fleet_apps_management/models/patch_selection_details.py +117 -0
- oci/fleet_apps_management/models/patch_summary.py +625 -0
- oci/fleet_apps_management/models/patch_type.py +72 -0
- oci/fleet_apps_management/models/patch_type_config_category_details.py +52 -0
- oci/fleet_apps_management/models/pause_details.py +109 -0
- oci/fleet_apps_management/models/plain_text_credential_details.py +2 -2
- oci/fleet_apps_management/models/platform_configuration.py +529 -0
- oci/fleet_apps_management/models/platform_configuration_collection.py +72 -0
- oci/fleet_apps_management/models/platform_configuration_summary.py +485 -0
- oci/fleet_apps_management/models/platform_specific_artifact.py +162 -0
- oci/fleet_apps_management/models/platform_specific_artifact_details.py +82 -0
- oci/fleet_apps_management/models/preferences.py +3 -3
- oci/fleet_apps_management/models/product_config_category_details.py +215 -0
- oci/fleet_apps_management/models/product_stack_as_product_sub_category_details.py +182 -0
- oci/fleet_apps_management/models/product_stack_config_category_details.py +112 -0
- oci/fleet_apps_management/models/product_stack_generic_sub_category_details.py +51 -0
- oci/fleet_apps_management/models/product_stack_sub_category_details.py +109 -0
- oci/fleet_apps_management/models/product_version_details.py +105 -0
- oci/fleet_apps_management/models/property_collection.py +3 -3
- oci/fleet_apps_management/models/property_summary.py +8 -8
- oci/fleet_apps_management/models/publish_runbook_details.py +72 -0
- oci/fleet_apps_management/models/request_resource_validation_details.py +5 -5
- oci/fleet_apps_management/models/request_target_discovery_details.py +5 -5
- oci/fleet_apps_management/models/resource_collection.py +72 -0
- oci/fleet_apps_management/models/resource_credential_entity_specific_details.py +82 -0
- oci/fleet_apps_management/models/resource_summary.py +347 -0
- oci/fleet_apps_management/models/resource_tag_check_details.py +3 -3
- oci/fleet_apps_management/models/resource_tag_enablement_info.py +3 -3
- oci/fleet_apps_management/models/rollback_workflow_details.py +119 -0
- oci/fleet_apps_management/models/rule.py +15 -7
- oci/fleet_apps_management/models/runbook.py +28 -9
- oci/fleet_apps_management/models/runbook_collection.py +1 -1
- oci/fleet_apps_management/models/runbook_summary.py +6 -4
- oci/fleet_apps_management/models/scheduler_definition.py +16 -16
- oci/fleet_apps_management/models/scheduler_job.py +24 -20
- oci/fleet_apps_management/models/scheduler_job_aggregation.py +99 -0
- oci/fleet_apps_management/models/scheduler_job_aggregation_collection.py +72 -0
- oci/fleet_apps_management/models/scheduler_job_collection.py +1 -1
- oci/fleet_apps_management/models/scheduler_job_dimension.py +72 -0
- oci/fleet_apps_management/models/scheduler_job_summary.py +20 -16
- oci/fleet_apps_management/models/script_based_execution_details.py +38 -5
- oci/fleet_apps_management/models/selection_criteria.py +6 -3
- oci/fleet_apps_management/models/set_default_runbook_details.py +72 -0
- oci/fleet_apps_management/models/step_based_user_action_details.py +183 -0
- oci/fleet_apps_management/models/step_collection.py +72 -0
- oci/fleet_apps_management/models/step_summary.py +378 -0
- oci/fleet_apps_management/models/target_credential_entity_specific_details.py +6 -6
- oci/fleet_apps_management/models/target_resource.py +1 -1
- oci/fleet_apps_management/models/task_notification_preferences.py +134 -0
- oci/fleet_apps_management/models/task_record.py +1 -1
- oci/fleet_apps_management/models/task_variable.py +2 -1
- oci/fleet_apps_management/models/time_based_pause_details.py +82 -0
- oci/fleet_apps_management/models/update_compliance_policy_rule_details.py +283 -0
- oci/fleet_apps_management/models/update_fleet_details.py +4 -2
- oci/fleet_apps_management/models/update_fleet_property_details.py +3 -3
- oci/fleet_apps_management/models/update_fleet_resource_details.py +1 -1
- oci/fleet_apps_management/models/update_maintenance_window_details.py +18 -10
- oci/fleet_apps_management/models/update_onboarding_details.py +103 -0
- oci/fleet_apps_management/models/update_patch_details.py +369 -0
- oci/fleet_apps_management/models/update_platform_configuration_details.py +138 -0
- oci/fleet_apps_management/models/update_property_details.py +6 -6
- oci/fleet_apps_management/models/update_runbook_details.py +410 -0
- oci/fleet_apps_management/models/update_scheduler_job_details.py +3 -3
- oci/fleet_apps_management/models/update_task_record_details.py +204 -0
- oci/fleet_apps_management/models/user_action_based_pause_details.py +51 -0
- oci/fleet_apps_management/models/user_action_details.py +157 -0
- oci/fleet_apps_management/models/variable.py +103 -0
- oci/fleet_apps_management/models/work_request.py +67 -3
- oci/fleet_apps_management/models/work_request_summary.py +67 -3
- oci/fleet_apps_management/models/workflow_group.py +2 -2
- oci/fleet_apps_management/models/workflow_group_component.py +4 -4
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +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 +69 -69
- 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/identity_domains/models/auth_token.py +51 -0
- oci/identity_domains/models/customer_secret_key.py +45 -0
- oci/identity_domains/models/o_auth2_client_credential.py +49 -0
- oci/identity_domains/models/smtp_credential.py +47 -0
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +75 -75
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/load_balancer/models/create_listener_details.py +4 -6
- oci/load_balancer/models/listener.py +4 -6
- oci/load_balancer/models/listener_details.py +4 -6
- oci/load_balancer/models/update_listener_details.py +4 -6
- 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/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_set.py +0 -4
- oci/network_load_balancer/models/backend_set_details.py +0 -4
- oci/network_load_balancer/models/backend_set_summary.py +7 -5
- oci/network_load_balancer/models/create_listener_details.py +42 -5
- oci/network_load_balancer/models/listener.py +42 -5
- oci/network_load_balancer/models/listener_details.py +42 -5
- oci/network_load_balancer/models/listener_summary.py +42 -5
- oci/network_load_balancer/models/update_listener_details.py +42 -5
- 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 +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +20 -20
- oci/operator_access_control/operator_actions_client.py +4 -4
- oci/operator_access_control/operator_control_assignment_client.py +16 -16
- oci/operator_access_control/operator_control_client.py +12 -12
- oci/opsi/models/__init__.py +8 -0
- oci/opsi/models/host_configuration_metric_group.py +11 -3
- oci/opsi/models/host_containers.py +65 -3
- oci/opsi/models/host_cpu_hardware_configuration.py +1 -1
- oci/opsi/models/host_cpu_statistics.py +1 -1
- oci/opsi/models/host_cpu_usage.py +1 -1
- oci/opsi/models/host_entities.py +1 -1
- oci/opsi/models/host_filesystem_configuration.py +1 -1
- oci/opsi/models/host_filesystem_usage.py +1 -1
- oci/opsi/models/host_gpu_configuration.py +1 -1
- oci/opsi/models/host_gpu_processes.py +1 -1
- oci/opsi/models/host_gpu_usage.py +1 -1
- oci/opsi/models/host_hardware_configuration.py +1 -1
- oci/opsi/models/host_io_statistics.py +160 -0
- oci/opsi/models/host_io_usage.py +1 -1
- oci/opsi/models/host_memory_configuration.py +1 -1
- oci/opsi/models/host_memory_statistics.py +1 -1
- oci/opsi/models/host_memory_usage.py +1 -1
- oci/opsi/models/host_network_activity_summary.py +1 -1
- oci/opsi/models/host_network_configuration.py +1 -1
- oci/opsi/models/host_network_statistics.py +1 -1
- oci/opsi/models/host_performance_metric_group.py +3 -11
- oci/opsi/models/host_product.py +1 -1
- oci/opsi/models/host_resource_allocation.py +1 -1
- oci/opsi/models/host_resource_statistics.py +11 -3
- oci/opsi/models/host_storage_statistics.py +1 -1
- oci/opsi/models/host_top_processes.py +1 -1
- oci/opsi/models/io_usage_trend.py +227 -0
- oci/opsi/models/io_usage_trend_aggregation.py +103 -0
- oci/opsi/models/summarize_host_insight_host_recommendation_aggregation.py +7 -3
- oci/opsi/models/summarize_host_insight_io_usage_trend_aggregation_collection.py +165 -0
- oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.py +7 -3
- oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.py +7 -3
- oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.py +7 -3
- oci/opsi/models/summarize_host_insight_resource_usage_aggregation.py +7 -3
- oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.py +7 -3
- oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.py +7 -3
- oci/opsi/operations_insights_client.py +362 -179
- 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 +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +71 -71
- 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/zpr/zpr_client.py +15 -15
- {oci-2.136.0.dist-info → oci-2.137.1.dist-info}/METADATA +1 -1
- {oci-2.136.0.dist-info → oci-2.137.1.dist-info}/RECORD +626 -506
- oci/_vendor/jwt/__main__.py +0 -173
- oci/_vendor/jwt/compat.py +0 -73
- oci/_vendor/jwt/contrib/__init__.py +0 -0
- oci/_vendor/jwt/contrib/algorithms/__init__.py +0 -0
- oci/_vendor/jwt/contrib/algorithms/py_ecdsa.py +0 -60
- oci/_vendor/jwt/contrib/algorithms/pycrypto.py +0 -46
- {oci-2.136.0.dist-info → oci-2.137.1.dist-info}/LICENSE.txt +0 -0
- {oci-2.136.0.dist-info → oci-2.137.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.136.0.dist-info → oci-2.137.1.dist-info}/WHEEL +0 -0
- {oci-2.136.0.dist-info → oci-2.137.1.dist-info}/top_level.txt +0 -0
@@ -22,8 +22,7 @@ missing = Sentinel("Missing")
|
|
22
22
|
|
23
23
|
class FleetAppsManagementOperationsClient(object):
|
24
24
|
"""
|
25
|
-
Fleet Application Management
|
26
|
-
To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities
|
25
|
+
Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise.
|
27
26
|
"""
|
28
27
|
|
29
28
|
def __init__(self, config, **kwargs):
|
@@ -117,9 +116,107 @@ class FleetAppsManagementOperationsClient(object):
|
|
117
116
|
self.retry_strategy = kwargs.get('retry_strategy')
|
118
117
|
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
119
118
|
|
119
|
+
def create_patch(self, create_patch_details, **kwargs):
|
120
|
+
"""
|
121
|
+
Creates a new Patch.
|
122
|
+
|
123
|
+
|
124
|
+
:param oci.fleet_apps_management.models.CreatePatchDetails create_patch_details: (required)
|
125
|
+
Details for the new Patch.
|
126
|
+
|
127
|
+
:param str opc_retry_token: (optional)
|
128
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
129
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
130
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
131
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
132
|
+
might be rejected.
|
133
|
+
|
134
|
+
:param str opc_request_id: (optional)
|
135
|
+
The client request ID for tracing.
|
136
|
+
|
137
|
+
:param obj retry_strategy: (optional)
|
138
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
139
|
+
|
140
|
+
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.
|
141
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
142
|
+
|
143
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
144
|
+
|
145
|
+
:param bool allow_control_chars: (optional)
|
146
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
147
|
+
By default, the response will not allow control characters in strings
|
148
|
+
|
149
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Patch`
|
150
|
+
:rtype: :class:`~oci.response.Response`
|
151
|
+
|
152
|
+
:example:
|
153
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/create_patch.py.html>`__ to see an example of how to use create_patch API.
|
154
|
+
"""
|
155
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
156
|
+
required_arguments = []
|
157
|
+
resource_path = "/patches"
|
158
|
+
method = "POST"
|
159
|
+
operation_name = "create_patch"
|
160
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/CreatePatch"
|
161
|
+
|
162
|
+
# Don't accept unknown kwargs
|
163
|
+
expected_kwargs = [
|
164
|
+
"allow_control_chars",
|
165
|
+
"retry_strategy",
|
166
|
+
"opc_retry_token",
|
167
|
+
"opc_request_id"
|
168
|
+
]
|
169
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
170
|
+
if extra_kwargs:
|
171
|
+
raise ValueError(
|
172
|
+
f"create_patch got unknown kwargs: {extra_kwargs!r}")
|
173
|
+
|
174
|
+
header_params = {
|
175
|
+
"accept": "application/json",
|
176
|
+
"content-type": "application/json",
|
177
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
178
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
179
|
+
}
|
180
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
181
|
+
|
182
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
183
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
184
|
+
client_retry_strategy=self.retry_strategy
|
185
|
+
)
|
186
|
+
if retry_strategy is None:
|
187
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
188
|
+
|
189
|
+
if retry_strategy:
|
190
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
191
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
192
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
193
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
194
|
+
return retry_strategy.make_retrying_call(
|
195
|
+
self.base_client.call_api,
|
196
|
+
resource_path=resource_path,
|
197
|
+
method=method,
|
198
|
+
header_params=header_params,
|
199
|
+
body=create_patch_details,
|
200
|
+
response_type="Patch",
|
201
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
202
|
+
operation_name=operation_name,
|
203
|
+
api_reference_link=api_reference_link,
|
204
|
+
required_arguments=required_arguments)
|
205
|
+
else:
|
206
|
+
return self.base_client.call_api(
|
207
|
+
resource_path=resource_path,
|
208
|
+
method=method,
|
209
|
+
header_params=header_params,
|
210
|
+
body=create_patch_details,
|
211
|
+
response_type="Patch",
|
212
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
213
|
+
operation_name=operation_name,
|
214
|
+
api_reference_link=api_reference_link,
|
215
|
+
required_arguments=required_arguments)
|
216
|
+
|
120
217
|
def create_scheduler_definition(self, create_scheduler_definition_details, **kwargs):
|
121
218
|
"""
|
122
|
-
|
219
|
+
Create a SchedulerDefinition to perform lifecycle operations.
|
123
220
|
|
124
221
|
|
125
222
|
:param oci.fleet_apps_management.models.CreateSchedulerDefinitionDetails create_scheduler_definition_details: (required)
|
@@ -151,7 +248,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
151
248
|
:rtype: :class:`~oci.response.Response`
|
152
249
|
|
153
250
|
:example:
|
154
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
251
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/create_scheduler_definition.py.html>`__ to see an example of how to use create_scheduler_definition API.
|
155
252
|
"""
|
156
253
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
157
254
|
required_arguments = []
|
@@ -215,13 +312,13 @@ class FleetAppsManagementOperationsClient(object):
|
|
215
312
|
api_reference_link=api_reference_link,
|
216
313
|
required_arguments=required_arguments)
|
217
314
|
|
218
|
-
def
|
315
|
+
def delete_patch(self, patch_id, **kwargs):
|
219
316
|
"""
|
220
|
-
Deletes a
|
317
|
+
Deletes a Patch resource by identifier
|
221
318
|
|
222
319
|
|
223
|
-
:param str
|
224
|
-
unique
|
320
|
+
:param str patch_id: (required)
|
321
|
+
unique Patch identifier
|
225
322
|
|
226
323
|
:param str if_match: (optional)
|
227
324
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -249,14 +346,14 @@ class FleetAppsManagementOperationsClient(object):
|
|
249
346
|
:rtype: :class:`~oci.response.Response`
|
250
347
|
|
251
348
|
:example:
|
252
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
349
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/delete_patch.py.html>`__ to see an example of how to use delete_patch API.
|
253
350
|
"""
|
254
351
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
255
|
-
required_arguments = ['
|
256
|
-
resource_path = "/
|
352
|
+
required_arguments = ['patchId']
|
353
|
+
resource_path = "/patches/{patchId}"
|
257
354
|
method = "DELETE"
|
258
|
-
operation_name = "
|
259
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
355
|
+
operation_name = "delete_patch"
|
356
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/DeletePatch"
|
260
357
|
|
261
358
|
# Don't accept unknown kwargs
|
262
359
|
expected_kwargs = [
|
@@ -268,10 +365,10 @@ class FleetAppsManagementOperationsClient(object):
|
|
268
365
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
269
366
|
if extra_kwargs:
|
270
367
|
raise ValueError(
|
271
|
-
f"
|
368
|
+
f"delete_patch got unknown kwargs: {extra_kwargs!r}")
|
272
369
|
|
273
370
|
path_params = {
|
274
|
-
"
|
371
|
+
"patchId": patch_id
|
275
372
|
}
|
276
373
|
|
277
374
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -320,13 +417,13 @@ class FleetAppsManagementOperationsClient(object):
|
|
320
417
|
api_reference_link=api_reference_link,
|
321
418
|
required_arguments=required_arguments)
|
322
419
|
|
323
|
-
def
|
420
|
+
def delete_scheduler_definition(self, scheduler_definition_id, **kwargs):
|
324
421
|
"""
|
325
|
-
Deletes a
|
422
|
+
Deletes a SchedulerDefinition resource by identifier
|
326
423
|
|
327
424
|
|
328
|
-
:param str
|
329
|
-
unique
|
425
|
+
:param str scheduler_definition_id: (required)
|
426
|
+
unique SchedulerDefinition identifier
|
330
427
|
|
331
428
|
:param str if_match: (optional)
|
332
429
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -354,14 +451,14 @@ class FleetAppsManagementOperationsClient(object):
|
|
354
451
|
:rtype: :class:`~oci.response.Response`
|
355
452
|
|
356
453
|
:example:
|
357
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
454
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/delete_scheduler_definition.py.html>`__ to see an example of how to use delete_scheduler_definition API.
|
358
455
|
"""
|
359
456
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
360
|
-
required_arguments = ['
|
361
|
-
resource_path = "/
|
457
|
+
required_arguments = ['schedulerDefinitionId']
|
458
|
+
resource_path = "/schedulerDefinitions/{schedulerDefinitionId}"
|
362
459
|
method = "DELETE"
|
363
|
-
operation_name = "
|
364
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
460
|
+
operation_name = "delete_scheduler_definition"
|
461
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerDefinition/DeleteSchedulerDefinition"
|
365
462
|
|
366
463
|
# Don't accept unknown kwargs
|
367
464
|
expected_kwargs = [
|
@@ -373,10 +470,10 @@ class FleetAppsManagementOperationsClient(object):
|
|
373
470
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
374
471
|
if extra_kwargs:
|
375
472
|
raise ValueError(
|
376
|
-
f"
|
473
|
+
f"delete_scheduler_definition got unknown kwargs: {extra_kwargs!r}")
|
377
474
|
|
378
475
|
path_params = {
|
379
|
-
"
|
476
|
+
"schedulerDefinitionId": scheduler_definition_id
|
380
477
|
}
|
381
478
|
|
382
479
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -425,22 +522,20 @@ class FleetAppsManagementOperationsClient(object):
|
|
425
522
|
api_reference_link=api_reference_link,
|
426
523
|
required_arguments=required_arguments)
|
427
524
|
|
428
|
-
def
|
525
|
+
def delete_scheduler_job(self, scheduler_job_id, **kwargs):
|
429
526
|
"""
|
430
|
-
|
527
|
+
Delete a lifecycle operation schedule in Fleet Application Management.
|
431
528
|
|
432
529
|
|
433
530
|
:param str scheduler_job_id: (required)
|
434
531
|
unique SchedulerJob identifier
|
435
532
|
|
436
|
-
:param str
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
:param str execution_id: (required)
|
443
|
-
Execution Id
|
533
|
+
:param str if_match: (optional)
|
534
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
535
|
+
for a resource, set the `if-match` parameter to the value of the
|
536
|
+
etag from a previous GET or POST response for that resource.
|
537
|
+
The resource will be updated or deleted only if the etag you
|
538
|
+
provide matches the resource's current etag value.
|
444
539
|
|
445
540
|
:param str opc_request_id: (optional)
|
446
541
|
The client request ID for tracing.
|
@@ -457,35 +552,33 @@ class FleetAppsManagementOperationsClient(object):
|
|
457
552
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
458
553
|
By default, the response will not allow control characters in strings
|
459
554
|
|
460
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
555
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
461
556
|
:rtype: :class:`~oci.response.Response`
|
462
557
|
|
463
558
|
:example:
|
464
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
559
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/delete_scheduler_job.py.html>`__ to see an example of how to use delete_scheduler_job API.
|
465
560
|
"""
|
466
561
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
467
|
-
required_arguments = ['schedulerJobId'
|
468
|
-
resource_path = "/schedulerJobs/{schedulerJobId}
|
469
|
-
method = "
|
470
|
-
operation_name = "
|
471
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
562
|
+
required_arguments = ['schedulerJobId']
|
563
|
+
resource_path = "/schedulerJobs/{schedulerJobId}"
|
564
|
+
method = "DELETE"
|
565
|
+
operation_name = "delete_scheduler_job"
|
566
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerJob/DeleteSchedulerJob"
|
472
567
|
|
473
568
|
# Don't accept unknown kwargs
|
474
569
|
expected_kwargs = [
|
475
570
|
"allow_control_chars",
|
476
571
|
"retry_strategy",
|
572
|
+
"if_match",
|
477
573
|
"opc_request_id"
|
478
574
|
]
|
479
575
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
480
576
|
if extra_kwargs:
|
481
577
|
raise ValueError(
|
482
|
-
f"
|
578
|
+
f"delete_scheduler_job got unknown kwargs: {extra_kwargs!r}")
|
483
579
|
|
484
580
|
path_params = {
|
485
|
-
"schedulerJobId": scheduler_job_id
|
486
|
-
"jobActivityId": job_activity_id,
|
487
|
-
"resourceId": resource_id,
|
488
|
-
"executionId": execution_id
|
581
|
+
"schedulerJobId": scheduler_job_id
|
489
582
|
}
|
490
583
|
|
491
584
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -497,6 +590,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
497
590
|
header_params = {
|
498
591
|
"accept": "application/json",
|
499
592
|
"content-type": "application/json",
|
593
|
+
"if-match": kwargs.get("if_match", missing),
|
500
594
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
501
595
|
}
|
502
596
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -518,7 +612,6 @@ class FleetAppsManagementOperationsClient(object):
|
|
518
612
|
method=method,
|
519
613
|
path_params=path_params,
|
520
614
|
header_params=header_params,
|
521
|
-
response_type="Execution",
|
522
615
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
523
616
|
operation_name=operation_name,
|
524
617
|
api_reference_link=api_reference_link,
|
@@ -529,22 +622,32 @@ class FleetAppsManagementOperationsClient(object):
|
|
529
622
|
method=method,
|
530
623
|
path_params=path_params,
|
531
624
|
header_params=header_params,
|
532
|
-
response_type="Execution",
|
533
625
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
534
626
|
operation_name=operation_name,
|
535
627
|
api_reference_link=api_reference_link,
|
536
628
|
required_arguments=required_arguments)
|
537
629
|
|
538
|
-
def
|
630
|
+
def export_compliance_report(self, export_compliance_report_details, **kwargs):
|
539
631
|
"""
|
540
|
-
|
632
|
+
Generate Compliance Report
|
541
633
|
|
542
634
|
|
543
|
-
:param
|
544
|
-
|
635
|
+
:param oci.fleet_apps_management.models.ExportComplianceReportDetails export_compliance_report_details: (required)
|
636
|
+
Details for generating compliance report
|
545
637
|
|
546
|
-
:param str
|
547
|
-
|
638
|
+
:param str opc_retry_token: (optional)
|
639
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
640
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
641
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
642
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
643
|
+
might be rejected.
|
644
|
+
|
645
|
+
:param str if_match: (optional)
|
646
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
647
|
+
for a resource, set the `if-match` parameter to the value of the
|
648
|
+
etag from a previous GET or POST response for that resource.
|
649
|
+
The resource will be updated or deleted only if the etag you
|
650
|
+
provide matches the resource's current etag value.
|
548
651
|
|
549
652
|
:param str opc_request_id: (optional)
|
550
653
|
The client request ID for tracing.
|
@@ -561,44 +664,37 @@ class FleetAppsManagementOperationsClient(object):
|
|
561
664
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
562
665
|
By default, the response will not allow control characters in strings
|
563
666
|
|
564
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
667
|
+
:return: A :class:`~oci.response.Response` object with data of type stream
|
565
668
|
:rtype: :class:`~oci.response.Response`
|
566
669
|
|
567
670
|
:example:
|
568
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
671
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/export_compliance_report.py.html>`__ to see an example of how to use export_compliance_report API.
|
569
672
|
"""
|
570
673
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
571
|
-
required_arguments = [
|
572
|
-
resource_path = "/
|
573
|
-
method = "
|
574
|
-
operation_name = "
|
575
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
674
|
+
required_arguments = []
|
675
|
+
resource_path = "/complianceRecords/actions/exportComplianceReport"
|
676
|
+
method = "POST"
|
677
|
+
operation_name = "export_compliance_report"
|
678
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ComplianceRecord/ExportComplianceReport"
|
576
679
|
|
577
680
|
# Don't accept unknown kwargs
|
578
681
|
expected_kwargs = [
|
579
682
|
"allow_control_chars",
|
580
683
|
"retry_strategy",
|
684
|
+
"opc_retry_token",
|
685
|
+
"if_match",
|
581
686
|
"opc_request_id"
|
582
687
|
]
|
583
688
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
584
689
|
if extra_kwargs:
|
585
690
|
raise ValueError(
|
586
|
-
f"
|
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')
|
691
|
+
f"export_compliance_report got unknown kwargs: {extra_kwargs!r}")
|
598
692
|
|
599
693
|
header_params = {
|
600
694
|
"accept": "application/json",
|
601
695
|
"content-type": "application/json",
|
696
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
697
|
+
"if-match": kwargs.get("if_match", missing),
|
602
698
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
603
699
|
}
|
604
700
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -612,15 +708,16 @@ class FleetAppsManagementOperationsClient(object):
|
|
612
708
|
|
613
709
|
if retry_strategy:
|
614
710
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
711
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
615
712
|
self.base_client.add_opc_client_retries_header(header_params)
|
616
713
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
617
714
|
return retry_strategy.make_retrying_call(
|
618
715
|
self.base_client.call_api,
|
619
716
|
resource_path=resource_path,
|
620
717
|
method=method,
|
621
|
-
path_params=path_params,
|
622
718
|
header_params=header_params,
|
623
|
-
|
719
|
+
body=export_compliance_report_details,
|
720
|
+
response_type="stream",
|
624
721
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
625
722
|
operation_name=operation_name,
|
626
723
|
api_reference_link=api_reference_link,
|
@@ -629,21 +726,30 @@ class FleetAppsManagementOperationsClient(object):
|
|
629
726
|
return self.base_client.call_api(
|
630
727
|
resource_path=resource_path,
|
631
728
|
method=method,
|
632
|
-
path_params=path_params,
|
633
729
|
header_params=header_params,
|
634
|
-
|
730
|
+
body=export_compliance_report_details,
|
731
|
+
response_type="stream",
|
635
732
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
636
733
|
operation_name=operation_name,
|
637
734
|
api_reference_link=api_reference_link,
|
638
735
|
required_arguments=required_arguments)
|
639
736
|
|
640
|
-
def
|
737
|
+
def get_execution(self, scheduler_job_id, job_activity_id, resource_id, execution_id, **kwargs):
|
641
738
|
"""
|
642
|
-
|
739
|
+
Get Task Execution by Identifier for a Resource within an action group.
|
643
740
|
|
644
741
|
|
645
|
-
:param str
|
646
|
-
unique
|
742
|
+
:param str scheduler_job_id: (required)
|
743
|
+
unique SchedulerJob identifier
|
744
|
+
|
745
|
+
:param str job_activity_id: (required)
|
746
|
+
unique jobActivity identifier
|
747
|
+
|
748
|
+
:param str resource_id: (required)
|
749
|
+
unique Resource identifier
|
750
|
+
|
751
|
+
:param str execution_id: (required)
|
752
|
+
Execution Id
|
647
753
|
|
648
754
|
:param str opc_request_id: (optional)
|
649
755
|
The client request ID for tracing.
|
@@ -660,18 +766,18 @@ class FleetAppsManagementOperationsClient(object):
|
|
660
766
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
661
767
|
By default, the response will not allow control characters in strings
|
662
768
|
|
663
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.
|
769
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Execution`
|
664
770
|
:rtype: :class:`~oci.response.Response`
|
665
771
|
|
666
772
|
:example:
|
667
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
773
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/get_execution.py.html>`__ to see an example of how to use get_execution API.
|
668
774
|
"""
|
669
775
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
670
|
-
required_arguments = ['
|
671
|
-
resource_path = "/
|
776
|
+
required_arguments = ['schedulerJobId', 'jobActivityId', 'resourceId', 'executionId']
|
777
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions/{executionId}"
|
672
778
|
method = "GET"
|
673
|
-
operation_name = "
|
674
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
779
|
+
operation_name = "get_execution"
|
780
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Execution/GetExecution"
|
675
781
|
|
676
782
|
# Don't accept unknown kwargs
|
677
783
|
expected_kwargs = [
|
@@ -682,10 +788,13 @@ class FleetAppsManagementOperationsClient(object):
|
|
682
788
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
683
789
|
if extra_kwargs:
|
684
790
|
raise ValueError(
|
685
|
-
f"
|
791
|
+
f"get_execution got unknown kwargs: {extra_kwargs!r}")
|
686
792
|
|
687
793
|
path_params = {
|
688
|
-
"
|
794
|
+
"schedulerJobId": scheduler_job_id,
|
795
|
+
"jobActivityId": job_activity_id,
|
796
|
+
"resourceId": resource_id,
|
797
|
+
"executionId": execution_id
|
689
798
|
}
|
690
799
|
|
691
800
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -718,7 +827,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
718
827
|
method=method,
|
719
828
|
path_params=path_params,
|
720
829
|
header_params=header_params,
|
721
|
-
response_type="
|
830
|
+
response_type="Execution",
|
722
831
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
723
832
|
operation_name=operation_name,
|
724
833
|
api_reference_link=api_reference_link,
|
@@ -729,20 +838,23 @@ class FleetAppsManagementOperationsClient(object):
|
|
729
838
|
method=method,
|
730
839
|
path_params=path_params,
|
731
840
|
header_params=header_params,
|
732
|
-
response_type="
|
841
|
+
response_type="Execution",
|
733
842
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
734
843
|
operation_name=operation_name,
|
735
844
|
api_reference_link=api_reference_link,
|
736
845
|
required_arguments=required_arguments)
|
737
846
|
|
738
|
-
def
|
847
|
+
def get_job_activity(self, scheduler_job_id, job_activity_id, **kwargs):
|
739
848
|
"""
|
740
|
-
Gets
|
849
|
+
Gets activity details by identifier for a job.
|
741
850
|
|
742
851
|
|
743
852
|
:param str scheduler_job_id: (required)
|
744
853
|
unique SchedulerJob identifier
|
745
854
|
|
855
|
+
:param str job_activity_id: (required)
|
856
|
+
unique jobActivity identifier
|
857
|
+
|
746
858
|
:param str opc_request_id: (optional)
|
747
859
|
The client request ID for tracing.
|
748
860
|
|
@@ -758,18 +870,18 @@ class FleetAppsManagementOperationsClient(object):
|
|
758
870
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
759
871
|
By default, the response will not allow control characters in strings
|
760
872
|
|
761
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.
|
873
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.JobActivity`
|
762
874
|
:rtype: :class:`~oci.response.Response`
|
763
875
|
|
764
876
|
:example:
|
765
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
877
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/get_job_activity.py.html>`__ to see an example of how to use get_job_activity API.
|
766
878
|
"""
|
767
879
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
768
|
-
required_arguments = ['schedulerJobId']
|
769
|
-
resource_path = "/schedulerJobs/{schedulerJobId}"
|
880
|
+
required_arguments = ['schedulerJobId', 'jobActivityId']
|
881
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}"
|
770
882
|
method = "GET"
|
771
|
-
operation_name = "
|
772
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
883
|
+
operation_name = "get_job_activity"
|
884
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/JobActivity/GetJobActivity"
|
773
885
|
|
774
886
|
# Don't accept unknown kwargs
|
775
887
|
expected_kwargs = [
|
@@ -780,10 +892,11 @@ class FleetAppsManagementOperationsClient(object):
|
|
780
892
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
781
893
|
if extra_kwargs:
|
782
894
|
raise ValueError(
|
783
|
-
f"
|
895
|
+
f"get_job_activity got unknown kwargs: {extra_kwargs!r}")
|
784
896
|
|
785
897
|
path_params = {
|
786
|
-
"schedulerJobId": scheduler_job_id
|
898
|
+
"schedulerJobId": scheduler_job_id,
|
899
|
+
"jobActivityId": job_activity_id
|
787
900
|
}
|
788
901
|
|
789
902
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -816,7 +929,1513 @@ class FleetAppsManagementOperationsClient(object):
|
|
816
929
|
method=method,
|
817
930
|
path_params=path_params,
|
818
931
|
header_params=header_params,
|
819
|
-
response_type="
|
932
|
+
response_type="JobActivity",
|
933
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
934
|
+
operation_name=operation_name,
|
935
|
+
api_reference_link=api_reference_link,
|
936
|
+
required_arguments=required_arguments)
|
937
|
+
else:
|
938
|
+
return self.base_client.call_api(
|
939
|
+
resource_path=resource_path,
|
940
|
+
method=method,
|
941
|
+
path_params=path_params,
|
942
|
+
header_params=header_params,
|
943
|
+
response_type="JobActivity",
|
944
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
945
|
+
operation_name=operation_name,
|
946
|
+
api_reference_link=api_reference_link,
|
947
|
+
required_arguments=required_arguments)
|
948
|
+
|
949
|
+
def get_patch(self, patch_id, **kwargs):
|
950
|
+
"""
|
951
|
+
Gets a Patch by identifier
|
952
|
+
|
953
|
+
|
954
|
+
:param str patch_id: (required)
|
955
|
+
unique Patch identifier
|
956
|
+
|
957
|
+
:param str opc_request_id: (optional)
|
958
|
+
The client request ID for tracing.
|
959
|
+
|
960
|
+
:param obj retry_strategy: (optional)
|
961
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
962
|
+
|
963
|
+
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.
|
964
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
965
|
+
|
966
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
967
|
+
|
968
|
+
:param bool allow_control_chars: (optional)
|
969
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
970
|
+
By default, the response will not allow control characters in strings
|
971
|
+
|
972
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Patch`
|
973
|
+
:rtype: :class:`~oci.response.Response`
|
974
|
+
|
975
|
+
:example:
|
976
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/get_patch.py.html>`__ to see an example of how to use get_patch API.
|
977
|
+
"""
|
978
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
979
|
+
required_arguments = ['patchId']
|
980
|
+
resource_path = "/patches/{patchId}"
|
981
|
+
method = "GET"
|
982
|
+
operation_name = "get_patch"
|
983
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/GetPatch"
|
984
|
+
|
985
|
+
# Don't accept unknown kwargs
|
986
|
+
expected_kwargs = [
|
987
|
+
"allow_control_chars",
|
988
|
+
"retry_strategy",
|
989
|
+
"opc_request_id"
|
990
|
+
]
|
991
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
992
|
+
if extra_kwargs:
|
993
|
+
raise ValueError(
|
994
|
+
f"get_patch got unknown kwargs: {extra_kwargs!r}")
|
995
|
+
|
996
|
+
path_params = {
|
997
|
+
"patchId": patch_id
|
998
|
+
}
|
999
|
+
|
1000
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1001
|
+
|
1002
|
+
for (k, v) in six.iteritems(path_params):
|
1003
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1004
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1005
|
+
|
1006
|
+
header_params = {
|
1007
|
+
"accept": "application/json",
|
1008
|
+
"content-type": "application/json",
|
1009
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1010
|
+
}
|
1011
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1012
|
+
|
1013
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1014
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1015
|
+
client_retry_strategy=self.retry_strategy
|
1016
|
+
)
|
1017
|
+
if retry_strategy is None:
|
1018
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1019
|
+
|
1020
|
+
if retry_strategy:
|
1021
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1022
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1023
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1024
|
+
return retry_strategy.make_retrying_call(
|
1025
|
+
self.base_client.call_api,
|
1026
|
+
resource_path=resource_path,
|
1027
|
+
method=method,
|
1028
|
+
path_params=path_params,
|
1029
|
+
header_params=header_params,
|
1030
|
+
response_type="Patch",
|
1031
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1032
|
+
operation_name=operation_name,
|
1033
|
+
api_reference_link=api_reference_link,
|
1034
|
+
required_arguments=required_arguments)
|
1035
|
+
else:
|
1036
|
+
return self.base_client.call_api(
|
1037
|
+
resource_path=resource_path,
|
1038
|
+
method=method,
|
1039
|
+
path_params=path_params,
|
1040
|
+
header_params=header_params,
|
1041
|
+
response_type="Patch",
|
1042
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1043
|
+
operation_name=operation_name,
|
1044
|
+
api_reference_link=api_reference_link,
|
1045
|
+
required_arguments=required_arguments)
|
1046
|
+
|
1047
|
+
def get_scheduler_definition(self, scheduler_definition_id, **kwargs):
|
1048
|
+
"""
|
1049
|
+
Get the details of a SchedulerDefinition that performs lifecycle management operations.
|
1050
|
+
|
1051
|
+
|
1052
|
+
:param str scheduler_definition_id: (required)
|
1053
|
+
unique SchedulerDefinition identifier
|
1054
|
+
|
1055
|
+
:param str opc_request_id: (optional)
|
1056
|
+
The client request ID for tracing.
|
1057
|
+
|
1058
|
+
:param obj retry_strategy: (optional)
|
1059
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1060
|
+
|
1061
|
+
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.
|
1062
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1063
|
+
|
1064
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1065
|
+
|
1066
|
+
:param bool allow_control_chars: (optional)
|
1067
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1068
|
+
By default, the response will not allow control characters in strings
|
1069
|
+
|
1070
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerDefinition`
|
1071
|
+
:rtype: :class:`~oci.response.Response`
|
1072
|
+
|
1073
|
+
:example:
|
1074
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/get_scheduler_definition.py.html>`__ to see an example of how to use get_scheduler_definition API.
|
1075
|
+
"""
|
1076
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1077
|
+
required_arguments = ['schedulerDefinitionId']
|
1078
|
+
resource_path = "/schedulerDefinitions/{schedulerDefinitionId}"
|
1079
|
+
method = "GET"
|
1080
|
+
operation_name = "get_scheduler_definition"
|
1081
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerDefinition/GetSchedulerDefinition"
|
1082
|
+
|
1083
|
+
# Don't accept unknown kwargs
|
1084
|
+
expected_kwargs = [
|
1085
|
+
"allow_control_chars",
|
1086
|
+
"retry_strategy",
|
1087
|
+
"opc_request_id"
|
1088
|
+
]
|
1089
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1090
|
+
if extra_kwargs:
|
1091
|
+
raise ValueError(
|
1092
|
+
f"get_scheduler_definition got unknown kwargs: {extra_kwargs!r}")
|
1093
|
+
|
1094
|
+
path_params = {
|
1095
|
+
"schedulerDefinitionId": scheduler_definition_id
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1099
|
+
|
1100
|
+
for (k, v) in six.iteritems(path_params):
|
1101
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1102
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1103
|
+
|
1104
|
+
header_params = {
|
1105
|
+
"accept": "application/json",
|
1106
|
+
"content-type": "application/json",
|
1107
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1108
|
+
}
|
1109
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1110
|
+
|
1111
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1112
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1113
|
+
client_retry_strategy=self.retry_strategy
|
1114
|
+
)
|
1115
|
+
if retry_strategy is None:
|
1116
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1117
|
+
|
1118
|
+
if retry_strategy:
|
1119
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1120
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1121
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1122
|
+
return retry_strategy.make_retrying_call(
|
1123
|
+
self.base_client.call_api,
|
1124
|
+
resource_path=resource_path,
|
1125
|
+
method=method,
|
1126
|
+
path_params=path_params,
|
1127
|
+
header_params=header_params,
|
1128
|
+
response_type="SchedulerDefinition",
|
1129
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1130
|
+
operation_name=operation_name,
|
1131
|
+
api_reference_link=api_reference_link,
|
1132
|
+
required_arguments=required_arguments)
|
1133
|
+
else:
|
1134
|
+
return self.base_client.call_api(
|
1135
|
+
resource_path=resource_path,
|
1136
|
+
method=method,
|
1137
|
+
path_params=path_params,
|
1138
|
+
header_params=header_params,
|
1139
|
+
response_type="SchedulerDefinition",
|
1140
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1141
|
+
operation_name=operation_name,
|
1142
|
+
api_reference_link=api_reference_link,
|
1143
|
+
required_arguments=required_arguments)
|
1144
|
+
|
1145
|
+
def get_scheduler_job(self, scheduler_job_id, **kwargs):
|
1146
|
+
"""
|
1147
|
+
Get the details of a lifecycle management operations job in Fleet Application Management.
|
1148
|
+
|
1149
|
+
|
1150
|
+
:param str scheduler_job_id: (required)
|
1151
|
+
unique SchedulerJob identifier
|
1152
|
+
|
1153
|
+
:param str opc_request_id: (optional)
|
1154
|
+
The client request ID for tracing.
|
1155
|
+
|
1156
|
+
:param obj retry_strategy: (optional)
|
1157
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1158
|
+
|
1159
|
+
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.
|
1160
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1161
|
+
|
1162
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1163
|
+
|
1164
|
+
:param bool allow_control_chars: (optional)
|
1165
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1166
|
+
By default, the response will not allow control characters in strings
|
1167
|
+
|
1168
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerJob`
|
1169
|
+
:rtype: :class:`~oci.response.Response`
|
1170
|
+
|
1171
|
+
:example:
|
1172
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/get_scheduler_job.py.html>`__ to see an example of how to use get_scheduler_job API.
|
1173
|
+
"""
|
1174
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1175
|
+
required_arguments = ['schedulerJobId']
|
1176
|
+
resource_path = "/schedulerJobs/{schedulerJobId}"
|
1177
|
+
method = "GET"
|
1178
|
+
operation_name = "get_scheduler_job"
|
1179
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerJob/GetSchedulerJob"
|
1180
|
+
|
1181
|
+
# Don't accept unknown kwargs
|
1182
|
+
expected_kwargs = [
|
1183
|
+
"allow_control_chars",
|
1184
|
+
"retry_strategy",
|
1185
|
+
"opc_request_id"
|
1186
|
+
]
|
1187
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1188
|
+
if extra_kwargs:
|
1189
|
+
raise ValueError(
|
1190
|
+
f"get_scheduler_job got unknown kwargs: {extra_kwargs!r}")
|
1191
|
+
|
1192
|
+
path_params = {
|
1193
|
+
"schedulerJobId": scheduler_job_id
|
1194
|
+
}
|
1195
|
+
|
1196
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1197
|
+
|
1198
|
+
for (k, v) in six.iteritems(path_params):
|
1199
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1200
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1201
|
+
|
1202
|
+
header_params = {
|
1203
|
+
"accept": "application/json",
|
1204
|
+
"content-type": "application/json",
|
1205
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1206
|
+
}
|
1207
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1208
|
+
|
1209
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1210
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1211
|
+
client_retry_strategy=self.retry_strategy
|
1212
|
+
)
|
1213
|
+
if retry_strategy is None:
|
1214
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1215
|
+
|
1216
|
+
if retry_strategy:
|
1217
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1218
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1219
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1220
|
+
return retry_strategy.make_retrying_call(
|
1221
|
+
self.base_client.call_api,
|
1222
|
+
resource_path=resource_path,
|
1223
|
+
method=method,
|
1224
|
+
path_params=path_params,
|
1225
|
+
header_params=header_params,
|
1226
|
+
response_type="SchedulerJob",
|
1227
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1228
|
+
operation_name=operation_name,
|
1229
|
+
api_reference_link=api_reference_link,
|
1230
|
+
required_arguments=required_arguments)
|
1231
|
+
else:
|
1232
|
+
return self.base_client.call_api(
|
1233
|
+
resource_path=resource_path,
|
1234
|
+
method=method,
|
1235
|
+
path_params=path_params,
|
1236
|
+
header_params=header_params,
|
1237
|
+
response_type="SchedulerJob",
|
1238
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1239
|
+
operation_name=operation_name,
|
1240
|
+
api_reference_link=api_reference_link,
|
1241
|
+
required_arguments=required_arguments)
|
1242
|
+
|
1243
|
+
def list_compliance_records(self, **kwargs):
|
1244
|
+
"""
|
1245
|
+
Gets a list of complianceDetails.
|
1246
|
+
|
1247
|
+
|
1248
|
+
:param str compartment_id: (optional)
|
1249
|
+
The ID of the compartment in which to list resources.
|
1250
|
+
|
1251
|
+
:param str resource_id: (optional)
|
1252
|
+
Resource identifier.
|
1253
|
+
|
1254
|
+
:param str entity_id: (optional)
|
1255
|
+
Entity identifier.Ex:FleetId
|
1256
|
+
|
1257
|
+
:param str product_name: (optional)
|
1258
|
+
Product Name.
|
1259
|
+
|
1260
|
+
:param str product_stack: (optional)
|
1261
|
+
ProductStack name.
|
1262
|
+
|
1263
|
+
:param str target_name: (optional)
|
1264
|
+
Unique target name
|
1265
|
+
|
1266
|
+
:param str compliance_state: (optional)
|
1267
|
+
Target Compliance State.
|
1268
|
+
|
1269
|
+
:param int limit: (optional)
|
1270
|
+
The maximum number of items to return.
|
1271
|
+
|
1272
|
+
:param str page: (optional)
|
1273
|
+
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.
|
1274
|
+
|
1275
|
+
:param str sort_order: (optional)
|
1276
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1277
|
+
|
1278
|
+
Allowed values are: "ASC", "DESC"
|
1279
|
+
|
1280
|
+
:param str sort_by: (optional)
|
1281
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
1282
|
+
|
1283
|
+
Allowed values are: "timeCreated", "displayName"
|
1284
|
+
|
1285
|
+
:param str opc_request_id: (optional)
|
1286
|
+
The client request ID for tracing.
|
1287
|
+
|
1288
|
+
:param obj retry_strategy: (optional)
|
1289
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1290
|
+
|
1291
|
+
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.
|
1292
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1293
|
+
|
1294
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1295
|
+
|
1296
|
+
:param bool allow_control_chars: (optional)
|
1297
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1298
|
+
By default, the response will not allow control characters in strings
|
1299
|
+
|
1300
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ComplianceRecordCollection`
|
1301
|
+
:rtype: :class:`~oci.response.Response`
|
1302
|
+
|
1303
|
+
:example:
|
1304
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_compliance_records.py.html>`__ to see an example of how to use list_compliance_records API.
|
1305
|
+
"""
|
1306
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1307
|
+
required_arguments = []
|
1308
|
+
resource_path = "/complianceRecords"
|
1309
|
+
method = "GET"
|
1310
|
+
operation_name = "list_compliance_records"
|
1311
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ComplianceRecordCollection/ListComplianceRecords"
|
1312
|
+
|
1313
|
+
# Don't accept unknown kwargs
|
1314
|
+
expected_kwargs = [
|
1315
|
+
"allow_control_chars",
|
1316
|
+
"retry_strategy",
|
1317
|
+
"compartment_id",
|
1318
|
+
"resource_id",
|
1319
|
+
"entity_id",
|
1320
|
+
"product_name",
|
1321
|
+
"product_stack",
|
1322
|
+
"target_name",
|
1323
|
+
"compliance_state",
|
1324
|
+
"limit",
|
1325
|
+
"page",
|
1326
|
+
"sort_order",
|
1327
|
+
"sort_by",
|
1328
|
+
"opc_request_id"
|
1329
|
+
]
|
1330
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1331
|
+
if extra_kwargs:
|
1332
|
+
raise ValueError(
|
1333
|
+
f"list_compliance_records got unknown kwargs: {extra_kwargs!r}")
|
1334
|
+
|
1335
|
+
if 'sort_order' in kwargs:
|
1336
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1337
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1338
|
+
raise ValueError(
|
1339
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1340
|
+
)
|
1341
|
+
|
1342
|
+
if 'sort_by' in kwargs:
|
1343
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1344
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1345
|
+
raise ValueError(
|
1346
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1347
|
+
)
|
1348
|
+
|
1349
|
+
query_params = {
|
1350
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1351
|
+
"resourceId": kwargs.get("resource_id", missing),
|
1352
|
+
"entityId": kwargs.get("entity_id", missing),
|
1353
|
+
"productName": kwargs.get("product_name", missing),
|
1354
|
+
"productStack": kwargs.get("product_stack", missing),
|
1355
|
+
"targetName": kwargs.get("target_name", missing),
|
1356
|
+
"complianceState": kwargs.get("compliance_state", missing),
|
1357
|
+
"limit": kwargs.get("limit", missing),
|
1358
|
+
"page": kwargs.get("page", missing),
|
1359
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1360
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1361
|
+
}
|
1362
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1363
|
+
|
1364
|
+
header_params = {
|
1365
|
+
"accept": "application/json",
|
1366
|
+
"content-type": "application/json",
|
1367
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1368
|
+
}
|
1369
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1370
|
+
|
1371
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1372
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1373
|
+
client_retry_strategy=self.retry_strategy
|
1374
|
+
)
|
1375
|
+
if retry_strategy is None:
|
1376
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1377
|
+
|
1378
|
+
if retry_strategy:
|
1379
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1380
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1381
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1382
|
+
return retry_strategy.make_retrying_call(
|
1383
|
+
self.base_client.call_api,
|
1384
|
+
resource_path=resource_path,
|
1385
|
+
method=method,
|
1386
|
+
query_params=query_params,
|
1387
|
+
header_params=header_params,
|
1388
|
+
response_type="ComplianceRecordCollection",
|
1389
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1390
|
+
operation_name=operation_name,
|
1391
|
+
api_reference_link=api_reference_link,
|
1392
|
+
required_arguments=required_arguments)
|
1393
|
+
else:
|
1394
|
+
return self.base_client.call_api(
|
1395
|
+
resource_path=resource_path,
|
1396
|
+
method=method,
|
1397
|
+
query_params=query_params,
|
1398
|
+
header_params=header_params,
|
1399
|
+
response_type="ComplianceRecordCollection",
|
1400
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1401
|
+
operation_name=operation_name,
|
1402
|
+
api_reference_link=api_reference_link,
|
1403
|
+
required_arguments=required_arguments)
|
1404
|
+
|
1405
|
+
def list_executions(self, scheduler_job_id, job_activity_id, resource_id, **kwargs):
|
1406
|
+
"""
|
1407
|
+
Returns a list of Task Executions for a Resource.
|
1408
|
+
|
1409
|
+
|
1410
|
+
:param str scheduler_job_id: (required)
|
1411
|
+
unique SchedulerJob identifier
|
1412
|
+
|
1413
|
+
:param str job_activity_id: (required)
|
1414
|
+
unique jobActivity identifier
|
1415
|
+
|
1416
|
+
:param str resource_id: (required)
|
1417
|
+
unique Resource identifier
|
1418
|
+
|
1419
|
+
:param str resource_task_id: (optional)
|
1420
|
+
Task Id
|
1421
|
+
|
1422
|
+
:param str step_name: (optional)
|
1423
|
+
Unique step name
|
1424
|
+
|
1425
|
+
:param str target_name: (optional)
|
1426
|
+
Unique target name
|
1427
|
+
|
1428
|
+
:param str sequence: (optional)
|
1429
|
+
Task Order Sequence
|
1430
|
+
|
1431
|
+
:param int limit: (optional)
|
1432
|
+
The maximum number of items to return.
|
1433
|
+
|
1434
|
+
:param str page: (optional)
|
1435
|
+
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.
|
1436
|
+
|
1437
|
+
:param str sort_order: (optional)
|
1438
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1439
|
+
|
1440
|
+
Allowed values are: "ASC", "DESC"
|
1441
|
+
|
1442
|
+
:param str sort_by: (optional)
|
1443
|
+
The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending.
|
1444
|
+
|
1445
|
+
Allowed values are: "timeStarted"
|
1446
|
+
|
1447
|
+
:param str opc_request_id: (optional)
|
1448
|
+
The client request ID for tracing.
|
1449
|
+
|
1450
|
+
:param obj retry_strategy: (optional)
|
1451
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1452
|
+
|
1453
|
+
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.
|
1454
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1455
|
+
|
1456
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1457
|
+
|
1458
|
+
:param bool allow_control_chars: (optional)
|
1459
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1460
|
+
By default, the response will not allow control characters in strings
|
1461
|
+
|
1462
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ExecutionCollection`
|
1463
|
+
:rtype: :class:`~oci.response.Response`
|
1464
|
+
|
1465
|
+
:example:
|
1466
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_executions.py.html>`__ to see an example of how to use list_executions API.
|
1467
|
+
"""
|
1468
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1469
|
+
required_arguments = ['schedulerJobId', 'jobActivityId', 'resourceId']
|
1470
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions"
|
1471
|
+
method = "GET"
|
1472
|
+
operation_name = "list_executions"
|
1473
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ExecutionCollection/ListExecutions"
|
1474
|
+
|
1475
|
+
# Don't accept unknown kwargs
|
1476
|
+
expected_kwargs = [
|
1477
|
+
"allow_control_chars",
|
1478
|
+
"retry_strategy",
|
1479
|
+
"resource_task_id",
|
1480
|
+
"step_name",
|
1481
|
+
"target_name",
|
1482
|
+
"sequence",
|
1483
|
+
"limit",
|
1484
|
+
"page",
|
1485
|
+
"sort_order",
|
1486
|
+
"sort_by",
|
1487
|
+
"opc_request_id"
|
1488
|
+
]
|
1489
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1490
|
+
if extra_kwargs:
|
1491
|
+
raise ValueError(
|
1492
|
+
f"list_executions got unknown kwargs: {extra_kwargs!r}")
|
1493
|
+
|
1494
|
+
path_params = {
|
1495
|
+
"schedulerJobId": scheduler_job_id,
|
1496
|
+
"jobActivityId": job_activity_id,
|
1497
|
+
"resourceId": resource_id
|
1498
|
+
}
|
1499
|
+
|
1500
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1501
|
+
|
1502
|
+
for (k, v) in six.iteritems(path_params):
|
1503
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1504
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1505
|
+
|
1506
|
+
if 'sort_order' in kwargs:
|
1507
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1508
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1509
|
+
raise ValueError(
|
1510
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1511
|
+
)
|
1512
|
+
|
1513
|
+
if 'sort_by' in kwargs:
|
1514
|
+
sort_by_allowed_values = ["timeStarted"]
|
1515
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1516
|
+
raise ValueError(
|
1517
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1518
|
+
)
|
1519
|
+
|
1520
|
+
query_params = {
|
1521
|
+
"resourceTaskId": kwargs.get("resource_task_id", missing),
|
1522
|
+
"stepName": kwargs.get("step_name", missing),
|
1523
|
+
"targetName": kwargs.get("target_name", missing),
|
1524
|
+
"sequence": kwargs.get("sequence", missing),
|
1525
|
+
"limit": kwargs.get("limit", missing),
|
1526
|
+
"page": kwargs.get("page", missing),
|
1527
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1528
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1529
|
+
}
|
1530
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1531
|
+
|
1532
|
+
header_params = {
|
1533
|
+
"accept": "application/json",
|
1534
|
+
"content-type": "application/json",
|
1535
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1536
|
+
}
|
1537
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1538
|
+
|
1539
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1540
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1541
|
+
client_retry_strategy=self.retry_strategy
|
1542
|
+
)
|
1543
|
+
if retry_strategy is None:
|
1544
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1545
|
+
|
1546
|
+
if retry_strategy:
|
1547
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1548
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1549
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1550
|
+
return retry_strategy.make_retrying_call(
|
1551
|
+
self.base_client.call_api,
|
1552
|
+
resource_path=resource_path,
|
1553
|
+
method=method,
|
1554
|
+
path_params=path_params,
|
1555
|
+
query_params=query_params,
|
1556
|
+
header_params=header_params,
|
1557
|
+
response_type="ExecutionCollection",
|
1558
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1559
|
+
operation_name=operation_name,
|
1560
|
+
api_reference_link=api_reference_link,
|
1561
|
+
required_arguments=required_arguments)
|
1562
|
+
else:
|
1563
|
+
return self.base_client.call_api(
|
1564
|
+
resource_path=resource_path,
|
1565
|
+
method=method,
|
1566
|
+
path_params=path_params,
|
1567
|
+
query_params=query_params,
|
1568
|
+
header_params=header_params,
|
1569
|
+
response_type="ExecutionCollection",
|
1570
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1571
|
+
operation_name=operation_name,
|
1572
|
+
api_reference_link=api_reference_link,
|
1573
|
+
required_arguments=required_arguments)
|
1574
|
+
|
1575
|
+
def list_patches(self, **kwargs):
|
1576
|
+
"""
|
1577
|
+
Returns a list of Patches.
|
1578
|
+
|
1579
|
+
|
1580
|
+
:param str compartment_id: (optional)
|
1581
|
+
The ID of the compartment in which to list resources.
|
1582
|
+
|
1583
|
+
:param str product_id: (optional)
|
1584
|
+
Product platformConfigurationId associated with the Patch.
|
1585
|
+
|
1586
|
+
:param str version: (optional)
|
1587
|
+
Product version
|
1588
|
+
|
1589
|
+
:param str type: (optional)
|
1590
|
+
DefinedBy type.
|
1591
|
+
|
1592
|
+
Allowed values are: "USER_DEFINED", "ORACLE_DEFINED"
|
1593
|
+
|
1594
|
+
:param str patch_type_id: (optional)
|
1595
|
+
Patch Type platformConfigurationId associated with the Patch.
|
1596
|
+
|
1597
|
+
:param str name: (optional)
|
1598
|
+
A filter to return only resources that match the entire name given.
|
1599
|
+
|
1600
|
+
:param str id: (optional)
|
1601
|
+
unique Patch identifier
|
1602
|
+
|
1603
|
+
:param datetime time_released_greater_than_or_equal_to: (optional)
|
1604
|
+
Patch Released Date
|
1605
|
+
|
1606
|
+
:param datetime time_released_less_than: (optional)
|
1607
|
+
Patch Released Date
|
1608
|
+
|
1609
|
+
:param bool should_compliance_policy_rules_be_applied: (optional)
|
1610
|
+
Filter patch based on compliance policy rules for the Product
|
1611
|
+
|
1612
|
+
:param int limit: (optional)
|
1613
|
+
The maximum number of items to return.
|
1614
|
+
|
1615
|
+
:param str page: (optional)
|
1616
|
+
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.
|
1617
|
+
|
1618
|
+
:param str lifecycle_state: (optional)
|
1619
|
+
The current state of the Patch.
|
1620
|
+
|
1621
|
+
Allowed values are: "ACTIVE", "INACTIVE", "DELETED", "DELETING", "FAILED", "UPDATING"
|
1622
|
+
|
1623
|
+
:param str sort_by: (optional)
|
1624
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
1625
|
+
|
1626
|
+
Allowed values are: "timeCreated", "displayName"
|
1627
|
+
|
1628
|
+
:param str sort_order: (optional)
|
1629
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1630
|
+
|
1631
|
+
Allowed values are: "ASC", "DESC"
|
1632
|
+
|
1633
|
+
:param str opc_request_id: (optional)
|
1634
|
+
The client request ID for tracing.
|
1635
|
+
|
1636
|
+
:param obj retry_strategy: (optional)
|
1637
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1638
|
+
|
1639
|
+
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.
|
1640
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1641
|
+
|
1642
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1643
|
+
|
1644
|
+
:param bool allow_control_chars: (optional)
|
1645
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1646
|
+
By default, the response will not allow control characters in strings
|
1647
|
+
|
1648
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.PatchCollection`
|
1649
|
+
:rtype: :class:`~oci.response.Response`
|
1650
|
+
|
1651
|
+
:example:
|
1652
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_patches.py.html>`__ to see an example of how to use list_patches API.
|
1653
|
+
"""
|
1654
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1655
|
+
required_arguments = []
|
1656
|
+
resource_path = "/patches"
|
1657
|
+
method = "GET"
|
1658
|
+
operation_name = "list_patches"
|
1659
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PatchCollection/ListPatches"
|
1660
|
+
|
1661
|
+
# Don't accept unknown kwargs
|
1662
|
+
expected_kwargs = [
|
1663
|
+
"allow_control_chars",
|
1664
|
+
"retry_strategy",
|
1665
|
+
"compartment_id",
|
1666
|
+
"product_id",
|
1667
|
+
"version",
|
1668
|
+
"type",
|
1669
|
+
"patch_type_id",
|
1670
|
+
"name",
|
1671
|
+
"id",
|
1672
|
+
"time_released_greater_than_or_equal_to",
|
1673
|
+
"time_released_less_than",
|
1674
|
+
"should_compliance_policy_rules_be_applied",
|
1675
|
+
"limit",
|
1676
|
+
"page",
|
1677
|
+
"lifecycle_state",
|
1678
|
+
"sort_by",
|
1679
|
+
"sort_order",
|
1680
|
+
"opc_request_id"
|
1681
|
+
]
|
1682
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1683
|
+
if extra_kwargs:
|
1684
|
+
raise ValueError(
|
1685
|
+
f"list_patches got unknown kwargs: {extra_kwargs!r}")
|
1686
|
+
|
1687
|
+
if 'type' in kwargs:
|
1688
|
+
type_allowed_values = ["USER_DEFINED", "ORACLE_DEFINED"]
|
1689
|
+
if kwargs['type'] not in type_allowed_values:
|
1690
|
+
raise ValueError(
|
1691
|
+
f"Invalid value for `type`, must be one of { type_allowed_values }"
|
1692
|
+
)
|
1693
|
+
|
1694
|
+
if 'lifecycle_state' in kwargs:
|
1695
|
+
lifecycle_state_allowed_values = ["ACTIVE", "INACTIVE", "DELETED", "DELETING", "FAILED", "UPDATING"]
|
1696
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
1697
|
+
raise ValueError(
|
1698
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
1699
|
+
)
|
1700
|
+
|
1701
|
+
if 'sort_by' in kwargs:
|
1702
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1703
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1704
|
+
raise ValueError(
|
1705
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1706
|
+
)
|
1707
|
+
|
1708
|
+
if 'sort_order' in kwargs:
|
1709
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1710
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1711
|
+
raise ValueError(
|
1712
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1713
|
+
)
|
1714
|
+
|
1715
|
+
query_params = {
|
1716
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1717
|
+
"productId": kwargs.get("product_id", missing),
|
1718
|
+
"version": kwargs.get("version", missing),
|
1719
|
+
"type": kwargs.get("type", missing),
|
1720
|
+
"patchTypeId": kwargs.get("patch_type_id", missing),
|
1721
|
+
"name": kwargs.get("name", missing),
|
1722
|
+
"id": kwargs.get("id", missing),
|
1723
|
+
"timeReleasedGreaterThanOrEqualTo": kwargs.get("time_released_greater_than_or_equal_to", missing),
|
1724
|
+
"timeReleasedLessThan": kwargs.get("time_released_less_than", missing),
|
1725
|
+
"shouldCompliancePolicyRulesBeApplied": kwargs.get("should_compliance_policy_rules_be_applied", missing),
|
1726
|
+
"limit": kwargs.get("limit", missing),
|
1727
|
+
"page": kwargs.get("page", missing),
|
1728
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
1729
|
+
"sortBy": kwargs.get("sort_by", missing),
|
1730
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
1731
|
+
}
|
1732
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1733
|
+
|
1734
|
+
header_params = {
|
1735
|
+
"accept": "application/json",
|
1736
|
+
"content-type": "application/json",
|
1737
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1738
|
+
}
|
1739
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1740
|
+
|
1741
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1742
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1743
|
+
client_retry_strategy=self.retry_strategy
|
1744
|
+
)
|
1745
|
+
if retry_strategy is None:
|
1746
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1747
|
+
|
1748
|
+
if retry_strategy:
|
1749
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1750
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1751
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1752
|
+
return retry_strategy.make_retrying_call(
|
1753
|
+
self.base_client.call_api,
|
1754
|
+
resource_path=resource_path,
|
1755
|
+
method=method,
|
1756
|
+
query_params=query_params,
|
1757
|
+
header_params=header_params,
|
1758
|
+
response_type="PatchCollection",
|
1759
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1760
|
+
operation_name=operation_name,
|
1761
|
+
api_reference_link=api_reference_link,
|
1762
|
+
required_arguments=required_arguments)
|
1763
|
+
else:
|
1764
|
+
return self.base_client.call_api(
|
1765
|
+
resource_path=resource_path,
|
1766
|
+
method=method,
|
1767
|
+
query_params=query_params,
|
1768
|
+
header_params=header_params,
|
1769
|
+
response_type="PatchCollection",
|
1770
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1771
|
+
operation_name=operation_name,
|
1772
|
+
api_reference_link=api_reference_link,
|
1773
|
+
required_arguments=required_arguments)
|
1774
|
+
|
1775
|
+
def list_resources(self, scheduler_job_id, job_activity_id, **kwargs):
|
1776
|
+
"""
|
1777
|
+
Returns a list of resources for an Activity Execution.
|
1778
|
+
|
1779
|
+
|
1780
|
+
:param str scheduler_job_id: (required)
|
1781
|
+
unique SchedulerJob identifier
|
1782
|
+
|
1783
|
+
:param str job_activity_id: (required)
|
1784
|
+
unique jobActivity identifier
|
1785
|
+
|
1786
|
+
:param str resource_task_id: (optional)
|
1787
|
+
Task Id
|
1788
|
+
|
1789
|
+
:param str step_name: (optional)
|
1790
|
+
Unique step name
|
1791
|
+
|
1792
|
+
:param str target_name: (optional)
|
1793
|
+
Unique target name
|
1794
|
+
|
1795
|
+
:param str sequence: (optional)
|
1796
|
+
Task Order Sequence
|
1797
|
+
|
1798
|
+
:param int limit: (optional)
|
1799
|
+
The maximum number of items to return.
|
1800
|
+
|
1801
|
+
:param str page: (optional)
|
1802
|
+
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.
|
1803
|
+
|
1804
|
+
:param str sort_order: (optional)
|
1805
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1806
|
+
|
1807
|
+
Allowed values are: "ASC", "DESC"
|
1808
|
+
|
1809
|
+
:param str sort_by: (optional)
|
1810
|
+
The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending.
|
1811
|
+
|
1812
|
+
Allowed values are: "timeStarted"
|
1813
|
+
|
1814
|
+
:param str opc_request_id: (optional)
|
1815
|
+
The client request ID for tracing.
|
1816
|
+
|
1817
|
+
:param obj retry_strategy: (optional)
|
1818
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1819
|
+
|
1820
|
+
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.
|
1821
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1822
|
+
|
1823
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1824
|
+
|
1825
|
+
:param bool allow_control_chars: (optional)
|
1826
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1827
|
+
By default, the response will not allow control characters in strings
|
1828
|
+
|
1829
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ResourceCollection`
|
1830
|
+
:rtype: :class:`~oci.response.Response`
|
1831
|
+
|
1832
|
+
:example:
|
1833
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_resources.py.html>`__ to see an example of how to use list_resources API.
|
1834
|
+
"""
|
1835
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1836
|
+
required_arguments = ['schedulerJobId', 'jobActivityId']
|
1837
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources"
|
1838
|
+
method = "GET"
|
1839
|
+
operation_name = "list_resources"
|
1840
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ResourceCollection/ListResources"
|
1841
|
+
|
1842
|
+
# Don't accept unknown kwargs
|
1843
|
+
expected_kwargs = [
|
1844
|
+
"allow_control_chars",
|
1845
|
+
"retry_strategy",
|
1846
|
+
"resource_task_id",
|
1847
|
+
"step_name",
|
1848
|
+
"target_name",
|
1849
|
+
"sequence",
|
1850
|
+
"limit",
|
1851
|
+
"page",
|
1852
|
+
"sort_order",
|
1853
|
+
"sort_by",
|
1854
|
+
"opc_request_id"
|
1855
|
+
]
|
1856
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1857
|
+
if extra_kwargs:
|
1858
|
+
raise ValueError(
|
1859
|
+
f"list_resources got unknown kwargs: {extra_kwargs!r}")
|
1860
|
+
|
1861
|
+
path_params = {
|
1862
|
+
"schedulerJobId": scheduler_job_id,
|
1863
|
+
"jobActivityId": job_activity_id
|
1864
|
+
}
|
1865
|
+
|
1866
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1867
|
+
|
1868
|
+
for (k, v) in six.iteritems(path_params):
|
1869
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1870
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1871
|
+
|
1872
|
+
if 'sort_order' in kwargs:
|
1873
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1874
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1875
|
+
raise ValueError(
|
1876
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1877
|
+
)
|
1878
|
+
|
1879
|
+
if 'sort_by' in kwargs:
|
1880
|
+
sort_by_allowed_values = ["timeStarted"]
|
1881
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1882
|
+
raise ValueError(
|
1883
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1884
|
+
)
|
1885
|
+
|
1886
|
+
query_params = {
|
1887
|
+
"resourceTaskId": kwargs.get("resource_task_id", missing),
|
1888
|
+
"stepName": kwargs.get("step_name", missing),
|
1889
|
+
"targetName": kwargs.get("target_name", missing),
|
1890
|
+
"sequence": kwargs.get("sequence", missing),
|
1891
|
+
"limit": kwargs.get("limit", missing),
|
1892
|
+
"page": kwargs.get("page", missing),
|
1893
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1894
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1895
|
+
}
|
1896
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1897
|
+
|
1898
|
+
header_params = {
|
1899
|
+
"accept": "application/json",
|
1900
|
+
"content-type": "application/json",
|
1901
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1902
|
+
}
|
1903
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1904
|
+
|
1905
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1906
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1907
|
+
client_retry_strategy=self.retry_strategy
|
1908
|
+
)
|
1909
|
+
if retry_strategy is None:
|
1910
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1911
|
+
|
1912
|
+
if retry_strategy:
|
1913
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1914
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1915
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1916
|
+
return retry_strategy.make_retrying_call(
|
1917
|
+
self.base_client.call_api,
|
1918
|
+
resource_path=resource_path,
|
1919
|
+
method=method,
|
1920
|
+
path_params=path_params,
|
1921
|
+
query_params=query_params,
|
1922
|
+
header_params=header_params,
|
1923
|
+
response_type="ResourceCollection",
|
1924
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1925
|
+
operation_name=operation_name,
|
1926
|
+
api_reference_link=api_reference_link,
|
1927
|
+
required_arguments=required_arguments)
|
1928
|
+
else:
|
1929
|
+
return self.base_client.call_api(
|
1930
|
+
resource_path=resource_path,
|
1931
|
+
method=method,
|
1932
|
+
path_params=path_params,
|
1933
|
+
query_params=query_params,
|
1934
|
+
header_params=header_params,
|
1935
|
+
response_type="ResourceCollection",
|
1936
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1937
|
+
operation_name=operation_name,
|
1938
|
+
api_reference_link=api_reference_link,
|
1939
|
+
required_arguments=required_arguments)
|
1940
|
+
|
1941
|
+
def list_scheduled_fleets(self, scheduler_definition_id, **kwargs):
|
1942
|
+
"""
|
1943
|
+
Returns a list of ScheduledFleets.
|
1944
|
+
|
1945
|
+
|
1946
|
+
:param str scheduler_definition_id: (required)
|
1947
|
+
unique SchedulerDefinition identifier
|
1948
|
+
|
1949
|
+
:param str compartment_id: (optional)
|
1950
|
+
The ID of the compartment in which to list resources.
|
1951
|
+
|
1952
|
+
:param str display_name: (optional)
|
1953
|
+
A filter to return only resources that match the entire display name given.
|
1954
|
+
|
1955
|
+
:param int limit: (optional)
|
1956
|
+
The maximum number of items to return.
|
1957
|
+
|
1958
|
+
:param str page: (optional)
|
1959
|
+
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.
|
1960
|
+
|
1961
|
+
:param str sort_order: (optional)
|
1962
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1963
|
+
|
1964
|
+
Allowed values are: "ASC", "DESC"
|
1965
|
+
|
1966
|
+
:param str sort_by: (optional)
|
1967
|
+
The field to sort by. Only one sort order may be provided. Default order for displayName is ascending.
|
1968
|
+
|
1969
|
+
Allowed values are: "displayName"
|
1970
|
+
|
1971
|
+
:param str opc_request_id: (optional)
|
1972
|
+
The client request ID for tracing.
|
1973
|
+
|
1974
|
+
:param obj retry_strategy: (optional)
|
1975
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1976
|
+
|
1977
|
+
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.
|
1978
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1979
|
+
|
1980
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1981
|
+
|
1982
|
+
:param bool allow_control_chars: (optional)
|
1983
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1984
|
+
By default, the response will not allow control characters in strings
|
1985
|
+
|
1986
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ScheduledFleetCollection`
|
1987
|
+
:rtype: :class:`~oci.response.Response`
|
1988
|
+
|
1989
|
+
:example:
|
1990
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_scheduled_fleets.py.html>`__ to see an example of how to use list_scheduled_fleets API.
|
1991
|
+
"""
|
1992
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1993
|
+
required_arguments = ['schedulerDefinitionId']
|
1994
|
+
resource_path = "/schedulerDefinitions/{schedulerDefinitionId}/scheduledFleets"
|
1995
|
+
method = "GET"
|
1996
|
+
operation_name = "list_scheduled_fleets"
|
1997
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ScheduledFleetCollection/ListScheduledFleets"
|
1998
|
+
|
1999
|
+
# Don't accept unknown kwargs
|
2000
|
+
expected_kwargs = [
|
2001
|
+
"allow_control_chars",
|
2002
|
+
"retry_strategy",
|
2003
|
+
"compartment_id",
|
2004
|
+
"display_name",
|
2005
|
+
"limit",
|
2006
|
+
"page",
|
2007
|
+
"sort_order",
|
2008
|
+
"sort_by",
|
2009
|
+
"opc_request_id"
|
2010
|
+
]
|
2011
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2012
|
+
if extra_kwargs:
|
2013
|
+
raise ValueError(
|
2014
|
+
f"list_scheduled_fleets got unknown kwargs: {extra_kwargs!r}")
|
2015
|
+
|
2016
|
+
path_params = {
|
2017
|
+
"schedulerDefinitionId": scheduler_definition_id
|
2018
|
+
}
|
2019
|
+
|
2020
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2021
|
+
|
2022
|
+
for (k, v) in six.iteritems(path_params):
|
2023
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2024
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2025
|
+
|
2026
|
+
if 'sort_order' in kwargs:
|
2027
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2028
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2029
|
+
raise ValueError(
|
2030
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2031
|
+
)
|
2032
|
+
|
2033
|
+
if 'sort_by' in kwargs:
|
2034
|
+
sort_by_allowed_values = ["displayName"]
|
2035
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2036
|
+
raise ValueError(
|
2037
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2038
|
+
)
|
2039
|
+
|
2040
|
+
query_params = {
|
2041
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
2042
|
+
"displayName": kwargs.get("display_name", missing),
|
2043
|
+
"limit": kwargs.get("limit", missing),
|
2044
|
+
"page": kwargs.get("page", missing),
|
2045
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2046
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2047
|
+
}
|
2048
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2049
|
+
|
2050
|
+
header_params = {
|
2051
|
+
"accept": "application/json",
|
2052
|
+
"content-type": "application/json",
|
2053
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2054
|
+
}
|
2055
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2056
|
+
|
2057
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2058
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2059
|
+
client_retry_strategy=self.retry_strategy
|
2060
|
+
)
|
2061
|
+
if retry_strategy is None:
|
2062
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2063
|
+
|
2064
|
+
if retry_strategy:
|
2065
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2066
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2067
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2068
|
+
return retry_strategy.make_retrying_call(
|
2069
|
+
self.base_client.call_api,
|
2070
|
+
resource_path=resource_path,
|
2071
|
+
method=method,
|
2072
|
+
path_params=path_params,
|
2073
|
+
query_params=query_params,
|
2074
|
+
header_params=header_params,
|
2075
|
+
response_type="ScheduledFleetCollection",
|
2076
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2077
|
+
operation_name=operation_name,
|
2078
|
+
api_reference_link=api_reference_link,
|
2079
|
+
required_arguments=required_arguments)
|
2080
|
+
else:
|
2081
|
+
return self.base_client.call_api(
|
2082
|
+
resource_path=resource_path,
|
2083
|
+
method=method,
|
2084
|
+
path_params=path_params,
|
2085
|
+
query_params=query_params,
|
2086
|
+
header_params=header_params,
|
2087
|
+
response_type="ScheduledFleetCollection",
|
2088
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2089
|
+
operation_name=operation_name,
|
2090
|
+
api_reference_link=api_reference_link,
|
2091
|
+
required_arguments=required_arguments)
|
2092
|
+
|
2093
|
+
def list_scheduler_definitions(self, **kwargs):
|
2094
|
+
"""
|
2095
|
+
List all lifecycle management schedules in Fleet Application Management.
|
2096
|
+
|
2097
|
+
|
2098
|
+
:param str compartment_id: (optional)
|
2099
|
+
The ID of the compartment in which to list resources.
|
2100
|
+
|
2101
|
+
:param str lifecycle_state: (optional)
|
2102
|
+
A filter to return only scheduleDefinitions whose lifecycleState matches the given lifecycleState.
|
2103
|
+
|
2104
|
+
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "INACTIVE"
|
2105
|
+
|
2106
|
+
:param str display_name: (optional)
|
2107
|
+
A filter to return only resources that match the entire display name given.
|
2108
|
+
|
2109
|
+
:param str product: (optional)
|
2110
|
+
A filter to return only dchedule definitions whose assocaited product matches the given product
|
2111
|
+
|
2112
|
+
:param str id: (optional)
|
2113
|
+
A filter to return only schedule definitions whose identifier matches the given identifier.
|
2114
|
+
|
2115
|
+
:param str maintenance_window_id: (optional)
|
2116
|
+
A filter to return only schedule definitions whose associated maintenanceWindowId matches the given maintenanceWindowId.
|
2117
|
+
|
2118
|
+
:param str runbook_id: (optional)
|
2119
|
+
A filter to return only schedule definitions whose associated runbookId matches the given runbookId.
|
2120
|
+
|
2121
|
+
:param str fleet_id: (optional)
|
2122
|
+
unique Fleet identifier
|
2123
|
+
|
2124
|
+
:param int limit: (optional)
|
2125
|
+
The maximum number of items to return.
|
2126
|
+
|
2127
|
+
:param str page: (optional)
|
2128
|
+
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.
|
2129
|
+
|
2130
|
+
:param str sort_order: (optional)
|
2131
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2132
|
+
|
2133
|
+
Allowed values are: "ASC", "DESC"
|
2134
|
+
|
2135
|
+
:param str sort_by: (optional)
|
2136
|
+
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.
|
2137
|
+
|
2138
|
+
Allowed values are: "timeCreated", "displayName", "timeOfNextRun"
|
2139
|
+
|
2140
|
+
:param str opc_request_id: (optional)
|
2141
|
+
The client request ID for tracing.
|
2142
|
+
|
2143
|
+
:param obj retry_strategy: (optional)
|
2144
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2145
|
+
|
2146
|
+
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.
|
2147
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2148
|
+
|
2149
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2150
|
+
|
2151
|
+
:param bool allow_control_chars: (optional)
|
2152
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2153
|
+
By default, the response will not allow control characters in strings
|
2154
|
+
|
2155
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerDefinitionCollection`
|
2156
|
+
:rtype: :class:`~oci.response.Response`
|
2157
|
+
|
2158
|
+
:example:
|
2159
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_scheduler_definitions.py.html>`__ to see an example of how to use list_scheduler_definitions API.
|
2160
|
+
"""
|
2161
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2162
|
+
required_arguments = []
|
2163
|
+
resource_path = "/schedulerDefinitions"
|
2164
|
+
method = "GET"
|
2165
|
+
operation_name = "list_scheduler_definitions"
|
2166
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerDefinitionCollection/ListSchedulerDefinitions"
|
2167
|
+
|
2168
|
+
# Don't accept unknown kwargs
|
2169
|
+
expected_kwargs = [
|
2170
|
+
"allow_control_chars",
|
2171
|
+
"retry_strategy",
|
2172
|
+
"compartment_id",
|
2173
|
+
"lifecycle_state",
|
2174
|
+
"display_name",
|
2175
|
+
"product",
|
2176
|
+
"id",
|
2177
|
+
"maintenance_window_id",
|
2178
|
+
"runbook_id",
|
2179
|
+
"fleet_id",
|
2180
|
+
"limit",
|
2181
|
+
"page",
|
2182
|
+
"sort_order",
|
2183
|
+
"sort_by",
|
2184
|
+
"opc_request_id"
|
2185
|
+
]
|
2186
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2187
|
+
if extra_kwargs:
|
2188
|
+
raise ValueError(
|
2189
|
+
f"list_scheduler_definitions got unknown kwargs: {extra_kwargs!r}")
|
2190
|
+
|
2191
|
+
if 'lifecycle_state' in kwargs:
|
2192
|
+
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "INACTIVE"]
|
2193
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
2194
|
+
raise ValueError(
|
2195
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
2196
|
+
)
|
2197
|
+
|
2198
|
+
if 'sort_order' in kwargs:
|
2199
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2200
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2201
|
+
raise ValueError(
|
2202
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2203
|
+
)
|
2204
|
+
|
2205
|
+
if 'sort_by' in kwargs:
|
2206
|
+
sort_by_allowed_values = ["timeCreated", "displayName", "timeOfNextRun"]
|
2207
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2208
|
+
raise ValueError(
|
2209
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2210
|
+
)
|
2211
|
+
|
2212
|
+
query_params = {
|
2213
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
2214
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
2215
|
+
"displayName": kwargs.get("display_name", missing),
|
2216
|
+
"product": kwargs.get("product", missing),
|
2217
|
+
"id": kwargs.get("id", missing),
|
2218
|
+
"maintenanceWindowId": kwargs.get("maintenance_window_id", missing),
|
2219
|
+
"runbookId": kwargs.get("runbook_id", missing),
|
2220
|
+
"fleetId": kwargs.get("fleet_id", missing),
|
2221
|
+
"limit": kwargs.get("limit", missing),
|
2222
|
+
"page": kwargs.get("page", missing),
|
2223
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2224
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2225
|
+
}
|
2226
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2227
|
+
|
2228
|
+
header_params = {
|
2229
|
+
"accept": "application/json",
|
2230
|
+
"content-type": "application/json",
|
2231
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2232
|
+
}
|
2233
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2234
|
+
|
2235
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2236
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2237
|
+
client_retry_strategy=self.retry_strategy
|
2238
|
+
)
|
2239
|
+
if retry_strategy is None:
|
2240
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2241
|
+
|
2242
|
+
if retry_strategy:
|
2243
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2244
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2245
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2246
|
+
return retry_strategy.make_retrying_call(
|
2247
|
+
self.base_client.call_api,
|
2248
|
+
resource_path=resource_path,
|
2249
|
+
method=method,
|
2250
|
+
query_params=query_params,
|
2251
|
+
header_params=header_params,
|
2252
|
+
response_type="SchedulerDefinitionCollection",
|
2253
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2254
|
+
operation_name=operation_name,
|
2255
|
+
api_reference_link=api_reference_link,
|
2256
|
+
required_arguments=required_arguments)
|
2257
|
+
else:
|
2258
|
+
return self.base_client.call_api(
|
2259
|
+
resource_path=resource_path,
|
2260
|
+
method=method,
|
2261
|
+
query_params=query_params,
|
2262
|
+
header_params=header_params,
|
2263
|
+
response_type="SchedulerDefinitionCollection",
|
2264
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2265
|
+
operation_name=operation_name,
|
2266
|
+
api_reference_link=api_reference_link,
|
2267
|
+
required_arguments=required_arguments)
|
2268
|
+
|
2269
|
+
def list_scheduler_jobs(self, **kwargs):
|
2270
|
+
"""
|
2271
|
+
List scheduled lifecycle operation jobs in Fleet Application Management.
|
2272
|
+
|
2273
|
+
|
2274
|
+
:param str compartment_id: (optional)
|
2275
|
+
The ID of the compartment in which to list resources.
|
2276
|
+
|
2277
|
+
:param str lifecycle_state: (optional)
|
2278
|
+
A filter to return only resources whose lifecycleState matches the given lifecycleState.
|
2279
|
+
|
2280
|
+
Allowed values are: "ACTIVE", "DELETED", "FAILED"
|
2281
|
+
|
2282
|
+
:param str fleet_id: (optional)
|
2283
|
+
unique Fleet identifier
|
2284
|
+
|
2285
|
+
:param datetime time_scheduled_greater_than_or_equal_to: (optional)
|
2286
|
+
Scheduled Time
|
2287
|
+
|
2288
|
+
:param datetime time_scheduled_less_than: (optional)
|
2289
|
+
Scheduled Time
|
2290
|
+
|
2291
|
+
:param bool is_remediation_job_needed: (optional)
|
2292
|
+
Fetch next remediation Job
|
2293
|
+
|
2294
|
+
:param str sub_state: (optional)
|
2295
|
+
A filter to return only resources their subState matches the given subState.
|
2296
|
+
|
2297
|
+
:param str display_name: (optional)
|
2298
|
+
A filter to return only resources that match the entire display name given.
|
2299
|
+
|
2300
|
+
:param str id: (optional)
|
2301
|
+
unique SchedulerJob identifier
|
2302
|
+
|
2303
|
+
:param str defintion_id: (optional)
|
2304
|
+
SchedulerJob Definition identifier
|
2305
|
+
|
2306
|
+
:param int limit: (optional)
|
2307
|
+
The maximum number of items to return.
|
2308
|
+
|
2309
|
+
:param str page: (optional)
|
2310
|
+
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.
|
2311
|
+
|
2312
|
+
:param str sort_order: (optional)
|
2313
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2314
|
+
|
2315
|
+
Allowed values are: "ASC", "DESC"
|
2316
|
+
|
2317
|
+
:param str sort_by: (optional)
|
2318
|
+
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.
|
2319
|
+
|
2320
|
+
Allowed values are: "timeCreated", "timeScheduled", "displayName"
|
2321
|
+
|
2322
|
+
:param str opc_request_id: (optional)
|
2323
|
+
The client request ID for tracing.
|
2324
|
+
|
2325
|
+
:param obj retry_strategy: (optional)
|
2326
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2327
|
+
|
2328
|
+
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.
|
2329
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2330
|
+
|
2331
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2332
|
+
|
2333
|
+
:param bool allow_control_chars: (optional)
|
2334
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2335
|
+
By default, the response will not allow control characters in strings
|
2336
|
+
|
2337
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerJobCollection`
|
2338
|
+
:rtype: :class:`~oci.response.Response`
|
2339
|
+
|
2340
|
+
:example:
|
2341
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_scheduler_jobs.py.html>`__ to see an example of how to use list_scheduler_jobs API.
|
2342
|
+
"""
|
2343
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2344
|
+
required_arguments = []
|
2345
|
+
resource_path = "/schedulerJobs"
|
2346
|
+
method = "GET"
|
2347
|
+
operation_name = "list_scheduler_jobs"
|
2348
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerJobCollection/ListSchedulerJobs"
|
2349
|
+
|
2350
|
+
# Don't accept unknown kwargs
|
2351
|
+
expected_kwargs = [
|
2352
|
+
"allow_control_chars",
|
2353
|
+
"retry_strategy",
|
2354
|
+
"compartment_id",
|
2355
|
+
"lifecycle_state",
|
2356
|
+
"fleet_id",
|
2357
|
+
"time_scheduled_greater_than_or_equal_to",
|
2358
|
+
"time_scheduled_less_than",
|
2359
|
+
"is_remediation_job_needed",
|
2360
|
+
"sub_state",
|
2361
|
+
"display_name",
|
2362
|
+
"id",
|
2363
|
+
"defintion_id",
|
2364
|
+
"limit",
|
2365
|
+
"page",
|
2366
|
+
"sort_order",
|
2367
|
+
"sort_by",
|
2368
|
+
"opc_request_id"
|
2369
|
+
]
|
2370
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2371
|
+
if extra_kwargs:
|
2372
|
+
raise ValueError(
|
2373
|
+
f"list_scheduler_jobs got unknown kwargs: {extra_kwargs!r}")
|
2374
|
+
|
2375
|
+
if 'lifecycle_state' in kwargs:
|
2376
|
+
lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED"]
|
2377
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
2378
|
+
raise ValueError(
|
2379
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
2380
|
+
)
|
2381
|
+
|
2382
|
+
if 'sort_order' in kwargs:
|
2383
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2384
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2385
|
+
raise ValueError(
|
2386
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2387
|
+
)
|
2388
|
+
|
2389
|
+
if 'sort_by' in kwargs:
|
2390
|
+
sort_by_allowed_values = ["timeCreated", "timeScheduled", "displayName"]
|
2391
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2392
|
+
raise ValueError(
|
2393
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2394
|
+
)
|
2395
|
+
|
2396
|
+
query_params = {
|
2397
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
2398
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
2399
|
+
"fleetId": kwargs.get("fleet_id", missing),
|
2400
|
+
"timeScheduledGreaterThanOrEqualTo": kwargs.get("time_scheduled_greater_than_or_equal_to", missing),
|
2401
|
+
"timeScheduledLessThan": kwargs.get("time_scheduled_less_than", missing),
|
2402
|
+
"isRemediationJobNeeded": kwargs.get("is_remediation_job_needed", missing),
|
2403
|
+
"subState": kwargs.get("sub_state", missing),
|
2404
|
+
"displayName": kwargs.get("display_name", missing),
|
2405
|
+
"id": kwargs.get("id", missing),
|
2406
|
+
"defintionId": kwargs.get("defintion_id", missing),
|
2407
|
+
"limit": kwargs.get("limit", missing),
|
2408
|
+
"page": kwargs.get("page", missing),
|
2409
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2410
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2411
|
+
}
|
2412
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2413
|
+
|
2414
|
+
header_params = {
|
2415
|
+
"accept": "application/json",
|
2416
|
+
"content-type": "application/json",
|
2417
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2418
|
+
}
|
2419
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2420
|
+
|
2421
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2422
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2423
|
+
client_retry_strategy=self.retry_strategy
|
2424
|
+
)
|
2425
|
+
if retry_strategy is None:
|
2426
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2427
|
+
|
2428
|
+
if retry_strategy:
|
2429
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2430
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2431
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2432
|
+
return retry_strategy.make_retrying_call(
|
2433
|
+
self.base_client.call_api,
|
2434
|
+
resource_path=resource_path,
|
2435
|
+
method=method,
|
2436
|
+
query_params=query_params,
|
2437
|
+
header_params=header_params,
|
2438
|
+
response_type="SchedulerJobCollection",
|
820
2439
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
821
2440
|
operation_name=operation_name,
|
822
2441
|
api_reference_link=api_reference_link,
|
@@ -825,17 +2444,17 @@ class FleetAppsManagementOperationsClient(object):
|
|
825
2444
|
return self.base_client.call_api(
|
826
2445
|
resource_path=resource_path,
|
827
2446
|
method=method,
|
828
|
-
|
2447
|
+
query_params=query_params,
|
829
2448
|
header_params=header_params,
|
830
|
-
response_type="
|
2449
|
+
response_type="SchedulerJobCollection",
|
831
2450
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
832
2451
|
operation_name=operation_name,
|
833
2452
|
api_reference_link=api_reference_link,
|
834
2453
|
required_arguments=required_arguments)
|
835
2454
|
|
836
|
-
def
|
2455
|
+
def list_steps(self, scheduler_job_id, job_activity_id, **kwargs):
|
837
2456
|
"""
|
838
|
-
Returns a list of
|
2457
|
+
Returns a list of Steps for an Activity Execution.
|
839
2458
|
|
840
2459
|
|
841
2460
|
:param str scheduler_job_id: (required)
|
@@ -844,9 +2463,6 @@ class FleetAppsManagementOperationsClient(object):
|
|
844
2463
|
:param str job_activity_id: (required)
|
845
2464
|
unique jobActivity identifier
|
846
2465
|
|
847
|
-
:param str resource_id: (required)
|
848
|
-
unique Resource identifier
|
849
|
-
|
850
2466
|
:param str resource_task_id: (optional)
|
851
2467
|
Task Id
|
852
2468
|
|
@@ -890,18 +2506,18 @@ class FleetAppsManagementOperationsClient(object):
|
|
890
2506
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
891
2507
|
By default, the response will not allow control characters in strings
|
892
2508
|
|
893
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.
|
2509
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.StepCollection`
|
894
2510
|
:rtype: :class:`~oci.response.Response`
|
895
2511
|
|
896
2512
|
:example:
|
897
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2513
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/list_steps.py.html>`__ to see an example of how to use list_steps API.
|
898
2514
|
"""
|
899
2515
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
900
|
-
required_arguments = ['schedulerJobId', 'jobActivityId'
|
901
|
-
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/
|
2516
|
+
required_arguments = ['schedulerJobId', 'jobActivityId']
|
2517
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/steps"
|
902
2518
|
method = "GET"
|
903
|
-
operation_name = "
|
904
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
2519
|
+
operation_name = "list_steps"
|
2520
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/StepCollection/ListSteps"
|
905
2521
|
|
906
2522
|
# Don't accept unknown kwargs
|
907
2523
|
expected_kwargs = [
|
@@ -920,12 +2536,156 @@ class FleetAppsManagementOperationsClient(object):
|
|
920
2536
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
921
2537
|
if extra_kwargs:
|
922
2538
|
raise ValueError(
|
923
|
-
f"
|
2539
|
+
f"list_steps got unknown kwargs: {extra_kwargs!r}")
|
924
2540
|
|
925
2541
|
path_params = {
|
926
2542
|
"schedulerJobId": scheduler_job_id,
|
927
|
-
"jobActivityId": job_activity_id
|
928
|
-
|
2543
|
+
"jobActivityId": job_activity_id
|
2544
|
+
}
|
2545
|
+
|
2546
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2547
|
+
|
2548
|
+
for (k, v) in six.iteritems(path_params):
|
2549
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2550
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2551
|
+
|
2552
|
+
if 'sort_order' in kwargs:
|
2553
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2554
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2555
|
+
raise ValueError(
|
2556
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2557
|
+
)
|
2558
|
+
|
2559
|
+
if 'sort_by' in kwargs:
|
2560
|
+
sort_by_allowed_values = ["timeStarted"]
|
2561
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2562
|
+
raise ValueError(
|
2563
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2564
|
+
)
|
2565
|
+
|
2566
|
+
query_params = {
|
2567
|
+
"resourceTaskId": kwargs.get("resource_task_id", missing),
|
2568
|
+
"stepName": kwargs.get("step_name", missing),
|
2569
|
+
"targetName": kwargs.get("target_name", missing),
|
2570
|
+
"sequence": kwargs.get("sequence", missing),
|
2571
|
+
"limit": kwargs.get("limit", missing),
|
2572
|
+
"page": kwargs.get("page", missing),
|
2573
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2574
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2575
|
+
}
|
2576
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2577
|
+
|
2578
|
+
header_params = {
|
2579
|
+
"accept": "application/json",
|
2580
|
+
"content-type": "application/json",
|
2581
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2582
|
+
}
|
2583
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2584
|
+
|
2585
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2586
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2587
|
+
client_retry_strategy=self.retry_strategy
|
2588
|
+
)
|
2589
|
+
if retry_strategy is None:
|
2590
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2591
|
+
|
2592
|
+
if retry_strategy:
|
2593
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2594
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2595
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2596
|
+
return retry_strategy.make_retrying_call(
|
2597
|
+
self.base_client.call_api,
|
2598
|
+
resource_path=resource_path,
|
2599
|
+
method=method,
|
2600
|
+
path_params=path_params,
|
2601
|
+
query_params=query_params,
|
2602
|
+
header_params=header_params,
|
2603
|
+
response_type="StepCollection",
|
2604
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2605
|
+
operation_name=operation_name,
|
2606
|
+
api_reference_link=api_reference_link,
|
2607
|
+
required_arguments=required_arguments)
|
2608
|
+
else:
|
2609
|
+
return self.base_client.call_api(
|
2610
|
+
resource_path=resource_path,
|
2611
|
+
method=method,
|
2612
|
+
path_params=path_params,
|
2613
|
+
query_params=query_params,
|
2614
|
+
header_params=header_params,
|
2615
|
+
response_type="StepCollection",
|
2616
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2617
|
+
operation_name=operation_name,
|
2618
|
+
api_reference_link=api_reference_link,
|
2619
|
+
required_arguments=required_arguments)
|
2620
|
+
|
2621
|
+
def manage_job_execution(self, manage_job_execution_details, scheduler_job_id, **kwargs):
|
2622
|
+
"""
|
2623
|
+
Manage execution actions for a Job like retrying or pausing a task.
|
2624
|
+
|
2625
|
+
|
2626
|
+
:param oci.fleet_apps_management.models.ManageJobExecutionDetails manage_job_execution_details: (required)
|
2627
|
+
Details for confirming Targets.
|
2628
|
+
|
2629
|
+
:param str scheduler_job_id: (required)
|
2630
|
+
unique SchedulerJob identifier
|
2631
|
+
|
2632
|
+
:param str opc_retry_token: (optional)
|
2633
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2634
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
2635
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2636
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
2637
|
+
might be rejected.
|
2638
|
+
|
2639
|
+
:param str if_match: (optional)
|
2640
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2641
|
+
for a resource, set the `if-match` parameter to the value of the
|
2642
|
+
etag from a previous GET or POST response for that resource.
|
2643
|
+
The resource will be updated or deleted only if the etag you
|
2644
|
+
provide matches the resource's current etag value.
|
2645
|
+
|
2646
|
+
:param str opc_request_id: (optional)
|
2647
|
+
The client request ID for tracing.
|
2648
|
+
|
2649
|
+
:param obj retry_strategy: (optional)
|
2650
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2651
|
+
|
2652
|
+
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.
|
2653
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2654
|
+
|
2655
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2656
|
+
|
2657
|
+
:param bool allow_control_chars: (optional)
|
2658
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2659
|
+
By default, the response will not allow control characters in strings
|
2660
|
+
|
2661
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2662
|
+
:rtype: :class:`~oci.response.Response`
|
2663
|
+
|
2664
|
+
:example:
|
2665
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/manage_job_execution.py.html>`__ to see an example of how to use manage_job_execution API.
|
2666
|
+
"""
|
2667
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2668
|
+
required_arguments = ['schedulerJobId']
|
2669
|
+
resource_path = "/schedulerJobs/{schedulerJobId}/actions/manageJobExecution"
|
2670
|
+
method = "POST"
|
2671
|
+
operation_name = "manage_job_execution"
|
2672
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerJob/ManageJobExecution"
|
2673
|
+
|
2674
|
+
# Don't accept unknown kwargs
|
2675
|
+
expected_kwargs = [
|
2676
|
+
"allow_control_chars",
|
2677
|
+
"retry_strategy",
|
2678
|
+
"opc_retry_token",
|
2679
|
+
"if_match",
|
2680
|
+
"opc_request_id"
|
2681
|
+
]
|
2682
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2683
|
+
if extra_kwargs:
|
2684
|
+
raise ValueError(
|
2685
|
+
f"manage_job_execution got unknown kwargs: {extra_kwargs!r}")
|
2686
|
+
|
2687
|
+
path_params = {
|
2688
|
+
"schedulerJobId": scheduler_job_id
|
929
2689
|
}
|
930
2690
|
|
931
2691
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -934,6 +2694,112 @@ class FleetAppsManagementOperationsClient(object):
|
|
934
2694
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
935
2695
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
936
2696
|
|
2697
|
+
header_params = {
|
2698
|
+
"accept": "application/json",
|
2699
|
+
"content-type": "application/json",
|
2700
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
2701
|
+
"if-match": kwargs.get("if_match", missing),
|
2702
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2703
|
+
}
|
2704
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2705
|
+
|
2706
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2707
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2708
|
+
client_retry_strategy=self.retry_strategy
|
2709
|
+
)
|
2710
|
+
if retry_strategy is None:
|
2711
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2712
|
+
|
2713
|
+
if retry_strategy:
|
2714
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2715
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2716
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2717
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2718
|
+
return retry_strategy.make_retrying_call(
|
2719
|
+
self.base_client.call_api,
|
2720
|
+
resource_path=resource_path,
|
2721
|
+
method=method,
|
2722
|
+
path_params=path_params,
|
2723
|
+
header_params=header_params,
|
2724
|
+
body=manage_job_execution_details,
|
2725
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2726
|
+
operation_name=operation_name,
|
2727
|
+
api_reference_link=api_reference_link,
|
2728
|
+
required_arguments=required_arguments)
|
2729
|
+
else:
|
2730
|
+
return self.base_client.call_api(
|
2731
|
+
resource_path=resource_path,
|
2732
|
+
method=method,
|
2733
|
+
path_params=path_params,
|
2734
|
+
header_params=header_params,
|
2735
|
+
body=manage_job_execution_details,
|
2736
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2737
|
+
operation_name=operation_name,
|
2738
|
+
api_reference_link=api_reference_link,
|
2739
|
+
required_arguments=required_arguments)
|
2740
|
+
|
2741
|
+
def summarize_compliance_record_counts(self, **kwargs):
|
2742
|
+
"""
|
2743
|
+
Retrieve aggregated summary information of ComplianceRecords within a Tenancy.
|
2744
|
+
|
2745
|
+
|
2746
|
+
:param str compartment_id: (optional)
|
2747
|
+
The ID of the compartment in which to list resources.
|
2748
|
+
|
2749
|
+
:param str opc_request_id: (optional)
|
2750
|
+
The client request ID for tracing.
|
2751
|
+
|
2752
|
+
:param int limit: (optional)
|
2753
|
+
The maximum number of items to return.
|
2754
|
+
|
2755
|
+
:param str page: (optional)
|
2756
|
+
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.
|
2757
|
+
|
2758
|
+
:param str sort_order: (optional)
|
2759
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2760
|
+
|
2761
|
+
Allowed values are: "ASC", "DESC"
|
2762
|
+
|
2763
|
+
:param obj retry_strategy: (optional)
|
2764
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2765
|
+
|
2766
|
+
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.
|
2767
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2768
|
+
|
2769
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2770
|
+
|
2771
|
+
:param bool allow_control_chars: (optional)
|
2772
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2773
|
+
By default, the response will not allow control characters in strings
|
2774
|
+
|
2775
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ComplianceRecordAggregationCollection`
|
2776
|
+
:rtype: :class:`~oci.response.Response`
|
2777
|
+
|
2778
|
+
:example:
|
2779
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/summarize_compliance_record_counts.py.html>`__ to see an example of how to use summarize_compliance_record_counts API.
|
2780
|
+
"""
|
2781
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2782
|
+
required_arguments = []
|
2783
|
+
resource_path = "/complianceRecordCounts"
|
2784
|
+
method = "GET"
|
2785
|
+
operation_name = "summarize_compliance_record_counts"
|
2786
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ComplianceRecordAggregationCollection/SummarizeComplianceRecordCounts"
|
2787
|
+
|
2788
|
+
# Don't accept unknown kwargs
|
2789
|
+
expected_kwargs = [
|
2790
|
+
"allow_control_chars",
|
2791
|
+
"retry_strategy",
|
2792
|
+
"compartment_id",
|
2793
|
+
"opc_request_id",
|
2794
|
+
"limit",
|
2795
|
+
"page",
|
2796
|
+
"sort_order"
|
2797
|
+
]
|
2798
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2799
|
+
if extra_kwargs:
|
2800
|
+
raise ValueError(
|
2801
|
+
f"summarize_compliance_record_counts got unknown kwargs: {extra_kwargs!r}")
|
2802
|
+
|
937
2803
|
if 'sort_order' in kwargs:
|
938
2804
|
sort_order_allowed_values = ["ASC", "DESC"]
|
939
2805
|
if kwargs['sort_order'] not in sort_order_allowed_values:
|
@@ -941,22 +2807,11 @@ class FleetAppsManagementOperationsClient(object):
|
|
941
2807
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
942
2808
|
)
|
943
2809
|
|
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
2810
|
query_params = {
|
952
|
-
"
|
953
|
-
"stepName": kwargs.get("step_name", missing),
|
954
|
-
"targetName": kwargs.get("target_name", missing),
|
955
|
-
"sequence": kwargs.get("sequence", missing),
|
2811
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
956
2812
|
"limit": kwargs.get("limit", missing),
|
957
2813
|
"page": kwargs.get("page", missing),
|
958
|
-
"sortOrder": kwargs.get("sort_order", missing)
|
959
|
-
"sortBy": kwargs.get("sort_by", missing)
|
2814
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
960
2815
|
}
|
961
2816
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
962
2817
|
|
@@ -982,10 +2837,9 @@ class FleetAppsManagementOperationsClient(object):
|
|
982
2837
|
self.base_client.call_api,
|
983
2838
|
resource_path=resource_path,
|
984
2839
|
method=method,
|
985
|
-
path_params=path_params,
|
986
2840
|
query_params=query_params,
|
987
2841
|
header_params=header_params,
|
988
|
-
response_type="
|
2842
|
+
response_type="ComplianceRecordAggregationCollection",
|
989
2843
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
990
2844
|
operation_name=operation_name,
|
991
2845
|
api_reference_link=api_reference_link,
|
@@ -994,28 +2848,24 @@ class FleetAppsManagementOperationsClient(object):
|
|
994
2848
|
return self.base_client.call_api(
|
995
2849
|
resource_path=resource_path,
|
996
2850
|
method=method,
|
997
|
-
path_params=path_params,
|
998
2851
|
query_params=query_params,
|
999
2852
|
header_params=header_params,
|
1000
|
-
response_type="
|
2853
|
+
response_type="ComplianceRecordAggregationCollection",
|
1001
2854
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1002
2855
|
operation_name=operation_name,
|
1003
2856
|
api_reference_link=api_reference_link,
|
1004
2857
|
required_arguments=required_arguments)
|
1005
2858
|
|
1006
|
-
def
|
2859
|
+
def summarize_managed_entity_counts(self, **kwargs):
|
1007
2860
|
"""
|
1008
|
-
|
1009
|
-
|
2861
|
+
Retrieve aggregated summary information of Managed Entities within a Tenancy.
|
1010
2862
|
|
1011
|
-
:param str scheduler_definition_id: (required)
|
1012
|
-
unique SchedulerDefinition identifier
|
1013
2863
|
|
1014
2864
|
:param str compartment_id: (optional)
|
1015
2865
|
The ID of the compartment in which to list resources.
|
1016
2866
|
|
1017
|
-
:param str
|
1018
|
-
|
2867
|
+
:param str opc_request_id: (optional)
|
2868
|
+
The client request ID for tracing.
|
1019
2869
|
|
1020
2870
|
:param int limit: (optional)
|
1021
2871
|
The maximum number of items to return.
|
@@ -1028,14 +2878,6 @@ class FleetAppsManagementOperationsClient(object):
|
|
1028
2878
|
|
1029
2879
|
Allowed values are: "ASC", "DESC"
|
1030
2880
|
|
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
2881
|
:param obj retry_strategy: (optional)
|
1040
2882
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1041
2883
|
|
@@ -1048,45 +2890,33 @@ class FleetAppsManagementOperationsClient(object):
|
|
1048
2890
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1049
2891
|
By default, the response will not allow control characters in strings
|
1050
2892
|
|
1051
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.
|
2893
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.ManagedEntityAggregationCollection`
|
1052
2894
|
:rtype: :class:`~oci.response.Response`
|
1053
2895
|
|
1054
2896
|
:example:
|
1055
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2897
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/summarize_managed_entity_counts.py.html>`__ to see an example of how to use summarize_managed_entity_counts API.
|
1056
2898
|
"""
|
1057
2899
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1058
|
-
required_arguments = [
|
1059
|
-
resource_path = "/
|
2900
|
+
required_arguments = []
|
2901
|
+
resource_path = "/managedEntityCounts"
|
1060
2902
|
method = "GET"
|
1061
|
-
operation_name = "
|
1062
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
2903
|
+
operation_name = "summarize_managed_entity_counts"
|
2904
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/ManagedEntityAggregationCollection/SummarizeManagedEntityCounts"
|
1063
2905
|
|
1064
2906
|
# Don't accept unknown kwargs
|
1065
2907
|
expected_kwargs = [
|
1066
2908
|
"allow_control_chars",
|
1067
2909
|
"retry_strategy",
|
1068
2910
|
"compartment_id",
|
1069
|
-
"
|
2911
|
+
"opc_request_id",
|
1070
2912
|
"limit",
|
1071
2913
|
"page",
|
1072
|
-
"sort_order"
|
1073
|
-
"sort_by",
|
1074
|
-
"opc_request_id"
|
2914
|
+
"sort_order"
|
1075
2915
|
]
|
1076
2916
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1077
2917
|
if extra_kwargs:
|
1078
2918
|
raise ValueError(
|
1079
|
-
f"
|
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')
|
2919
|
+
f"summarize_managed_entity_counts got unknown kwargs: {extra_kwargs!r}")
|
1090
2920
|
|
1091
2921
|
if 'sort_order' in kwargs:
|
1092
2922
|
sort_order_allowed_values = ["ASC", "DESC"]
|
@@ -1095,20 +2925,11 @@ class FleetAppsManagementOperationsClient(object):
|
|
1095
2925
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1096
2926
|
)
|
1097
2927
|
|
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
2928
|
query_params = {
|
1106
2929
|
"compartmentId": kwargs.get("compartment_id", missing),
|
1107
|
-
"displayName": kwargs.get("display_name", missing),
|
1108
2930
|
"limit": kwargs.get("limit", missing),
|
1109
2931
|
"page": kwargs.get("page", missing),
|
1110
|
-
"sortOrder": kwargs.get("sort_order", missing)
|
1111
|
-
"sortBy": kwargs.get("sort_by", missing)
|
2932
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
1112
2933
|
}
|
1113
2934
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1114
2935
|
|
@@ -1134,10 +2955,9 @@ class FleetAppsManagementOperationsClient(object):
|
|
1134
2955
|
self.base_client.call_api,
|
1135
2956
|
resource_path=resource_path,
|
1136
2957
|
method=method,
|
1137
|
-
path_params=path_params,
|
1138
2958
|
query_params=query_params,
|
1139
2959
|
header_params=header_params,
|
1140
|
-
response_type="
|
2960
|
+
response_type="ManagedEntityAggregationCollection",
|
1141
2961
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1142
2962
|
operation_name=operation_name,
|
1143
2963
|
api_reference_link=api_reference_link,
|
@@ -1146,42 +2966,24 @@ class FleetAppsManagementOperationsClient(object):
|
|
1146
2966
|
return self.base_client.call_api(
|
1147
2967
|
resource_path=resource_path,
|
1148
2968
|
method=method,
|
1149
|
-
path_params=path_params,
|
1150
2969
|
query_params=query_params,
|
1151
2970
|
header_params=header_params,
|
1152
|
-
response_type="
|
2971
|
+
response_type="ManagedEntityAggregationCollection",
|
1153
2972
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1154
2973
|
operation_name=operation_name,
|
1155
2974
|
api_reference_link=api_reference_link,
|
1156
2975
|
required_arguments=required_arguments)
|
1157
2976
|
|
1158
|
-
def
|
2977
|
+
def summarize_scheduler_job_counts(self, **kwargs):
|
1159
2978
|
"""
|
1160
|
-
|
2979
|
+
Retrieve aggregated summary information of Scheduler Jobs within a Tenancy.
|
1161
2980
|
|
1162
2981
|
|
1163
2982
|
:param str compartment_id: (optional)
|
1164
2983
|
The ID of the compartment in which to list resources.
|
1165
2984
|
|
1166
|
-
:param str
|
1167
|
-
|
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
|
2985
|
+
:param str opc_request_id: (optional)
|
2986
|
+
The client request ID for tracing.
|
1185
2987
|
|
1186
2988
|
:param int limit: (optional)
|
1187
2989
|
The maximum number of items to return.
|
@@ -1194,14 +2996,6 @@ class FleetAppsManagementOperationsClient(object):
|
|
1194
2996
|
|
1195
2997
|
Allowed values are: "ASC", "DESC"
|
1196
2998
|
|
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
2999
|
:param obj retry_strategy: (optional)
|
1206
3000
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1207
3001
|
|
@@ -1214,47 +3008,33 @@ class FleetAppsManagementOperationsClient(object):
|
|
1214
3008
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1215
3009
|
By default, the response will not allow control characters in strings
|
1216
3010
|
|
1217
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.
|
3011
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.SchedulerJobAggregationCollection`
|
1218
3012
|
:rtype: :class:`~oci.response.Response`
|
1219
3013
|
|
1220
3014
|
:example:
|
1221
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3015
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/summarize_scheduler_job_counts.py.html>`__ to see an example of how to use summarize_scheduler_job_counts API.
|
1222
3016
|
"""
|
1223
3017
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1224
3018
|
required_arguments = []
|
1225
|
-
resource_path = "/
|
3019
|
+
resource_path = "/schedulerJobCounts"
|
1226
3020
|
method = "GET"
|
1227
|
-
operation_name = "
|
1228
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
3021
|
+
operation_name = "summarize_scheduler_job_counts"
|
3022
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/SchedulerJobAggregationCollection/SummarizeSchedulerJobCounts"
|
1229
3023
|
|
1230
3024
|
# Don't accept unknown kwargs
|
1231
3025
|
expected_kwargs = [
|
1232
3026
|
"allow_control_chars",
|
1233
3027
|
"retry_strategy",
|
1234
3028
|
"compartment_id",
|
1235
|
-
"
|
1236
|
-
"display_name",
|
1237
|
-
"product",
|
1238
|
-
"id",
|
1239
|
-
"maintenance_window_id",
|
1240
|
-
"fleet_id",
|
3029
|
+
"opc_request_id",
|
1241
3030
|
"limit",
|
1242
3031
|
"page",
|
1243
|
-
"sort_order"
|
1244
|
-
"sort_by",
|
1245
|
-
"opc_request_id"
|
3032
|
+
"sort_order"
|
1246
3033
|
]
|
1247
3034
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1248
3035
|
if extra_kwargs:
|
1249
3036
|
raise ValueError(
|
1250
|
-
f"
|
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
|
-
)
|
3037
|
+
f"summarize_scheduler_job_counts got unknown kwargs: {extra_kwargs!r}")
|
1258
3038
|
|
1259
3039
|
if 'sort_order' in kwargs:
|
1260
3040
|
sort_order_allowed_values = ["ASC", "DESC"]
|
@@ -1263,25 +3043,11 @@ class FleetAppsManagementOperationsClient(object):
|
|
1263
3043
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1264
3044
|
)
|
1265
3045
|
|
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
3046
|
query_params = {
|
1274
3047
|
"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
3048
|
"limit": kwargs.get("limit", missing),
|
1282
3049
|
"page": kwargs.get("page", missing),
|
1283
|
-
"sortOrder": kwargs.get("sort_order", missing)
|
1284
|
-
"sortBy": kwargs.get("sort_by", missing)
|
3050
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
1285
3051
|
}
|
1286
3052
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1287
3053
|
|
@@ -1309,7 +3075,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
1309
3075
|
method=method,
|
1310
3076
|
query_params=query_params,
|
1311
3077
|
header_params=header_params,
|
1312
|
-
response_type="
|
3078
|
+
response_type="SchedulerJobAggregationCollection",
|
1313
3079
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1314
3080
|
operation_name=operation_name,
|
1315
3081
|
api_reference_link=api_reference_link,
|
@@ -1320,61 +3086,29 @@ class FleetAppsManagementOperationsClient(object):
|
|
1320
3086
|
method=method,
|
1321
3087
|
query_params=query_params,
|
1322
3088
|
header_params=header_params,
|
1323
|
-
response_type="
|
3089
|
+
response_type="SchedulerJobAggregationCollection",
|
1324
3090
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1325
3091
|
operation_name=operation_name,
|
1326
3092
|
api_reference_link=api_reference_link,
|
1327
3093
|
required_arguments=required_arguments)
|
1328
3094
|
|
1329
|
-
def
|
3095
|
+
def update_patch(self, patch_id, update_patch_details, **kwargs):
|
1330
3096
|
"""
|
1331
|
-
|
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.
|
3097
|
+
Updates the Patch
|
1356
3098
|
|
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
3099
|
|
1366
|
-
:param str
|
1367
|
-
|
1368
|
-
|
1369
|
-
:param str sort_order: (optional)
|
1370
|
-
The sort order to use, either 'ASC' or 'DESC'.
|
1371
|
-
|
1372
|
-
Allowed values are: "ASC", "DESC"
|
3100
|
+
:param str patch_id: (required)
|
3101
|
+
unique Patch identifier
|
1373
3102
|
|
1374
|
-
:param
|
1375
|
-
The
|
3103
|
+
:param oci.fleet_apps_management.models.UpdatePatchDetails update_patch_details: (required)
|
3104
|
+
The information to be updated.
|
1376
3105
|
|
1377
|
-
|
3106
|
+
:param str if_match: (optional)
|
3107
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
3108
|
+
for a resource, set the `if-match` parameter to the value of the
|
3109
|
+
etag from a previous GET or POST response for that resource.
|
3110
|
+
The resource will be updated or deleted only if the etag you
|
3111
|
+
provide matches the resource's current etag value.
|
1378
3112
|
|
1379
3113
|
:param str opc_request_id: (optional)
|
1380
3114
|
The client request ID for tracing.
|
@@ -1391,84 +3125,45 @@ class FleetAppsManagementOperationsClient(object):
|
|
1391
3125
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1392
3126
|
By default, the response will not allow control characters in strings
|
1393
3127
|
|
1394
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
3128
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1395
3129
|
:rtype: :class:`~oci.response.Response`
|
1396
3130
|
|
1397
3131
|
:example:
|
1398
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3132
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/update_patch.py.html>`__ to see an example of how to use update_patch API.
|
1399
3133
|
"""
|
1400
3134
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1401
|
-
required_arguments = []
|
1402
|
-
resource_path = "/
|
1403
|
-
method = "
|
1404
|
-
operation_name = "
|
1405
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/
|
3135
|
+
required_arguments = ['patchId']
|
3136
|
+
resource_path = "/patches/{patchId}"
|
3137
|
+
method = "PUT"
|
3138
|
+
operation_name = "update_patch"
|
3139
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Patch/UpdatePatch"
|
1406
3140
|
|
1407
3141
|
# Don't accept unknown kwargs
|
1408
3142
|
expected_kwargs = [
|
1409
3143
|
"allow_control_chars",
|
1410
3144
|
"retry_strategy",
|
1411
|
-
"
|
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",
|
3145
|
+
"if_match",
|
1424
3146
|
"opc_request_id"
|
1425
3147
|
]
|
1426
3148
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1427
3149
|
if extra_kwargs:
|
1428
3150
|
raise ValueError(
|
1429
|
-
f"
|
3151
|
+
f"update_patch got unknown kwargs: {extra_kwargs!r}")
|
1430
3152
|
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
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
|
-
)
|
3153
|
+
path_params = {
|
3154
|
+
"patchId": patch_id
|
3155
|
+
}
|
1444
3156
|
|
1445
|
-
|
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
|
-
)
|
3157
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1451
3158
|
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
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}
|
3159
|
+
for (k, v) in six.iteritems(path_params):
|
3160
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3161
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1468
3162
|
|
1469
3163
|
header_params = {
|
1470
3164
|
"accept": "application/json",
|
1471
3165
|
"content-type": "application/json",
|
3166
|
+
"if-match": kwargs.get("if_match", missing),
|
1472
3167
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1473
3168
|
}
|
1474
3169
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -1488,9 +3183,9 @@ class FleetAppsManagementOperationsClient(object):
|
|
1488
3183
|
self.base_client.call_api,
|
1489
3184
|
resource_path=resource_path,
|
1490
3185
|
method=method,
|
1491
|
-
|
3186
|
+
path_params=path_params,
|
1492
3187
|
header_params=header_params,
|
1493
|
-
|
3188
|
+
body=update_patch_details,
|
1494
3189
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1495
3190
|
operation_name=operation_name,
|
1496
3191
|
api_reference_link=api_reference_link,
|
@@ -1499,9 +3194,9 @@ class FleetAppsManagementOperationsClient(object):
|
|
1499
3194
|
return self.base_client.call_api(
|
1500
3195
|
resource_path=resource_path,
|
1501
3196
|
method=method,
|
1502
|
-
|
3197
|
+
path_params=path_params,
|
1503
3198
|
header_params=header_params,
|
1504
|
-
|
3199
|
+
body=update_patch_details,
|
1505
3200
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1506
3201
|
operation_name=operation_name,
|
1507
3202
|
api_reference_link=api_reference_link,
|
@@ -1509,7 +3204,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
1509
3204
|
|
1510
3205
|
def update_scheduler_definition(self, scheduler_definition_id, update_scheduler_definition_details, **kwargs):
|
1511
3206
|
"""
|
1512
|
-
|
3207
|
+
Update the details of a SchedulerDefinition that performs lifecycle management operations.
|
1513
3208
|
|
1514
3209
|
|
1515
3210
|
:param str scheduler_definition_id: (required)
|
@@ -1544,7 +3239,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
1544
3239
|
:rtype: :class:`~oci.response.Response`
|
1545
3240
|
|
1546
3241
|
:example:
|
1547
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3242
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/update_scheduler_definition.py.html>`__ to see an example of how to use update_scheduler_definition API.
|
1548
3243
|
"""
|
1549
3244
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1550
3245
|
required_arguments = ['schedulerDefinitionId']
|
@@ -1619,7 +3314,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
1619
3314
|
|
1620
3315
|
def update_scheduler_job(self, scheduler_job_id, update_scheduler_job_details, **kwargs):
|
1621
3316
|
"""
|
1622
|
-
|
3317
|
+
Update a lifecycle operation job schedule in Fleet Application Management.
|
1623
3318
|
|
1624
3319
|
|
1625
3320
|
:param str scheduler_job_id: (required)
|
@@ -1654,7 +3349,7 @@ class FleetAppsManagementOperationsClient(object):
|
|
1654
3349
|
:rtype: :class:`~oci.response.Response`
|
1655
3350
|
|
1656
3351
|
:example:
|
1657
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3352
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.1/fleetappsmanagement/update_scheduler_job.py.html>`__ to see an example of how to use update_scheduler_job API.
|
1658
3353
|
"""
|
1659
3354
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1660
3355
|
required_arguments = ['schedulerJobId']
|