oci 2.100.0__py3-none-any.whl → 2.102.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/__init__.py +12 -0
- oci/access_governance_cp/access_governance_cp_client.py +999 -0
- oci/access_governance_cp/access_governance_cp_client_composite_operations.py +165 -0
- oci/access_governance_cp/models/__init__.py +30 -0
- oci/{data_connectivity/models/change_endpoint_compartment_details.py → access_governance_cp/models/change_governance_instance_compartment_details.py} +10 -10
- oci/access_governance_cp/models/create_governance_instance_details.py +349 -0
- oci/access_governance_cp/models/governance_instance.py +500 -0
- oci/{data_connectivity/models/work_request_summary_collection.py → access_governance_cp/models/governance_instance_collection.py} +14 -14
- oci/{data_connectivity/models/types_summary_collection.py → access_governance_cp/models/governance_instance_configuration.py} +20 -24
- oci/access_governance_cp/models/governance_instance_summary.py +469 -0
- oci/access_governance_cp/models/sender_config.py +194 -0
- oci/access_governance_cp/models/update_governance_instance_configuration_details.py +66 -0
- oci/access_governance_cp/models/update_governance_instance_details.py +223 -0
- oci/access_governance_cp/models/update_sender_config.py +163 -0
- oci/adm/application_dependency_management_client.py +18 -18
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +3 -3
- oci/ai_language/ai_service_language_client.py +35 -35
- oci/ai_speech/ai_service_speech_client.py +9 -9
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +18 -18
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +19 -19
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +30 -30
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +40 -40
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +7 -7
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- 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 +36 -36
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +89 -89
- oci/core/compute_management_client.py +145 -31
- oci/core/compute_management_client_composite_operations.py +45 -0
- oci/core/models/__init__.py +2 -0
- oci/core/models/instance_configuration_availability_config.py +35 -0
- oci/core/models/instance_configuration_block_volume_replica_details.py +107 -0
- oci/core/models/instance_configuration_create_volume_details.py +66 -0
- oci/core/models/instance_configuration_instance_source_via_image_details.py +31 -0
- oci/core/virtual_network_client.py +241 -241
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +139 -139
- oci/data_flow/data_flow_client.py +28 -28
- oci/data_integration/data_integration_client.py +152 -152
- oci/data_labeling_service/data_labeling_management_client.py +16 -16
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +214 -214
- oci/data_science/data_science_client.py +85 -85
- oci/database/database_client.py +1130 -340
- oci/database/database_client_composite_operations.py +203 -0
- oci/database/models/__init__.py +10 -0
- oci/database/models/change_disaster_recovery_configuration_details.py +64 -2
- oci/database/models/create_oneoff_patch_details.py +280 -0
- oci/database/models/db_backup_config.py +189 -0
- oci/database/models/disaster_recovery_configuration.py +64 -2
- oci/database/models/download_oneoff_patch.py +132 -0
- oci/database/models/oneoff_patch.py +580 -0
- oci/database/models/oneoff_patch_summary.py +586 -0
- oci/database/models/update_oneoff_patch_details.py +117 -0
- oci/database_management/db_management_client.py +157 -157
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/sql_tuning_client.py +10 -10
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +19 -19
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +51 -51
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +25 -25
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +35 -35
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +357 -36
- oci/fusion_apps/fusion_applications_client_composite_operations.py +90 -0
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/models/__init__.py +2 -12
- oci/fusion_apps/models/create_service_attachment_details.py +45 -52
- oci/fusion_apps/models/service_attachment.py +0 -31
- oci/fusion_apps/models/verify_service_attachment_details.py +101 -0
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/golden_gate/golden_gate_client.py +53 -53
- 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 +1 -1
- oci/identity_domains/identity_domains_client.py +134 -134
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +44 -44
- oci/key_management/kms_crypto_client.py +6 -6
- 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 +22 -22
- oci/log_analytics/log_analytics_client.py +184 -184
- oci/logging/logging_management_client.py +32 -32
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +23 -23
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +25 -25
- oci/media_services/media_services_client.py +48 -48
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +13 -13
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +26 -26
- 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 +17 -17
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +22 -22
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/ocvp/esxi_host_client.py +5 -5
- oci/ocvp/models/__init__.py +4 -0
- oci/ocvp/models/create_esxi_host_details.py +8 -6
- oci/ocvp/models/create_sddc_details.py +37 -2
- oci/ocvp/models/datastore_info.py +122 -0
- oci/ocvp/models/datastore_summary.py +152 -0
- oci/ocvp/models/esxi_host.py +2 -2
- oci/ocvp/models/esxi_host_summary.py +2 -2
- oci/ocvp/models/sddc.py +37 -6
- oci/ocvp/models/supported_host_shape_summary.py +33 -2
- oci/ocvp/sddc_client.py +21 -15
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +56 -56
- 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 +11 -11
- 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 +9 -9
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +6 -6
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +151 -151
- 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/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/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +7 -7
- oci/recovery/database_recovery_client.py +23 -23
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_cluster_client.py +7 -7
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +10 -10
- oci/rover/shape_client.py +1 -1
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +22 -22
- 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 +9 -9
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/rewards_client.py +6 -6
- oci/usage_api/usageapi_client.py +19 -19
- oci/vault/vaults_client.py +11 -11
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.100.0.dist-info → oci-2.102.0.dist-info}/METADATA +1 -1
- {oci-2.100.0.dist-info → oci-2.102.0.dist-info}/RECORD +256 -467
- oci/data_connectivity/__init__.py +0 -14
- oci/data_connectivity/data_connectivity_management_client.py +0 -7456
- oci/data_connectivity/data_connectivity_management_client_composite_operations.py +0 -394
- oci/data_connectivity/models/__init__.py +0 -464
- oci/data_connectivity/models/abstract_call_attribute.py +0 -108
- oci/data_connectivity/models/abstract_data_operation_config.py +0 -139
- oci/data_connectivity/models/abstract_format_attribute.py +0 -127
- oci/data_connectivity/models/abstract_operation_attributes.py +0 -99
- oci/data_connectivity/models/abstract_read_attribute.py +0 -116
- oci/data_connectivity/models/abstract_write_attribute.py +0 -132
- oci/data_connectivity/models/aggregator_summary.py +0 -194
- oci/data_connectivity/models/attach_data_asset_info.py +0 -70
- oci/data_connectivity/models/attribute.py +0 -256
- oci/data_connectivity/models/attribute_profile_result.py +0 -319
- oci/data_connectivity/models/avro_format_attribute.py +0 -80
- oci/data_connectivity/models/base_type.py +0 -313
- oci/data_connectivity/models/bicc_read_attributes.py +0 -217
- oci/data_connectivity/models/bip_call_attribute.py +0 -223
- oci/data_connectivity/models/call_operation_config.py +0 -159
- oci/data_connectivity/models/change_registry_compartment_details.py +0 -70
- oci/data_connectivity/models/column.py +0 -101
- oci/data_connectivity/models/composite_type.py +0 -176
- oci/data_connectivity/models/compression.py +0 -106
- oci/data_connectivity/models/config_definition.py +0 -283
- oci/data_connectivity/models/config_details.py +0 -70
- oci/data_connectivity/models/config_parameter_definition.py +0 -252
- oci/data_connectivity/models/config_parameter_value.py +0 -194
- oci/data_connectivity/models/config_values.py +0 -97
- oci/data_connectivity/models/configured_type.py +0 -172
- oci/data_connectivity/models/connection.py +0 -492
- oci/data_connectivity/models/connection_property.py +0 -101
- oci/data_connectivity/models/connection_summary.py +0 -492
- oci/data_connectivity/models/connection_summary_collection.py +0 -70
- oci/data_connectivity/models/connection_validation.py +0 -449
- oci/data_connectivity/models/connection_validation_summary.py +0 -449
- oci/data_connectivity/models/connection_validation_summary_collection.py +0 -70
- oci/data_connectivity/models/connectivity_usage.py +0 -118
- oci/data_connectivity/models/connectivity_usage_details.py +0 -132
- oci/data_connectivity/models/connectivity_validation.py +0 -194
- oci/data_connectivity/models/connector_attribute.py +0 -100
- oci/data_connectivity/models/create_attach_data_asset_details.py +0 -70
- oci/data_connectivity/models/create_connection_details.py +0 -492
- oci/data_connectivity/models/create_connection_validation_details.py +0 -120
- oci/data_connectivity/models/create_connectivity_validation_details.py +0 -472
- oci/data_connectivity/models/create_data_asset_details.py +0 -550
- oci/data_connectivity/models/create_data_preview_details.py +0 -174
- oci/data_connectivity/models/create_data_profile_details.py +0 -201
- oci/data_connectivity/models/create_de_reference_artifact_details.py +0 -70
- oci/data_connectivity/models/create_detach_data_asset_details.py +0 -70
- oci/data_connectivity/models/create_dp_endpoint_details.py +0 -383
- oci/data_connectivity/models/create_dp_endpoint_from_private.py +0 -346
- oci/data_connectivity/models/create_dp_endpoint_from_public.py +0 -112
- oci/data_connectivity/models/create_endpoint_details.py +0 -355
- oci/data_connectivity/models/create_entity_shape_details.py +0 -688
- oci/data_connectivity/models/create_entity_shape_from_data_store.py +0 -169
- oci/data_connectivity/models/create_entity_shape_from_file.py +0 -196
- oci/data_connectivity/models/create_entity_shape_from_message.py +0 -196
- oci/data_connectivity/models/create_entity_shape_from_sql.py +0 -200
- oci/data_connectivity/models/create_entity_shape_from_table.py +0 -169
- oci/data_connectivity/models/create_entity_shape_from_view.py +0 -169
- oci/data_connectivity/models/create_execute_operation_job_details.py +0 -124
- oci/data_connectivity/models/create_folder_details.py +0 -345
- oci/data_connectivity/models/create_full_push_down_task_details.py +0 -124
- oci/data_connectivity/models/create_reference_artifact_details.py +0 -70
- oci/data_connectivity/models/create_registry_details.py +0 -198
- oci/data_connectivity/models/create_test_network_connectivity_details.py +0 -70
- oci/data_connectivity/models/csv_format_attribute.py +0 -359
- oci/data_connectivity/models/data_asset.py +0 -550
- oci/data_connectivity/models/data_asset_summary.py +0 -550
- oci/data_connectivity/models/data_asset_summary_collection.py +0 -70
- oci/data_connectivity/models/data_entity.py +0 -201
- oci/data_connectivity/models/data_entity_details.py +0 -144
- oci/data_connectivity/models/data_entity_from_data_store.py +0 -739
- oci/data_connectivity/models/data_entity_from_data_store_entity_details.py +0 -725
- oci/data_connectivity/models/data_entity_from_file.py +0 -611
- oci/data_connectivity/models/data_entity_from_file_entity_details.py +0 -597
- oci/data_connectivity/models/data_entity_from_message_entity_details.py +0 -597
- oci/data_connectivity/models/data_entity_from_sql.py +0 -615
- oci/data_connectivity/models/data_entity_from_sql_entity_details.py +0 -601
- oci/data_connectivity/models/data_entity_from_table.py +0 -584
- oci/data_connectivity/models/data_entity_from_table_entity_details.py +0 -570
- oci/data_connectivity/models/data_entity_from_view.py +0 -584
- oci/data_connectivity/models/data_entity_from_view_entity_details.py +0 -570
- oci/data_connectivity/models/data_entity_summary.py +0 -166
- oci/data_connectivity/models/data_entity_summary_collection.py +0 -70
- oci/data_connectivity/models/data_entity_summary_from_data_store.py +0 -732
- oci/data_connectivity/models/data_entity_summary_from_file.py +0 -604
- oci/data_connectivity/models/data_entity_summary_from_sql.py +0 -608
- oci/data_connectivity/models/data_entity_summary_from_table.py +0 -577
- oci/data_connectivity/models/data_entity_summary_from_view.py +0 -577
- oci/data_connectivity/models/data_format.py +0 -148
- oci/data_connectivity/models/data_preview.py +0 -163
- oci/data_connectivity/models/data_profile.py +0 -128
- oci/data_connectivity/models/data_type.py +0 -197
- oci/data_connectivity/models/data_type_stat.py +0 -163
- oci/data_connectivity/models/date_attribute.py +0 -104
- oci/data_connectivity/models/de_reference_info.py +0 -434
- oci/data_connectivity/models/derive_entities.py +0 -70
- oci/data_connectivity/models/derive_entities_details.py +0 -70
- oci/data_connectivity/models/derive_entities_item.py +0 -145
- oci/data_connectivity/models/derived_entity.py +0 -471
- oci/data_connectivity/models/derived_type.py +0 -91
- oci/data_connectivity/models/detach_data_asset_info.py +0 -70
- oci/data_connectivity/models/dp_endpoint.py +0 -382
- oci/data_connectivity/models/dp_endpoint_details.py +0 -383
- oci/data_connectivity/models/dp_endpoint_from_private.py +0 -346
- oci/data_connectivity/models/dp_endpoint_from_private_details.py +0 -346
- oci/data_connectivity/models/dp_endpoint_from_public.py +0 -112
- oci/data_connectivity/models/dp_endpoint_from_public_details.py +0 -112
- oci/data_connectivity/models/dp_endpoint_summary.py +0 -383
- oci/data_connectivity/models/dp_endpoint_summary_from_private.py +0 -346
- oci/data_connectivity/models/dp_endpoint_summary_from_public.py +0 -112
- oci/data_connectivity/models/endpoint.py +0 -562
- oci/data_connectivity/models/endpoint_summary.py +0 -353
- oci/data_connectivity/models/endpoint_summary_collection.py +0 -70
- oci/data_connectivity/models/entity_profile_result.py +0 -132
- oci/data_connectivity/models/entity_shape.py +0 -166
- oci/data_connectivity/models/entity_shape_from_data_store.py +0 -635
- oci/data_connectivity/models/entity_shape_from_file.py +0 -635
- oci/data_connectivity/models/entity_shape_from_message.py +0 -604
- oci/data_connectivity/models/entity_shape_from_sql.py +0 -635
- oci/data_connectivity/models/entity_shape_from_table.py +0 -635
- oci/data_connectivity/models/entity_shape_from_view.py +0 -635
- oci/data_connectivity/models/error_details.py +0 -107
- oci/data_connectivity/models/excel_format_attribute.py +0 -142
- oci/data_connectivity/models/execute_operation_job.py +0 -194
- oci/data_connectivity/models/execute_operation_job_details.py +0 -148
- oci/data_connectivity/models/external_storage.py +0 -235
- oci/data_connectivity/models/filter_push.py +0 -80
- oci/data_connectivity/models/folder.py +0 -345
- oci/data_connectivity/models/folder_summary.py +0 -345
- oci/data_connectivity/models/folder_summary_collection.py +0 -70
- oci/data_connectivity/models/foreign_key.py +0 -321
- oci/data_connectivity/models/full_push_down_task_response.py +0 -132
- oci/data_connectivity/models/generic_rest_api_attributes.py +0 -80
- oci/data_connectivity/models/generic_rest_call_attribute.py +0 -49
- oci/data_connectivity/models/hdfs_write_attributes.py +0 -80
- oci/data_connectivity/models/histogram.py +0 -101
- oci/data_connectivity/models/input_port.py +0 -181
- oci/data_connectivity/models/join.py +0 -136
- oci/data_connectivity/models/json_format_attribute.py +0 -80
- oci/data_connectivity/models/key.py +0 -100
- oci/data_connectivity/models/key_attribute.py +0 -97
- oci/data_connectivity/models/key_range.py +0 -97
- oci/data_connectivity/models/key_range_partition_config.py +0 -107
- oci/data_connectivity/models/message.py +0 -152
- oci/data_connectivity/models/native_shape_field.py +0 -222
- oci/data_connectivity/models/network_connectivity_status.py +0 -214
- oci/data_connectivity/models/network_connectivity_status_collection.py +0 -70
- oci/data_connectivity/models/numeric_attribute.py +0 -297
- oci/data_connectivity/models/object_freq_stat.py +0 -163
- oci/data_connectivity/models/object_metadata.py +0 -438
- oci/data_connectivity/models/object_storage_write_attributes.py +0 -80
- oci/data_connectivity/models/operation.py +0 -161
- oci/data_connectivity/models/operation_exec_result.py +0 -218
- oci/data_connectivity/models/operation_from_api.py +0 -334
- oci/data_connectivity/models/operation_from_procedure.py +0 -334
- oci/data_connectivity/models/operation_input_record.py +0 -70
- oci/data_connectivity/models/operation_summary.py +0 -134
- oci/data_connectivity/models/operation_summary_collection.py +0 -70
- oci/data_connectivity/models/operation_summary_from_api.py +0 -300
- oci/data_connectivity/models/operation_summary_from_procedure.py +0 -300
- oci/data_connectivity/models/oracle_adwc_write_attributes.py +0 -161
- oci/data_connectivity/models/oracle_atp_write_attributes.py +0 -161
- oci/data_connectivity/models/oracle_read_attribute.py +0 -80
- oci/data_connectivity/models/oracle_read_attributes.py +0 -80
- oci/data_connectivity/models/oracle_write_attributes.py +0 -142
- oci/data_connectivity/models/outlier.py +0 -163
- oci/data_connectivity/models/output_port.py +0 -181
- oci/data_connectivity/models/parameter.py +0 -336
- oci/data_connectivity/models/parent_reference.py +0 -70
- oci/data_connectivity/models/parquet_format_attribute.py +0 -80
- oci/data_connectivity/models/partition_config.py +0 -100
- oci/data_connectivity/models/primary_key.py +0 -91
- oci/data_connectivity/models/profile_config.py +0 -286
- oci/data_connectivity/models/profile_stat.py +0 -101
- oci/data_connectivity/models/push_down_operation.py +0 -132
- oci/data_connectivity/models/query.py +0 -80
- oci/data_connectivity/models/read_operation_config.py +0 -319
- oci/data_connectivity/models/reference_artifact_summary.py +0 -434
- oci/data_connectivity/models/reference_artifact_summary_collection.py +0 -70
- oci/data_connectivity/models/reference_info.py +0 -434
- oci/data_connectivity/models/referenced_data_object.py +0 -320
- oci/data_connectivity/models/referenced_data_object_from_api.py +0 -129
- oci/data_connectivity/models/referenced_data_object_from_procedure.py +0 -129
- oci/data_connectivity/models/registry.py +0 -436
- oci/data_connectivity/models/registry_metadata.py +0 -380
- oci/data_connectivity/models/registry_summary.py +0 -384
- oci/data_connectivity/models/registry_summary_collection.py +0 -70
- oci/data_connectivity/models/row.py +0 -70
- oci/data_connectivity/models/schema.py +0 -465
- oci/data_connectivity/models/schema_drift_config.py +0 -226
- oci/data_connectivity/models/schema_summary.py +0 -465
- oci/data_connectivity/models/schema_summary_collection.py +0 -70
- oci/data_connectivity/models/select.py +0 -111
- oci/data_connectivity/models/shape.py +0 -126
- oci/data_connectivity/models/shape_field.py +0 -187
- oci/data_connectivity/models/sort.py +0 -80
- oci/data_connectivity/models/sort_clause.py +0 -114
- oci/data_connectivity/models/source.py +0 -334
- oci/data_connectivity/models/string_attribute.py +0 -247
- oci/data_connectivity/models/structured_type.py +0 -118
- oci/data_connectivity/models/target.py +0 -398
- oci/data_connectivity/models/test_network_connectivity.py +0 -132
- oci/data_connectivity/models/type.py +0 -101
- oci/data_connectivity/models/type_library.py +0 -345
- oci/data_connectivity/models/type_summary.py +0 -132
- oci/data_connectivity/models/type_system.py +0 -407
- oci/data_connectivity/models/typed_object.py +0 -337
- oci/data_connectivity/models/unique_key.py +0 -285
- oci/data_connectivity/models/update_connection_details.py +0 -461
- oci/data_connectivity/models/update_data_asset_details.py +0 -519
- oci/data_connectivity/models/update_dp_endpoint_details.py +0 -383
- oci/data_connectivity/models/update_dp_endpoint_from_private.py +0 -346
- oci/data_connectivity/models/update_dp_endpoint_from_public.py +0 -112
- oci/data_connectivity/models/update_endpoint_details.py +0 -262
- oci/data_connectivity/models/update_folder_details.py +0 -345
- oci/data_connectivity/models/update_registry_details.py +0 -175
- oci/data_connectivity/models/validation_message.py +0 -101
- oci/data_connectivity/models/validation_result.py +0 -117
- oci/data_connectivity/models/work_request.py +0 -396
- oci/data_connectivity/models/work_request_error.py +0 -134
- oci/data_connectivity/models/work_request_error_collection.py +0 -70
- oci/data_connectivity/models/work_request_error_summary.py +0 -134
- oci/data_connectivity/models/work_request_log.py +0 -101
- oci/data_connectivity/models/work_request_log_collection.py +0 -70
- oci/data_connectivity/models/work_request_resource.py +0 -209
- oci/data_connectivity/models/work_request_summary.py +0 -396
- oci/data_connectivity/models/write_operation_config.py +0 -406
- oci/data_connectivity/network_validation_client.py +0 -268
- oci/data_connectivity/network_validation_client_composite_operations.py +0 -24
- {oci-2.100.0.dist-info → oci-2.102.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.100.0.dist-info → oci-2.102.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.100.0.dist-info → oci-2.102.0.dist-info}/WHEEL +0 -0
- {oci-2.100.0.dist-info → oci-2.102.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,999 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
from __future__ import absolute_import
|
6
|
+
|
7
|
+
from oci._vendor import requests # noqa: F401
|
8
|
+
from oci._vendor import six
|
9
|
+
|
10
|
+
from oci import retry, circuit_breaker # noqa: F401
|
11
|
+
from oci.base_client import BaseClient
|
12
|
+
from oci.config import get_config_value_or_default, validate_config
|
13
|
+
from oci.signer import Signer
|
14
|
+
from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
|
15
|
+
from .models import access_governance_cp_type_mapping
|
16
|
+
missing = Sentinel("Missing")
|
17
|
+
|
18
|
+
|
19
|
+
class AccessGovernanceCPClient(object):
|
20
|
+
"""
|
21
|
+
Use the Oracle Access Governance API to create, view, and manage GovernanceInstances.
|
22
|
+
"""
|
23
|
+
|
24
|
+
def __init__(self, config, **kwargs):
|
25
|
+
"""
|
26
|
+
Creates a new service client
|
27
|
+
|
28
|
+
:param dict config:
|
29
|
+
Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
|
30
|
+
The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
|
31
|
+
the dict using :py:meth:`~oci.config.validate_config`
|
32
|
+
|
33
|
+
:param str service_endpoint: (optional)
|
34
|
+
The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
|
35
|
+
not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
|
36
|
+
need to specify a service endpoint.
|
37
|
+
|
38
|
+
:param timeout: (optional)
|
39
|
+
The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
|
40
|
+
as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
|
41
|
+
a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
|
42
|
+
:type timeout: float or tuple(float, float)
|
43
|
+
|
44
|
+
:param signer: (optional)
|
45
|
+
The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
|
46
|
+
provided in the config parameter.
|
47
|
+
|
48
|
+
One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
|
49
|
+
by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
|
50
|
+
:type signer: :py:class:`~oci.signer.AbstractBaseSigner`
|
51
|
+
|
52
|
+
:param obj retry_strategy: (optional)
|
53
|
+
A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
|
54
|
+
Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
|
55
|
+
Any value provided at the operation level will override whatever is specified at the client level.
|
56
|
+
|
57
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
|
58
|
+
is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
59
|
+
|
60
|
+
:param obj circuit_breaker_strategy: (optional)
|
61
|
+
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
|
62
|
+
This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
|
63
|
+
The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
|
64
|
+
|
65
|
+
:param function circuit_breaker_callback: (optional)
|
66
|
+
Callback function to receive any exceptions triggerred by the circuit breaker.
|
67
|
+
|
68
|
+
:param bool client_level_realm_specific_endpoint_template_enabled: (optional)
|
69
|
+
A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
|
70
|
+
|
71
|
+
:param allow_control_chars: (optional)
|
72
|
+
allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
|
73
|
+
allow control characters to be in the response object.
|
74
|
+
"""
|
75
|
+
validate_config(config, signer=kwargs.get('signer'))
|
76
|
+
if 'signer' in kwargs:
|
77
|
+
signer = kwargs['signer']
|
78
|
+
|
79
|
+
elif AUTHENTICATION_TYPE_FIELD_NAME in config:
|
80
|
+
signer = get_signer_from_authentication_type(config)
|
81
|
+
|
82
|
+
else:
|
83
|
+
signer = Signer(
|
84
|
+
tenancy=config["tenancy"],
|
85
|
+
user=config["user"],
|
86
|
+
fingerprint=config["fingerprint"],
|
87
|
+
private_key_file_location=config.get("key_file"),
|
88
|
+
pass_phrase=get_config_value_or_default(config, "pass_phrase"),
|
89
|
+
private_key_content=config.get("key_content")
|
90
|
+
)
|
91
|
+
|
92
|
+
base_client_init_kwargs = {
|
93
|
+
'regional_client': True,
|
94
|
+
'service_endpoint': kwargs.get('service_endpoint'),
|
95
|
+
'base_path': '/20220518',
|
96
|
+
'service_endpoint_template': 'https://cp-prod.access-governance.{region}.oci.{secondLevelDomain}',
|
97
|
+
'service_endpoint_template_per_realm': { }, # noqa: E201 E202
|
98
|
+
'skip_deserialization': kwargs.get('skip_deserialization', False),
|
99
|
+
'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
|
100
|
+
'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
|
101
|
+
}
|
102
|
+
if 'timeout' in kwargs:
|
103
|
+
base_client_init_kwargs['timeout'] = kwargs.get('timeout')
|
104
|
+
if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
|
105
|
+
base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
|
106
|
+
if 'allow_control_chars' in kwargs:
|
107
|
+
base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
|
108
|
+
self.base_client = BaseClient("access_governance_cp", config, signer, access_governance_cp_type_mapping, **base_client_init_kwargs)
|
109
|
+
self.retry_strategy = kwargs.get('retry_strategy')
|
110
|
+
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
111
|
+
|
112
|
+
def change_governance_instance_compartment(self, governance_instance_id, change_governance_instance_compartment_details, **kwargs):
|
113
|
+
"""
|
114
|
+
Moves a GovernanceInstance resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
115
|
+
|
116
|
+
|
117
|
+
:param str governance_instance_id: (required)
|
118
|
+
The OCID of the GovernanceInstance
|
119
|
+
|
120
|
+
:param oci.access_governance_cp.models.ChangeGovernanceInstanceCompartmentDetails change_governance_instance_compartment_details: (required)
|
121
|
+
The details to change the compartment of a GovernanceInstance.
|
122
|
+
|
123
|
+
:param str if_match: (optional)
|
124
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
125
|
+
for a resource, set the `if-match` parameter to the value of the
|
126
|
+
etag from a previous GET or POST response for that resource.
|
127
|
+
The resource will be updated or deleted only if the etag you
|
128
|
+
provide matches the resource's current etag value.
|
129
|
+
|
130
|
+
:param str opc_request_id: (optional)
|
131
|
+
The client request ID for tracing.
|
132
|
+
|
133
|
+
:param str opc_retry_token: (optional)
|
134
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
135
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
136
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
137
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
138
|
+
might be rejected.
|
139
|
+
|
140
|
+
:param obj retry_strategy: (optional)
|
141
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
142
|
+
|
143
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
144
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
145
|
+
|
146
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
147
|
+
|
148
|
+
:param bool allow_control_chars: (optional)
|
149
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
150
|
+
By default, the response will not allow control characters in strings
|
151
|
+
|
152
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
153
|
+
:rtype: :class:`~oci.response.Response`
|
154
|
+
|
155
|
+
:example:
|
156
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/change_governance_instance_compartment.py.html>`__ to see an example of how to use change_governance_instance_compartment API.
|
157
|
+
"""
|
158
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
159
|
+
required_arguments = ['governanceInstanceId']
|
160
|
+
resource_path = "/governanceInstances/{governanceInstanceId}/actions/changeCompartment"
|
161
|
+
method = "POST"
|
162
|
+
operation_name = "change_governance_instance_compartment"
|
163
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstance/ChangeGovernanceInstanceCompartment"
|
164
|
+
|
165
|
+
# Don't accept unknown kwargs
|
166
|
+
expected_kwargs = [
|
167
|
+
"allow_control_chars",
|
168
|
+
"retry_strategy",
|
169
|
+
"if_match",
|
170
|
+
"opc_request_id",
|
171
|
+
"opc_retry_token"
|
172
|
+
]
|
173
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
174
|
+
if extra_kwargs:
|
175
|
+
raise ValueError(
|
176
|
+
"change_governance_instance_compartment got unknown kwargs: {!r}".format(extra_kwargs))
|
177
|
+
|
178
|
+
path_params = {
|
179
|
+
"governanceInstanceId": governance_instance_id
|
180
|
+
}
|
181
|
+
|
182
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
183
|
+
|
184
|
+
for (k, v) in six.iteritems(path_params):
|
185
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
186
|
+
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
|
187
|
+
|
188
|
+
header_params = {
|
189
|
+
"accept": "application/json",
|
190
|
+
"content-type": "application/json",
|
191
|
+
"if-match": kwargs.get("if_match", missing),
|
192
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
193
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
194
|
+
}
|
195
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
196
|
+
|
197
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
198
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
199
|
+
client_retry_strategy=self.retry_strategy
|
200
|
+
)
|
201
|
+
if retry_strategy is None:
|
202
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
203
|
+
|
204
|
+
if retry_strategy:
|
205
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
206
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
207
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
208
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
209
|
+
return retry_strategy.make_retrying_call(
|
210
|
+
self.base_client.call_api,
|
211
|
+
resource_path=resource_path,
|
212
|
+
method=method,
|
213
|
+
path_params=path_params,
|
214
|
+
header_params=header_params,
|
215
|
+
body=change_governance_instance_compartment_details,
|
216
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
217
|
+
operation_name=operation_name,
|
218
|
+
api_reference_link=api_reference_link,
|
219
|
+
required_arguments=required_arguments)
|
220
|
+
else:
|
221
|
+
return self.base_client.call_api(
|
222
|
+
resource_path=resource_path,
|
223
|
+
method=method,
|
224
|
+
path_params=path_params,
|
225
|
+
header_params=header_params,
|
226
|
+
body=change_governance_instance_compartment_details,
|
227
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
228
|
+
operation_name=operation_name,
|
229
|
+
api_reference_link=api_reference_link,
|
230
|
+
required_arguments=required_arguments)
|
231
|
+
|
232
|
+
def create_governance_instance(self, create_governance_instance_details, **kwargs):
|
233
|
+
"""
|
234
|
+
Creates a new GovernanceInstance.
|
235
|
+
|
236
|
+
|
237
|
+
:param oci.access_governance_cp.models.CreateGovernanceInstanceDetails create_governance_instance_details: (required)
|
238
|
+
The details of a new GovernanceInstance.
|
239
|
+
|
240
|
+
:param str opc_retry_token: (optional)
|
241
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
242
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
243
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
244
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
245
|
+
might be rejected.
|
246
|
+
|
247
|
+
:param str opc_request_id: (optional)
|
248
|
+
The client request ID for tracing.
|
249
|
+
|
250
|
+
:param obj retry_strategy: (optional)
|
251
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
252
|
+
|
253
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
254
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
255
|
+
|
256
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
257
|
+
|
258
|
+
:param bool allow_control_chars: (optional)
|
259
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
260
|
+
By default, the response will not allow control characters in strings
|
261
|
+
|
262
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.access_governance_cp.models.GovernanceInstance`
|
263
|
+
:rtype: :class:`~oci.response.Response`
|
264
|
+
|
265
|
+
:example:
|
266
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/create_governance_instance.py.html>`__ to see an example of how to use create_governance_instance API.
|
267
|
+
"""
|
268
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
269
|
+
required_arguments = []
|
270
|
+
resource_path = "/governanceInstances"
|
271
|
+
method = "POST"
|
272
|
+
operation_name = "create_governance_instance"
|
273
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstance/CreateGovernanceInstance"
|
274
|
+
|
275
|
+
# Don't accept unknown kwargs
|
276
|
+
expected_kwargs = [
|
277
|
+
"allow_control_chars",
|
278
|
+
"retry_strategy",
|
279
|
+
"opc_retry_token",
|
280
|
+
"opc_request_id"
|
281
|
+
]
|
282
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
283
|
+
if extra_kwargs:
|
284
|
+
raise ValueError(
|
285
|
+
"create_governance_instance got unknown kwargs: {!r}".format(extra_kwargs))
|
286
|
+
|
287
|
+
header_params = {
|
288
|
+
"accept": "application/json",
|
289
|
+
"content-type": "application/json",
|
290
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
291
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
292
|
+
}
|
293
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
294
|
+
|
295
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
296
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
297
|
+
client_retry_strategy=self.retry_strategy
|
298
|
+
)
|
299
|
+
if retry_strategy is None:
|
300
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
301
|
+
|
302
|
+
if retry_strategy:
|
303
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
304
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
305
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
306
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
307
|
+
return retry_strategy.make_retrying_call(
|
308
|
+
self.base_client.call_api,
|
309
|
+
resource_path=resource_path,
|
310
|
+
method=method,
|
311
|
+
header_params=header_params,
|
312
|
+
body=create_governance_instance_details,
|
313
|
+
response_type="GovernanceInstance",
|
314
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
315
|
+
operation_name=operation_name,
|
316
|
+
api_reference_link=api_reference_link,
|
317
|
+
required_arguments=required_arguments)
|
318
|
+
else:
|
319
|
+
return self.base_client.call_api(
|
320
|
+
resource_path=resource_path,
|
321
|
+
method=method,
|
322
|
+
header_params=header_params,
|
323
|
+
body=create_governance_instance_details,
|
324
|
+
response_type="GovernanceInstance",
|
325
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
326
|
+
operation_name=operation_name,
|
327
|
+
api_reference_link=api_reference_link,
|
328
|
+
required_arguments=required_arguments)
|
329
|
+
|
330
|
+
def delete_governance_instance(self, governance_instance_id, **kwargs):
|
331
|
+
"""
|
332
|
+
Deletes an existing GovernanceInstance.
|
333
|
+
|
334
|
+
|
335
|
+
:param str governance_instance_id: (required)
|
336
|
+
The OCID of the GovernanceInstance
|
337
|
+
|
338
|
+
:param str if_match: (optional)
|
339
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
340
|
+
for a resource, set the `if-match` parameter to the value of the
|
341
|
+
etag from a previous GET or POST response for that resource.
|
342
|
+
The resource will be updated or deleted only if the etag you
|
343
|
+
provide matches the resource's current etag value.
|
344
|
+
|
345
|
+
:param str opc_retry_token: (optional)
|
346
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
347
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
348
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
349
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
350
|
+
might be rejected.
|
351
|
+
|
352
|
+
:param str opc_request_id: (optional)
|
353
|
+
The client request ID for tracing.
|
354
|
+
|
355
|
+
:param obj retry_strategy: (optional)
|
356
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
357
|
+
|
358
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
359
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
360
|
+
|
361
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
362
|
+
|
363
|
+
:param bool allow_control_chars: (optional)
|
364
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
365
|
+
By default, the response will not allow control characters in strings
|
366
|
+
|
367
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
368
|
+
:rtype: :class:`~oci.response.Response`
|
369
|
+
|
370
|
+
:example:
|
371
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/delete_governance_instance.py.html>`__ to see an example of how to use delete_governance_instance API.
|
372
|
+
"""
|
373
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
374
|
+
required_arguments = ['governanceInstanceId']
|
375
|
+
resource_path = "/governanceInstances/{governanceInstanceId}"
|
376
|
+
method = "DELETE"
|
377
|
+
operation_name = "delete_governance_instance"
|
378
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstance/DeleteGovernanceInstance"
|
379
|
+
|
380
|
+
# Don't accept unknown kwargs
|
381
|
+
expected_kwargs = [
|
382
|
+
"allow_control_chars",
|
383
|
+
"retry_strategy",
|
384
|
+
"if_match",
|
385
|
+
"opc_retry_token",
|
386
|
+
"opc_request_id"
|
387
|
+
]
|
388
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
389
|
+
if extra_kwargs:
|
390
|
+
raise ValueError(
|
391
|
+
"delete_governance_instance got unknown kwargs: {!r}".format(extra_kwargs))
|
392
|
+
|
393
|
+
path_params = {
|
394
|
+
"governanceInstanceId": governance_instance_id
|
395
|
+
}
|
396
|
+
|
397
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
398
|
+
|
399
|
+
for (k, v) in six.iteritems(path_params):
|
400
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
401
|
+
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
|
402
|
+
|
403
|
+
header_params = {
|
404
|
+
"accept": "application/json",
|
405
|
+
"content-type": "application/json",
|
406
|
+
"if-match": kwargs.get("if_match", missing),
|
407
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
408
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
409
|
+
}
|
410
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
411
|
+
|
412
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
413
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
414
|
+
client_retry_strategy=self.retry_strategy
|
415
|
+
)
|
416
|
+
if retry_strategy is None:
|
417
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
418
|
+
|
419
|
+
if retry_strategy:
|
420
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
421
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
422
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
423
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
424
|
+
return retry_strategy.make_retrying_call(
|
425
|
+
self.base_client.call_api,
|
426
|
+
resource_path=resource_path,
|
427
|
+
method=method,
|
428
|
+
path_params=path_params,
|
429
|
+
header_params=header_params,
|
430
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
431
|
+
operation_name=operation_name,
|
432
|
+
api_reference_link=api_reference_link,
|
433
|
+
required_arguments=required_arguments)
|
434
|
+
else:
|
435
|
+
return self.base_client.call_api(
|
436
|
+
resource_path=resource_path,
|
437
|
+
method=method,
|
438
|
+
path_params=path_params,
|
439
|
+
header_params=header_params,
|
440
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
441
|
+
operation_name=operation_name,
|
442
|
+
api_reference_link=api_reference_link,
|
443
|
+
required_arguments=required_arguments)
|
444
|
+
|
445
|
+
def get_governance_instance(self, governance_instance_id, **kwargs):
|
446
|
+
"""
|
447
|
+
Gets a GovernanceInstance by OCID.
|
448
|
+
|
449
|
+
|
450
|
+
:param str governance_instance_id: (required)
|
451
|
+
The OCID of the GovernanceInstance
|
452
|
+
|
453
|
+
:param str opc_request_id: (optional)
|
454
|
+
The client request ID for tracing.
|
455
|
+
|
456
|
+
:param obj retry_strategy: (optional)
|
457
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
458
|
+
|
459
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
460
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
461
|
+
|
462
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
463
|
+
|
464
|
+
:param bool allow_control_chars: (optional)
|
465
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
466
|
+
By default, the response will not allow control characters in strings
|
467
|
+
|
468
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.access_governance_cp.models.GovernanceInstance`
|
469
|
+
:rtype: :class:`~oci.response.Response`
|
470
|
+
|
471
|
+
:example:
|
472
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/get_governance_instance.py.html>`__ to see an example of how to use get_governance_instance API.
|
473
|
+
"""
|
474
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
475
|
+
required_arguments = ['governanceInstanceId']
|
476
|
+
resource_path = "/governanceInstances/{governanceInstanceId}"
|
477
|
+
method = "GET"
|
478
|
+
operation_name = "get_governance_instance"
|
479
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstance/GetGovernanceInstance"
|
480
|
+
|
481
|
+
# Don't accept unknown kwargs
|
482
|
+
expected_kwargs = [
|
483
|
+
"allow_control_chars",
|
484
|
+
"retry_strategy",
|
485
|
+
"opc_request_id"
|
486
|
+
]
|
487
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
488
|
+
if extra_kwargs:
|
489
|
+
raise ValueError(
|
490
|
+
"get_governance_instance got unknown kwargs: {!r}".format(extra_kwargs))
|
491
|
+
|
492
|
+
path_params = {
|
493
|
+
"governanceInstanceId": governance_instance_id
|
494
|
+
}
|
495
|
+
|
496
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
497
|
+
|
498
|
+
for (k, v) in six.iteritems(path_params):
|
499
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
500
|
+
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
|
501
|
+
|
502
|
+
header_params = {
|
503
|
+
"accept": "application/json",
|
504
|
+
"content-type": "application/json",
|
505
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
506
|
+
}
|
507
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
508
|
+
|
509
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
510
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
511
|
+
client_retry_strategy=self.retry_strategy
|
512
|
+
)
|
513
|
+
if retry_strategy is None:
|
514
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
515
|
+
|
516
|
+
if retry_strategy:
|
517
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
518
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
519
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
520
|
+
return retry_strategy.make_retrying_call(
|
521
|
+
self.base_client.call_api,
|
522
|
+
resource_path=resource_path,
|
523
|
+
method=method,
|
524
|
+
path_params=path_params,
|
525
|
+
header_params=header_params,
|
526
|
+
response_type="GovernanceInstance",
|
527
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
528
|
+
operation_name=operation_name,
|
529
|
+
api_reference_link=api_reference_link,
|
530
|
+
required_arguments=required_arguments)
|
531
|
+
else:
|
532
|
+
return self.base_client.call_api(
|
533
|
+
resource_path=resource_path,
|
534
|
+
method=method,
|
535
|
+
path_params=path_params,
|
536
|
+
header_params=header_params,
|
537
|
+
response_type="GovernanceInstance",
|
538
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
539
|
+
operation_name=operation_name,
|
540
|
+
api_reference_link=api_reference_link,
|
541
|
+
required_arguments=required_arguments)
|
542
|
+
|
543
|
+
def get_governance_instance_configuration(self, compartment_id, **kwargs):
|
544
|
+
"""
|
545
|
+
Gets the tenancy-wide configuration for GovernanceInstances
|
546
|
+
|
547
|
+
|
548
|
+
:param str compartment_id: (required)
|
549
|
+
The OCID of the compartment in which resources are listed.
|
550
|
+
|
551
|
+
:param str opc_request_id: (optional)
|
552
|
+
The client request ID for tracing.
|
553
|
+
|
554
|
+
:param obj retry_strategy: (optional)
|
555
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
556
|
+
|
557
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
558
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
559
|
+
|
560
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
561
|
+
|
562
|
+
:param bool allow_control_chars: (optional)
|
563
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
564
|
+
By default, the response will not allow control characters in strings
|
565
|
+
|
566
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.access_governance_cp.models.GovernanceInstanceConfiguration`
|
567
|
+
:rtype: :class:`~oci.response.Response`
|
568
|
+
|
569
|
+
:example:
|
570
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/get_governance_instance_configuration.py.html>`__ to see an example of how to use get_governance_instance_configuration API.
|
571
|
+
"""
|
572
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
573
|
+
required_arguments = ['compartmentId']
|
574
|
+
resource_path = "/governanceInstances/configuration"
|
575
|
+
method = "GET"
|
576
|
+
operation_name = "get_governance_instance_configuration"
|
577
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstanceConfiguration/GetGovernanceInstanceConfiguration"
|
578
|
+
|
579
|
+
# Don't accept unknown kwargs
|
580
|
+
expected_kwargs = [
|
581
|
+
"allow_control_chars",
|
582
|
+
"retry_strategy",
|
583
|
+
"opc_request_id"
|
584
|
+
]
|
585
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
586
|
+
if extra_kwargs:
|
587
|
+
raise ValueError(
|
588
|
+
"get_governance_instance_configuration got unknown kwargs: {!r}".format(extra_kwargs))
|
589
|
+
|
590
|
+
query_params = {
|
591
|
+
"compartmentId": compartment_id
|
592
|
+
}
|
593
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
594
|
+
|
595
|
+
header_params = {
|
596
|
+
"accept": "application/json",
|
597
|
+
"content-type": "application/json",
|
598
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
599
|
+
}
|
600
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
601
|
+
|
602
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
603
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
604
|
+
client_retry_strategy=self.retry_strategy
|
605
|
+
)
|
606
|
+
if retry_strategy is None:
|
607
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
608
|
+
|
609
|
+
if retry_strategy:
|
610
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
611
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
612
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
613
|
+
return retry_strategy.make_retrying_call(
|
614
|
+
self.base_client.call_api,
|
615
|
+
resource_path=resource_path,
|
616
|
+
method=method,
|
617
|
+
query_params=query_params,
|
618
|
+
header_params=header_params,
|
619
|
+
response_type="GovernanceInstanceConfiguration",
|
620
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
621
|
+
operation_name=operation_name,
|
622
|
+
api_reference_link=api_reference_link,
|
623
|
+
required_arguments=required_arguments)
|
624
|
+
else:
|
625
|
+
return self.base_client.call_api(
|
626
|
+
resource_path=resource_path,
|
627
|
+
method=method,
|
628
|
+
query_params=query_params,
|
629
|
+
header_params=header_params,
|
630
|
+
response_type="GovernanceInstanceConfiguration",
|
631
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
632
|
+
operation_name=operation_name,
|
633
|
+
api_reference_link=api_reference_link,
|
634
|
+
required_arguments=required_arguments)
|
635
|
+
|
636
|
+
def list_governance_instances(self, compartment_id, **kwargs):
|
637
|
+
"""
|
638
|
+
Returns a list of Governance Instances.
|
639
|
+
|
640
|
+
|
641
|
+
:param str compartment_id: (required)
|
642
|
+
The OCID of the compartment in which resources are listed.
|
643
|
+
|
644
|
+
:param str lifecycle_state: (optional)
|
645
|
+
The lifecycle state to filter on.
|
646
|
+
|
647
|
+
:param str display_name: (optional)
|
648
|
+
A filter to return only resources that match the entire display name given.
|
649
|
+
|
650
|
+
:param str id: (optional)
|
651
|
+
The OCID of the GovernanceInstance
|
652
|
+
|
653
|
+
:param int limit: (optional)
|
654
|
+
The maximum number of items to return.
|
655
|
+
|
656
|
+
:param str page: (optional)
|
657
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
658
|
+
|
659
|
+
:param str sort_order: (optional)
|
660
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
661
|
+
|
662
|
+
Allowed values are: "ASC", "DESC"
|
663
|
+
|
664
|
+
:param str sort_by: (optional)
|
665
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
666
|
+
|
667
|
+
Allowed values are: "timeCreated", "displayName", "timeUpdated", "lifecycleState"
|
668
|
+
|
669
|
+
:param str opc_request_id: (optional)
|
670
|
+
The client request ID for tracing.
|
671
|
+
|
672
|
+
:param obj retry_strategy: (optional)
|
673
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
674
|
+
|
675
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
676
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
677
|
+
|
678
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
679
|
+
|
680
|
+
:param bool allow_control_chars: (optional)
|
681
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
682
|
+
By default, the response will not allow control characters in strings
|
683
|
+
|
684
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.access_governance_cp.models.GovernanceInstanceCollection`
|
685
|
+
:rtype: :class:`~oci.response.Response`
|
686
|
+
|
687
|
+
:example:
|
688
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/list_governance_instances.py.html>`__ to see an example of how to use list_governance_instances API.
|
689
|
+
"""
|
690
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
691
|
+
required_arguments = ['compartmentId']
|
692
|
+
resource_path = "/governanceInstances"
|
693
|
+
method = "GET"
|
694
|
+
operation_name = "list_governance_instances"
|
695
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstanceCollection/ListGovernanceInstances"
|
696
|
+
|
697
|
+
# Don't accept unknown kwargs
|
698
|
+
expected_kwargs = [
|
699
|
+
"allow_control_chars",
|
700
|
+
"retry_strategy",
|
701
|
+
"lifecycle_state",
|
702
|
+
"display_name",
|
703
|
+
"id",
|
704
|
+
"limit",
|
705
|
+
"page",
|
706
|
+
"sort_order",
|
707
|
+
"sort_by",
|
708
|
+
"opc_request_id"
|
709
|
+
]
|
710
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
711
|
+
if extra_kwargs:
|
712
|
+
raise ValueError(
|
713
|
+
"list_governance_instances got unknown kwargs: {!r}".format(extra_kwargs))
|
714
|
+
|
715
|
+
if 'sort_order' in kwargs:
|
716
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
717
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
718
|
+
raise ValueError(
|
719
|
+
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
|
720
|
+
)
|
721
|
+
|
722
|
+
if 'sort_by' in kwargs:
|
723
|
+
sort_by_allowed_values = ["timeCreated", "displayName", "timeUpdated", "lifecycleState"]
|
724
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
725
|
+
raise ValueError(
|
726
|
+
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
|
727
|
+
)
|
728
|
+
|
729
|
+
query_params = {
|
730
|
+
"compartmentId": compartment_id,
|
731
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
732
|
+
"displayName": kwargs.get("display_name", missing),
|
733
|
+
"id": kwargs.get("id", missing),
|
734
|
+
"limit": kwargs.get("limit", missing),
|
735
|
+
"page": kwargs.get("page", missing),
|
736
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
737
|
+
"sortBy": kwargs.get("sort_by", missing)
|
738
|
+
}
|
739
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
740
|
+
|
741
|
+
header_params = {
|
742
|
+
"accept": "application/json",
|
743
|
+
"content-type": "application/json",
|
744
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
745
|
+
}
|
746
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
747
|
+
|
748
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
749
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
750
|
+
client_retry_strategy=self.retry_strategy
|
751
|
+
)
|
752
|
+
if retry_strategy is None:
|
753
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
754
|
+
|
755
|
+
if retry_strategy:
|
756
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
757
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
758
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
759
|
+
return retry_strategy.make_retrying_call(
|
760
|
+
self.base_client.call_api,
|
761
|
+
resource_path=resource_path,
|
762
|
+
method=method,
|
763
|
+
query_params=query_params,
|
764
|
+
header_params=header_params,
|
765
|
+
response_type="GovernanceInstanceCollection",
|
766
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
767
|
+
operation_name=operation_name,
|
768
|
+
api_reference_link=api_reference_link,
|
769
|
+
required_arguments=required_arguments)
|
770
|
+
else:
|
771
|
+
return self.base_client.call_api(
|
772
|
+
resource_path=resource_path,
|
773
|
+
method=method,
|
774
|
+
query_params=query_params,
|
775
|
+
header_params=header_params,
|
776
|
+
response_type="GovernanceInstanceCollection",
|
777
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
778
|
+
operation_name=operation_name,
|
779
|
+
api_reference_link=api_reference_link,
|
780
|
+
required_arguments=required_arguments)
|
781
|
+
|
782
|
+
def update_governance_instance(self, update_governance_instance_details, governance_instance_id, **kwargs):
|
783
|
+
"""
|
784
|
+
Updates the GovernanceInstance.
|
785
|
+
|
786
|
+
|
787
|
+
:param oci.access_governance_cp.models.UpdateGovernanceInstanceDetails update_governance_instance_details: (required)
|
788
|
+
The details of the GovernanceInstance to be updated.
|
789
|
+
|
790
|
+
:param str governance_instance_id: (required)
|
791
|
+
The OCID of the GovernanceInstance
|
792
|
+
|
793
|
+
:param str if_match: (optional)
|
794
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
795
|
+
for a resource, set the `if-match` parameter to the value of the
|
796
|
+
etag from a previous GET or POST response for that resource.
|
797
|
+
The resource will be updated or deleted only if the etag you
|
798
|
+
provide matches the resource's current etag value.
|
799
|
+
|
800
|
+
:param str opc_request_id: (optional)
|
801
|
+
The client request ID for tracing.
|
802
|
+
|
803
|
+
:param obj retry_strategy: (optional)
|
804
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
805
|
+
|
806
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
807
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
808
|
+
|
809
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
810
|
+
|
811
|
+
:param bool allow_control_chars: (optional)
|
812
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
813
|
+
By default, the response will not allow control characters in strings
|
814
|
+
|
815
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.access_governance_cp.models.GovernanceInstance`
|
816
|
+
:rtype: :class:`~oci.response.Response`
|
817
|
+
|
818
|
+
:example:
|
819
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/update_governance_instance.py.html>`__ to see an example of how to use update_governance_instance API.
|
820
|
+
"""
|
821
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
822
|
+
required_arguments = ['governanceInstanceId']
|
823
|
+
resource_path = "/governanceInstances/{governanceInstanceId}"
|
824
|
+
method = "PUT"
|
825
|
+
operation_name = "update_governance_instance"
|
826
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstance/UpdateGovernanceInstance"
|
827
|
+
|
828
|
+
# Don't accept unknown kwargs
|
829
|
+
expected_kwargs = [
|
830
|
+
"allow_control_chars",
|
831
|
+
"retry_strategy",
|
832
|
+
"if_match",
|
833
|
+
"opc_request_id"
|
834
|
+
]
|
835
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
836
|
+
if extra_kwargs:
|
837
|
+
raise ValueError(
|
838
|
+
"update_governance_instance got unknown kwargs: {!r}".format(extra_kwargs))
|
839
|
+
|
840
|
+
path_params = {
|
841
|
+
"governanceInstanceId": governance_instance_id
|
842
|
+
}
|
843
|
+
|
844
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
845
|
+
|
846
|
+
for (k, v) in six.iteritems(path_params):
|
847
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
848
|
+
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
|
849
|
+
|
850
|
+
header_params = {
|
851
|
+
"accept": "application/json",
|
852
|
+
"content-type": "application/json",
|
853
|
+
"if-match": kwargs.get("if_match", missing),
|
854
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
855
|
+
}
|
856
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
857
|
+
|
858
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
859
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
860
|
+
client_retry_strategy=self.retry_strategy
|
861
|
+
)
|
862
|
+
if retry_strategy is None:
|
863
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
864
|
+
|
865
|
+
if retry_strategy:
|
866
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
867
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
868
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
869
|
+
return retry_strategy.make_retrying_call(
|
870
|
+
self.base_client.call_api,
|
871
|
+
resource_path=resource_path,
|
872
|
+
method=method,
|
873
|
+
path_params=path_params,
|
874
|
+
header_params=header_params,
|
875
|
+
body=update_governance_instance_details,
|
876
|
+
response_type="GovernanceInstance",
|
877
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
878
|
+
operation_name=operation_name,
|
879
|
+
api_reference_link=api_reference_link,
|
880
|
+
required_arguments=required_arguments)
|
881
|
+
else:
|
882
|
+
return self.base_client.call_api(
|
883
|
+
resource_path=resource_path,
|
884
|
+
method=method,
|
885
|
+
path_params=path_params,
|
886
|
+
header_params=header_params,
|
887
|
+
body=update_governance_instance_details,
|
888
|
+
response_type="GovernanceInstance",
|
889
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
890
|
+
operation_name=operation_name,
|
891
|
+
api_reference_link=api_reference_link,
|
892
|
+
required_arguments=required_arguments)
|
893
|
+
|
894
|
+
def update_governance_instance_configuration(self, update_governance_instance_configuration_details, compartment_id, **kwargs):
|
895
|
+
"""
|
896
|
+
Updates the tenancy-wide configuration for GovernanceInstances
|
897
|
+
|
898
|
+
|
899
|
+
:param oci.access_governance_cp.models.UpdateGovernanceInstanceConfigurationDetails update_governance_instance_configuration_details: (required)
|
900
|
+
The details of the tenancy-wide configuration to be updated.
|
901
|
+
|
902
|
+
:param str compartment_id: (required)
|
903
|
+
The OCID of the compartment in which resources are listed.
|
904
|
+
|
905
|
+
:param str if_match: (optional)
|
906
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
907
|
+
for a resource, set the `if-match` parameter to the value of the
|
908
|
+
etag from a previous GET or POST response for that resource.
|
909
|
+
The resource will be updated or deleted only if the etag you
|
910
|
+
provide matches the resource's current etag value.
|
911
|
+
|
912
|
+
:param str opc_request_id: (optional)
|
913
|
+
The client request ID for tracing.
|
914
|
+
|
915
|
+
:param obj retry_strategy: (optional)
|
916
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
917
|
+
|
918
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
919
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
920
|
+
|
921
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
922
|
+
|
923
|
+
:param bool allow_control_chars: (optional)
|
924
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
925
|
+
By default, the response will not allow control characters in strings
|
926
|
+
|
927
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.access_governance_cp.models.GovernanceInstanceConfiguration`
|
928
|
+
:rtype: :class:`~oci.response.Response`
|
929
|
+
|
930
|
+
:example:
|
931
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.102.0/accessgovernancecp/update_governance_instance_configuration.py.html>`__ to see an example of how to use update_governance_instance_configuration API.
|
932
|
+
"""
|
933
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
934
|
+
required_arguments = ['compartmentId']
|
935
|
+
resource_path = "/governanceInstances/configuration"
|
936
|
+
method = "PUT"
|
937
|
+
operation_name = "update_governance_instance_configuration"
|
938
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/access-governance-cp/20220518/GovernanceInstance/UpdateGovernanceInstanceConfiguration"
|
939
|
+
|
940
|
+
# Don't accept unknown kwargs
|
941
|
+
expected_kwargs = [
|
942
|
+
"allow_control_chars",
|
943
|
+
"retry_strategy",
|
944
|
+
"if_match",
|
945
|
+
"opc_request_id"
|
946
|
+
]
|
947
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
948
|
+
if extra_kwargs:
|
949
|
+
raise ValueError(
|
950
|
+
"update_governance_instance_configuration got unknown kwargs: {!r}".format(extra_kwargs))
|
951
|
+
|
952
|
+
query_params = {
|
953
|
+
"compartmentId": compartment_id
|
954
|
+
}
|
955
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
956
|
+
|
957
|
+
header_params = {
|
958
|
+
"accept": "application/json",
|
959
|
+
"content-type": "application/json",
|
960
|
+
"if-match": kwargs.get("if_match", missing),
|
961
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
962
|
+
}
|
963
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
964
|
+
|
965
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
966
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
967
|
+
client_retry_strategy=self.retry_strategy
|
968
|
+
)
|
969
|
+
if retry_strategy is None:
|
970
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
971
|
+
|
972
|
+
if retry_strategy:
|
973
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
974
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
975
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
976
|
+
return retry_strategy.make_retrying_call(
|
977
|
+
self.base_client.call_api,
|
978
|
+
resource_path=resource_path,
|
979
|
+
method=method,
|
980
|
+
query_params=query_params,
|
981
|
+
header_params=header_params,
|
982
|
+
body=update_governance_instance_configuration_details,
|
983
|
+
response_type="GovernanceInstanceConfiguration",
|
984
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
985
|
+
operation_name=operation_name,
|
986
|
+
api_reference_link=api_reference_link,
|
987
|
+
required_arguments=required_arguments)
|
988
|
+
else:
|
989
|
+
return self.base_client.call_api(
|
990
|
+
resource_path=resource_path,
|
991
|
+
method=method,
|
992
|
+
query_params=query_params,
|
993
|
+
header_params=header_params,
|
994
|
+
body=update_governance_instance_configuration_details,
|
995
|
+
response_type="GovernanceInstanceConfiguration",
|
996
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
997
|
+
operation_name=operation_name,
|
998
|
+
api_reference_link=api_reference_link,
|
999
|
+
required_arguments=required_arguments)
|