oci 2.154.0__py3-none-any.whl → 2.154.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +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 +28 -28
- 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/apiaccesscontrol/__init__.py +20 -0
- oci/apiaccesscontrol/api_metadata_client.py +567 -0
- oci/apiaccesscontrol/api_metadata_client_composite_operations.py +26 -0
- oci/apiaccesscontrol/models/__init__.py +72 -0
- oci/apiaccesscontrol/models/api_metadata.py +596 -0
- oci/apiaccesscontrol/models/api_metadata_by_entity_type_collection.py +70 -0
- oci/apiaccesscontrol/models/api_metadata_by_entity_type_summary.py +218 -0
- oci/apiaccesscontrol/models/api_metadata_collection.py +70 -0
- oci/apiaccesscontrol/models/api_metadata_summary.py +486 -0
- oci/apiaccesscontrol/models/approve_privileged_api_request_details.py +105 -0
- oci/apiaccesscontrol/models/approver_detail.py +202 -0
- oci/apiaccesscontrol/models/change_privileged_api_control_compartment_details.py +74 -0
- oci/apiaccesscontrol/models/close_privileged_api_request_details.py +70 -0
- oci/apiaccesscontrol/models/create_privileged_api_control_details.py +404 -0
- oci/apiaccesscontrol/models/create_privileged_api_request_details.py +502 -0
- oci/apiaccesscontrol/models/privileged_api_control.py +761 -0
- oci/apiaccesscontrol/models/privileged_api_control_collection.py +70 -0
- oci/apiaccesscontrol/models/privileged_api_control_summary.py +494 -0
- oci/apiaccesscontrol/models/privileged_api_details.py +132 -0
- oci/apiaccesscontrol/models/privileged_api_request.py +1209 -0
- oci/apiaccesscontrol/models/privileged_api_request_collection.py +70 -0
- oci/apiaccesscontrol/models/privileged_api_request_operation_details.py +101 -0
- oci/apiaccesscontrol/models/privileged_api_request_summary.py +750 -0
- oci/apiaccesscontrol/models/reject_privileged_api_request_details.py +70 -0
- oci/apiaccesscontrol/models/revoke_privileged_api_request_details.py +70 -0
- oci/apiaccesscontrol/models/update_privileged_api_control_details.py +369 -0
- oci/apiaccesscontrol/models/work_request.py +525 -0
- oci/apiaccesscontrol/models/work_request_error.py +144 -0
- oci/apiaccesscontrol/models/work_request_error_collection.py +70 -0
- oci/apiaccesscontrol/models/work_request_log_entry.py +107 -0
- oci/apiaccesscontrol/models/work_request_log_entry_collection.py +70 -0
- oci/apiaccesscontrol/models/work_request_resource.py +236 -0
- oci/apiaccesscontrol/models/work_request_summary.py +523 -0
- oci/apiaccesscontrol/models/work_request_summary_collection.py +70 -0
- oci/apiaccesscontrol/privileged_api_control_client.py +865 -0
- oci/apiaccesscontrol/privileged_api_control_client_composite_operations.py +202 -0
- oci/apiaccesscontrol/privileged_api_requests_client.py +1012 -0
- oci/apiaccesscontrol/privileged_api_requests_client_composite_operations.py +233 -0
- oci/apiaccesscontrol/privileged_api_work_request_client.py +817 -0
- oci/apiaccesscontrol/privileged_api_work_request_client_composite_operations.py +26 -0
- 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 +12 -12
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +56 -56
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +88 -88
- 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/capacity_management/demand_signal_client.py +13 -13
- oci/capacity_management/internal_demand_signal_client.py +12 -12
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/models/available_plugin_summary.py +9 -9
- oci/compute_instance_agent/models/instance_agent_command_content.py +37 -2
- oci/compute_instance_agent/models/instance_agent_plugin.py +33 -9
- oci/compute_instance_agent/models/instance_agent_plugin_summary.py +31 -7
- oci/compute_instance_agent/models/plugin.py +11 -11
- oci/compute_instance_agent/plugin_client.py +13 -8
- oci/compute_instance_agent/pluginconfig_client.py +14 -10
- oci/container_engine/container_engine_client.py +46 -46
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +125 -125
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +2 -0
- oci/core/models/capacity_bin.py +225 -0
- oci/core/models/compute_bare_metal_host_placement_constraint_details.py +4 -3
- oci/core/models/dedicated_vm_host.py +64 -2
- oci/core/models/host_group_placement_constraint_details.py +3 -3
- oci/core/models/placement_constraint_details.py +7 -3
- oci/core/virtual_network_client.py +258 -258
- 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 +45 -45
- 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 +317 -317
- oci/data_science/data_science_client.py +145 -145
- oci/database/database_client.py +425 -419
- oci/database_management/db_management_client.py +229 -229
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +15 -15
- 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/dblm/db_life_cycle_management_client.py +14 -14
- 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 +31 -31
- oci/distributed_database/distributed_autonomous_db_service_client.py +18 -18
- oci/distributed_database/distributed_db_private_endpoint_service_client.py +7 -7
- oci/distributed_database/distributed_db_service_client.py +19 -19
- oci/distributed_database/distributed_db_work_request_service_client.py +4 -4
- 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 +74 -74
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
- oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
- oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
- oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
- oci/fleet_apps_management/fleet_apps_management_work_request_client.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 +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
- 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 +89 -89
- 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 +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- 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 +200 -200
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +18 -18
- 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/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- oci/model_deployment/model_deployment_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +8 -8
- 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 +92 -92
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- 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 +17 -17
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +181 -181
- 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 +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- 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 +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- 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 +34 -34
- 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/__init__.py +5 -1
- oci/redis/models/__init__.py +30 -0
- oci/redis/models/attach_oci_cache_users_details.py +70 -0
- oci/redis/models/attached_oci_cache_cluster.py +70 -0
- oci/redis/models/attached_oci_cache_user.py +70 -0
- oci/redis/models/authentication_mode.py +107 -0
- oci/redis/models/change_oci_cache_user_compartment_details.py +70 -0
- oci/redis/models/create_identity_token_details.py +167 -0
- oci/redis/models/create_oci_cache_user_details.py +287 -0
- oci/redis/models/detach_oci_cache_users_details.py +70 -0
- oci/redis/models/iam_authentication_mode.py +49 -0
- oci/redis/models/identity_token_details_response.py +101 -0
- oci/redis/models/oci_cache_user.py +492 -0
- oci/redis/models/oci_cache_user_collection.py +70 -0
- oci/redis/models/oci_cache_user_summary.py +386 -0
- oci/redis/models/password_authentication_mode.py +80 -0
- oci/redis/models/update_oci_cache_user_details.py +225 -0
- oci/redis/models/work_request.py +27 -3
- oci/redis/models/work_request_summary.py +27 -3
- oci/redis/oci_cache_user_client.py +951 -0
- oci/redis/oci_cache_user_client_composite_operations.py +196 -0
- oci/redis/redis_cluster_client.py +410 -12
- oci/redis/redis_cluster_client_composite_operations.py +88 -0
- oci/redis/redis_identity_client.py +241 -0
- oci/redis/redis_identity_client_composite_operations.py +26 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +14 -14
- 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 +87 -87
- 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 +14 -14
- 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/wlms/__init__.py +16 -0
- oci/wlms/models/__init__.py +136 -0
- oci/wlms/models/agreement.py +132 -0
- oci/wlms/models/agreement_record.py +132 -0
- oci/wlms/models/agreement_record_collection.py +70 -0
- oci/wlms/models/agreement_record_summary.py +132 -0
- oci/wlms/models/applicable_patch_collection.py +70 -0
- oci/wlms/models/applicable_patch_summary.py +245 -0
- oci/wlms/models/backup.py +265 -0
- oci/wlms/models/backup_collection.py +70 -0
- oci/wlms/models/backup_content.py +99 -0
- oci/wlms/models/backup_summary.py +265 -0
- oci/wlms/models/backup_to_restore.py +121 -0
- oci/wlms/models/binary_backup_content.py +76 -0
- oci/wlms/models/change_wls_domain_compartment_details.py +74 -0
- oci/wlms/models/configuration.py +101 -0
- oci/wlms/models/create_agreement_record_details.py +101 -0
- oci/wlms/models/default_error.py +101 -0
- oci/wlms/models/install_latest_patches_on_wls_domain_details.py +101 -0
- oci/wlms/models/installed_patch_collection.py +70 -0
- oci/wlms/models/installed_patch_summary.py +140 -0
- oci/wlms/models/managed_instance.py +406 -0
- oci/wlms/models/managed_instance_collection.py +70 -0
- oci/wlms/models/managed_instance_configuration.py +101 -0
- oci/wlms/models/managed_instance_summary.py +311 -0
- oci/wlms/models/middleware_backup_patch.py +140 -0
- oci/wlms/models/middleware_binary_backup_content.py +101 -0
- oci/wlms/models/patch.py +245 -0
- oci/wlms/models/required_policy_collection.py +70 -0
- oci/wlms/models/required_policy_summary.py +132 -0
- oci/wlms/models/resource_inventory.py +262 -0
- oci/wlms/models/restart_wls_domain_details.py +70 -0
- oci/wlms/models/restore_wls_domain_details.py +132 -0
- oci/wlms/models/scan_result_collection.py +70 -0
- oci/wlms/models/scan_result_summary.py +288 -0
- oci/wlms/models/server.py +696 -0
- oci/wlms/models/server_collection.py +70 -0
- oci/wlms/models/server_summary.py +696 -0
- oci/wlms/models/server_to_restore.py +117 -0
- oci/wlms/models/set_restart_order_details.py +66 -0
- oci/wlms/models/set_restart_order_server_collection.py +70 -0
- oci/wlms/models/set_restart_order_server_summary.py +101 -0
- oci/wlms/models/stop_wls_domain_details.py +70 -0
- oci/wlms/models/update_configuration_details.py +101 -0
- oci/wlms/models/update_managed_instance_configuration_details.py +101 -0
- oci/wlms/models/update_managed_instance_details.py +66 -0
- oci/wlms/models/update_wls_domain_configuration_details.py +350 -0
- oci/wlms/models/update_wls_domain_credential_details.py +132 -0
- oci/wlms/models/update_wls_domain_details.py +148 -0
- oci/wlms/models/wls_domain.py +616 -0
- oci/wlms/models/wls_domain_collection.py +70 -0
- oci/wlms/models/wls_domain_configuration.py +350 -0
- oci/wlms/models/wls_domain_credential.py +183 -0
- oci/wlms/models/wls_domain_credential_collection.py +70 -0
- oci/wlms/models/wls_domain_credential_summary.py +101 -0
- oci/wlms/models/wls_domain_summary.py +516 -0
- oci/wlms/models/work_request.py +453 -0
- oci/wlms/models/work_request_error.py +142 -0
- oci/wlms/models/work_request_error_collection.py +70 -0
- oci/wlms/models/work_request_log_entry.py +105 -0
- oci/wlms/models/work_request_log_entry_collection.py +70 -0
- oci/wlms/models/work_request_resource.py +236 -0
- oci/wlms/models/work_request_summary.py +451 -0
- oci/wlms/models/work_request_summary_collection.py +70 -0
- oci/wlms/weblogic_management_service_client.py +5410 -0
- oci/wlms/weblogic_management_service_client_composite_operations.py +433 -0
- oci/wlms/weblogic_management_service_configuration_client.py +331 -0
- oci/wlms/weblogic_management_service_configuration_client_composite_operations.py +26 -0
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/METADATA +1 -1
- {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/RECORD +417 -289
- {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/LICENSE.txt +0 -0
- {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/WHEEL +0 -0
- {oci-2.154.0.dist-info → oci-2.154.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1012 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20241130
|
6
|
+
|
7
|
+
from __future__ import absolute_import
|
8
|
+
|
9
|
+
from oci._vendor import requests # noqa: F401
|
10
|
+
from oci._vendor import six
|
11
|
+
|
12
|
+
from oci import retry, circuit_breaker # noqa: F401
|
13
|
+
from oci.base_client import BaseClient
|
14
|
+
from oci.config import get_config_value_or_default, validate_config
|
15
|
+
from oci.signer import Signer
|
16
|
+
from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
|
17
|
+
from oci.exceptions import InvalidAlloyConfig
|
18
|
+
from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
|
19
|
+
from .models import apiaccesscontrol_type_mapping
|
20
|
+
missing = Sentinel("Missing")
|
21
|
+
|
22
|
+
|
23
|
+
class PrivilegedApiRequestsClient(object):
|
24
|
+
"""
|
25
|
+
This service is used to restrict the control plane service apis; so that everybody won't be
|
26
|
+
able to access those apis.
|
27
|
+
There are two main resouces defined as a part of this service
|
28
|
+
1. PrivilegedApiControl: This is created by the customer which defines which service apis are
|
29
|
+
controlled and who can access it.
|
30
|
+
2. PrivilegedApiRequest: This is a request object again created by the customer operators who seek access to those privileged apis. After a request is obtained based on the PrivilegedAccessControl for which the api belongs to, either it can be approved so that the requested person can execute the service apis or it will wait for the customer to approve it.
|
31
|
+
"""
|
32
|
+
|
33
|
+
def __init__(self, config, **kwargs):
|
34
|
+
"""
|
35
|
+
Creates a new service client
|
36
|
+
|
37
|
+
:param dict config:
|
38
|
+
Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
|
39
|
+
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
|
40
|
+
the dict using :py:meth:`~oci.config.validate_config`
|
41
|
+
|
42
|
+
:param str service_endpoint: (optional)
|
43
|
+
The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
|
44
|
+
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
|
45
|
+
need to specify a service endpoint.
|
46
|
+
|
47
|
+
:param timeout: (optional)
|
48
|
+
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
|
49
|
+
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
|
50
|
+
a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
|
51
|
+
:type timeout: float or tuple(float, float)
|
52
|
+
|
53
|
+
:param signer: (optional)
|
54
|
+
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
|
55
|
+
provided in the config parameter.
|
56
|
+
|
57
|
+
One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
|
58
|
+
by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
|
59
|
+
:type signer: :py:class:`~oci.signer.AbstractBaseSigner`
|
60
|
+
|
61
|
+
:param obj retry_strategy: (optional)
|
62
|
+
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.
|
63
|
+
Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
|
64
|
+
Any value provided at the operation level will override whatever is specified at the client level.
|
65
|
+
|
66
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
|
67
|
+
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>`__.
|
68
|
+
|
69
|
+
:param obj circuit_breaker_strategy: (optional)
|
70
|
+
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
|
71
|
+
This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
|
72
|
+
The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
|
73
|
+
|
74
|
+
:param function circuit_breaker_callback: (optional)
|
75
|
+
Callback function to receive any exceptions triggerred by the circuit breaker.
|
76
|
+
|
77
|
+
:param bool client_level_realm_specific_endpoint_template_enabled: (optional)
|
78
|
+
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.
|
79
|
+
|
80
|
+
:param allow_control_chars: (optional)
|
81
|
+
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
|
82
|
+
allow control characters to be in the response object.
|
83
|
+
"""
|
84
|
+
if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("apiaccesscontrol"):
|
85
|
+
raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
|
86
|
+
|
87
|
+
validate_config(config, signer=kwargs.get('signer'))
|
88
|
+
if 'signer' in kwargs:
|
89
|
+
signer = kwargs['signer']
|
90
|
+
|
91
|
+
elif AUTHENTICATION_TYPE_FIELD_NAME in config:
|
92
|
+
signer = get_signer_from_authentication_type(config)
|
93
|
+
|
94
|
+
else:
|
95
|
+
signer = Signer(
|
96
|
+
tenancy=config["tenancy"],
|
97
|
+
user=config["user"],
|
98
|
+
fingerprint=config["fingerprint"],
|
99
|
+
private_key_file_location=config.get("key_file"),
|
100
|
+
pass_phrase=get_config_value_or_default(config, "pass_phrase"),
|
101
|
+
private_key_content=config.get("key_content")
|
102
|
+
)
|
103
|
+
|
104
|
+
base_client_init_kwargs = {
|
105
|
+
'regional_client': True,
|
106
|
+
'service_endpoint': kwargs.get('service_endpoint'),
|
107
|
+
'base_path': '/20241130',
|
108
|
+
'service_endpoint_template': 'https://pactl.{region}.oci.{secondLevelDomain}',
|
109
|
+
'service_endpoint_template_per_realm': { }, # noqa: E201 E202
|
110
|
+
'skip_deserialization': kwargs.get('skip_deserialization', False),
|
111
|
+
'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
|
112
|
+
'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
|
113
|
+
}
|
114
|
+
if 'timeout' in kwargs:
|
115
|
+
base_client_init_kwargs['timeout'] = kwargs.get('timeout')
|
116
|
+
if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
|
117
|
+
base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
|
118
|
+
if 'allow_control_chars' in kwargs:
|
119
|
+
base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
|
120
|
+
self.base_client = BaseClient("privileged_api_requests", config, signer, apiaccesscontrol_type_mapping, **base_client_init_kwargs)
|
121
|
+
self.retry_strategy = kwargs.get('retry_strategy')
|
122
|
+
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
123
|
+
|
124
|
+
def approve_privileged_api_request(self, privileged_api_request_id, approve_privileged_api_request_details, **kwargs):
|
125
|
+
"""
|
126
|
+
Approves privilegedApi request.
|
127
|
+
|
128
|
+
|
129
|
+
:param str privileged_api_request_id: (required)
|
130
|
+
unique PrivilegedApiRequest identifier
|
131
|
+
|
132
|
+
:param oci.apiaccesscontrol.models.ApprovePrivilegedApiRequestDetails approve_privileged_api_request_details: (required)
|
133
|
+
Details regarding the approval of an privilegedApi request created by the operator.
|
134
|
+
|
135
|
+
:param str if_match: (optional)
|
136
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
137
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for
|
138
|
+
that resource. The resource will be updated or deleted only if the etag you provide
|
139
|
+
matches the resource's current etag value.
|
140
|
+
|
141
|
+
:param str opc_request_id: (optional)
|
142
|
+
Unique Oracle-assigned identifier for the request. If you need to contact
|
143
|
+
Oracle about a particular request, please provide the request ID.
|
144
|
+
The only valid characters for request IDs are letters, numbers,
|
145
|
+
underscore, and dash.
|
146
|
+
|
147
|
+
:param str opc_retry_token: (optional)
|
148
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
149
|
+
server error without risk of running that same action again. Retry tokens expire after 24
|
150
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
151
|
+
has been deleted and removed from the system, then a retry of the original creation request
|
152
|
+
might be rejected.
|
153
|
+
|
154
|
+
:param obj retry_strategy: (optional)
|
155
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
156
|
+
|
157
|
+
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.
|
158
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
159
|
+
|
160
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
161
|
+
|
162
|
+
:param bool allow_control_chars: (optional)
|
163
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
164
|
+
By default, the response will not allow control characters in strings
|
165
|
+
|
166
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
167
|
+
:rtype: :class:`~oci.response.Response`
|
168
|
+
|
169
|
+
:example:
|
170
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/apiaccesscontrol/approve_privileged_api_request.py.html>`__ to see an example of how to use approve_privileged_api_request API.
|
171
|
+
"""
|
172
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
173
|
+
required_arguments = ['privilegedApiRequestId']
|
174
|
+
resource_path = "/privilegedApiRequests/{privilegedApiRequestId}/actions/approve"
|
175
|
+
method = "POST"
|
176
|
+
operation_name = "approve_privileged_api_request"
|
177
|
+
api_reference_link = ""
|
178
|
+
|
179
|
+
# Don't accept unknown kwargs
|
180
|
+
expected_kwargs = [
|
181
|
+
"allow_control_chars",
|
182
|
+
"retry_strategy",
|
183
|
+
"if_match",
|
184
|
+
"opc_request_id",
|
185
|
+
"opc_retry_token"
|
186
|
+
]
|
187
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
188
|
+
if extra_kwargs:
|
189
|
+
raise ValueError(
|
190
|
+
f"approve_privileged_api_request got unknown kwargs: {extra_kwargs!r}")
|
191
|
+
|
192
|
+
path_params = {
|
193
|
+
"privilegedApiRequestId": privileged_api_request_id
|
194
|
+
}
|
195
|
+
|
196
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
197
|
+
|
198
|
+
for (k, v) in six.iteritems(path_params):
|
199
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
200
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
201
|
+
|
202
|
+
header_params = {
|
203
|
+
"accept": "application/json",
|
204
|
+
"content-type": "application/json",
|
205
|
+
"if-match": kwargs.get("if_match", missing),
|
206
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
207
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
208
|
+
}
|
209
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
210
|
+
|
211
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
212
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
213
|
+
client_retry_strategy=self.retry_strategy
|
214
|
+
)
|
215
|
+
if retry_strategy is None:
|
216
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
217
|
+
|
218
|
+
if retry_strategy:
|
219
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
220
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
221
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
222
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
223
|
+
return retry_strategy.make_retrying_call(
|
224
|
+
self.base_client.call_api,
|
225
|
+
resource_path=resource_path,
|
226
|
+
method=method,
|
227
|
+
path_params=path_params,
|
228
|
+
header_params=header_params,
|
229
|
+
body=approve_privileged_api_request_details,
|
230
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
231
|
+
operation_name=operation_name,
|
232
|
+
api_reference_link=api_reference_link,
|
233
|
+
required_arguments=required_arguments)
|
234
|
+
else:
|
235
|
+
return self.base_client.call_api(
|
236
|
+
resource_path=resource_path,
|
237
|
+
method=method,
|
238
|
+
path_params=path_params,
|
239
|
+
header_params=header_params,
|
240
|
+
body=approve_privileged_api_request_details,
|
241
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
242
|
+
operation_name=operation_name,
|
243
|
+
api_reference_link=api_reference_link,
|
244
|
+
required_arguments=required_arguments)
|
245
|
+
|
246
|
+
def close_privileged_api_request(self, privileged_api_request_id, close_privileged_api_request_details, **kwargs):
|
247
|
+
"""
|
248
|
+
Closes privilegedApi request.
|
249
|
+
|
250
|
+
|
251
|
+
:param str privileged_api_request_id: (required)
|
252
|
+
unique PrivilegedApiRequest identifier
|
253
|
+
|
254
|
+
:param oci.apiaccesscontrol.models.ClosePrivilegedApiRequestDetails close_privileged_api_request_details: (required)
|
255
|
+
Details regarding the close of an privilegedApi request created by the operator.
|
256
|
+
|
257
|
+
:param str if_match: (optional)
|
258
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
259
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for
|
260
|
+
that resource. The resource will be updated or deleted only if the etag you provide
|
261
|
+
matches the resource's current etag value.
|
262
|
+
|
263
|
+
:param str opc_request_id: (optional)
|
264
|
+
Unique Oracle-assigned identifier for the request. If you need to contact
|
265
|
+
Oracle about a particular request, please provide the request ID.
|
266
|
+
The only valid characters for request IDs are letters, numbers,
|
267
|
+
underscore, and dash.
|
268
|
+
|
269
|
+
:param str opc_retry_token: (optional)
|
270
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
271
|
+
server error without risk of running that same action again. Retry tokens expire after 24
|
272
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
273
|
+
has been deleted and removed from the system, then a retry of the original creation request
|
274
|
+
might be rejected.
|
275
|
+
|
276
|
+
:param obj retry_strategy: (optional)
|
277
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
278
|
+
|
279
|
+
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.
|
280
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
281
|
+
|
282
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
283
|
+
|
284
|
+
:param bool allow_control_chars: (optional)
|
285
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
286
|
+
By default, the response will not allow control characters in strings
|
287
|
+
|
288
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
289
|
+
:rtype: :class:`~oci.response.Response`
|
290
|
+
|
291
|
+
:example:
|
292
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/apiaccesscontrol/close_privileged_api_request.py.html>`__ to see an example of how to use close_privileged_api_request API.
|
293
|
+
"""
|
294
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
295
|
+
required_arguments = ['privilegedApiRequestId']
|
296
|
+
resource_path = "/privilegedApiRequests/{privilegedApiRequestId}/actions/close"
|
297
|
+
method = "POST"
|
298
|
+
operation_name = "close_privileged_api_request"
|
299
|
+
api_reference_link = ""
|
300
|
+
|
301
|
+
# Don't accept unknown kwargs
|
302
|
+
expected_kwargs = [
|
303
|
+
"allow_control_chars",
|
304
|
+
"retry_strategy",
|
305
|
+
"if_match",
|
306
|
+
"opc_request_id",
|
307
|
+
"opc_retry_token"
|
308
|
+
]
|
309
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
310
|
+
if extra_kwargs:
|
311
|
+
raise ValueError(
|
312
|
+
f"close_privileged_api_request got unknown kwargs: {extra_kwargs!r}")
|
313
|
+
|
314
|
+
path_params = {
|
315
|
+
"privilegedApiRequestId": privileged_api_request_id
|
316
|
+
}
|
317
|
+
|
318
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
319
|
+
|
320
|
+
for (k, v) in six.iteritems(path_params):
|
321
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
322
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
323
|
+
|
324
|
+
header_params = {
|
325
|
+
"accept": "application/json",
|
326
|
+
"content-type": "application/json",
|
327
|
+
"if-match": kwargs.get("if_match", missing),
|
328
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
329
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
330
|
+
}
|
331
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
332
|
+
|
333
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
334
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
335
|
+
client_retry_strategy=self.retry_strategy
|
336
|
+
)
|
337
|
+
if retry_strategy is None:
|
338
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
339
|
+
|
340
|
+
if retry_strategy:
|
341
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
342
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
343
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
344
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
345
|
+
return retry_strategy.make_retrying_call(
|
346
|
+
self.base_client.call_api,
|
347
|
+
resource_path=resource_path,
|
348
|
+
method=method,
|
349
|
+
path_params=path_params,
|
350
|
+
header_params=header_params,
|
351
|
+
body=close_privileged_api_request_details,
|
352
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
353
|
+
operation_name=operation_name,
|
354
|
+
api_reference_link=api_reference_link,
|
355
|
+
required_arguments=required_arguments)
|
356
|
+
else:
|
357
|
+
return self.base_client.call_api(
|
358
|
+
resource_path=resource_path,
|
359
|
+
method=method,
|
360
|
+
path_params=path_params,
|
361
|
+
header_params=header_params,
|
362
|
+
body=close_privileged_api_request_details,
|
363
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
364
|
+
operation_name=operation_name,
|
365
|
+
api_reference_link=api_reference_link,
|
366
|
+
required_arguments=required_arguments)
|
367
|
+
|
368
|
+
def create_privileged_api_request(self, create_privileged_api_request_details, **kwargs):
|
369
|
+
"""
|
370
|
+
Creates a PrivilegedApiRequest.
|
371
|
+
|
372
|
+
|
373
|
+
:param oci.apiaccesscontrol.models.CreatePrivilegedApiRequestDetails create_privileged_api_request_details: (required)
|
374
|
+
Details for the new PrivilegedApiRequest.
|
375
|
+
|
376
|
+
:param str opc_retry_token: (optional)
|
377
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
378
|
+
server error without risk of running that same action again. Retry tokens expire after 24
|
379
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
380
|
+
has been deleted and removed from the system, then a retry of the original creation request
|
381
|
+
might be rejected.
|
382
|
+
|
383
|
+
:param str opc_request_id: (optional)
|
384
|
+
Unique Oracle-assigned identifier for the request. If you need to contact
|
385
|
+
Oracle about a particular request, please provide the request ID.
|
386
|
+
The only valid characters for request IDs are letters, numbers,
|
387
|
+
underscore, and dash.
|
388
|
+
|
389
|
+
:param obj retry_strategy: (optional)
|
390
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
391
|
+
|
392
|
+
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.
|
393
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
394
|
+
|
395
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
396
|
+
|
397
|
+
:param bool allow_control_chars: (optional)
|
398
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
399
|
+
By default, the response will not allow control characters in strings
|
400
|
+
|
401
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.apiaccesscontrol.models.PrivilegedApiRequest`
|
402
|
+
:rtype: :class:`~oci.response.Response`
|
403
|
+
|
404
|
+
:example:
|
405
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/apiaccesscontrol/create_privileged_api_request.py.html>`__ to see an example of how to use create_privileged_api_request API.
|
406
|
+
"""
|
407
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
408
|
+
required_arguments = []
|
409
|
+
resource_path = "/privilegedApiRequests"
|
410
|
+
method = "POST"
|
411
|
+
operation_name = "create_privileged_api_request"
|
412
|
+
api_reference_link = ""
|
413
|
+
|
414
|
+
# Don't accept unknown kwargs
|
415
|
+
expected_kwargs = [
|
416
|
+
"allow_control_chars",
|
417
|
+
"retry_strategy",
|
418
|
+
"opc_retry_token",
|
419
|
+
"opc_request_id"
|
420
|
+
]
|
421
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
422
|
+
if extra_kwargs:
|
423
|
+
raise ValueError(
|
424
|
+
f"create_privileged_api_request got unknown kwargs: {extra_kwargs!r}")
|
425
|
+
|
426
|
+
header_params = {
|
427
|
+
"accept": "application/json",
|
428
|
+
"content-type": "application/json",
|
429
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
430
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
431
|
+
}
|
432
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
433
|
+
|
434
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
435
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
436
|
+
client_retry_strategy=self.retry_strategy
|
437
|
+
)
|
438
|
+
if retry_strategy is None:
|
439
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
440
|
+
|
441
|
+
if retry_strategy:
|
442
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
443
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
444
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
445
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
446
|
+
return retry_strategy.make_retrying_call(
|
447
|
+
self.base_client.call_api,
|
448
|
+
resource_path=resource_path,
|
449
|
+
method=method,
|
450
|
+
header_params=header_params,
|
451
|
+
body=create_privileged_api_request_details,
|
452
|
+
response_type="PrivilegedApiRequest",
|
453
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
454
|
+
operation_name=operation_name,
|
455
|
+
api_reference_link=api_reference_link,
|
456
|
+
required_arguments=required_arguments)
|
457
|
+
else:
|
458
|
+
return self.base_client.call_api(
|
459
|
+
resource_path=resource_path,
|
460
|
+
method=method,
|
461
|
+
header_params=header_params,
|
462
|
+
body=create_privileged_api_request_details,
|
463
|
+
response_type="PrivilegedApiRequest",
|
464
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
465
|
+
operation_name=operation_name,
|
466
|
+
api_reference_link=api_reference_link,
|
467
|
+
required_arguments=required_arguments)
|
468
|
+
|
469
|
+
def get_privileged_api_request(self, privileged_api_request_id, **kwargs):
|
470
|
+
"""
|
471
|
+
Gets information about a PrivilegedApiRequest.
|
472
|
+
|
473
|
+
|
474
|
+
:param str privileged_api_request_id: (required)
|
475
|
+
unique PrivilegedApiRequest identifier
|
476
|
+
|
477
|
+
:param str opc_request_id: (optional)
|
478
|
+
Unique Oracle-assigned identifier for the request. If you need to contact
|
479
|
+
Oracle about a particular request, please provide the request ID.
|
480
|
+
The only valid characters for request IDs are letters, numbers,
|
481
|
+
underscore, and dash.
|
482
|
+
|
483
|
+
:param obj retry_strategy: (optional)
|
484
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
485
|
+
|
486
|
+
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.
|
487
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
488
|
+
|
489
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
490
|
+
|
491
|
+
:param bool allow_control_chars: (optional)
|
492
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
493
|
+
By default, the response will not allow control characters in strings
|
494
|
+
|
495
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.apiaccesscontrol.models.PrivilegedApiRequest`
|
496
|
+
:rtype: :class:`~oci.response.Response`
|
497
|
+
|
498
|
+
:example:
|
499
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/apiaccesscontrol/get_privileged_api_request.py.html>`__ to see an example of how to use get_privileged_api_request API.
|
500
|
+
"""
|
501
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
502
|
+
required_arguments = ['privilegedApiRequestId']
|
503
|
+
resource_path = "/privilegedApiRequests/{privilegedApiRequestId}"
|
504
|
+
method = "GET"
|
505
|
+
operation_name = "get_privileged_api_request"
|
506
|
+
api_reference_link = ""
|
507
|
+
|
508
|
+
# Don't accept unknown kwargs
|
509
|
+
expected_kwargs = [
|
510
|
+
"allow_control_chars",
|
511
|
+
"retry_strategy",
|
512
|
+
"opc_request_id"
|
513
|
+
]
|
514
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
515
|
+
if extra_kwargs:
|
516
|
+
raise ValueError(
|
517
|
+
f"get_privileged_api_request got unknown kwargs: {extra_kwargs!r}")
|
518
|
+
|
519
|
+
path_params = {
|
520
|
+
"privilegedApiRequestId": privileged_api_request_id
|
521
|
+
}
|
522
|
+
|
523
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
524
|
+
|
525
|
+
for (k, v) in six.iteritems(path_params):
|
526
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
527
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
528
|
+
|
529
|
+
header_params = {
|
530
|
+
"accept": "application/json",
|
531
|
+
"content-type": "application/json",
|
532
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
533
|
+
}
|
534
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
535
|
+
|
536
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
537
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
538
|
+
client_retry_strategy=self.retry_strategy
|
539
|
+
)
|
540
|
+
if retry_strategy is None:
|
541
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
542
|
+
|
543
|
+
if retry_strategy:
|
544
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
545
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
546
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
547
|
+
return retry_strategy.make_retrying_call(
|
548
|
+
self.base_client.call_api,
|
549
|
+
resource_path=resource_path,
|
550
|
+
method=method,
|
551
|
+
path_params=path_params,
|
552
|
+
header_params=header_params,
|
553
|
+
response_type="PrivilegedApiRequest",
|
554
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
555
|
+
operation_name=operation_name,
|
556
|
+
api_reference_link=api_reference_link,
|
557
|
+
required_arguments=required_arguments)
|
558
|
+
else:
|
559
|
+
return self.base_client.call_api(
|
560
|
+
resource_path=resource_path,
|
561
|
+
method=method,
|
562
|
+
path_params=path_params,
|
563
|
+
header_params=header_params,
|
564
|
+
response_type="PrivilegedApiRequest",
|
565
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
566
|
+
operation_name=operation_name,
|
567
|
+
api_reference_link=api_reference_link,
|
568
|
+
required_arguments=required_arguments)
|
569
|
+
|
570
|
+
def list_privileged_api_requests(self, **kwargs):
|
571
|
+
"""
|
572
|
+
Lists all privilegedApi requests in the compartment.
|
573
|
+
|
574
|
+
|
575
|
+
:param str compartment_id: (optional)
|
576
|
+
The `OCID`__ of the compartment in which to list resources.
|
577
|
+
|
578
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
579
|
+
|
580
|
+
:param str id: (optional)
|
581
|
+
The `OCID`__ of the PrivilegedApiRequest.
|
582
|
+
|
583
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
584
|
+
|
585
|
+
:param str display_name: (optional)
|
586
|
+
A filter to return only resources that match the given display name exactly.
|
587
|
+
|
588
|
+
:param str resource_id: (optional)
|
589
|
+
The `OCID`__ of the resource .
|
590
|
+
|
591
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
592
|
+
|
593
|
+
:param str resource_type: (optional)
|
594
|
+
A filter to return only lists of resources that match the entire given service type.
|
595
|
+
|
596
|
+
:param str lifecycle_state: (optional)
|
597
|
+
A filter to return only resources that match the given lifecycle state. The
|
598
|
+
state value is case-insensitive.
|
599
|
+
|
600
|
+
Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"
|
601
|
+
|
602
|
+
:param str state: (optional)
|
603
|
+
A filter to return only resources that match the state. The
|
604
|
+
state value is case-insensitive.
|
605
|
+
|
606
|
+
Allowed values are: "CREATED", "APPROVAL_WAITING", "APPROVED", "APPROVED_FOR_FUTURE", "REJECTED", "DEPLOYED", "DEPLOY_FAILED", "CLOSE_FAILED", "REVOKE_FAILED", "EXPIRY_FAILED", "REVOKING", "REVOKED", "CLOSING", "CLOSED", "EXPIRED"
|
607
|
+
|
608
|
+
:param int limit: (optional)
|
609
|
+
For list pagination. The maximum number of results per page, or items to return in a
|
610
|
+
paginated \"List\" call. For important details about how pagination works, see
|
611
|
+
`List Pagination`__.
|
612
|
+
|
613
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
614
|
+
|
615
|
+
:param str page: (optional)
|
616
|
+
For list pagination. The value of the opc-next-page response header from the previous
|
617
|
+
\"List\" call. For important details about how pagination works, see
|
618
|
+
`List Pagination`__.
|
619
|
+
|
620
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
621
|
+
|
622
|
+
:param str sort_order: (optional)
|
623
|
+
The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
624
|
+
|
625
|
+
Allowed values are: "ASC", "DESC"
|
626
|
+
|
627
|
+
:param str sort_by: (optional)
|
628
|
+
The field to sort by. You can provide only one sort order. Default order for `timeCreated`
|
629
|
+
is descending. Default order for `displayName` is ascending.
|
630
|
+
|
631
|
+
Allowed values are: "timeCreated", "displayName"
|
632
|
+
|
633
|
+
:param str opc_request_id: (optional)
|
634
|
+
Unique Oracle-assigned identifier for the request. If you need to contact
|
635
|
+
Oracle about a particular request, please provide the request ID.
|
636
|
+
The only valid characters for request IDs are letters, numbers,
|
637
|
+
underscore, and dash.
|
638
|
+
|
639
|
+
:param obj retry_strategy: (optional)
|
640
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
641
|
+
|
642
|
+
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.
|
643
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
644
|
+
|
645
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
646
|
+
|
647
|
+
:param bool allow_control_chars: (optional)
|
648
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
649
|
+
By default, the response will not allow control characters in strings
|
650
|
+
|
651
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.apiaccesscontrol.models.PrivilegedApiRequestCollection`
|
652
|
+
:rtype: :class:`~oci.response.Response`
|
653
|
+
|
654
|
+
:example:
|
655
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/apiaccesscontrol/list_privileged_api_requests.py.html>`__ to see an example of how to use list_privileged_api_requests API.
|
656
|
+
"""
|
657
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
658
|
+
required_arguments = []
|
659
|
+
resource_path = "/privilegedApiRequests"
|
660
|
+
method = "GET"
|
661
|
+
operation_name = "list_privileged_api_requests"
|
662
|
+
api_reference_link = ""
|
663
|
+
|
664
|
+
# Don't accept unknown kwargs
|
665
|
+
expected_kwargs = [
|
666
|
+
"allow_control_chars",
|
667
|
+
"retry_strategy",
|
668
|
+
"compartment_id",
|
669
|
+
"id",
|
670
|
+
"display_name",
|
671
|
+
"resource_id",
|
672
|
+
"resource_type",
|
673
|
+
"lifecycle_state",
|
674
|
+
"state",
|
675
|
+
"limit",
|
676
|
+
"page",
|
677
|
+
"sort_order",
|
678
|
+
"sort_by",
|
679
|
+
"opc_request_id"
|
680
|
+
]
|
681
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
682
|
+
if extra_kwargs:
|
683
|
+
raise ValueError(
|
684
|
+
f"list_privileged_api_requests got unknown kwargs: {extra_kwargs!r}")
|
685
|
+
|
686
|
+
if 'lifecycle_state' in kwargs:
|
687
|
+
lifecycle_state_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]
|
688
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
689
|
+
raise ValueError(
|
690
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
691
|
+
)
|
692
|
+
|
693
|
+
if 'state' in kwargs:
|
694
|
+
state_allowed_values = ["CREATED", "APPROVAL_WAITING", "APPROVED", "APPROVED_FOR_FUTURE", "REJECTED", "DEPLOYED", "DEPLOY_FAILED", "CLOSE_FAILED", "REVOKE_FAILED", "EXPIRY_FAILED", "REVOKING", "REVOKED", "CLOSING", "CLOSED", "EXPIRED"]
|
695
|
+
if kwargs['state'] not in state_allowed_values:
|
696
|
+
raise ValueError(
|
697
|
+
f"Invalid value for `state`, must be one of { state_allowed_values }"
|
698
|
+
)
|
699
|
+
|
700
|
+
if 'sort_order' in kwargs:
|
701
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
702
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
703
|
+
raise ValueError(
|
704
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
705
|
+
)
|
706
|
+
|
707
|
+
if 'sort_by' in kwargs:
|
708
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
709
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
710
|
+
raise ValueError(
|
711
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
712
|
+
)
|
713
|
+
|
714
|
+
query_params = {
|
715
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
716
|
+
"id": kwargs.get("id", missing),
|
717
|
+
"displayName": kwargs.get("display_name", missing),
|
718
|
+
"resourceId": kwargs.get("resource_id", missing),
|
719
|
+
"resourceType": kwargs.get("resource_type", missing),
|
720
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
721
|
+
"state": kwargs.get("state", missing),
|
722
|
+
"limit": kwargs.get("limit", missing),
|
723
|
+
"page": kwargs.get("page", missing),
|
724
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
725
|
+
"sortBy": kwargs.get("sort_by", missing)
|
726
|
+
}
|
727
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
728
|
+
|
729
|
+
header_params = {
|
730
|
+
"accept": "application/json",
|
731
|
+
"content-type": "application/json",
|
732
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
733
|
+
}
|
734
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
735
|
+
|
736
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
737
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
738
|
+
client_retry_strategy=self.retry_strategy
|
739
|
+
)
|
740
|
+
if retry_strategy is None:
|
741
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
742
|
+
|
743
|
+
if retry_strategy:
|
744
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
745
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
746
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
747
|
+
return retry_strategy.make_retrying_call(
|
748
|
+
self.base_client.call_api,
|
749
|
+
resource_path=resource_path,
|
750
|
+
method=method,
|
751
|
+
query_params=query_params,
|
752
|
+
header_params=header_params,
|
753
|
+
response_type="PrivilegedApiRequestCollection",
|
754
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
755
|
+
operation_name=operation_name,
|
756
|
+
api_reference_link=api_reference_link,
|
757
|
+
required_arguments=required_arguments)
|
758
|
+
else:
|
759
|
+
return self.base_client.call_api(
|
760
|
+
resource_path=resource_path,
|
761
|
+
method=method,
|
762
|
+
query_params=query_params,
|
763
|
+
header_params=header_params,
|
764
|
+
response_type="PrivilegedApiRequestCollection",
|
765
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
766
|
+
operation_name=operation_name,
|
767
|
+
api_reference_link=api_reference_link,
|
768
|
+
required_arguments=required_arguments)
|
769
|
+
|
770
|
+
def reject_privileged_api_request(self, privileged_api_request_id, reject_privileged_api_request_details, **kwargs):
|
771
|
+
"""
|
772
|
+
Rejects privilegedApi request.
|
773
|
+
|
774
|
+
|
775
|
+
:param str privileged_api_request_id: (required)
|
776
|
+
unique PrivilegedApiRequest identifier
|
777
|
+
|
778
|
+
:param oci.apiaccesscontrol.models.RejectPrivilegedApiRequestDetails reject_privileged_api_request_details: (required)
|
779
|
+
Details regarding the rejection of privilegedApi request created by the operator.
|
780
|
+
|
781
|
+
:param str opc_retry_token: (optional)
|
782
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
783
|
+
server error without risk of running that same action again. Retry tokens expire after 24
|
784
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
785
|
+
has been deleted and removed from the system, then a retry of the original creation request
|
786
|
+
might be rejected.
|
787
|
+
|
788
|
+
:param str if_match: (optional)
|
789
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
790
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for
|
791
|
+
that resource. The resource will be updated or deleted only if the etag you provide
|
792
|
+
matches the resource's current etag value.
|
793
|
+
|
794
|
+
:param str opc_request_id: (optional)
|
795
|
+
Unique Oracle-assigned identifier for the request. If you need to contact
|
796
|
+
Oracle about a particular request, please provide the request ID.
|
797
|
+
The only valid characters for request IDs are letters, numbers,
|
798
|
+
underscore, and dash.
|
799
|
+
|
800
|
+
:param obj retry_strategy: (optional)
|
801
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
802
|
+
|
803
|
+
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.
|
804
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
805
|
+
|
806
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
807
|
+
|
808
|
+
:param bool allow_control_chars: (optional)
|
809
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
810
|
+
By default, the response will not allow control characters in strings
|
811
|
+
|
812
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
813
|
+
:rtype: :class:`~oci.response.Response`
|
814
|
+
|
815
|
+
:example:
|
816
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/apiaccesscontrol/reject_privileged_api_request.py.html>`__ to see an example of how to use reject_privileged_api_request API.
|
817
|
+
"""
|
818
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
819
|
+
required_arguments = ['privilegedApiRequestId']
|
820
|
+
resource_path = "/privilegedApiRequests/{privilegedApiRequestId}/actions/reject"
|
821
|
+
method = "POST"
|
822
|
+
operation_name = "reject_privileged_api_request"
|
823
|
+
api_reference_link = ""
|
824
|
+
|
825
|
+
# Don't accept unknown kwargs
|
826
|
+
expected_kwargs = [
|
827
|
+
"allow_control_chars",
|
828
|
+
"retry_strategy",
|
829
|
+
"opc_retry_token",
|
830
|
+
"if_match",
|
831
|
+
"opc_request_id"
|
832
|
+
]
|
833
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
834
|
+
if extra_kwargs:
|
835
|
+
raise ValueError(
|
836
|
+
f"reject_privileged_api_request got unknown kwargs: {extra_kwargs!r}")
|
837
|
+
|
838
|
+
path_params = {
|
839
|
+
"privilegedApiRequestId": privileged_api_request_id
|
840
|
+
}
|
841
|
+
|
842
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
843
|
+
|
844
|
+
for (k, v) in six.iteritems(path_params):
|
845
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
846
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
847
|
+
|
848
|
+
header_params = {
|
849
|
+
"accept": "application/json",
|
850
|
+
"content-type": "application/json",
|
851
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
852
|
+
"if-match": kwargs.get("if_match", missing),
|
853
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
854
|
+
}
|
855
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
856
|
+
|
857
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
858
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
859
|
+
client_retry_strategy=self.retry_strategy
|
860
|
+
)
|
861
|
+
if retry_strategy is None:
|
862
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
863
|
+
|
864
|
+
if retry_strategy:
|
865
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
866
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
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=reject_privileged_api_request_details,
|
876
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
877
|
+
operation_name=operation_name,
|
878
|
+
api_reference_link=api_reference_link,
|
879
|
+
required_arguments=required_arguments)
|
880
|
+
else:
|
881
|
+
return self.base_client.call_api(
|
882
|
+
resource_path=resource_path,
|
883
|
+
method=method,
|
884
|
+
path_params=path_params,
|
885
|
+
header_params=header_params,
|
886
|
+
body=reject_privileged_api_request_details,
|
887
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
888
|
+
operation_name=operation_name,
|
889
|
+
api_reference_link=api_reference_link,
|
890
|
+
required_arguments=required_arguments)
|
891
|
+
|
892
|
+
def revoke_privileged_api_request(self, privileged_api_request_id, revoke_privileged_api_request_details, **kwargs):
|
893
|
+
"""
|
894
|
+
Revokes an already approved privilegedApi request.
|
895
|
+
|
896
|
+
|
897
|
+
:param str privileged_api_request_id: (required)
|
898
|
+
unique PrivilegedApiRequest identifier
|
899
|
+
|
900
|
+
:param oci.apiaccesscontrol.models.RevokePrivilegedApiRequestDetails revoke_privileged_api_request_details: (required)
|
901
|
+
Details regarding the revocation of privilegedApi request created by the operator.
|
902
|
+
|
903
|
+
:param str opc_retry_token: (optional)
|
904
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
905
|
+
server error without risk of running that same action again. Retry tokens expire after 24
|
906
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
907
|
+
has been deleted and removed from the system, then a retry of the original creation request
|
908
|
+
might be rejected.
|
909
|
+
|
910
|
+
:param str if_match: (optional)
|
911
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
912
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for
|
913
|
+
that resource. The resource will be updated or deleted only if the etag you provide
|
914
|
+
matches the resource's current etag value.
|
915
|
+
|
916
|
+
:param str opc_request_id: (optional)
|
917
|
+
Unique Oracle-assigned identifier for the request. If you need to contact
|
918
|
+
Oracle about a particular request, please provide the request ID.
|
919
|
+
The only valid characters for request IDs are letters, numbers,
|
920
|
+
underscore, and dash.
|
921
|
+
|
922
|
+
:param obj retry_strategy: (optional)
|
923
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
924
|
+
|
925
|
+
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.
|
926
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
927
|
+
|
928
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
929
|
+
|
930
|
+
:param bool allow_control_chars: (optional)
|
931
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
932
|
+
By default, the response will not allow control characters in strings
|
933
|
+
|
934
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
935
|
+
:rtype: :class:`~oci.response.Response`
|
936
|
+
|
937
|
+
:example:
|
938
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.2/apiaccesscontrol/revoke_privileged_api_request.py.html>`__ to see an example of how to use revoke_privileged_api_request API.
|
939
|
+
"""
|
940
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
941
|
+
required_arguments = ['privilegedApiRequestId']
|
942
|
+
resource_path = "/privilegedApiRequests/{privilegedApiRequestId}/actions/revoke"
|
943
|
+
method = "POST"
|
944
|
+
operation_name = "revoke_privileged_api_request"
|
945
|
+
api_reference_link = ""
|
946
|
+
|
947
|
+
# Don't accept unknown kwargs
|
948
|
+
expected_kwargs = [
|
949
|
+
"allow_control_chars",
|
950
|
+
"retry_strategy",
|
951
|
+
"opc_retry_token",
|
952
|
+
"if_match",
|
953
|
+
"opc_request_id"
|
954
|
+
]
|
955
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
956
|
+
if extra_kwargs:
|
957
|
+
raise ValueError(
|
958
|
+
f"revoke_privileged_api_request got unknown kwargs: {extra_kwargs!r}")
|
959
|
+
|
960
|
+
path_params = {
|
961
|
+
"privilegedApiRequestId": privileged_api_request_id
|
962
|
+
}
|
963
|
+
|
964
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
965
|
+
|
966
|
+
for (k, v) in six.iteritems(path_params):
|
967
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
968
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
969
|
+
|
970
|
+
header_params = {
|
971
|
+
"accept": "application/json",
|
972
|
+
"content-type": "application/json",
|
973
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
974
|
+
"if-match": kwargs.get("if_match", missing),
|
975
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
976
|
+
}
|
977
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
978
|
+
|
979
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
980
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
981
|
+
client_retry_strategy=self.retry_strategy
|
982
|
+
)
|
983
|
+
if retry_strategy is None:
|
984
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
985
|
+
|
986
|
+
if retry_strategy:
|
987
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
988
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
989
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
990
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
991
|
+
return retry_strategy.make_retrying_call(
|
992
|
+
self.base_client.call_api,
|
993
|
+
resource_path=resource_path,
|
994
|
+
method=method,
|
995
|
+
path_params=path_params,
|
996
|
+
header_params=header_params,
|
997
|
+
body=revoke_privileged_api_request_details,
|
998
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
999
|
+
operation_name=operation_name,
|
1000
|
+
api_reference_link=api_reference_link,
|
1001
|
+
required_arguments=required_arguments)
|
1002
|
+
else:
|
1003
|
+
return self.base_client.call_api(
|
1004
|
+
resource_path=resource_path,
|
1005
|
+
method=method,
|
1006
|
+
path_params=path_params,
|
1007
|
+
header_params=header_params,
|
1008
|
+
body=revoke_privileged_api_request_details,
|
1009
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1010
|
+
operation_name=operation_name,
|
1011
|
+
api_reference_link=api_reference_link,
|
1012
|
+
required_arguments=required_arguments)
|