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
@@ -0,0 +1,153 @@
|
|
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 PredefinedMetricExpressionRule(MetricExpressionRule):
|
14
|
+
"""
|
15
|
+
An expression built using CPU or Memory metrics for triggering an autoscaling action on the model deployment.
|
16
|
+
"""
|
17
|
+
|
18
|
+
#: A constant which can be used with the metric_type property of a PredefinedMetricExpressionRule.
|
19
|
+
#: This constant has a value of "CPU_UTILIZATION"
|
20
|
+
METRIC_TYPE_CPU_UTILIZATION = "CPU_UTILIZATION"
|
21
|
+
|
22
|
+
#: A constant which can be used with the metric_type property of a PredefinedMetricExpressionRule.
|
23
|
+
#: This constant has a value of "MEMORY_UTILIZATION"
|
24
|
+
METRIC_TYPE_MEMORY_UTILIZATION = "MEMORY_UTILIZATION"
|
25
|
+
|
26
|
+
def __init__(self, **kwargs):
|
27
|
+
"""
|
28
|
+
Initializes a new PredefinedMetricExpressionRule object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.PredefinedMetricExpressionRule.metric_expression_rule_type` attribute
|
29
|
+
of this class is ``PREDEFINED_EXPRESSION`` and it should not be changed.
|
30
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
31
|
+
|
32
|
+
:param metric_expression_rule_type:
|
33
|
+
The value to assign to the metric_expression_rule_type property of this PredefinedMetricExpressionRule.
|
34
|
+
Allowed values for this property are: "PREDEFINED_EXPRESSION", "CUSTOM_EXPRESSION", 'UNKNOWN_ENUM_VALUE'.
|
35
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
36
|
+
:type metric_expression_rule_type: str
|
37
|
+
|
38
|
+
:param metric_type:
|
39
|
+
The value to assign to the metric_type property of this PredefinedMetricExpressionRule.
|
40
|
+
Allowed values for this property are: "CPU_UTILIZATION", "MEMORY_UTILIZATION", 'UNKNOWN_ENUM_VALUE'.
|
41
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
42
|
+
:type metric_type: str
|
43
|
+
|
44
|
+
:param scale_in_configuration:
|
45
|
+
The value to assign to the scale_in_configuration property of this PredefinedMetricExpressionRule.
|
46
|
+
:type scale_in_configuration: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration
|
47
|
+
|
48
|
+
:param scale_out_configuration:
|
49
|
+
The value to assign to the scale_out_configuration property of this PredefinedMetricExpressionRule.
|
50
|
+
:type scale_out_configuration: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration
|
51
|
+
|
52
|
+
"""
|
53
|
+
self.swagger_types = {
|
54
|
+
'metric_expression_rule_type': 'str',
|
55
|
+
'metric_type': 'str',
|
56
|
+
'scale_in_configuration': 'PredefinedExpressionThresholdScalingConfiguration',
|
57
|
+
'scale_out_configuration': 'PredefinedExpressionThresholdScalingConfiguration'
|
58
|
+
}
|
59
|
+
|
60
|
+
self.attribute_map = {
|
61
|
+
'metric_expression_rule_type': 'metricExpressionRuleType',
|
62
|
+
'metric_type': 'metricType',
|
63
|
+
'scale_in_configuration': 'scaleInConfiguration',
|
64
|
+
'scale_out_configuration': 'scaleOutConfiguration'
|
65
|
+
}
|
66
|
+
|
67
|
+
self._metric_expression_rule_type = None
|
68
|
+
self._metric_type = None
|
69
|
+
self._scale_in_configuration = None
|
70
|
+
self._scale_out_configuration = None
|
71
|
+
self._metric_expression_rule_type = 'PREDEFINED_EXPRESSION'
|
72
|
+
|
73
|
+
@property
|
74
|
+
def metric_type(self):
|
75
|
+
"""
|
76
|
+
**[Required]** Gets the metric_type of this PredefinedMetricExpressionRule.
|
77
|
+
Metric type
|
78
|
+
|
79
|
+
Allowed values for this property are: "CPU_UTILIZATION", "MEMORY_UTILIZATION", 'UNKNOWN_ENUM_VALUE'.
|
80
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
81
|
+
|
82
|
+
|
83
|
+
:return: The metric_type of this PredefinedMetricExpressionRule.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._metric_type
|
87
|
+
|
88
|
+
@metric_type.setter
|
89
|
+
def metric_type(self, metric_type):
|
90
|
+
"""
|
91
|
+
Sets the metric_type of this PredefinedMetricExpressionRule.
|
92
|
+
Metric type
|
93
|
+
|
94
|
+
|
95
|
+
:param metric_type: The metric_type of this PredefinedMetricExpressionRule.
|
96
|
+
:type: str
|
97
|
+
"""
|
98
|
+
allowed_values = ["CPU_UTILIZATION", "MEMORY_UTILIZATION"]
|
99
|
+
if not value_allowed_none_or_none_sentinel(metric_type, allowed_values):
|
100
|
+
metric_type = 'UNKNOWN_ENUM_VALUE'
|
101
|
+
self._metric_type = metric_type
|
102
|
+
|
103
|
+
@property
|
104
|
+
def scale_in_configuration(self):
|
105
|
+
"""
|
106
|
+
**[Required]** Gets the scale_in_configuration of this PredefinedMetricExpressionRule.
|
107
|
+
|
108
|
+
:return: The scale_in_configuration of this PredefinedMetricExpressionRule.
|
109
|
+
:rtype: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration
|
110
|
+
"""
|
111
|
+
return self._scale_in_configuration
|
112
|
+
|
113
|
+
@scale_in_configuration.setter
|
114
|
+
def scale_in_configuration(self, scale_in_configuration):
|
115
|
+
"""
|
116
|
+
Sets the scale_in_configuration of this PredefinedMetricExpressionRule.
|
117
|
+
|
118
|
+
:param scale_in_configuration: The scale_in_configuration of this PredefinedMetricExpressionRule.
|
119
|
+
:type: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration
|
120
|
+
"""
|
121
|
+
self._scale_in_configuration = scale_in_configuration
|
122
|
+
|
123
|
+
@property
|
124
|
+
def scale_out_configuration(self):
|
125
|
+
"""
|
126
|
+
**[Required]** Gets the scale_out_configuration of this PredefinedMetricExpressionRule.
|
127
|
+
|
128
|
+
:return: The scale_out_configuration of this PredefinedMetricExpressionRule.
|
129
|
+
:rtype: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration
|
130
|
+
"""
|
131
|
+
return self._scale_out_configuration
|
132
|
+
|
133
|
+
@scale_out_configuration.setter
|
134
|
+
def scale_out_configuration(self, scale_out_configuration):
|
135
|
+
"""
|
136
|
+
Sets the scale_out_configuration of this PredefinedMetricExpressionRule.
|
137
|
+
|
138
|
+
:param scale_out_configuration: The scale_out_configuration of this PredefinedMetricExpressionRule.
|
139
|
+
:type: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration
|
140
|
+
"""
|
141
|
+
self._scale_out_configuration = scale_out_configuration
|
142
|
+
|
143
|
+
def __repr__(self):
|
144
|
+
return formatted_flat_dict(self)
|
145
|
+
|
146
|
+
def __eq__(self, other):
|
147
|
+
if other is None:
|
148
|
+
return False
|
149
|
+
|
150
|
+
return self.__dict__ == other.__dict__
|
151
|
+
|
152
|
+
def __ne__(self, other):
|
153
|
+
return not self == other
|
@@ -0,0 +1,185 @@
|
|
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 ScalingConfiguration(object):
|
14
|
+
"""
|
15
|
+
Scaling configuration for the metric expression rule.
|
16
|
+
"""
|
17
|
+
|
18
|
+
#: A constant which can be used with the scaling_configuration_type property of a ScalingConfiguration.
|
19
|
+
#: This constant has a value of "THRESHOLD"
|
20
|
+
SCALING_CONFIGURATION_TYPE_THRESHOLD = "THRESHOLD"
|
21
|
+
|
22
|
+
#: A constant which can be used with the scaling_configuration_type property of a ScalingConfiguration.
|
23
|
+
#: This constant has a value of "QUERY"
|
24
|
+
SCALING_CONFIGURATION_TYPE_QUERY = "QUERY"
|
25
|
+
|
26
|
+
def __init__(self, **kwargs):
|
27
|
+
"""
|
28
|
+
Initializes a new ScalingConfiguration object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
29
|
+
to a service operations then you should favor using a subclass over the base class:
|
30
|
+
|
31
|
+
* :class:`~oci.data_science.models.CustomExpressionQueryScalingConfiguration`
|
32
|
+
* :class:`~oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration`
|
33
|
+
|
34
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
35
|
+
|
36
|
+
:param scaling_configuration_type:
|
37
|
+
The value to assign to the scaling_configuration_type property of this ScalingConfiguration.
|
38
|
+
Allowed values for this property are: "THRESHOLD", "QUERY"
|
39
|
+
:type scaling_configuration_type: str
|
40
|
+
|
41
|
+
:param pending_duration:
|
42
|
+
The value to assign to the pending_duration property of this ScalingConfiguration.
|
43
|
+
:type pending_duration: str
|
44
|
+
|
45
|
+
:param instance_count_adjustment:
|
46
|
+
The value to assign to the instance_count_adjustment property of this ScalingConfiguration.
|
47
|
+
:type instance_count_adjustment: int
|
48
|
+
|
49
|
+
"""
|
50
|
+
self.swagger_types = {
|
51
|
+
'scaling_configuration_type': 'str',
|
52
|
+
'pending_duration': 'str',
|
53
|
+
'instance_count_adjustment': 'int'
|
54
|
+
}
|
55
|
+
|
56
|
+
self.attribute_map = {
|
57
|
+
'scaling_configuration_type': 'scalingConfigurationType',
|
58
|
+
'pending_duration': 'pendingDuration',
|
59
|
+
'instance_count_adjustment': 'instanceCountAdjustment'
|
60
|
+
}
|
61
|
+
|
62
|
+
self._scaling_configuration_type = None
|
63
|
+
self._pending_duration = None
|
64
|
+
self._instance_count_adjustment = None
|
65
|
+
|
66
|
+
@staticmethod
|
67
|
+
def get_subtype(object_dictionary):
|
68
|
+
"""
|
69
|
+
Given the hash representation of a subtype of this class,
|
70
|
+
use the info in the hash to return the class of the subtype.
|
71
|
+
"""
|
72
|
+
type = object_dictionary['scalingConfigurationType']
|
73
|
+
|
74
|
+
if type == 'QUERY':
|
75
|
+
return 'CustomExpressionQueryScalingConfiguration'
|
76
|
+
|
77
|
+
if type == 'THRESHOLD':
|
78
|
+
return 'PredefinedExpressionThresholdScalingConfiguration'
|
79
|
+
else:
|
80
|
+
return 'ScalingConfiguration'
|
81
|
+
|
82
|
+
@property
|
83
|
+
def scaling_configuration_type(self):
|
84
|
+
"""
|
85
|
+
**[Required]** Gets the scaling_configuration_type of this ScalingConfiguration.
|
86
|
+
The type of scaling configuration.
|
87
|
+
|
88
|
+
Allowed values for this property are: "THRESHOLD", "QUERY"
|
89
|
+
|
90
|
+
|
91
|
+
:return: The scaling_configuration_type of this ScalingConfiguration.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._scaling_configuration_type
|
95
|
+
|
96
|
+
@scaling_configuration_type.setter
|
97
|
+
def scaling_configuration_type(self, scaling_configuration_type):
|
98
|
+
"""
|
99
|
+
Sets the scaling_configuration_type of this ScalingConfiguration.
|
100
|
+
The type of scaling configuration.
|
101
|
+
|
102
|
+
|
103
|
+
:param scaling_configuration_type: The scaling_configuration_type of this ScalingConfiguration.
|
104
|
+
:type: str
|
105
|
+
"""
|
106
|
+
allowed_values = ["THRESHOLD", "QUERY"]
|
107
|
+
if not value_allowed_none_or_none_sentinel(scaling_configuration_type, allowed_values):
|
108
|
+
raise ValueError(
|
109
|
+
f"Invalid value for `scaling_configuration_type`, must be None or one of {allowed_values}"
|
110
|
+
)
|
111
|
+
self._scaling_configuration_type = scaling_configuration_type
|
112
|
+
|
113
|
+
@property
|
114
|
+
def pending_duration(self):
|
115
|
+
"""
|
116
|
+
Gets the pending_duration of this ScalingConfiguration.
|
117
|
+
The period of time that the condition defined in the alarm must persist before the alarm state
|
118
|
+
changes from \"OK\" to \"FIRING\" or vice versa. For example, a value of 5 minutes means that the
|
119
|
+
alarm must persist in breaching the condition for five minutes before the alarm updates its
|
120
|
+
state to \"FIRING\"; likewise, the alarm must persist in not breaching the condition for five
|
121
|
+
minutes before the alarm updates its state to \"OK.\"
|
122
|
+
|
123
|
+
The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H`
|
124
|
+
for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
|
125
|
+
|
126
|
+
|
127
|
+
:return: The pending_duration of this ScalingConfiguration.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._pending_duration
|
131
|
+
|
132
|
+
@pending_duration.setter
|
133
|
+
def pending_duration(self, pending_duration):
|
134
|
+
"""
|
135
|
+
Sets the pending_duration of this ScalingConfiguration.
|
136
|
+
The period of time that the condition defined in the alarm must persist before the alarm state
|
137
|
+
changes from \"OK\" to \"FIRING\" or vice versa. For example, a value of 5 minutes means that the
|
138
|
+
alarm must persist in breaching the condition for five minutes before the alarm updates its
|
139
|
+
state to \"FIRING\"; likewise, the alarm must persist in not breaching the condition for five
|
140
|
+
minutes before the alarm updates its state to \"OK.\"
|
141
|
+
|
142
|
+
The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H`
|
143
|
+
for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
|
144
|
+
|
145
|
+
|
146
|
+
:param pending_duration: The pending_duration of this ScalingConfiguration.
|
147
|
+
:type: str
|
148
|
+
"""
|
149
|
+
self._pending_duration = pending_duration
|
150
|
+
|
151
|
+
@property
|
152
|
+
def instance_count_adjustment(self):
|
153
|
+
"""
|
154
|
+
Gets the instance_count_adjustment of this ScalingConfiguration.
|
155
|
+
The value is used for adjusting the count of instances by.
|
156
|
+
|
157
|
+
|
158
|
+
:return: The instance_count_adjustment of this ScalingConfiguration.
|
159
|
+
:rtype: int
|
160
|
+
"""
|
161
|
+
return self._instance_count_adjustment
|
162
|
+
|
163
|
+
@instance_count_adjustment.setter
|
164
|
+
def instance_count_adjustment(self, instance_count_adjustment):
|
165
|
+
"""
|
166
|
+
Sets the instance_count_adjustment of this ScalingConfiguration.
|
167
|
+
The value is used for adjusting the count of instances by.
|
168
|
+
|
169
|
+
|
170
|
+
:param instance_count_adjustment: The instance_count_adjustment of this ScalingConfiguration.
|
171
|
+
:type: int
|
172
|
+
"""
|
173
|
+
self._instance_count_adjustment = instance_count_adjustment
|
174
|
+
|
175
|
+
def __repr__(self):
|
176
|
+
return formatted_flat_dict(self)
|
177
|
+
|
178
|
+
def __eq__(self, other):
|
179
|
+
if other is None:
|
180
|
+
return False
|
181
|
+
|
182
|
+
return self.__dict__ == other.__dict__
|
183
|
+
|
184
|
+
def __ne__(self, other):
|
185
|
+
return not self == other
|
@@ -19,18 +19,23 @@ class ScalingPolicy(object):
|
|
19
19
|
#: This constant has a value of "FIXED_SIZE"
|
20
20
|
POLICY_TYPE_FIXED_SIZE = "FIXED_SIZE"
|
21
21
|
|
22
|
+
#: A constant which can be used with the policy_type property of a ScalingPolicy.
|
23
|
+
#: This constant has a value of "AUTOSCALING"
|
24
|
+
POLICY_TYPE_AUTOSCALING = "AUTOSCALING"
|
25
|
+
|
22
26
|
def __init__(self, **kwargs):
|
23
27
|
"""
|
24
28
|
Initializes a new ScalingPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
25
29
|
to a service operations then you should favor using a subclass over the base class:
|
26
30
|
|
31
|
+
* :class:`~oci.data_science.models.AutoScalingPolicy`
|
27
32
|
* :class:`~oci.data_science.models.FixedSizeScalingPolicy`
|
28
33
|
|
29
34
|
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
30
35
|
|
31
36
|
:param policy_type:
|
32
37
|
The value to assign to the policy_type property of this ScalingPolicy.
|
33
|
-
Allowed values for this property are: "FIXED_SIZE", 'UNKNOWN_ENUM_VALUE'.
|
38
|
+
Allowed values for this property are: "FIXED_SIZE", "AUTOSCALING", 'UNKNOWN_ENUM_VALUE'.
|
34
39
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
35
40
|
:type policy_type: str
|
36
41
|
|
@@ -53,6 +58,9 @@ class ScalingPolicy(object):
|
|
53
58
|
"""
|
54
59
|
type = object_dictionary['policyType']
|
55
60
|
|
61
|
+
if type == 'AUTOSCALING':
|
62
|
+
return 'AutoScalingPolicy'
|
63
|
+
|
56
64
|
if type == 'FIXED_SIZE':
|
57
65
|
return 'FixedSizeScalingPolicy'
|
58
66
|
else:
|
@@ -64,7 +72,7 @@ class ScalingPolicy(object):
|
|
64
72
|
**[Required]** Gets the policy_type of this ScalingPolicy.
|
65
73
|
The type of scaling policy.
|
66
74
|
|
67
|
-
Allowed values for this property are: "FIXED_SIZE", 'UNKNOWN_ENUM_VALUE'.
|
75
|
+
Allowed values for this property are: "FIXED_SIZE", "AUTOSCALING", 'UNKNOWN_ENUM_VALUE'.
|
68
76
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
69
77
|
|
70
78
|
|
@@ -83,7 +91,7 @@ class ScalingPolicy(object):
|
|
83
91
|
:param policy_type: The policy_type of this ScalingPolicy.
|
84
92
|
:type: str
|
85
93
|
"""
|
86
|
-
allowed_values = ["FIXED_SIZE"]
|
94
|
+
allowed_values = ["FIXED_SIZE", "AUTOSCALING"]
|
87
95
|
if not value_allowed_none_or_none_sentinel(policy_type, allowed_values):
|
88
96
|
policy_type = 'UNKNOWN_ENUM_VALUE'
|
89
97
|
self._policy_type = policy_type
|
@@ -0,0 +1,187 @@
|
|
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 .auto_scaling_policy_details import AutoScalingPolicyDetails
|
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 ThresholdBasedAutoScalingPolicyDetails(AutoScalingPolicyDetails):
|
14
|
+
"""
|
15
|
+
Details for a threshold-based autoscaling policy to enable on the model deployment.
|
16
|
+
In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets
|
17
|
+
or exceeds a threshold.
|
18
|
+
"""
|
19
|
+
|
20
|
+
def __init__(self, **kwargs):
|
21
|
+
"""
|
22
|
+
Initializes a new ThresholdBasedAutoScalingPolicyDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.ThresholdBasedAutoScalingPolicyDetails.auto_scaling_policy_type` attribute
|
23
|
+
of this class is ``THRESHOLD`` and it should not be changed.
|
24
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
25
|
+
|
26
|
+
:param auto_scaling_policy_type:
|
27
|
+
The value to assign to the auto_scaling_policy_type property of this ThresholdBasedAutoScalingPolicyDetails.
|
28
|
+
Allowed values for this property are: "THRESHOLD"
|
29
|
+
:type auto_scaling_policy_type: str
|
30
|
+
|
31
|
+
:param rules:
|
32
|
+
The value to assign to the rules property of this ThresholdBasedAutoScalingPolicyDetails.
|
33
|
+
:type rules: list[oci.data_science.models.MetricExpressionRule]
|
34
|
+
|
35
|
+
:param maximum_instance_count:
|
36
|
+
The value to assign to the maximum_instance_count property of this ThresholdBasedAutoScalingPolicyDetails.
|
37
|
+
:type maximum_instance_count: int
|
38
|
+
|
39
|
+
:param minimum_instance_count:
|
40
|
+
The value to assign to the minimum_instance_count property of this ThresholdBasedAutoScalingPolicyDetails.
|
41
|
+
:type minimum_instance_count: int
|
42
|
+
|
43
|
+
:param initial_instance_count:
|
44
|
+
The value to assign to the initial_instance_count property of this ThresholdBasedAutoScalingPolicyDetails.
|
45
|
+
:type initial_instance_count: int
|
46
|
+
|
47
|
+
"""
|
48
|
+
self.swagger_types = {
|
49
|
+
'auto_scaling_policy_type': 'str',
|
50
|
+
'rules': 'list[MetricExpressionRule]',
|
51
|
+
'maximum_instance_count': 'int',
|
52
|
+
'minimum_instance_count': 'int',
|
53
|
+
'initial_instance_count': 'int'
|
54
|
+
}
|
55
|
+
|
56
|
+
self.attribute_map = {
|
57
|
+
'auto_scaling_policy_type': 'autoScalingPolicyType',
|
58
|
+
'rules': 'rules',
|
59
|
+
'maximum_instance_count': 'maximumInstanceCount',
|
60
|
+
'minimum_instance_count': 'minimumInstanceCount',
|
61
|
+
'initial_instance_count': 'initialInstanceCount'
|
62
|
+
}
|
63
|
+
|
64
|
+
self._auto_scaling_policy_type = None
|
65
|
+
self._rules = None
|
66
|
+
self._maximum_instance_count = None
|
67
|
+
self._minimum_instance_count = None
|
68
|
+
self._initial_instance_count = None
|
69
|
+
self._auto_scaling_policy_type = 'THRESHOLD'
|
70
|
+
|
71
|
+
@property
|
72
|
+
def rules(self):
|
73
|
+
"""
|
74
|
+
**[Required]** Gets the rules of this ThresholdBasedAutoScalingPolicyDetails.
|
75
|
+
The list of autoscaling policy rules.
|
76
|
+
|
77
|
+
|
78
|
+
:return: The rules of this ThresholdBasedAutoScalingPolicyDetails.
|
79
|
+
:rtype: list[oci.data_science.models.MetricExpressionRule]
|
80
|
+
"""
|
81
|
+
return self._rules
|
82
|
+
|
83
|
+
@rules.setter
|
84
|
+
def rules(self, rules):
|
85
|
+
"""
|
86
|
+
Sets the rules of this ThresholdBasedAutoScalingPolicyDetails.
|
87
|
+
The list of autoscaling policy rules.
|
88
|
+
|
89
|
+
|
90
|
+
:param rules: The rules of this ThresholdBasedAutoScalingPolicyDetails.
|
91
|
+
:type: list[oci.data_science.models.MetricExpressionRule]
|
92
|
+
"""
|
93
|
+
self._rules = rules
|
94
|
+
|
95
|
+
@property
|
96
|
+
def maximum_instance_count(self):
|
97
|
+
"""
|
98
|
+
**[Required]** Gets the maximum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
99
|
+
For a threshold-based autoscaling policy, this value is the maximum number of instances the model deployment is allowed
|
100
|
+
to increase to (scale out).
|
101
|
+
|
102
|
+
|
103
|
+
:return: The maximum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
104
|
+
:rtype: int
|
105
|
+
"""
|
106
|
+
return self._maximum_instance_count
|
107
|
+
|
108
|
+
@maximum_instance_count.setter
|
109
|
+
def maximum_instance_count(self, maximum_instance_count):
|
110
|
+
"""
|
111
|
+
Sets the maximum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
112
|
+
For a threshold-based autoscaling policy, this value is the maximum number of instances the model deployment is allowed
|
113
|
+
to increase to (scale out).
|
114
|
+
|
115
|
+
|
116
|
+
:param maximum_instance_count: The maximum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
117
|
+
:type: int
|
118
|
+
"""
|
119
|
+
self._maximum_instance_count = maximum_instance_count
|
120
|
+
|
121
|
+
@property
|
122
|
+
def minimum_instance_count(self):
|
123
|
+
"""
|
124
|
+
**[Required]** Gets the minimum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
125
|
+
For a threshold-based autoscaling policy, this value is the minimum number of instances the model deployment is allowed
|
126
|
+
to decrease to (scale in).
|
127
|
+
|
128
|
+
|
129
|
+
:return: The minimum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
130
|
+
:rtype: int
|
131
|
+
"""
|
132
|
+
return self._minimum_instance_count
|
133
|
+
|
134
|
+
@minimum_instance_count.setter
|
135
|
+
def minimum_instance_count(self, minimum_instance_count):
|
136
|
+
"""
|
137
|
+
Sets the minimum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
138
|
+
For a threshold-based autoscaling policy, this value is the minimum number of instances the model deployment is allowed
|
139
|
+
to decrease to (scale in).
|
140
|
+
|
141
|
+
|
142
|
+
:param minimum_instance_count: The minimum_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
143
|
+
:type: int
|
144
|
+
"""
|
145
|
+
self._minimum_instance_count = minimum_instance_count
|
146
|
+
|
147
|
+
@property
|
148
|
+
def initial_instance_count(self):
|
149
|
+
"""
|
150
|
+
**[Required]** Gets the initial_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
151
|
+
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the model deployment
|
152
|
+
immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset
|
153
|
+
to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from
|
154
|
+
this initial number to a number that is based on the limits that you set.
|
155
|
+
|
156
|
+
|
157
|
+
:return: The initial_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
158
|
+
:rtype: int
|
159
|
+
"""
|
160
|
+
return self._initial_instance_count
|
161
|
+
|
162
|
+
@initial_instance_count.setter
|
163
|
+
def initial_instance_count(self, initial_instance_count):
|
164
|
+
"""
|
165
|
+
Sets the initial_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
166
|
+
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the model deployment
|
167
|
+
immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset
|
168
|
+
to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from
|
169
|
+
this initial number to a number that is based on the limits that you set.
|
170
|
+
|
171
|
+
|
172
|
+
:param initial_instance_count: The initial_instance_count of this ThresholdBasedAutoScalingPolicyDetails.
|
173
|
+
:type: int
|
174
|
+
"""
|
175
|
+
self._initial_instance_count = initial_instance_count
|
176
|
+
|
177
|
+
def __repr__(self):
|
178
|
+
return formatted_flat_dict(self)
|
179
|
+
|
180
|
+
def __eq__(self, other):
|
181
|
+
if other is None:
|
182
|
+
return False
|
183
|
+
|
184
|
+
return self.__dict__ == other.__dict__
|
185
|
+
|
186
|
+
def __ne__(self, other):
|
187
|
+
return not self == other
|
@@ -36,25 +36,32 @@ class UpdateModelConfigurationDetails(object):
|
|
36
36
|
The value to assign to the bandwidth_mbps property of this UpdateModelConfigurationDetails.
|
37
37
|
:type bandwidth_mbps: int
|
38
38
|
|
39
|
+
:param maximum_bandwidth_mbps:
|
40
|
+
The value to assign to the maximum_bandwidth_mbps property of this UpdateModelConfigurationDetails.
|
41
|
+
:type maximum_bandwidth_mbps: int
|
42
|
+
|
39
43
|
"""
|
40
44
|
self.swagger_types = {
|
41
45
|
'model_id': 'str',
|
42
46
|
'instance_configuration': 'InstanceConfiguration',
|
43
47
|
'scaling_policy': 'ScalingPolicy',
|
44
|
-
'bandwidth_mbps': 'int'
|
48
|
+
'bandwidth_mbps': 'int',
|
49
|
+
'maximum_bandwidth_mbps': 'int'
|
45
50
|
}
|
46
51
|
|
47
52
|
self.attribute_map = {
|
48
53
|
'model_id': 'modelId',
|
49
54
|
'instance_configuration': 'instanceConfiguration',
|
50
55
|
'scaling_policy': 'scalingPolicy',
|
51
|
-
'bandwidth_mbps': 'bandwidthMbps'
|
56
|
+
'bandwidth_mbps': 'bandwidthMbps',
|
57
|
+
'maximum_bandwidth_mbps': 'maximumBandwidthMbps'
|
52
58
|
}
|
53
59
|
|
54
60
|
self._model_id = None
|
55
61
|
self._instance_configuration = None
|
56
62
|
self._scaling_policy = None
|
57
63
|
self._bandwidth_mbps = None
|
64
|
+
self._maximum_bandwidth_mbps = None
|
58
65
|
|
59
66
|
@property
|
60
67
|
def model_id(self):
|
@@ -144,6 +151,30 @@ class UpdateModelConfigurationDetails(object):
|
|
144
151
|
"""
|
145
152
|
self._bandwidth_mbps = bandwidth_mbps
|
146
153
|
|
154
|
+
@property
|
155
|
+
def maximum_bandwidth_mbps(self):
|
156
|
+
"""
|
157
|
+
Gets the maximum_bandwidth_mbps of this UpdateModelConfigurationDetails.
|
158
|
+
The maximum network bandwidth for the model deployment.
|
159
|
+
|
160
|
+
|
161
|
+
:return: The maximum_bandwidth_mbps of this UpdateModelConfigurationDetails.
|
162
|
+
:rtype: int
|
163
|
+
"""
|
164
|
+
return self._maximum_bandwidth_mbps
|
165
|
+
|
166
|
+
@maximum_bandwidth_mbps.setter
|
167
|
+
def maximum_bandwidth_mbps(self, maximum_bandwidth_mbps):
|
168
|
+
"""
|
169
|
+
Sets the maximum_bandwidth_mbps of this UpdateModelConfigurationDetails.
|
170
|
+
The maximum network bandwidth for the model deployment.
|
171
|
+
|
172
|
+
|
173
|
+
:param maximum_bandwidth_mbps: The maximum_bandwidth_mbps of this UpdateModelConfigurationDetails.
|
174
|
+
:type: int
|
175
|
+
"""
|
176
|
+
self._maximum_bandwidth_mbps = maximum_bandwidth_mbps
|
177
|
+
|
147
178
|
def __repr__(self):
|
148
179
|
return formatted_flat_dict(self)
|
149
180
|
|