oci 2.123.0__py3-none-any.whl → 2.124.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +36 -36
- oci/ai_speech/ai_service_speech_client.py +122 -9
- oci/ai_speech/ai_service_speech_client_composite_operations.py +59 -0
- oci/ai_speech/models/transcription_model_details.py +390 -7
- 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 +28 -28
- 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 +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 +51 -51
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +19 -19
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +21 -21
- oci/container_instances/models/__init__.py +2 -0
- oci/container_instances/models/container_capabilities.py +239 -0
- oci/container_instances/models/create_linux_security_context_details.py +29 -2
- oci/container_instances/models/linux_security_context.py +29 -2
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +99 -99
- oci/core/compute_management_client.py +32 -32
- oci/core/models/emulated_volume_attachment.py +9 -2
- oci/core/models/i_scsi_volume_attachment.py +7 -0
- oci/core/models/paravirtualized_volume_attachment.py +9 -2
- oci/core/models/volume_attachment.py +35 -2
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +148 -148
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +272 -272
- oci/data_science/data_science_client.py +91 -91
- oci/data_science/models/__init__.py +22 -0
- oci/data_science/models/auto_scaling_policy.py +148 -0
- oci/data_science/models/auto_scaling_policy_details.py +104 -0
- oci/data_science/models/custom_expression_query_scaling_configuration.py +124 -0
- oci/data_science/models/custom_metric_expression_rule.py +105 -0
- oci/data_science/models/fixed_size_scaling_policy.py +1 -1
- oci/data_science/models/instance_pool_model_deployment_system_data.py +82 -0
- oci/data_science/models/metric_expression_rule.py +121 -0
- oci/data_science/models/model_configuration_details.py +33 -2
- oci/data_science/models/model_deployment.py +27 -0
- oci/data_science/models/model_deployment_instance_shape_config_details.py +61 -2
- oci/data_science/models/model_deployment_system_data.py +101 -0
- oci/data_science/models/predefined_expression_threshold_scaling_configuration.py +97 -0
- oci/data_science/models/predefined_metric_expression_rule.py +153 -0
- oci/data_science/models/scaling_configuration.py +185 -0
- oci/data_science/models/scaling_policy.py +11 -3
- oci/data_science/models/threshold_based_auto_scaling_policy_details.py +187 -0
- oci/data_science/models/update_model_configuration_details.py +33 -2
- oci/database/database_client.py +327 -327
- oci/database/models/autonomous_container_database.py +158 -2
- oci/database/models/autonomous_container_database_summary.py +158 -2
- oci/database/models/autonomous_database.py +80 -2
- oci/database/models/autonomous_database_summary.py +80 -2
- oci/database/models/create_autonomous_container_database_details.py +158 -2
- oci/database/models/create_autonomous_database_base.py +31 -0
- oci/database/models/create_autonomous_database_clone_details.py +7 -0
- oci/database/models/create_autonomous_database_details.py +7 -0
- oci/database/models/create_autonomous_database_from_backup_details.py +7 -0
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +7 -0
- oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +7 -0
- oci/database/models/create_cross_region_disaster_recovery_details.py +7 -0
- oci/database/models/create_refreshable_autonomous_database_clone_details.py +7 -0
- oci/database/models/update_autonomous_database_details.py +31 -0
- oci/database_management/db_management_client.py +194 -194
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +6 -6
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +23 -23
- oci/desktops/desktop_service_client.py +42 -42
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +25 -25
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- 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 +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +3 -3
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +29 -29
- oci/golden_gate/golden_gate_client.py +61 -61
- 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 +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- 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 +23 -23
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- 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 +80 -80
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +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 +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/models/__init__.py +2 -0
- oci/opsi/models/create_news_report_details.py +100 -2
- oci/opsi/models/news_content_types.py +189 -3
- oci/opsi/models/news_report.py +100 -2
- oci/opsi/models/news_report_summary.py +100 -2
- oci/opsi/models/update_host_insight_details.py +4 -0
- oci/opsi/models/update_news_report_details.py +162 -2
- oci/opsi/models/update_pe_comanaged_host_insight_details.py +65 -0
- oci/opsi/operations_insights_client.py +175 -175
- 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/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +2 -2
- oci/osp_gateway/address_service_client.py +3 -3
- oci/osp_gateway/invoice_service_client.py +6 -6
- oci/osp_gateway/subscription_service_client.py +6 -6
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +23 -23
- oci/redis/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- 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 +4 -4
- oci/sch/service_connector_client.py +24 -24
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +28 -28
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.123.0.dist-info → oci-2.124.1.dist-info}/METADATA +1 -1
- {oci-2.123.0.dist-info → oci-2.124.1.dist-info}/RECORD +295 -282
- {oci-2.123.0.dist-info → oci-2.124.1.dist-info}/LICENSE.txt +0 -0
- {oci-2.123.0.dist-info → oci-2.124.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.123.0.dist-info → oci-2.124.1.dist-info}/WHEEL +0 -0
- {oci-2.123.0.dist-info → oci-2.124.1.dist-info}/top_level.txt +0 -0
@@ -10,6 +10,8 @@ from .artifact_export_details import ArtifactExportDetails
|
|
10
10
|
from .artifact_export_details_object_storage import ArtifactExportDetailsObjectStorage
|
11
11
|
from .artifact_import_details import ArtifactImportDetails
|
12
12
|
from .artifact_import_details_object_storage import ArtifactImportDetailsObjectStorage
|
13
|
+
from .auto_scaling_policy import AutoScalingPolicy
|
14
|
+
from .auto_scaling_policy_details import AutoScalingPolicyDetails
|
13
15
|
from .category_log_details import CategoryLogDetails
|
14
16
|
from .change_data_science_private_endpoint_compartment_details import ChangeDataSciencePrivateEndpointCompartmentDetails
|
15
17
|
from .change_job_compartment_details import ChangeJobCompartmentDetails
|
@@ -32,6 +34,8 @@ from .create_notebook_session_details import CreateNotebookSessionDetails
|
|
32
34
|
from .create_pipeline_details import CreatePipelineDetails
|
33
35
|
from .create_pipeline_run_details import CreatePipelineRunDetails
|
34
36
|
from .create_project_details import CreateProjectDetails
|
37
|
+
from .custom_expression_query_scaling_configuration import CustomExpressionQueryScalingConfiguration
|
38
|
+
from .custom_metric_expression_rule import CustomMetricExpressionRule
|
35
39
|
from .data_science_private_endpoint import DataSciencePrivateEndpoint
|
36
40
|
from .data_science_private_endpoint_summary import DataSciencePrivateEndpointSummary
|
37
41
|
from .default_job_configuration_details import DefaultJobConfigurationDetails
|
@@ -42,6 +46,7 @@ from .file_storage_mount_configuration_details import FileStorageMountConfigurat
|
|
42
46
|
from .fixed_size_scaling_policy import FixedSizeScalingPolicy
|
43
47
|
from .import_model_artifact_details import ImportModelArtifactDetails
|
44
48
|
from .instance_configuration import InstanceConfiguration
|
49
|
+
from .instance_pool_model_deployment_system_data import InstancePoolModelDeploymentSystemData
|
45
50
|
from .job import Job
|
46
51
|
from .job_configuration_details import JobConfigurationDetails
|
47
52
|
from .job_environment_configuration_details import JobEnvironmentConfigurationDetails
|
@@ -56,6 +61,7 @@ from .job_summary import JobSummary
|
|
56
61
|
from .log_details import LogDetails
|
57
62
|
from .managed_egress_standalone_job_infrastructure_configuration_details import ManagedEgressStandaloneJobInfrastructureConfigurationDetails
|
58
63
|
from .metadata import Metadata
|
64
|
+
from .metric_expression_rule import MetricExpressionRule
|
59
65
|
from .model import Model
|
60
66
|
from .model_configuration_details import ModelConfigurationDetails
|
61
67
|
from .model_deployment import ModelDeployment
|
@@ -64,6 +70,7 @@ from .model_deployment_environment_configuration_details import ModelDeploymentE
|
|
64
70
|
from .model_deployment_instance_shape_config_details import ModelDeploymentInstanceShapeConfigDetails
|
65
71
|
from .model_deployment_shape_summary import ModelDeploymentShapeSummary
|
66
72
|
from .model_deployment_summary import ModelDeploymentSummary
|
73
|
+
from .model_deployment_system_data import ModelDeploymentSystemData
|
67
74
|
from .model_provenance import ModelProvenance
|
68
75
|
from .model_summary import ModelSummary
|
69
76
|
from .model_version_set import ModelVersionSet
|
@@ -101,12 +108,16 @@ from .pipeline_step_override_details import PipelineStepOverrideDetails
|
|
101
108
|
from .pipeline_step_run import PipelineStepRun
|
102
109
|
from .pipeline_step_update_details import PipelineStepUpdateDetails
|
103
110
|
from .pipeline_summary import PipelineSummary
|
111
|
+
from .predefined_expression_threshold_scaling_configuration import PredefinedExpressionThresholdScalingConfiguration
|
112
|
+
from .predefined_metric_expression_rule import PredefinedMetricExpressionRule
|
104
113
|
from .project import Project
|
105
114
|
from .project_summary import ProjectSummary
|
115
|
+
from .scaling_configuration import ScalingConfiguration
|
106
116
|
from .scaling_policy import ScalingPolicy
|
107
117
|
from .single_model_deployment_configuration_details import SingleModelDeploymentConfigurationDetails
|
108
118
|
from .standalone_job_infrastructure_configuration_details import StandaloneJobInfrastructureConfigurationDetails
|
109
119
|
from .storage_mount_configuration_details import StorageMountConfigurationDetails
|
120
|
+
from .threshold_based_auto_scaling_policy_details import ThresholdBasedAutoScalingPolicyDetails
|
110
121
|
from .update_category_log_details import UpdateCategoryLogDetails
|
111
122
|
from .update_data_science_private_endpoint_details import UpdateDataSciencePrivateEndpointDetails
|
112
123
|
from .update_default_model_deployment_environment_configuration_details import UpdateDefaultModelDeploymentEnvironmentConfigurationDetails
|
@@ -137,6 +148,8 @@ data_science_type_mapping = {
|
|
137
148
|
"ArtifactExportDetailsObjectStorage": ArtifactExportDetailsObjectStorage,
|
138
149
|
"ArtifactImportDetails": ArtifactImportDetails,
|
139
150
|
"ArtifactImportDetailsObjectStorage": ArtifactImportDetailsObjectStorage,
|
151
|
+
"AutoScalingPolicy": AutoScalingPolicy,
|
152
|
+
"AutoScalingPolicyDetails": AutoScalingPolicyDetails,
|
140
153
|
"CategoryLogDetails": CategoryLogDetails,
|
141
154
|
"ChangeDataSciencePrivateEndpointCompartmentDetails": ChangeDataSciencePrivateEndpointCompartmentDetails,
|
142
155
|
"ChangeJobCompartmentDetails": ChangeJobCompartmentDetails,
|
@@ -159,6 +172,8 @@ data_science_type_mapping = {
|
|
159
172
|
"CreatePipelineDetails": CreatePipelineDetails,
|
160
173
|
"CreatePipelineRunDetails": CreatePipelineRunDetails,
|
161
174
|
"CreateProjectDetails": CreateProjectDetails,
|
175
|
+
"CustomExpressionQueryScalingConfiguration": CustomExpressionQueryScalingConfiguration,
|
176
|
+
"CustomMetricExpressionRule": CustomMetricExpressionRule,
|
162
177
|
"DataSciencePrivateEndpoint": DataSciencePrivateEndpoint,
|
163
178
|
"DataSciencePrivateEndpointSummary": DataSciencePrivateEndpointSummary,
|
164
179
|
"DefaultJobConfigurationDetails": DefaultJobConfigurationDetails,
|
@@ -169,6 +184,7 @@ data_science_type_mapping = {
|
|
169
184
|
"FixedSizeScalingPolicy": FixedSizeScalingPolicy,
|
170
185
|
"ImportModelArtifactDetails": ImportModelArtifactDetails,
|
171
186
|
"InstanceConfiguration": InstanceConfiguration,
|
187
|
+
"InstancePoolModelDeploymentSystemData": InstancePoolModelDeploymentSystemData,
|
172
188
|
"Job": Job,
|
173
189
|
"JobConfigurationDetails": JobConfigurationDetails,
|
174
190
|
"JobEnvironmentConfigurationDetails": JobEnvironmentConfigurationDetails,
|
@@ -183,6 +199,7 @@ data_science_type_mapping = {
|
|
183
199
|
"LogDetails": LogDetails,
|
184
200
|
"ManagedEgressStandaloneJobInfrastructureConfigurationDetails": ManagedEgressStandaloneJobInfrastructureConfigurationDetails,
|
185
201
|
"Metadata": Metadata,
|
202
|
+
"MetricExpressionRule": MetricExpressionRule,
|
186
203
|
"Model": Model,
|
187
204
|
"ModelConfigurationDetails": ModelConfigurationDetails,
|
188
205
|
"ModelDeployment": ModelDeployment,
|
@@ -191,6 +208,7 @@ data_science_type_mapping = {
|
|
191
208
|
"ModelDeploymentInstanceShapeConfigDetails": ModelDeploymentInstanceShapeConfigDetails,
|
192
209
|
"ModelDeploymentShapeSummary": ModelDeploymentShapeSummary,
|
193
210
|
"ModelDeploymentSummary": ModelDeploymentSummary,
|
211
|
+
"ModelDeploymentSystemData": ModelDeploymentSystemData,
|
194
212
|
"ModelProvenance": ModelProvenance,
|
195
213
|
"ModelSummary": ModelSummary,
|
196
214
|
"ModelVersionSet": ModelVersionSet,
|
@@ -228,12 +246,16 @@ data_science_type_mapping = {
|
|
228
246
|
"PipelineStepRun": PipelineStepRun,
|
229
247
|
"PipelineStepUpdateDetails": PipelineStepUpdateDetails,
|
230
248
|
"PipelineSummary": PipelineSummary,
|
249
|
+
"PredefinedExpressionThresholdScalingConfiguration": PredefinedExpressionThresholdScalingConfiguration,
|
250
|
+
"PredefinedMetricExpressionRule": PredefinedMetricExpressionRule,
|
231
251
|
"Project": Project,
|
232
252
|
"ProjectSummary": ProjectSummary,
|
253
|
+
"ScalingConfiguration": ScalingConfiguration,
|
233
254
|
"ScalingPolicy": ScalingPolicy,
|
234
255
|
"SingleModelDeploymentConfigurationDetails": SingleModelDeploymentConfigurationDetails,
|
235
256
|
"StandaloneJobInfrastructureConfigurationDetails": StandaloneJobInfrastructureConfigurationDetails,
|
236
257
|
"StorageMountConfigurationDetails": StorageMountConfigurationDetails,
|
258
|
+
"ThresholdBasedAutoScalingPolicyDetails": ThresholdBasedAutoScalingPolicyDetails,
|
237
259
|
"UpdateCategoryLogDetails": UpdateCategoryLogDetails,
|
238
260
|
"UpdateDataSciencePrivateEndpointDetails": UpdateDataSciencePrivateEndpointDetails,
|
239
261
|
"UpdateDefaultModelDeploymentEnvironmentConfigurationDetails": UpdateDefaultModelDeploymentEnvironmentConfigurationDetails,
|
@@ -0,0 +1,148 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190101
|
6
|
+
|
7
|
+
from .scaling_policy import ScalingPolicy
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class AutoScalingPolicy(ScalingPolicy):
|
14
|
+
"""
|
15
|
+
The scaling policy to enable autoscaling on the model deployment.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new AutoScalingPolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.AutoScalingPolicy.policy_type` attribute
|
21
|
+
of this class is ``AUTOSCALING`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param policy_type:
|
25
|
+
The value to assign to the policy_type property of this AutoScalingPolicy.
|
26
|
+
Allowed values for this property are: "FIXED_SIZE", "AUTOSCALING"
|
27
|
+
:type policy_type: str
|
28
|
+
|
29
|
+
:param cool_down_in_seconds:
|
30
|
+
The value to assign to the cool_down_in_seconds property of this AutoScalingPolicy.
|
31
|
+
:type cool_down_in_seconds: int
|
32
|
+
|
33
|
+
:param is_enabled:
|
34
|
+
The value to assign to the is_enabled property of this AutoScalingPolicy.
|
35
|
+
:type is_enabled: bool
|
36
|
+
|
37
|
+
:param auto_scaling_policies:
|
38
|
+
The value to assign to the auto_scaling_policies property of this AutoScalingPolicy.
|
39
|
+
:type auto_scaling_policies: list[oci.data_science.models.AutoScalingPolicyDetails]
|
40
|
+
|
41
|
+
"""
|
42
|
+
self.swagger_types = {
|
43
|
+
'policy_type': 'str',
|
44
|
+
'cool_down_in_seconds': 'int',
|
45
|
+
'is_enabled': 'bool',
|
46
|
+
'auto_scaling_policies': 'list[AutoScalingPolicyDetails]'
|
47
|
+
}
|
48
|
+
|
49
|
+
self.attribute_map = {
|
50
|
+
'policy_type': 'policyType',
|
51
|
+
'cool_down_in_seconds': 'coolDownInSeconds',
|
52
|
+
'is_enabled': 'isEnabled',
|
53
|
+
'auto_scaling_policies': 'autoScalingPolicies'
|
54
|
+
}
|
55
|
+
|
56
|
+
self._policy_type = None
|
57
|
+
self._cool_down_in_seconds = None
|
58
|
+
self._is_enabled = None
|
59
|
+
self._auto_scaling_policies = None
|
60
|
+
self._policy_type = 'AUTOSCALING'
|
61
|
+
|
62
|
+
@property
|
63
|
+
def cool_down_in_seconds(self):
|
64
|
+
"""
|
65
|
+
Gets the cool_down_in_seconds of this AutoScalingPolicy.
|
66
|
+
For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions.
|
67
|
+
The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which
|
68
|
+
is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation.
|
69
|
+
|
70
|
+
|
71
|
+
:return: The cool_down_in_seconds of this AutoScalingPolicy.
|
72
|
+
:rtype: int
|
73
|
+
"""
|
74
|
+
return self._cool_down_in_seconds
|
75
|
+
|
76
|
+
@cool_down_in_seconds.setter
|
77
|
+
def cool_down_in_seconds(self, cool_down_in_seconds):
|
78
|
+
"""
|
79
|
+
Sets the cool_down_in_seconds of this AutoScalingPolicy.
|
80
|
+
For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions.
|
81
|
+
The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which
|
82
|
+
is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation.
|
83
|
+
|
84
|
+
|
85
|
+
:param cool_down_in_seconds: The cool_down_in_seconds of this AutoScalingPolicy.
|
86
|
+
:type: int
|
87
|
+
"""
|
88
|
+
self._cool_down_in_seconds = cool_down_in_seconds
|
89
|
+
|
90
|
+
@property
|
91
|
+
def is_enabled(self):
|
92
|
+
"""
|
93
|
+
Gets the is_enabled of this AutoScalingPolicy.
|
94
|
+
Whether the autoscaling policy is enabled.
|
95
|
+
|
96
|
+
|
97
|
+
:return: The is_enabled of this AutoScalingPolicy.
|
98
|
+
:rtype: bool
|
99
|
+
"""
|
100
|
+
return self._is_enabled
|
101
|
+
|
102
|
+
@is_enabled.setter
|
103
|
+
def is_enabled(self, is_enabled):
|
104
|
+
"""
|
105
|
+
Sets the is_enabled of this AutoScalingPolicy.
|
106
|
+
Whether the autoscaling policy is enabled.
|
107
|
+
|
108
|
+
|
109
|
+
:param is_enabled: The is_enabled of this AutoScalingPolicy.
|
110
|
+
:type: bool
|
111
|
+
"""
|
112
|
+
self._is_enabled = is_enabled
|
113
|
+
|
114
|
+
@property
|
115
|
+
def auto_scaling_policies(self):
|
116
|
+
"""
|
117
|
+
**[Required]** Gets the auto_scaling_policies of this AutoScalingPolicy.
|
118
|
+
The list of autoscaling policy details.
|
119
|
+
|
120
|
+
|
121
|
+
:return: The auto_scaling_policies of this AutoScalingPolicy.
|
122
|
+
:rtype: list[oci.data_science.models.AutoScalingPolicyDetails]
|
123
|
+
"""
|
124
|
+
return self._auto_scaling_policies
|
125
|
+
|
126
|
+
@auto_scaling_policies.setter
|
127
|
+
def auto_scaling_policies(self, auto_scaling_policies):
|
128
|
+
"""
|
129
|
+
Sets the auto_scaling_policies of this AutoScalingPolicy.
|
130
|
+
The list of autoscaling policy details.
|
131
|
+
|
132
|
+
|
133
|
+
:param auto_scaling_policies: The auto_scaling_policies of this AutoScalingPolicy.
|
134
|
+
:type: list[oci.data_science.models.AutoScalingPolicyDetails]
|
135
|
+
"""
|
136
|
+
self._auto_scaling_policies = auto_scaling_policies
|
137
|
+
|
138
|
+
def __repr__(self):
|
139
|
+
return formatted_flat_dict(self)
|
140
|
+
|
141
|
+
def __eq__(self, other):
|
142
|
+
if other is None:
|
143
|
+
return False
|
144
|
+
|
145
|
+
return self.__dict__ == other.__dict__
|
146
|
+
|
147
|
+
def __ne__(self, other):
|
148
|
+
return not self == other
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190101
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class AutoScalingPolicyDetails(object):
|
14
|
+
"""
|
15
|
+
Details for an autoscaling policy to enable on the model deployment.
|
16
|
+
Each autoscaling configuration can have one autoscaling policy.
|
17
|
+
In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets
|
18
|
+
or exceeds a threshold.
|
19
|
+
"""
|
20
|
+
|
21
|
+
#: A constant which can be used with the auto_scaling_policy_type property of a AutoScalingPolicyDetails.
|
22
|
+
#: This constant has a value of "THRESHOLD"
|
23
|
+
AUTO_SCALING_POLICY_TYPE_THRESHOLD = "THRESHOLD"
|
24
|
+
|
25
|
+
def __init__(self, **kwargs):
|
26
|
+
"""
|
27
|
+
Initializes a new AutoScalingPolicyDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
28
|
+
to a service operations then you should favor using a subclass over the base class:
|
29
|
+
|
30
|
+
* :class:`~oci.data_science.models.ThresholdBasedAutoScalingPolicyDetails`
|
31
|
+
|
32
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
33
|
+
|
34
|
+
:param auto_scaling_policy_type:
|
35
|
+
The value to assign to the auto_scaling_policy_type property of this AutoScalingPolicyDetails.
|
36
|
+
Allowed values for this property are: "THRESHOLD", 'UNKNOWN_ENUM_VALUE'.
|
37
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
38
|
+
:type auto_scaling_policy_type: str
|
39
|
+
|
40
|
+
"""
|
41
|
+
self.swagger_types = {
|
42
|
+
'auto_scaling_policy_type': 'str'
|
43
|
+
}
|
44
|
+
|
45
|
+
self.attribute_map = {
|
46
|
+
'auto_scaling_policy_type': 'autoScalingPolicyType'
|
47
|
+
}
|
48
|
+
|
49
|
+
self._auto_scaling_policy_type = None
|
50
|
+
|
51
|
+
@staticmethod
|
52
|
+
def get_subtype(object_dictionary):
|
53
|
+
"""
|
54
|
+
Given the hash representation of a subtype of this class,
|
55
|
+
use the info in the hash to return the class of the subtype.
|
56
|
+
"""
|
57
|
+
type = object_dictionary['autoScalingPolicyType']
|
58
|
+
|
59
|
+
if type == 'THRESHOLD':
|
60
|
+
return 'ThresholdBasedAutoScalingPolicyDetails'
|
61
|
+
else:
|
62
|
+
return 'AutoScalingPolicyDetails'
|
63
|
+
|
64
|
+
@property
|
65
|
+
def auto_scaling_policy_type(self):
|
66
|
+
"""
|
67
|
+
**[Required]** Gets the auto_scaling_policy_type of this AutoScalingPolicyDetails.
|
68
|
+
The type of autoscaling policy.
|
69
|
+
|
70
|
+
Allowed values for this property are: "THRESHOLD", 'UNKNOWN_ENUM_VALUE'.
|
71
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
72
|
+
|
73
|
+
|
74
|
+
:return: The auto_scaling_policy_type of this AutoScalingPolicyDetails.
|
75
|
+
:rtype: str
|
76
|
+
"""
|
77
|
+
return self._auto_scaling_policy_type
|
78
|
+
|
79
|
+
@auto_scaling_policy_type.setter
|
80
|
+
def auto_scaling_policy_type(self, auto_scaling_policy_type):
|
81
|
+
"""
|
82
|
+
Sets the auto_scaling_policy_type of this AutoScalingPolicyDetails.
|
83
|
+
The type of autoscaling policy.
|
84
|
+
|
85
|
+
|
86
|
+
:param auto_scaling_policy_type: The auto_scaling_policy_type of this AutoScalingPolicyDetails.
|
87
|
+
:type: str
|
88
|
+
"""
|
89
|
+
allowed_values = ["THRESHOLD"]
|
90
|
+
if not value_allowed_none_or_none_sentinel(auto_scaling_policy_type, allowed_values):
|
91
|
+
auto_scaling_policy_type = 'UNKNOWN_ENUM_VALUE'
|
92
|
+
self._auto_scaling_policy_type = auto_scaling_policy_type
|
93
|
+
|
94
|
+
def __repr__(self):
|
95
|
+
return formatted_flat_dict(self)
|
96
|
+
|
97
|
+
def __eq__(self, other):
|
98
|
+
if other is None:
|
99
|
+
return False
|
100
|
+
|
101
|
+
return self.__dict__ == other.__dict__
|
102
|
+
|
103
|
+
def __ne__(self, other):
|
104
|
+
return not self == other
|
@@ -0,0 +1,124 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190101
|
6
|
+
|
7
|
+
from .scaling_configuration import ScalingConfiguration
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CustomExpressionQueryScalingConfiguration(ScalingConfiguration):
|
14
|
+
"""
|
15
|
+
The scaling configuration for the custom metric expression rule.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CustomExpressionQueryScalingConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.CustomExpressionQueryScalingConfiguration.scaling_configuration_type` attribute
|
21
|
+
of this class is ``QUERY`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param scaling_configuration_type:
|
25
|
+
The value to assign to the scaling_configuration_type property of this CustomExpressionQueryScalingConfiguration.
|
26
|
+
Allowed values for this property are: "THRESHOLD", "QUERY"
|
27
|
+
:type scaling_configuration_type: str
|
28
|
+
|
29
|
+
:param pending_duration:
|
30
|
+
The value to assign to the pending_duration property of this CustomExpressionQueryScalingConfiguration.
|
31
|
+
:type pending_duration: str
|
32
|
+
|
33
|
+
:param instance_count_adjustment:
|
34
|
+
The value to assign to the instance_count_adjustment property of this CustomExpressionQueryScalingConfiguration.
|
35
|
+
:type instance_count_adjustment: int
|
36
|
+
|
37
|
+
:param query:
|
38
|
+
The value to assign to the query property of this CustomExpressionQueryScalingConfiguration.
|
39
|
+
:type query: str
|
40
|
+
|
41
|
+
"""
|
42
|
+
self.swagger_types = {
|
43
|
+
'scaling_configuration_type': 'str',
|
44
|
+
'pending_duration': 'str',
|
45
|
+
'instance_count_adjustment': 'int',
|
46
|
+
'query': 'str'
|
47
|
+
}
|
48
|
+
|
49
|
+
self.attribute_map = {
|
50
|
+
'scaling_configuration_type': 'scalingConfigurationType',
|
51
|
+
'pending_duration': 'pendingDuration',
|
52
|
+
'instance_count_adjustment': 'instanceCountAdjustment',
|
53
|
+
'query': 'query'
|
54
|
+
}
|
55
|
+
|
56
|
+
self._scaling_configuration_type = None
|
57
|
+
self._pending_duration = None
|
58
|
+
self._instance_count_adjustment = None
|
59
|
+
self._query = None
|
60
|
+
self._scaling_configuration_type = 'QUERY'
|
61
|
+
|
62
|
+
@property
|
63
|
+
def query(self):
|
64
|
+
"""
|
65
|
+
**[Required]** Gets the query of this CustomExpressionQueryScalingConfiguration.
|
66
|
+
The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of
|
67
|
+
the Monitoring service interprets results for each returned time series as Boolean values,
|
68
|
+
where zero represents false and a non-zero value represents true. A true value means that the trigger
|
69
|
+
rule condition has been met. The query must specify a metric, statistic, interval, and trigger
|
70
|
+
rule (threshold or absence). Supported values for interval: `1m`-`60m` (also `1h`). You can optionally
|
71
|
+
specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`.
|
72
|
+
|
73
|
+
Example of threshold alarm:
|
74
|
+
|
75
|
+
-----
|
76
|
+
|
77
|
+
CPUUtilization[1m]{resourceId = \"MODEL_DEPLOYMENT_OCID\"}.grouping().mean() < 25
|
78
|
+
CPUUtilization[1m]{resourceId = \"MODEL_DEPLOYMENT_OCID\"}.grouping().mean() > 75
|
79
|
+
|
80
|
+
-----
|
81
|
+
|
82
|
+
|
83
|
+
:return: The query of this CustomExpressionQueryScalingConfiguration.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._query
|
87
|
+
|
88
|
+
@query.setter
|
89
|
+
def query(self, query):
|
90
|
+
"""
|
91
|
+
Sets the query of this CustomExpressionQueryScalingConfiguration.
|
92
|
+
The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of
|
93
|
+
the Monitoring service interprets results for each returned time series as Boolean values,
|
94
|
+
where zero represents false and a non-zero value represents true. A true value means that the trigger
|
95
|
+
rule condition has been met. The query must specify a metric, statistic, interval, and trigger
|
96
|
+
rule (threshold or absence). Supported values for interval: `1m`-`60m` (also `1h`). You can optionally
|
97
|
+
specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`.
|
98
|
+
|
99
|
+
Example of threshold alarm:
|
100
|
+
|
101
|
+
-----
|
102
|
+
|
103
|
+
CPUUtilization[1m]{resourceId = \"MODEL_DEPLOYMENT_OCID\"}.grouping().mean() < 25
|
104
|
+
CPUUtilization[1m]{resourceId = \"MODEL_DEPLOYMENT_OCID\"}.grouping().mean() > 75
|
105
|
+
|
106
|
+
-----
|
107
|
+
|
108
|
+
|
109
|
+
:param query: The query of this CustomExpressionQueryScalingConfiguration.
|
110
|
+
:type: str
|
111
|
+
"""
|
112
|
+
self._query = query
|
113
|
+
|
114
|
+
def __repr__(self):
|
115
|
+
return formatted_flat_dict(self)
|
116
|
+
|
117
|
+
def __eq__(self, other):
|
118
|
+
if other is None:
|
119
|
+
return False
|
120
|
+
|
121
|
+
return self.__dict__ == other.__dict__
|
122
|
+
|
123
|
+
def __ne__(self, other):
|
124
|
+
return not self == other
|
@@ -0,0 +1,105 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190101
|
6
|
+
|
7
|
+
from .metric_expression_rule import MetricExpressionRule
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class CustomMetricExpressionRule(MetricExpressionRule):
|
14
|
+
"""
|
15
|
+
A custom Monitoring Query Language (MQL) expression for triggering an autoscaling action on the model deployment.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new CustomMetricExpressionRule object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.CustomMetricExpressionRule.metric_expression_rule_type` attribute
|
21
|
+
of this class is ``CUSTOM_EXPRESSION`` and it should not be changed.
|
22
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
23
|
+
|
24
|
+
:param metric_expression_rule_type:
|
25
|
+
The value to assign to the metric_expression_rule_type property of this CustomMetricExpressionRule.
|
26
|
+
Allowed values for this property are: "PREDEFINED_EXPRESSION", "CUSTOM_EXPRESSION"
|
27
|
+
:type metric_expression_rule_type: str
|
28
|
+
|
29
|
+
:param scale_in_configuration:
|
30
|
+
The value to assign to the scale_in_configuration property of this CustomMetricExpressionRule.
|
31
|
+
:type scale_in_configuration: oci.data_science.models.CustomExpressionQueryScalingConfiguration
|
32
|
+
|
33
|
+
:param scale_out_configuration:
|
34
|
+
The value to assign to the scale_out_configuration property of this CustomMetricExpressionRule.
|
35
|
+
:type scale_out_configuration: oci.data_science.models.CustomExpressionQueryScalingConfiguration
|
36
|
+
|
37
|
+
"""
|
38
|
+
self.swagger_types = {
|
39
|
+
'metric_expression_rule_type': 'str',
|
40
|
+
'scale_in_configuration': 'CustomExpressionQueryScalingConfiguration',
|
41
|
+
'scale_out_configuration': 'CustomExpressionQueryScalingConfiguration'
|
42
|
+
}
|
43
|
+
|
44
|
+
self.attribute_map = {
|
45
|
+
'metric_expression_rule_type': 'metricExpressionRuleType',
|
46
|
+
'scale_in_configuration': 'scaleInConfiguration',
|
47
|
+
'scale_out_configuration': 'scaleOutConfiguration'
|
48
|
+
}
|
49
|
+
|
50
|
+
self._metric_expression_rule_type = None
|
51
|
+
self._scale_in_configuration = None
|
52
|
+
self._scale_out_configuration = None
|
53
|
+
self._metric_expression_rule_type = 'CUSTOM_EXPRESSION'
|
54
|
+
|
55
|
+
@property
|
56
|
+
def scale_in_configuration(self):
|
57
|
+
"""
|
58
|
+
**[Required]** Gets the scale_in_configuration of this CustomMetricExpressionRule.
|
59
|
+
|
60
|
+
:return: The scale_in_configuration of this CustomMetricExpressionRule.
|
61
|
+
:rtype: oci.data_science.models.CustomExpressionQueryScalingConfiguration
|
62
|
+
"""
|
63
|
+
return self._scale_in_configuration
|
64
|
+
|
65
|
+
@scale_in_configuration.setter
|
66
|
+
def scale_in_configuration(self, scale_in_configuration):
|
67
|
+
"""
|
68
|
+
Sets the scale_in_configuration of this CustomMetricExpressionRule.
|
69
|
+
|
70
|
+
:param scale_in_configuration: The scale_in_configuration of this CustomMetricExpressionRule.
|
71
|
+
:type: oci.data_science.models.CustomExpressionQueryScalingConfiguration
|
72
|
+
"""
|
73
|
+
self._scale_in_configuration = scale_in_configuration
|
74
|
+
|
75
|
+
@property
|
76
|
+
def scale_out_configuration(self):
|
77
|
+
"""
|
78
|
+
**[Required]** Gets the scale_out_configuration of this CustomMetricExpressionRule.
|
79
|
+
|
80
|
+
:return: The scale_out_configuration of this CustomMetricExpressionRule.
|
81
|
+
:rtype: oci.data_science.models.CustomExpressionQueryScalingConfiguration
|
82
|
+
"""
|
83
|
+
return self._scale_out_configuration
|
84
|
+
|
85
|
+
@scale_out_configuration.setter
|
86
|
+
def scale_out_configuration(self, scale_out_configuration):
|
87
|
+
"""
|
88
|
+
Sets the scale_out_configuration of this CustomMetricExpressionRule.
|
89
|
+
|
90
|
+
:param scale_out_configuration: The scale_out_configuration of this CustomMetricExpressionRule.
|
91
|
+
:type: oci.data_science.models.CustomExpressionQueryScalingConfiguration
|
92
|
+
"""
|
93
|
+
self._scale_out_configuration = scale_out_configuration
|
94
|
+
|
95
|
+
def __repr__(self):
|
96
|
+
return formatted_flat_dict(self)
|
97
|
+
|
98
|
+
def __eq__(self, other):
|
99
|
+
if other is None:
|
100
|
+
return False
|
101
|
+
|
102
|
+
return self.__dict__ == other.__dict__
|
103
|
+
|
104
|
+
def __ne__(self, other):
|
105
|
+
return not self == other
|
@@ -23,7 +23,7 @@ class FixedSizeScalingPolicy(ScalingPolicy):
|
|
23
23
|
|
24
24
|
:param policy_type:
|
25
25
|
The value to assign to the policy_type property of this FixedSizeScalingPolicy.
|
26
|
-
Allowed values for this property are: "FIXED_SIZE"
|
26
|
+
Allowed values for this property are: "FIXED_SIZE", "AUTOSCALING"
|
27
27
|
:type policy_type: str
|
28
28
|
|
29
29
|
:param instance_count:
|