oci 2.136.0__py3-none-any.whl → 2.137.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/_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_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/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/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 +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/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.0.dist-info}/METADATA +1 -1
- {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/RECORD +613 -493
- 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.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/WHEEL +0 -0
- {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/top_level.txt +0 -0
@@ -25,36 +25,39 @@ class FileStorageClientCompositeOperations(object):
|
|
25
25
|
"""
|
26
26
|
self.client = client
|
27
27
|
|
28
|
-
def
|
28
|
+
def add_export_lock_and_wait_for_state(self, export_id, add_export_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
29
|
"""
|
30
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
30
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.add_export_lock` and waits for the :py:class:`~oci.file_storage.models.Export` acted upon
|
31
31
|
to enter the given state(s).
|
32
32
|
|
33
|
-
:param str
|
34
|
-
The `OCID`__ of the
|
33
|
+
:param str export_id: (required)
|
34
|
+
The `OCID`__ of the export.
|
35
35
|
|
36
36
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
37
37
|
|
38
|
+
:param oci.file_storage.models.ResourceLock add_export_lock_details: (required)
|
39
|
+
The details to be updated for the AddLock.
|
40
|
+
|
38
41
|
:param list[str] wait_for_states:
|
39
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
42
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Export.lifecycle_state`
|
40
43
|
|
41
44
|
:param dict operation_kwargs:
|
42
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
45
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.add_export_lock`
|
43
46
|
|
44
47
|
:param dict waiter_kwargs:
|
45
48
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
46
49
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
47
50
|
"""
|
48
|
-
operation_result = self.client.
|
51
|
+
operation_result = self.client.add_export_lock(export_id, add_export_lock_details, **operation_kwargs)
|
49
52
|
if not wait_for_states:
|
50
53
|
return operation_result
|
51
54
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
52
|
-
|
55
|
+
export_id = operation_result.data.id
|
53
56
|
|
54
57
|
try:
|
55
58
|
waiter_result = oci.wait_until(
|
56
59
|
self.client,
|
57
|
-
self.client.
|
60
|
+
self.client.get_export(export_id), # noqa: F821
|
58
61
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
59
62
|
**waiter_kwargs
|
60
63
|
)
|
@@ -69,34 +72,39 @@ class FileStorageClientCompositeOperations(object):
|
|
69
72
|
except Exception as e:
|
70
73
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
71
74
|
|
72
|
-
def
|
75
|
+
def add_file_system_lock_and_wait_for_state(self, file_system_id, add_file_system_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
73
76
|
"""
|
74
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
77
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.add_file_system_lock` and waits for the :py:class:`~oci.file_storage.models.FileSystem` acted upon
|
75
78
|
to enter the given state(s).
|
76
79
|
|
77
|
-
:param
|
78
|
-
|
80
|
+
:param str file_system_id: (required)
|
81
|
+
The `OCID`__ of the file system.
|
82
|
+
|
83
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
84
|
+
|
85
|
+
:param oci.file_storage.models.ResourceLock add_file_system_lock_details: (required)
|
86
|
+
The details to be updated for the AddLock.
|
79
87
|
|
80
88
|
:param list[str] wait_for_states:
|
81
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
89
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FileSystem.lifecycle_state`
|
82
90
|
|
83
91
|
:param dict operation_kwargs:
|
84
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
92
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.add_file_system_lock`
|
85
93
|
|
86
94
|
:param dict waiter_kwargs:
|
87
95
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
88
96
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
89
97
|
"""
|
90
|
-
operation_result = self.client.
|
98
|
+
operation_result = self.client.add_file_system_lock(file_system_id, add_file_system_lock_details, **operation_kwargs)
|
91
99
|
if not wait_for_states:
|
92
100
|
return operation_result
|
93
101
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
94
|
-
|
102
|
+
file_system_id = operation_result.data.id
|
95
103
|
|
96
104
|
try:
|
97
105
|
waiter_result = oci.wait_until(
|
98
106
|
self.client,
|
99
|
-
self.client.
|
107
|
+
self.client.get_file_system(file_system_id), # noqa: F821
|
100
108
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
101
109
|
**waiter_kwargs
|
102
110
|
)
|
@@ -111,34 +119,39 @@ class FileStorageClientCompositeOperations(object):
|
|
111
119
|
except Exception as e:
|
112
120
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
113
121
|
|
114
|
-
def
|
122
|
+
def add_filesystem_snapshot_policy_lock_and_wait_for_state(self, filesystem_snapshot_policy_id, add_filesystem_snapshot_policy_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
115
123
|
"""
|
116
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
124
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.add_filesystem_snapshot_policy_lock` and waits for the :py:class:`~oci.file_storage.models.FilesystemSnapshotPolicy` acted upon
|
117
125
|
to enter the given state(s).
|
118
126
|
|
119
|
-
:param
|
120
|
-
|
127
|
+
:param str filesystem_snapshot_policy_id: (required)
|
128
|
+
The `OCID`__ of the file system snapshot policy.
|
129
|
+
|
130
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
131
|
+
|
132
|
+
:param oci.file_storage.models.ResourceLock add_filesystem_snapshot_policy_lock_details: (required)
|
133
|
+
The details to be updated for the AddLock.
|
121
134
|
|
122
135
|
:param list[str] wait_for_states:
|
123
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
136
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FilesystemSnapshotPolicy.lifecycle_state`
|
124
137
|
|
125
138
|
:param dict operation_kwargs:
|
126
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
139
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.add_filesystem_snapshot_policy_lock`
|
127
140
|
|
128
141
|
:param dict waiter_kwargs:
|
129
142
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
130
143
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
131
144
|
"""
|
132
|
-
operation_result = self.client.
|
145
|
+
operation_result = self.client.add_filesystem_snapshot_policy_lock(filesystem_snapshot_policy_id, add_filesystem_snapshot_policy_lock_details, **operation_kwargs)
|
133
146
|
if not wait_for_states:
|
134
147
|
return operation_result
|
135
148
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
136
|
-
|
149
|
+
filesystem_snapshot_policy_id = operation_result.data.id
|
137
150
|
|
138
151
|
try:
|
139
152
|
waiter_result = oci.wait_until(
|
140
153
|
self.client,
|
141
|
-
self.client.
|
154
|
+
self.client.get_filesystem_snapshot_policy(filesystem_snapshot_policy_id), # noqa: F821
|
142
155
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
143
156
|
**waiter_kwargs
|
144
157
|
)
|
@@ -153,34 +166,39 @@ class FileStorageClientCompositeOperations(object):
|
|
153
166
|
except Exception as e:
|
154
167
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
155
168
|
|
156
|
-
def
|
169
|
+
def add_mount_target_lock_and_wait_for_state(self, mount_target_id, add_mount_target_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
157
170
|
"""
|
158
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
171
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.add_mount_target_lock` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon
|
159
172
|
to enter the given state(s).
|
160
173
|
|
161
|
-
:param
|
162
|
-
|
174
|
+
:param str mount_target_id: (required)
|
175
|
+
The `OCID`__ of the mount target.
|
176
|
+
|
177
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
178
|
+
|
179
|
+
:param oci.file_storage.models.ResourceLock add_mount_target_lock_details: (required)
|
180
|
+
The details to be updated for the AddLock.
|
163
181
|
|
164
182
|
:param list[str] wait_for_states:
|
165
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
183
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state`
|
166
184
|
|
167
185
|
:param dict operation_kwargs:
|
168
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
186
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.add_mount_target_lock`
|
169
187
|
|
170
188
|
:param dict waiter_kwargs:
|
171
189
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
172
190
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
173
191
|
"""
|
174
|
-
operation_result = self.client.
|
192
|
+
operation_result = self.client.add_mount_target_lock(mount_target_id, add_mount_target_lock_details, **operation_kwargs)
|
175
193
|
if not wait_for_states:
|
176
194
|
return operation_result
|
177
195
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
178
|
-
|
196
|
+
mount_target_id = operation_result.data.id
|
179
197
|
|
180
198
|
try:
|
181
199
|
waiter_result = oci.wait_until(
|
182
200
|
self.client,
|
183
|
-
self.client.
|
201
|
+
self.client.get_mount_target(mount_target_id), # noqa: F821
|
184
202
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
185
203
|
**waiter_kwargs
|
186
204
|
)
|
@@ -195,34 +213,39 @@ class FileStorageClientCompositeOperations(object):
|
|
195
213
|
except Exception as e:
|
196
214
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
197
215
|
|
198
|
-
def
|
216
|
+
def add_outbound_connector_lock_and_wait_for_state(self, outbound_connector_id, add_outbound_connector_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
199
217
|
"""
|
200
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
218
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.add_outbound_connector_lock` and waits for the :py:class:`~oci.file_storage.models.OutboundConnector` acted upon
|
201
219
|
to enter the given state(s).
|
202
220
|
|
203
|
-
:param
|
204
|
-
|
221
|
+
:param str outbound_connector_id: (required)
|
222
|
+
The `OCID`__ of the outbound connector.
|
223
|
+
|
224
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
225
|
+
|
226
|
+
:param oci.file_storage.models.ResourceLock add_outbound_connector_lock_details: (required)
|
227
|
+
The details to be updated for the AddLock.
|
205
228
|
|
206
229
|
:param list[str] wait_for_states:
|
207
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
230
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.OutboundConnector.lifecycle_state`
|
208
231
|
|
209
232
|
:param dict operation_kwargs:
|
210
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
233
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.add_outbound_connector_lock`
|
211
234
|
|
212
235
|
:param dict waiter_kwargs:
|
213
236
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
214
237
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
215
238
|
"""
|
216
|
-
operation_result = self.client.
|
239
|
+
operation_result = self.client.add_outbound_connector_lock(outbound_connector_id, add_outbound_connector_lock_details, **operation_kwargs)
|
217
240
|
if not wait_for_states:
|
218
241
|
return operation_result
|
219
242
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
220
|
-
|
243
|
+
outbound_connector_id = operation_result.data.id
|
221
244
|
|
222
245
|
try:
|
223
246
|
waiter_result = oci.wait_until(
|
224
247
|
self.client,
|
225
|
-
self.client.
|
248
|
+
self.client.get_outbound_connector(outbound_connector_id), # noqa: F821
|
226
249
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
227
250
|
**waiter_kwargs
|
228
251
|
)
|
@@ -237,34 +260,39 @@ class FileStorageClientCompositeOperations(object):
|
|
237
260
|
except Exception as e:
|
238
261
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
239
262
|
|
240
|
-
def
|
263
|
+
def add_replication_lock_and_wait_for_state(self, replication_id, add_replication_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
241
264
|
"""
|
242
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
265
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.add_replication_lock` and waits for the :py:class:`~oci.file_storage.models.Replication` acted upon
|
243
266
|
to enter the given state(s).
|
244
267
|
|
245
|
-
:param
|
246
|
-
|
268
|
+
:param str replication_id: (required)
|
269
|
+
The `OCID`__ of the replication.
|
270
|
+
|
271
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
272
|
+
|
273
|
+
:param oci.file_storage.models.ResourceLock add_replication_lock_details: (required)
|
274
|
+
The details to be updated for the AddLock.
|
247
275
|
|
248
276
|
:param list[str] wait_for_states:
|
249
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
277
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Replication.lifecycle_state`
|
250
278
|
|
251
279
|
:param dict operation_kwargs:
|
252
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
280
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.add_replication_lock`
|
253
281
|
|
254
282
|
:param dict waiter_kwargs:
|
255
283
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
256
284
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
257
285
|
"""
|
258
|
-
operation_result = self.client.
|
286
|
+
operation_result = self.client.add_replication_lock(replication_id, add_replication_lock_details, **operation_kwargs)
|
259
287
|
if not wait_for_states:
|
260
288
|
return operation_result
|
261
289
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
262
|
-
|
290
|
+
replication_id = operation_result.data.id
|
263
291
|
|
264
292
|
try:
|
265
293
|
waiter_result = oci.wait_until(
|
266
294
|
self.client,
|
267
|
-
self.client.
|
295
|
+
self.client.get_replication(replication_id), # noqa: F821
|
268
296
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
269
297
|
**waiter_kwargs
|
270
298
|
)
|
@@ -279,34 +307,39 @@ class FileStorageClientCompositeOperations(object):
|
|
279
307
|
except Exception as e:
|
280
308
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
281
309
|
|
282
|
-
def
|
310
|
+
def add_snapshot_lock_and_wait_for_state(self, snapshot_id, add_snapshot_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
283
311
|
"""
|
284
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
312
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.add_snapshot_lock` and waits for the :py:class:`~oci.file_storage.models.Snapshot` acted upon
|
285
313
|
to enter the given state(s).
|
286
314
|
|
287
|
-
:param
|
288
|
-
|
315
|
+
:param str snapshot_id: (required)
|
316
|
+
The `OCID`__ of the snapshot.
|
317
|
+
|
318
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
319
|
+
|
320
|
+
:param oci.file_storage.models.ResourceLock add_snapshot_lock_details: (required)
|
321
|
+
The details to be updated for the AddLock.
|
289
322
|
|
290
323
|
:param list[str] wait_for_states:
|
291
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
324
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Snapshot.lifecycle_state`
|
292
325
|
|
293
326
|
:param dict operation_kwargs:
|
294
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
327
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.add_snapshot_lock`
|
295
328
|
|
296
329
|
:param dict waiter_kwargs:
|
297
330
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
298
331
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
299
332
|
"""
|
300
|
-
operation_result = self.client.
|
333
|
+
operation_result = self.client.add_snapshot_lock(snapshot_id, add_snapshot_lock_details, **operation_kwargs)
|
301
334
|
if not wait_for_states:
|
302
335
|
return operation_result
|
303
336
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
304
|
-
|
337
|
+
snapshot_id = operation_result.data.id
|
305
338
|
|
306
339
|
try:
|
307
340
|
waiter_result = oci.wait_until(
|
308
341
|
self.client,
|
309
|
-
self.client.
|
342
|
+
self.client.get_snapshot(snapshot_id), # noqa: F821
|
310
343
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
311
344
|
**waiter_kwargs
|
312
345
|
)
|
@@ -321,34 +354,36 @@ class FileStorageClientCompositeOperations(object):
|
|
321
354
|
except Exception as e:
|
322
355
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
323
356
|
|
324
|
-
def
|
357
|
+
def cancel_downgrade_shape_mount_target_and_wait_for_state(self, mount_target_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
325
358
|
"""
|
326
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
359
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.cancel_downgrade_shape_mount_target` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon
|
327
360
|
to enter the given state(s).
|
328
361
|
|
329
|
-
:param
|
330
|
-
|
362
|
+
:param str mount_target_id: (required)
|
363
|
+
The `OCID`__ of the mount target.
|
364
|
+
|
365
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
331
366
|
|
332
367
|
:param list[str] wait_for_states:
|
333
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
368
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state`
|
334
369
|
|
335
370
|
:param dict operation_kwargs:
|
336
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
371
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.cancel_downgrade_shape_mount_target`
|
337
372
|
|
338
373
|
:param dict waiter_kwargs:
|
339
374
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
340
375
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
341
376
|
"""
|
342
|
-
operation_result = self.client.
|
377
|
+
operation_result = self.client.cancel_downgrade_shape_mount_target(mount_target_id, **operation_kwargs)
|
343
378
|
if not wait_for_states:
|
344
379
|
return operation_result
|
345
380
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
346
|
-
|
381
|
+
mount_target_id = operation_result.data.id
|
347
382
|
|
348
383
|
try:
|
349
384
|
waiter_result = oci.wait_until(
|
350
385
|
self.client,
|
351
|
-
self.client.
|
386
|
+
self.client.get_mount_target(mount_target_id), # noqa: F821
|
352
387
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
353
388
|
**waiter_kwargs
|
354
389
|
)
|
@@ -363,53 +398,34 @@ class FileStorageClientCompositeOperations(object):
|
|
363
398
|
except Exception as e:
|
364
399
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
365
400
|
|
366
|
-
def
|
401
|
+
def create_export_and_wait_for_state(self, create_export_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
367
402
|
"""
|
368
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
403
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.create_export` and waits for the :py:class:`~oci.file_storage.models.Export` acted upon
|
369
404
|
to enter the given state(s).
|
370
405
|
|
371
|
-
:param
|
372
|
-
|
373
|
-
|
374
|
-
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
406
|
+
:param oci.file_storage.models.CreateExportDetails create_export_details: (required)
|
407
|
+
Details for creating a new export.
|
375
408
|
|
376
409
|
:param list[str] wait_for_states:
|
377
410
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Export.lifecycle_state`
|
378
411
|
|
379
412
|
:param dict operation_kwargs:
|
380
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
413
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_export`
|
381
414
|
|
382
415
|
:param dict waiter_kwargs:
|
383
416
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
384
417
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
385
418
|
"""
|
386
|
-
|
387
|
-
operation_result = None
|
388
|
-
try:
|
389
|
-
operation_result = self.client.delete_export(export_id, **operation_kwargs)
|
390
|
-
except oci.exceptions.ServiceError as e:
|
391
|
-
if e.status == 404:
|
392
|
-
return WAIT_RESOURCE_NOT_FOUND
|
393
|
-
else:
|
394
|
-
raise e
|
395
|
-
|
419
|
+
operation_result = self.client.create_export(create_export_details, **operation_kwargs)
|
396
420
|
if not wait_for_states:
|
397
421
|
return operation_result
|
398
422
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
423
|
+
export_id = operation_result.data.id
|
399
424
|
|
400
425
|
try:
|
401
|
-
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
402
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_export, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
403
|
-
else:
|
404
|
-
"""
|
405
|
-
If the user does not send in this value, we set it to True by default.
|
406
|
-
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
407
|
-
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
408
|
-
"""
|
409
|
-
waiter_kwargs["succeed_on_not_found"] = True
|
410
426
|
waiter_result = oci.wait_until(
|
411
427
|
self.client,
|
412
|
-
|
428
|
+
self.client.get_export(export_id), # noqa: F821
|
413
429
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
414
430
|
**waiter_kwargs
|
415
431
|
)
|
@@ -424,53 +440,34 @@ class FileStorageClientCompositeOperations(object):
|
|
424
440
|
except Exception as e:
|
425
441
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
426
442
|
|
427
|
-
def
|
443
|
+
def create_file_system_and_wait_for_state(self, create_file_system_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
428
444
|
"""
|
429
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
445
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.create_file_system` and waits for the :py:class:`~oci.file_storage.models.FileSystem` acted upon
|
430
446
|
to enter the given state(s).
|
431
447
|
|
432
|
-
:param
|
433
|
-
|
434
|
-
|
435
|
-
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
448
|
+
:param oci.file_storage.models.CreateFileSystemDetails create_file_system_details: (required)
|
449
|
+
Details for creating a new file system.
|
436
450
|
|
437
451
|
:param list[str] wait_for_states:
|
438
452
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FileSystem.lifecycle_state`
|
439
453
|
|
440
454
|
:param dict operation_kwargs:
|
441
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
455
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_file_system`
|
442
456
|
|
443
457
|
:param dict waiter_kwargs:
|
444
458
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
445
459
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
446
460
|
"""
|
447
|
-
|
448
|
-
operation_result = None
|
449
|
-
try:
|
450
|
-
operation_result = self.client.delete_file_system(file_system_id, **operation_kwargs)
|
451
|
-
except oci.exceptions.ServiceError as e:
|
452
|
-
if e.status == 404:
|
453
|
-
return WAIT_RESOURCE_NOT_FOUND
|
454
|
-
else:
|
455
|
-
raise e
|
456
|
-
|
461
|
+
operation_result = self.client.create_file_system(create_file_system_details, **operation_kwargs)
|
457
462
|
if not wait_for_states:
|
458
463
|
return operation_result
|
459
464
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
465
|
+
file_system_id = operation_result.data.id
|
460
466
|
|
461
467
|
try:
|
462
|
-
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
463
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_file_system, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
464
|
-
else:
|
465
|
-
"""
|
466
|
-
If the user does not send in this value, we set it to True by default.
|
467
|
-
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
468
|
-
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
469
|
-
"""
|
470
|
-
waiter_kwargs["succeed_on_not_found"] = True
|
471
468
|
waiter_result = oci.wait_until(
|
472
469
|
self.client,
|
473
|
-
|
470
|
+
self.client.get_file_system(file_system_id), # noqa: F821
|
474
471
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
475
472
|
**waiter_kwargs
|
476
473
|
)
|
@@ -485,53 +482,34 @@ class FileStorageClientCompositeOperations(object):
|
|
485
482
|
except Exception as e:
|
486
483
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
487
484
|
|
488
|
-
def
|
485
|
+
def create_filesystem_snapshot_policy_and_wait_for_state(self, create_filesystem_snapshot_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
489
486
|
"""
|
490
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
487
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.create_filesystem_snapshot_policy` and waits for the :py:class:`~oci.file_storage.models.FilesystemSnapshotPolicy` acted upon
|
491
488
|
to enter the given state(s).
|
492
489
|
|
493
|
-
:param
|
494
|
-
|
495
|
-
|
496
|
-
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
490
|
+
:param oci.file_storage.models.CreateFilesystemSnapshotPolicyDetails create_filesystem_snapshot_policy_details: (required)
|
491
|
+
Details for creating a new file system snapshot policy.
|
497
492
|
|
498
493
|
:param list[str] wait_for_states:
|
499
494
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FilesystemSnapshotPolicy.lifecycle_state`
|
500
495
|
|
501
496
|
:param dict operation_kwargs:
|
502
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
497
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_filesystem_snapshot_policy`
|
503
498
|
|
504
499
|
:param dict waiter_kwargs:
|
505
500
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
506
501
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
507
502
|
"""
|
508
|
-
|
509
|
-
operation_result = None
|
510
|
-
try:
|
511
|
-
operation_result = self.client.delete_filesystem_snapshot_policy(filesystem_snapshot_policy_id, **operation_kwargs)
|
512
|
-
except oci.exceptions.ServiceError as e:
|
513
|
-
if e.status == 404:
|
514
|
-
return WAIT_RESOURCE_NOT_FOUND
|
515
|
-
else:
|
516
|
-
raise e
|
517
|
-
|
503
|
+
operation_result = self.client.create_filesystem_snapshot_policy(create_filesystem_snapshot_policy_details, **operation_kwargs)
|
518
504
|
if not wait_for_states:
|
519
505
|
return operation_result
|
520
506
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
507
|
+
filesystem_snapshot_policy_id = operation_result.data.id
|
521
508
|
|
522
509
|
try:
|
523
|
-
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
524
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_filesystem_snapshot_policy, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
525
|
-
else:
|
526
|
-
"""
|
527
|
-
If the user does not send in this value, we set it to True by default.
|
528
|
-
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
529
|
-
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
530
|
-
"""
|
531
|
-
waiter_kwargs["succeed_on_not_found"] = True
|
532
510
|
waiter_result = oci.wait_until(
|
533
511
|
self.client,
|
534
|
-
|
512
|
+
self.client.get_filesystem_snapshot_policy(filesystem_snapshot_policy_id), # noqa: F821
|
535
513
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
536
514
|
**waiter_kwargs
|
537
515
|
)
|
@@ -546,53 +524,76 @@ class FileStorageClientCompositeOperations(object):
|
|
546
524
|
except Exception as e:
|
547
525
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
548
526
|
|
549
|
-
def
|
527
|
+
def create_mount_target_and_wait_for_state(self, create_mount_target_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
550
528
|
"""
|
551
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
529
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.create_mount_target` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon
|
552
530
|
to enter the given state(s).
|
553
531
|
|
554
|
-
:param
|
555
|
-
|
556
|
-
|
557
|
-
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
532
|
+
:param oci.file_storage.models.CreateMountTargetDetails create_mount_target_details: (required)
|
533
|
+
Details for creating a new mount target.
|
558
534
|
|
559
535
|
:param list[str] wait_for_states:
|
560
536
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state`
|
561
537
|
|
562
538
|
:param dict operation_kwargs:
|
563
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
539
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_mount_target`
|
564
540
|
|
565
541
|
:param dict waiter_kwargs:
|
566
542
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
567
543
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
568
544
|
"""
|
569
|
-
|
570
|
-
|
545
|
+
operation_result = self.client.create_mount_target(create_mount_target_details, **operation_kwargs)
|
546
|
+
if not wait_for_states:
|
547
|
+
return operation_result
|
548
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
549
|
+
mount_target_id = operation_result.data.id
|
550
|
+
|
571
551
|
try:
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
552
|
+
waiter_result = oci.wait_until(
|
553
|
+
self.client,
|
554
|
+
self.client.get_mount_target(mount_target_id), # noqa: F821
|
555
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
556
|
+
**waiter_kwargs
|
557
|
+
)
|
558
|
+
result_to_return = waiter_result
|
559
|
+
|
560
|
+
return result_to_return
|
561
|
+
except (NameError, TypeError) as e:
|
562
|
+
if not e.args:
|
563
|
+
e.args = ('',)
|
564
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
565
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
566
|
+
except Exception as e:
|
567
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
568
|
+
|
569
|
+
def create_outbound_connector_and_wait_for_state(self, create_outbound_connector_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
570
|
+
"""
|
571
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.create_outbound_connector` and waits for the :py:class:`~oci.file_storage.models.OutboundConnector` acted upon
|
572
|
+
to enter the given state(s).
|
573
|
+
|
574
|
+
:param oci.file_storage.models.CreateOutboundConnectorDetails create_outbound_connector_details: (required)
|
575
|
+
Details for creating a new outbound connector.
|
576
|
+
|
577
|
+
:param list[str] wait_for_states:
|
578
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.OutboundConnector.lifecycle_state`
|
579
|
+
|
580
|
+
:param dict operation_kwargs:
|
581
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_outbound_connector`
|
578
582
|
|
583
|
+
:param dict waiter_kwargs:
|
584
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
585
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
586
|
+
"""
|
587
|
+
operation_result = self.client.create_outbound_connector(create_outbound_connector_details, **operation_kwargs)
|
579
588
|
if not wait_for_states:
|
580
589
|
return operation_result
|
581
590
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
591
|
+
outbound_connector_id = operation_result.data.id
|
582
592
|
|
583
593
|
try:
|
584
|
-
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
585
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_mount_target, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
586
|
-
else:
|
587
|
-
"""
|
588
|
-
If the user does not send in this value, we set it to True by default.
|
589
|
-
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
590
|
-
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
591
|
-
"""
|
592
|
-
waiter_kwargs["succeed_on_not_found"] = True
|
593
594
|
waiter_result = oci.wait_until(
|
594
595
|
self.client,
|
595
|
-
|
596
|
+
self.client.get_outbound_connector(outbound_connector_id), # noqa: F821
|
596
597
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
597
598
|
**waiter_kwargs
|
598
599
|
)
|
@@ -607,30 +608,114 @@ class FileStorageClientCompositeOperations(object):
|
|
607
608
|
except Exception as e:
|
608
609
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
609
610
|
|
610
|
-
def
|
611
|
+
def create_replication_and_wait_for_state(self, create_replication_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
611
612
|
"""
|
612
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
613
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.create_replication` and waits for the :py:class:`~oci.file_storage.models.Replication` acted upon
|
613
614
|
to enter the given state(s).
|
614
615
|
|
615
|
-
:param
|
616
|
-
|
616
|
+
:param oci.file_storage.models.CreateReplicationDetails create_replication_details: (required)
|
617
|
+
Details for creating a new replication.
|
618
|
+
|
619
|
+
:param list[str] wait_for_states:
|
620
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Replication.lifecycle_state`
|
621
|
+
|
622
|
+
:param dict operation_kwargs:
|
623
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_replication`
|
624
|
+
|
625
|
+
:param dict waiter_kwargs:
|
626
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
627
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
628
|
+
"""
|
629
|
+
operation_result = self.client.create_replication(create_replication_details, **operation_kwargs)
|
630
|
+
if not wait_for_states:
|
631
|
+
return operation_result
|
632
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
633
|
+
replication_id = operation_result.data.id
|
634
|
+
|
635
|
+
try:
|
636
|
+
waiter_result = oci.wait_until(
|
637
|
+
self.client,
|
638
|
+
self.client.get_replication(replication_id), # noqa: F821
|
639
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
640
|
+
**waiter_kwargs
|
641
|
+
)
|
642
|
+
result_to_return = waiter_result
|
643
|
+
|
644
|
+
return result_to_return
|
645
|
+
except (NameError, TypeError) as e:
|
646
|
+
if not e.args:
|
647
|
+
e.args = ('',)
|
648
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
649
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
650
|
+
except Exception as e:
|
651
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
652
|
+
|
653
|
+
def create_snapshot_and_wait_for_state(self, create_snapshot_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
654
|
+
"""
|
655
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.create_snapshot` and waits for the :py:class:`~oci.file_storage.models.Snapshot` acted upon
|
656
|
+
to enter the given state(s).
|
657
|
+
|
658
|
+
:param oci.file_storage.models.CreateSnapshotDetails create_snapshot_details: (required)
|
659
|
+
Details for creating a new snapshot.
|
660
|
+
|
661
|
+
:param list[str] wait_for_states:
|
662
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Snapshot.lifecycle_state`
|
663
|
+
|
664
|
+
:param dict operation_kwargs:
|
665
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_snapshot`
|
666
|
+
|
667
|
+
:param dict waiter_kwargs:
|
668
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
669
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
670
|
+
"""
|
671
|
+
operation_result = self.client.create_snapshot(create_snapshot_details, **operation_kwargs)
|
672
|
+
if not wait_for_states:
|
673
|
+
return operation_result
|
674
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
675
|
+
snapshot_id = operation_result.data.id
|
676
|
+
|
677
|
+
try:
|
678
|
+
waiter_result = oci.wait_until(
|
679
|
+
self.client,
|
680
|
+
self.client.get_snapshot(snapshot_id), # noqa: F821
|
681
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
682
|
+
**waiter_kwargs
|
683
|
+
)
|
684
|
+
result_to_return = waiter_result
|
685
|
+
|
686
|
+
return result_to_return
|
687
|
+
except (NameError, TypeError) as e:
|
688
|
+
if not e.args:
|
689
|
+
e.args = ('',)
|
690
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
691
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
692
|
+
except Exception as e:
|
693
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
694
|
+
|
695
|
+
def delete_export_and_wait_for_state(self, export_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
696
|
+
"""
|
697
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_export` and waits for the :py:class:`~oci.file_storage.models.Export` acted upon
|
698
|
+
to enter the given state(s).
|
699
|
+
|
700
|
+
:param str export_id: (required)
|
701
|
+
The `OCID`__ of the export.
|
617
702
|
|
618
703
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
619
704
|
|
620
705
|
:param list[str] wait_for_states:
|
621
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
706
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Export.lifecycle_state`
|
622
707
|
|
623
708
|
:param dict operation_kwargs:
|
624
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
709
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_export`
|
625
710
|
|
626
711
|
:param dict waiter_kwargs:
|
627
712
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
628
713
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
629
714
|
"""
|
630
|
-
initial_get_result = self.client.
|
715
|
+
initial_get_result = self.client.get_export(export_id)
|
631
716
|
operation_result = None
|
632
717
|
try:
|
633
|
-
operation_result = self.client.
|
718
|
+
operation_result = self.client.delete_export(export_id, **operation_kwargs)
|
634
719
|
except oci.exceptions.ServiceError as e:
|
635
720
|
if e.status == 404:
|
636
721
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -643,7 +728,7 @@ class FileStorageClientCompositeOperations(object):
|
|
643
728
|
|
644
729
|
try:
|
645
730
|
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
646
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation
|
731
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_export, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
647
732
|
else:
|
648
733
|
"""
|
649
734
|
If the user does not send in this value, we set it to True by default.
|
@@ -668,30 +753,30 @@ class FileStorageClientCompositeOperations(object):
|
|
668
753
|
except Exception as e:
|
669
754
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
670
755
|
|
671
|
-
def
|
756
|
+
def delete_file_system_and_wait_for_state(self, file_system_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
672
757
|
"""
|
673
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
758
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_file_system` and waits for the :py:class:`~oci.file_storage.models.FileSystem` acted upon
|
674
759
|
to enter the given state(s).
|
675
760
|
|
676
|
-
:param str
|
677
|
-
The `OCID`__ of the
|
761
|
+
:param str file_system_id: (required)
|
762
|
+
The `OCID`__ of the file system.
|
678
763
|
|
679
764
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
680
765
|
|
681
766
|
:param list[str] wait_for_states:
|
682
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
767
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FileSystem.lifecycle_state`
|
683
768
|
|
684
769
|
:param dict operation_kwargs:
|
685
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
770
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_file_system`
|
686
771
|
|
687
772
|
:param dict waiter_kwargs:
|
688
773
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
689
774
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
690
775
|
"""
|
691
|
-
initial_get_result = self.client.
|
776
|
+
initial_get_result = self.client.get_file_system(file_system_id)
|
692
777
|
operation_result = None
|
693
778
|
try:
|
694
|
-
operation_result = self.client.
|
779
|
+
operation_result = self.client.delete_file_system(file_system_id, **operation_kwargs)
|
695
780
|
except oci.exceptions.ServiceError as e:
|
696
781
|
if e.status == 404:
|
697
782
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -704,7 +789,7 @@ class FileStorageClientCompositeOperations(object):
|
|
704
789
|
|
705
790
|
try:
|
706
791
|
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
707
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation
|
792
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_file_system, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
708
793
|
else:
|
709
794
|
"""
|
710
795
|
If the user does not send in this value, we set it to True by default.
|
@@ -729,30 +814,30 @@ class FileStorageClientCompositeOperations(object):
|
|
729
814
|
except Exception as e:
|
730
815
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
731
816
|
|
732
|
-
def
|
817
|
+
def delete_filesystem_snapshot_policy_and_wait_for_state(self, filesystem_snapshot_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
733
818
|
"""
|
734
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
819
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_filesystem_snapshot_policy` and waits for the :py:class:`~oci.file_storage.models.FilesystemSnapshotPolicy` acted upon
|
735
820
|
to enter the given state(s).
|
736
821
|
|
737
|
-
:param str
|
738
|
-
The `OCID`__ of the
|
822
|
+
:param str filesystem_snapshot_policy_id: (required)
|
823
|
+
The `OCID`__ of the file system snapshot policy.
|
739
824
|
|
740
825
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
741
826
|
|
742
827
|
:param list[str] wait_for_states:
|
743
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
828
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FilesystemSnapshotPolicy.lifecycle_state`
|
744
829
|
|
745
830
|
:param dict operation_kwargs:
|
746
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
831
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_filesystem_snapshot_policy`
|
747
832
|
|
748
833
|
:param dict waiter_kwargs:
|
749
834
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
750
835
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
751
836
|
"""
|
752
|
-
initial_get_result = self.client.
|
837
|
+
initial_get_result = self.client.get_filesystem_snapshot_policy(filesystem_snapshot_policy_id)
|
753
838
|
operation_result = None
|
754
839
|
try:
|
755
|
-
operation_result = self.client.
|
840
|
+
operation_result = self.client.delete_filesystem_snapshot_policy(filesystem_snapshot_policy_id, **operation_kwargs)
|
756
841
|
except oci.exceptions.ServiceError as e:
|
757
842
|
if e.status == 404:
|
758
843
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -765,7 +850,7 @@ class FileStorageClientCompositeOperations(object):
|
|
765
850
|
|
766
851
|
try:
|
767
852
|
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
768
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation
|
853
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_filesystem_snapshot_policy, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
769
854
|
else:
|
770
855
|
"""
|
771
856
|
If the user does not send in this value, we set it to True by default.
|
@@ -790,30 +875,30 @@ class FileStorageClientCompositeOperations(object):
|
|
790
875
|
except Exception as e:
|
791
876
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
792
877
|
|
793
|
-
def
|
878
|
+
def delete_mount_target_and_wait_for_state(self, mount_target_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
794
879
|
"""
|
795
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
880
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_mount_target` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon
|
796
881
|
to enter the given state(s).
|
797
882
|
|
798
|
-
:param str
|
799
|
-
The `OCID`__ of the
|
883
|
+
:param str mount_target_id: (required)
|
884
|
+
The `OCID`__ of the mount target.
|
800
885
|
|
801
886
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
802
887
|
|
803
888
|
:param list[str] wait_for_states:
|
804
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
889
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state`
|
805
890
|
|
806
891
|
:param dict operation_kwargs:
|
807
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
892
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_mount_target`
|
808
893
|
|
809
894
|
:param dict waiter_kwargs:
|
810
895
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
811
896
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
812
897
|
"""
|
813
|
-
initial_get_result = self.client.
|
898
|
+
initial_get_result = self.client.get_mount_target(mount_target_id)
|
814
899
|
operation_result = None
|
815
900
|
try:
|
816
|
-
operation_result = self.client.
|
901
|
+
operation_result = self.client.delete_mount_target(mount_target_id, **operation_kwargs)
|
817
902
|
except oci.exceptions.ServiceError as e:
|
818
903
|
if e.status == 404:
|
819
904
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -826,7 +911,7 @@ class FileStorageClientCompositeOperations(object):
|
|
826
911
|
|
827
912
|
try:
|
828
913
|
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
829
|
-
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation
|
914
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_mount_target, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
830
915
|
else:
|
831
916
|
"""
|
832
917
|
If the user does not send in this value, we set it to True by default.
|
@@ -851,36 +936,609 @@ class FileStorageClientCompositeOperations(object):
|
|
851
936
|
except Exception as e:
|
852
937
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
853
938
|
|
854
|
-
def
|
939
|
+
def delete_outbound_connector_and_wait_for_state(self, outbound_connector_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
855
940
|
"""
|
856
|
-
Calls :py:func:`~oci.file_storage.FileStorageClient.
|
941
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_outbound_connector` and waits for the :py:class:`~oci.file_storage.models.OutboundConnector` acted upon
|
857
942
|
to enter the given state(s).
|
858
943
|
|
859
|
-
:param str
|
860
|
-
The `OCID`__ of the
|
944
|
+
:param str outbound_connector_id: (required)
|
945
|
+
The `OCID`__ of the outbound connector.
|
861
946
|
|
862
947
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
863
948
|
|
864
949
|
:param list[str] wait_for_states:
|
865
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.
|
950
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.OutboundConnector.lifecycle_state`
|
866
951
|
|
867
952
|
:param dict operation_kwargs:
|
868
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.
|
953
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_outbound_connector`
|
869
954
|
|
870
955
|
:param dict waiter_kwargs:
|
871
956
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
872
957
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
873
958
|
"""
|
874
|
-
|
959
|
+
initial_get_result = self.client.get_outbound_connector(outbound_connector_id)
|
960
|
+
operation_result = None
|
961
|
+
try:
|
962
|
+
operation_result = self.client.delete_outbound_connector(outbound_connector_id, **operation_kwargs)
|
963
|
+
except oci.exceptions.ServiceError as e:
|
964
|
+
if e.status == 404:
|
965
|
+
return WAIT_RESOURCE_NOT_FOUND
|
966
|
+
else:
|
967
|
+
raise e
|
968
|
+
|
875
969
|
if not wait_for_states:
|
876
970
|
return operation_result
|
877
971
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
878
|
-
filesystem_snapshot_policy_id = operation_result.data.id
|
879
972
|
|
880
973
|
try:
|
974
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
975
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_outbound_connector, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
976
|
+
else:
|
977
|
+
"""
|
978
|
+
If the user does not send in this value, we set it to True by default.
|
979
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
980
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
981
|
+
"""
|
982
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
881
983
|
waiter_result = oci.wait_until(
|
882
984
|
self.client,
|
883
|
-
|
985
|
+
initial_get_result, # noqa: F821
|
986
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
987
|
+
**waiter_kwargs
|
988
|
+
)
|
989
|
+
result_to_return = waiter_result
|
990
|
+
|
991
|
+
return result_to_return
|
992
|
+
except (NameError, TypeError) as e:
|
993
|
+
if not e.args:
|
994
|
+
e.args = ('',)
|
995
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
996
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
997
|
+
except Exception as e:
|
998
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
999
|
+
|
1000
|
+
def delete_replication_and_wait_for_state(self, replication_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1001
|
+
"""
|
1002
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_replication` and waits for the :py:class:`~oci.file_storage.models.Replication` acted upon
|
1003
|
+
to enter the given state(s).
|
1004
|
+
|
1005
|
+
:param str replication_id: (required)
|
1006
|
+
The `OCID`__ of the replication.
|
1007
|
+
|
1008
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1009
|
+
|
1010
|
+
:param list[str] wait_for_states:
|
1011
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Replication.lifecycle_state`
|
1012
|
+
|
1013
|
+
:param dict operation_kwargs:
|
1014
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_replication`
|
1015
|
+
|
1016
|
+
:param dict waiter_kwargs:
|
1017
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1018
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1019
|
+
"""
|
1020
|
+
initial_get_result = self.client.get_replication(replication_id)
|
1021
|
+
operation_result = None
|
1022
|
+
try:
|
1023
|
+
operation_result = self.client.delete_replication(replication_id, **operation_kwargs)
|
1024
|
+
except oci.exceptions.ServiceError as e:
|
1025
|
+
if e.status == 404:
|
1026
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1027
|
+
else:
|
1028
|
+
raise e
|
1029
|
+
|
1030
|
+
if not wait_for_states:
|
1031
|
+
return operation_result
|
1032
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1033
|
+
|
1034
|
+
try:
|
1035
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
1036
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_replication, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
1037
|
+
else:
|
1038
|
+
"""
|
1039
|
+
If the user does not send in this value, we set it to True by default.
|
1040
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
1041
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
1042
|
+
"""
|
1043
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
1044
|
+
waiter_result = oci.wait_until(
|
1045
|
+
self.client,
|
1046
|
+
initial_get_result, # noqa: F821
|
1047
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1048
|
+
**waiter_kwargs
|
1049
|
+
)
|
1050
|
+
result_to_return = waiter_result
|
1051
|
+
|
1052
|
+
return result_to_return
|
1053
|
+
except (NameError, TypeError) as e:
|
1054
|
+
if not e.args:
|
1055
|
+
e.args = ('',)
|
1056
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1057
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1058
|
+
except Exception as e:
|
1059
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1060
|
+
|
1061
|
+
def delete_replication_target_and_wait_for_state(self, replication_target_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1062
|
+
"""
|
1063
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_replication_target` and waits for the :py:class:`~oci.file_storage.models.ReplicationTarget` acted upon
|
1064
|
+
to enter the given state(s).
|
1065
|
+
|
1066
|
+
:param str replication_target_id: (required)
|
1067
|
+
The `OCID`__ of the replication target.
|
1068
|
+
|
1069
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1070
|
+
|
1071
|
+
:param list[str] wait_for_states:
|
1072
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.ReplicationTarget.lifecycle_state`
|
1073
|
+
|
1074
|
+
:param dict operation_kwargs:
|
1075
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_replication_target`
|
1076
|
+
|
1077
|
+
:param dict waiter_kwargs:
|
1078
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1079
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1080
|
+
"""
|
1081
|
+
initial_get_result = self.client.get_replication_target(replication_target_id)
|
1082
|
+
operation_result = None
|
1083
|
+
try:
|
1084
|
+
operation_result = self.client.delete_replication_target(replication_target_id, **operation_kwargs)
|
1085
|
+
except oci.exceptions.ServiceError as e:
|
1086
|
+
if e.status == 404:
|
1087
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1088
|
+
else:
|
1089
|
+
raise e
|
1090
|
+
|
1091
|
+
if not wait_for_states:
|
1092
|
+
return operation_result
|
1093
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1094
|
+
|
1095
|
+
try:
|
1096
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
1097
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_replication_target, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
1098
|
+
else:
|
1099
|
+
"""
|
1100
|
+
If the user does not send in this value, we set it to True by default.
|
1101
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
1102
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
1103
|
+
"""
|
1104
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
1105
|
+
waiter_result = oci.wait_until(
|
1106
|
+
self.client,
|
1107
|
+
initial_get_result, # noqa: F821
|
1108
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1109
|
+
**waiter_kwargs
|
1110
|
+
)
|
1111
|
+
result_to_return = waiter_result
|
1112
|
+
|
1113
|
+
return result_to_return
|
1114
|
+
except (NameError, TypeError) as e:
|
1115
|
+
if not e.args:
|
1116
|
+
e.args = ('',)
|
1117
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1118
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1119
|
+
except Exception as e:
|
1120
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1121
|
+
|
1122
|
+
def delete_snapshot_and_wait_for_state(self, snapshot_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1123
|
+
"""
|
1124
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.delete_snapshot` and waits for the :py:class:`~oci.file_storage.models.Snapshot` acted upon
|
1125
|
+
to enter the given state(s).
|
1126
|
+
|
1127
|
+
:param str snapshot_id: (required)
|
1128
|
+
The `OCID`__ of the snapshot.
|
1129
|
+
|
1130
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1131
|
+
|
1132
|
+
:param list[str] wait_for_states:
|
1133
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Snapshot.lifecycle_state`
|
1134
|
+
|
1135
|
+
:param dict operation_kwargs:
|
1136
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_snapshot`
|
1137
|
+
|
1138
|
+
:param dict waiter_kwargs:
|
1139
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1140
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1141
|
+
"""
|
1142
|
+
initial_get_result = self.client.get_snapshot(snapshot_id)
|
1143
|
+
operation_result = None
|
1144
|
+
try:
|
1145
|
+
operation_result = self.client.delete_snapshot(snapshot_id, **operation_kwargs)
|
1146
|
+
except oci.exceptions.ServiceError as e:
|
1147
|
+
if e.status == 404:
|
1148
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1149
|
+
else:
|
1150
|
+
raise e
|
1151
|
+
|
1152
|
+
if not wait_for_states:
|
1153
|
+
return operation_result
|
1154
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1155
|
+
|
1156
|
+
try:
|
1157
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
1158
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_snapshot, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
1159
|
+
else:
|
1160
|
+
"""
|
1161
|
+
If the user does not send in this value, we set it to True by default.
|
1162
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
1163
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
1164
|
+
"""
|
1165
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
1166
|
+
waiter_result = oci.wait_until(
|
1167
|
+
self.client,
|
1168
|
+
initial_get_result, # noqa: F821
|
1169
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1170
|
+
**waiter_kwargs
|
1171
|
+
)
|
1172
|
+
result_to_return = waiter_result
|
1173
|
+
|
1174
|
+
return result_to_return
|
1175
|
+
except (NameError, TypeError) as e:
|
1176
|
+
if not e.args:
|
1177
|
+
e.args = ('',)
|
1178
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1179
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1180
|
+
except Exception as e:
|
1181
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1182
|
+
|
1183
|
+
def pause_filesystem_snapshot_policy_and_wait_for_state(self, filesystem_snapshot_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1184
|
+
"""
|
1185
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.pause_filesystem_snapshot_policy` and waits for the :py:class:`~oci.file_storage.models.FilesystemSnapshotPolicy` acted upon
|
1186
|
+
to enter the given state(s).
|
1187
|
+
|
1188
|
+
:param str filesystem_snapshot_policy_id: (required)
|
1189
|
+
The `OCID`__ of the file system snapshot policy.
|
1190
|
+
|
1191
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1192
|
+
|
1193
|
+
:param list[str] wait_for_states:
|
1194
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FilesystemSnapshotPolicy.lifecycle_state`
|
1195
|
+
|
1196
|
+
:param dict operation_kwargs:
|
1197
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.pause_filesystem_snapshot_policy`
|
1198
|
+
|
1199
|
+
:param dict waiter_kwargs:
|
1200
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1201
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1202
|
+
"""
|
1203
|
+
operation_result = self.client.pause_filesystem_snapshot_policy(filesystem_snapshot_policy_id, **operation_kwargs)
|
1204
|
+
if not wait_for_states:
|
1205
|
+
return operation_result
|
1206
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1207
|
+
filesystem_snapshot_policy_id = operation_result.data.id
|
1208
|
+
|
1209
|
+
try:
|
1210
|
+
waiter_result = oci.wait_until(
|
1211
|
+
self.client,
|
1212
|
+
self.client.get_filesystem_snapshot_policy(filesystem_snapshot_policy_id), # noqa: F821
|
1213
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1214
|
+
**waiter_kwargs
|
1215
|
+
)
|
1216
|
+
result_to_return = waiter_result
|
1217
|
+
|
1218
|
+
return result_to_return
|
1219
|
+
except (NameError, TypeError) as e:
|
1220
|
+
if not e.args:
|
1221
|
+
e.args = ('',)
|
1222
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1223
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1224
|
+
except Exception as e:
|
1225
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1226
|
+
|
1227
|
+
def remove_export_lock_and_wait_for_state(self, export_id, remove_export_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1228
|
+
"""
|
1229
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.remove_export_lock` and waits for the :py:class:`~oci.file_storage.models.Export` acted upon
|
1230
|
+
to enter the given state(s).
|
1231
|
+
|
1232
|
+
:param str export_id: (required)
|
1233
|
+
The `OCID`__ of the export.
|
1234
|
+
|
1235
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1236
|
+
|
1237
|
+
:param oci.file_storage.models.ResourceLock remove_export_lock_details: (required)
|
1238
|
+
The details to be updated for the RemoveLock.
|
1239
|
+
|
1240
|
+
:param list[str] wait_for_states:
|
1241
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Export.lifecycle_state`
|
1242
|
+
|
1243
|
+
:param dict operation_kwargs:
|
1244
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.remove_export_lock`
|
1245
|
+
|
1246
|
+
:param dict waiter_kwargs:
|
1247
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1248
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1249
|
+
"""
|
1250
|
+
operation_result = self.client.remove_export_lock(export_id, remove_export_lock_details, **operation_kwargs)
|
1251
|
+
if not wait_for_states:
|
1252
|
+
return operation_result
|
1253
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1254
|
+
export_id = operation_result.data.id
|
1255
|
+
|
1256
|
+
try:
|
1257
|
+
waiter_result = oci.wait_until(
|
1258
|
+
self.client,
|
1259
|
+
self.client.get_export(export_id), # noqa: F821
|
1260
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1261
|
+
**waiter_kwargs
|
1262
|
+
)
|
1263
|
+
result_to_return = waiter_result
|
1264
|
+
|
1265
|
+
return result_to_return
|
1266
|
+
except (NameError, TypeError) as e:
|
1267
|
+
if not e.args:
|
1268
|
+
e.args = ('',)
|
1269
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1270
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1271
|
+
except Exception as e:
|
1272
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1273
|
+
|
1274
|
+
def remove_file_system_lock_and_wait_for_state(self, file_system_id, remove_file_system_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1275
|
+
"""
|
1276
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.remove_file_system_lock` and waits for the :py:class:`~oci.file_storage.models.FileSystem` acted upon
|
1277
|
+
to enter the given state(s).
|
1278
|
+
|
1279
|
+
:param str file_system_id: (required)
|
1280
|
+
The `OCID`__ of the file system.
|
1281
|
+
|
1282
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1283
|
+
|
1284
|
+
:param oci.file_storage.models.ResourceLock remove_file_system_lock_details: (required)
|
1285
|
+
The details to be updated for the RemoveLock.
|
1286
|
+
|
1287
|
+
:param list[str] wait_for_states:
|
1288
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FileSystem.lifecycle_state`
|
1289
|
+
|
1290
|
+
:param dict operation_kwargs:
|
1291
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.remove_file_system_lock`
|
1292
|
+
|
1293
|
+
:param dict waiter_kwargs:
|
1294
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1295
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1296
|
+
"""
|
1297
|
+
operation_result = self.client.remove_file_system_lock(file_system_id, remove_file_system_lock_details, **operation_kwargs)
|
1298
|
+
if not wait_for_states:
|
1299
|
+
return operation_result
|
1300
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1301
|
+
file_system_id = operation_result.data.id
|
1302
|
+
|
1303
|
+
try:
|
1304
|
+
waiter_result = oci.wait_until(
|
1305
|
+
self.client,
|
1306
|
+
self.client.get_file_system(file_system_id), # noqa: F821
|
1307
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1308
|
+
**waiter_kwargs
|
1309
|
+
)
|
1310
|
+
result_to_return = waiter_result
|
1311
|
+
|
1312
|
+
return result_to_return
|
1313
|
+
except (NameError, TypeError) as e:
|
1314
|
+
if not e.args:
|
1315
|
+
e.args = ('',)
|
1316
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1317
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1318
|
+
except Exception as e:
|
1319
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1320
|
+
|
1321
|
+
def remove_filesystem_snapshot_policy_lock_and_wait_for_state(self, filesystem_snapshot_policy_id, remove_filesystem_snapshot_policy_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1322
|
+
"""
|
1323
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.remove_filesystem_snapshot_policy_lock` and waits for the :py:class:`~oci.file_storage.models.FilesystemSnapshotPolicy` acted upon
|
1324
|
+
to enter the given state(s).
|
1325
|
+
|
1326
|
+
:param str filesystem_snapshot_policy_id: (required)
|
1327
|
+
The `OCID`__ of the file system snapshot policy.
|
1328
|
+
|
1329
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1330
|
+
|
1331
|
+
:param oci.file_storage.models.ResourceLock remove_filesystem_snapshot_policy_lock_details: (required)
|
1332
|
+
The details to be updated for the RemoveLock.
|
1333
|
+
|
1334
|
+
:param list[str] wait_for_states:
|
1335
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FilesystemSnapshotPolicy.lifecycle_state`
|
1336
|
+
|
1337
|
+
:param dict operation_kwargs:
|
1338
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.remove_filesystem_snapshot_policy_lock`
|
1339
|
+
|
1340
|
+
:param dict waiter_kwargs:
|
1341
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1342
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1343
|
+
"""
|
1344
|
+
operation_result = self.client.remove_filesystem_snapshot_policy_lock(filesystem_snapshot_policy_id, remove_filesystem_snapshot_policy_lock_details, **operation_kwargs)
|
1345
|
+
if not wait_for_states:
|
1346
|
+
return operation_result
|
1347
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1348
|
+
filesystem_snapshot_policy_id = operation_result.data.id
|
1349
|
+
|
1350
|
+
try:
|
1351
|
+
waiter_result = oci.wait_until(
|
1352
|
+
self.client,
|
1353
|
+
self.client.get_filesystem_snapshot_policy(filesystem_snapshot_policy_id), # noqa: F821
|
1354
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1355
|
+
**waiter_kwargs
|
1356
|
+
)
|
1357
|
+
result_to_return = waiter_result
|
1358
|
+
|
1359
|
+
return result_to_return
|
1360
|
+
except (NameError, TypeError) as e:
|
1361
|
+
if not e.args:
|
1362
|
+
e.args = ('',)
|
1363
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1364
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1365
|
+
except Exception as e:
|
1366
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1367
|
+
|
1368
|
+
def remove_mount_target_lock_and_wait_for_state(self, mount_target_id, remove_mount_target_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1369
|
+
"""
|
1370
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.remove_mount_target_lock` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon
|
1371
|
+
to enter the given state(s).
|
1372
|
+
|
1373
|
+
:param str mount_target_id: (required)
|
1374
|
+
The `OCID`__ of the mount target.
|
1375
|
+
|
1376
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1377
|
+
|
1378
|
+
:param oci.file_storage.models.ResourceLock remove_mount_target_lock_details: (required)
|
1379
|
+
The details to be updated for the RemoveLock.
|
1380
|
+
|
1381
|
+
:param list[str] wait_for_states:
|
1382
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state`
|
1383
|
+
|
1384
|
+
:param dict operation_kwargs:
|
1385
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.remove_mount_target_lock`
|
1386
|
+
|
1387
|
+
:param dict waiter_kwargs:
|
1388
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1389
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1390
|
+
"""
|
1391
|
+
operation_result = self.client.remove_mount_target_lock(mount_target_id, remove_mount_target_lock_details, **operation_kwargs)
|
1392
|
+
if not wait_for_states:
|
1393
|
+
return operation_result
|
1394
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1395
|
+
mount_target_id = operation_result.data.id
|
1396
|
+
|
1397
|
+
try:
|
1398
|
+
waiter_result = oci.wait_until(
|
1399
|
+
self.client,
|
1400
|
+
self.client.get_mount_target(mount_target_id), # noqa: F821
|
1401
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1402
|
+
**waiter_kwargs
|
1403
|
+
)
|
1404
|
+
result_to_return = waiter_result
|
1405
|
+
|
1406
|
+
return result_to_return
|
1407
|
+
except (NameError, TypeError) as e:
|
1408
|
+
if not e.args:
|
1409
|
+
e.args = ('',)
|
1410
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1411
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1412
|
+
except Exception as e:
|
1413
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1414
|
+
|
1415
|
+
def remove_outbound_connector_lock_and_wait_for_state(self, outbound_connector_id, remove_outbound_connector_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1416
|
+
"""
|
1417
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.remove_outbound_connector_lock` and waits for the :py:class:`~oci.file_storage.models.OutboundConnector` acted upon
|
1418
|
+
to enter the given state(s).
|
1419
|
+
|
1420
|
+
:param str outbound_connector_id: (required)
|
1421
|
+
The `OCID`__ of the outbound connector.
|
1422
|
+
|
1423
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1424
|
+
|
1425
|
+
:param oci.file_storage.models.ResourceLock remove_outbound_connector_lock_details: (required)
|
1426
|
+
The details to be updated for the RemoveLock.
|
1427
|
+
|
1428
|
+
:param list[str] wait_for_states:
|
1429
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.OutboundConnector.lifecycle_state`
|
1430
|
+
|
1431
|
+
:param dict operation_kwargs:
|
1432
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.remove_outbound_connector_lock`
|
1433
|
+
|
1434
|
+
:param dict waiter_kwargs:
|
1435
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1436
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1437
|
+
"""
|
1438
|
+
operation_result = self.client.remove_outbound_connector_lock(outbound_connector_id, remove_outbound_connector_lock_details, **operation_kwargs)
|
1439
|
+
if not wait_for_states:
|
1440
|
+
return operation_result
|
1441
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1442
|
+
outbound_connector_id = operation_result.data.id
|
1443
|
+
|
1444
|
+
try:
|
1445
|
+
waiter_result = oci.wait_until(
|
1446
|
+
self.client,
|
1447
|
+
self.client.get_outbound_connector(outbound_connector_id), # noqa: F821
|
1448
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1449
|
+
**waiter_kwargs
|
1450
|
+
)
|
1451
|
+
result_to_return = waiter_result
|
1452
|
+
|
1453
|
+
return result_to_return
|
1454
|
+
except (NameError, TypeError) as e:
|
1455
|
+
if not e.args:
|
1456
|
+
e.args = ('',)
|
1457
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1458
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1459
|
+
except Exception as e:
|
1460
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1461
|
+
|
1462
|
+
def remove_replication_lock_and_wait_for_state(self, replication_id, remove_replication_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1463
|
+
"""
|
1464
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.remove_replication_lock` and waits for the :py:class:`~oci.file_storage.models.Replication` acted upon
|
1465
|
+
to enter the given state(s).
|
1466
|
+
|
1467
|
+
:param str replication_id: (required)
|
1468
|
+
The `OCID`__ of the replication.
|
1469
|
+
|
1470
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1471
|
+
|
1472
|
+
:param oci.file_storage.models.ResourceLock remove_replication_lock_details: (required)
|
1473
|
+
The details to be updated for the RemoveLock.
|
1474
|
+
|
1475
|
+
:param list[str] wait_for_states:
|
1476
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Replication.lifecycle_state`
|
1477
|
+
|
1478
|
+
:param dict operation_kwargs:
|
1479
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.remove_replication_lock`
|
1480
|
+
|
1481
|
+
:param dict waiter_kwargs:
|
1482
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1483
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1484
|
+
"""
|
1485
|
+
operation_result = self.client.remove_replication_lock(replication_id, remove_replication_lock_details, **operation_kwargs)
|
1486
|
+
if not wait_for_states:
|
1487
|
+
return operation_result
|
1488
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1489
|
+
replication_id = operation_result.data.id
|
1490
|
+
|
1491
|
+
try:
|
1492
|
+
waiter_result = oci.wait_until(
|
1493
|
+
self.client,
|
1494
|
+
self.client.get_replication(replication_id), # noqa: F821
|
1495
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1496
|
+
**waiter_kwargs
|
1497
|
+
)
|
1498
|
+
result_to_return = waiter_result
|
1499
|
+
|
1500
|
+
return result_to_return
|
1501
|
+
except (NameError, TypeError) as e:
|
1502
|
+
if not e.args:
|
1503
|
+
e.args = ('',)
|
1504
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1505
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1506
|
+
except Exception as e:
|
1507
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1508
|
+
|
1509
|
+
def remove_snapshot_lock_and_wait_for_state(self, snapshot_id, remove_snapshot_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1510
|
+
"""
|
1511
|
+
Calls :py:func:`~oci.file_storage.FileStorageClient.remove_snapshot_lock` and waits for the :py:class:`~oci.file_storage.models.Snapshot` acted upon
|
1512
|
+
to enter the given state(s).
|
1513
|
+
|
1514
|
+
:param str snapshot_id: (required)
|
1515
|
+
The `OCID`__ of the snapshot.
|
1516
|
+
|
1517
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1518
|
+
|
1519
|
+
:param oci.file_storage.models.ResourceLock remove_snapshot_lock_details: (required)
|
1520
|
+
The details to be updated for the RemoveLock.
|
1521
|
+
|
1522
|
+
:param list[str] wait_for_states:
|
1523
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Snapshot.lifecycle_state`
|
1524
|
+
|
1525
|
+
:param dict operation_kwargs:
|
1526
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.remove_snapshot_lock`
|
1527
|
+
|
1528
|
+
:param dict waiter_kwargs:
|
1529
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1530
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1531
|
+
"""
|
1532
|
+
operation_result = self.client.remove_snapshot_lock(snapshot_id, remove_snapshot_lock_details, **operation_kwargs)
|
1533
|
+
if not wait_for_states:
|
1534
|
+
return operation_result
|
1535
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1536
|
+
snapshot_id = operation_result.data.id
|
1537
|
+
|
1538
|
+
try:
|
1539
|
+
waiter_result = oci.wait_until(
|
1540
|
+
self.client,
|
1541
|
+
self.client.get_snapshot(snapshot_id), # noqa: F821
|
884
1542
|
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
885
1543
|
**waiter_kwargs
|
886
1544
|
)
|