anyscale 0.26.69__py3-none-any.whl → 0.26.70__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.
- anyscale/_private/anyscale_client/anyscale_client.py +67 -1
- anyscale/_private/anyscale_client/common.py +20 -1
- anyscale/_private/anyscale_client/fake_anyscale_client.py +77 -10
- anyscale/client/README.md +14 -4
- anyscale/client/openapi_client/__init__.py +11 -4
- anyscale/client/openapi_client/api/default_api.py +462 -23
- anyscale/client/openapi_client/models/__init__.py +11 -4
- anyscale/client/openapi_client/models/api_key_info.py +29 -3
- anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
- anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
- anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
- anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
- anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
- anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
- anyscale/client/openapi_client/models/event_level.py +2 -1
- anyscale/client/openapi_client/models/job_event_fields.py +206 -0
- anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
- anyscale/client/openapi_client/models/partition_info.py +30 -1
- anyscale/client/openapi_client/models/production_job_event.py +3 -3
- anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
- anyscale/client/openapi_client/models/service_event_fields.py +318 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/task_summary_config.py +29 -3
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/unified_event.py +377 -0
- anyscale/client/openapi_client/models/{ha_job_event_level.py → unified_origin_filter.py} +21 -9
- anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +30 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +30 -1
- anyscale/cloud/models.py +2 -2
- anyscale/commands/cloud_commands.py +133 -2
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +130 -67
- anyscale/commands/setup_k8s.py +546 -31
- anyscale/controllers/cloud_controller.py +15 -2
- anyscale/controllers/kubernetes_verifier.py +80 -66
- anyscale/job/_private/job_sdk.py +47 -1
- anyscale/job/commands.py +3 -0
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/service/__init__.py +11 -3
- anyscale/service/_private/service_sdk.py +361 -35
- anyscale/service/commands.py +15 -3
- anyscale/service/models.py +12 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/METADATA +1 -1
- {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/RECORD +66 -59
- anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
- {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/WHEEL +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/top_level.txt +0 -0
|
@@ -18,7 +18,7 @@ import six
|
|
|
18
18
|
from openapi_client.configuration import Configuration
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class ClouddeploymentResponse(object):
|
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
23
|
Ref: https://openapi-generator.tech
|
|
24
24
|
|
|
@@ -33,7 +33,7 @@ class OauthconnectionresponseResponse(object):
|
|
|
33
33
|
and the value is json key in definition.
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
|
-
'result': '
|
|
36
|
+
'result': 'CloudDeployment'
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
attribute_map = {
|
|
@@ -41,7 +41,7 @@ class OauthconnectionresponseResponse(object):
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
-
"""
|
|
44
|
+
"""ClouddeploymentResponse - a model defined in OpenAPI""" # noqa: E501
|
|
45
45
|
if local_vars_configuration is None:
|
|
46
46
|
local_vars_configuration = Configuration()
|
|
47
47
|
self.local_vars_configuration = local_vars_configuration
|
|
@@ -53,21 +53,21 @@ class OauthconnectionresponseResponse(object):
|
|
|
53
53
|
|
|
54
54
|
@property
|
|
55
55
|
def result(self):
|
|
56
|
-
"""Gets the result of this
|
|
56
|
+
"""Gets the result of this ClouddeploymentResponse. # noqa: E501
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
:return: The result of this
|
|
60
|
-
:rtype:
|
|
59
|
+
:return: The result of this ClouddeploymentResponse. # noqa: E501
|
|
60
|
+
:rtype: CloudDeployment
|
|
61
61
|
"""
|
|
62
62
|
return self._result
|
|
63
63
|
|
|
64
64
|
@result.setter
|
|
65
65
|
def result(self, result):
|
|
66
|
-
"""Sets the result of this
|
|
66
|
+
"""Sets the result of this ClouddeploymentResponse.
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
:param result: The result of this
|
|
70
|
-
:type:
|
|
69
|
+
:param result: The result of this ClouddeploymentResponse. # noqa: E501
|
|
70
|
+
:type: CloudDeployment
|
|
71
71
|
"""
|
|
72
72
|
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
|
73
73
|
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
|
@@ -108,14 +108,14 @@ class OauthconnectionresponseResponse(object):
|
|
|
108
108
|
|
|
109
109
|
def __eq__(self, other):
|
|
110
110
|
"""Returns true if both objects are equal"""
|
|
111
|
-
if not isinstance(other,
|
|
111
|
+
if not isinstance(other, ClouddeploymentResponse):
|
|
112
112
|
return False
|
|
113
113
|
|
|
114
114
|
return self.to_dict() == other.to_dict()
|
|
115
115
|
|
|
116
116
|
def __ne__(self, other):
|
|
117
117
|
"""Returns true if both objects are not equal"""
|
|
118
|
-
if not isinstance(other,
|
|
118
|
+
if not isinstance(other, ClouddeploymentResponse):
|
|
119
119
|
return True
|
|
120
120
|
|
|
121
121
|
return self.to_dict() != other.to_dict()
|
|
@@ -47,6 +47,7 @@ class CreateExperimentalWorkspace(object):
|
|
|
47
47
|
'template_version_id': 'str',
|
|
48
48
|
'template_url': 'str',
|
|
49
49
|
'tags': 'dict(str, str)',
|
|
50
|
+
'proxied_artifacts': 'WorkspaceDataplaneProxiedArtifacts',
|
|
50
51
|
'skip_start': 'bool'
|
|
51
52
|
}
|
|
52
53
|
|
|
@@ -65,10 +66,11 @@ class CreateExperimentalWorkspace(object):
|
|
|
65
66
|
'template_version_id': 'template_version_id',
|
|
66
67
|
'template_url': 'template_url',
|
|
67
68
|
'tags': 'tags',
|
|
69
|
+
'proxied_artifacts': 'proxied_artifacts',
|
|
68
70
|
'skip_start': 'skip_start'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, cluster_environment_build_id=None, idle_timeout_minutes=None, cloned_job_id=None, cloned_workspace_id=None, template_id=None, template_version_id=None, template_url=None, tags=None, skip_start=None, local_vars_configuration=None): # noqa: E501
|
|
73
|
+
def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, cluster_environment_build_id=None, idle_timeout_minutes=None, cloned_job_id=None, cloned_workspace_id=None, template_id=None, template_version_id=None, template_url=None, tags=None, proxied_artifacts=None, skip_start=None, local_vars_configuration=None): # noqa: E501
|
|
72
74
|
"""CreateExperimentalWorkspace - a model defined in OpenAPI""" # noqa: E501
|
|
73
75
|
if local_vars_configuration is None:
|
|
74
76
|
local_vars_configuration = Configuration()
|
|
@@ -88,6 +90,7 @@ class CreateExperimentalWorkspace(object):
|
|
|
88
90
|
self._template_version_id = None
|
|
89
91
|
self._template_url = None
|
|
90
92
|
self._tags = None
|
|
93
|
+
self._proxied_artifacts = None
|
|
91
94
|
self._skip_start = None
|
|
92
95
|
self.discriminator = None
|
|
93
96
|
|
|
@@ -114,6 +117,8 @@ class CreateExperimentalWorkspace(object):
|
|
|
114
117
|
self.template_url = template_url
|
|
115
118
|
if tags is not None:
|
|
116
119
|
self.tags = tags
|
|
120
|
+
if proxied_artifacts is not None:
|
|
121
|
+
self.proxied_artifacts = proxied_artifacts
|
|
117
122
|
if skip_start is not None:
|
|
118
123
|
self.skip_start = skip_start
|
|
119
124
|
|
|
@@ -449,6 +454,29 @@ class CreateExperimentalWorkspace(object):
|
|
|
449
454
|
|
|
450
455
|
self._tags = tags
|
|
451
456
|
|
|
457
|
+
@property
|
|
458
|
+
def proxied_artifacts(self):
|
|
459
|
+
"""Gets the proxied_artifacts of this CreateExperimentalWorkspace. # noqa: E501
|
|
460
|
+
|
|
461
|
+
The proxied artifacts for the workspace. # noqa: E501
|
|
462
|
+
|
|
463
|
+
:return: The proxied_artifacts of this CreateExperimentalWorkspace. # noqa: E501
|
|
464
|
+
:rtype: WorkspaceDataplaneProxiedArtifacts
|
|
465
|
+
"""
|
|
466
|
+
return self._proxied_artifacts
|
|
467
|
+
|
|
468
|
+
@proxied_artifacts.setter
|
|
469
|
+
def proxied_artifacts(self, proxied_artifacts):
|
|
470
|
+
"""Sets the proxied_artifacts of this CreateExperimentalWorkspace.
|
|
471
|
+
|
|
472
|
+
The proxied artifacts for the workspace. # noqa: E501
|
|
473
|
+
|
|
474
|
+
:param proxied_artifacts: The proxied_artifacts of this CreateExperimentalWorkspace. # noqa: E501
|
|
475
|
+
:type: WorkspaceDataplaneProxiedArtifacts
|
|
476
|
+
"""
|
|
477
|
+
|
|
478
|
+
self._proxied_artifacts = proxied_artifacts
|
|
479
|
+
|
|
452
480
|
@property
|
|
453
481
|
def skip_start(self):
|
|
454
482
|
"""Gets the skip_start of this CreateExperimentalWorkspace. # noqa: E501
|
|
@@ -34,6 +34,7 @@ class CreateWorkspaceFromTemplate(object):
|
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'template_id': 'str',
|
|
37
|
+
'template_version_id': 'str',
|
|
37
38
|
'cloud_id': 'str',
|
|
38
39
|
'project_id': 'str',
|
|
39
40
|
'skip_start': 'bool',
|
|
@@ -43,6 +44,7 @@ class CreateWorkspaceFromTemplate(object):
|
|
|
43
44
|
|
|
44
45
|
attribute_map = {
|
|
45
46
|
'template_id': 'template_id',
|
|
47
|
+
'template_version_id': 'template_version_id',
|
|
46
48
|
'cloud_id': 'cloud_id',
|
|
47
49
|
'project_id': 'project_id',
|
|
48
50
|
'skip_start': 'skip_start',
|
|
@@ -50,13 +52,14 @@ class CreateWorkspaceFromTemplate(object):
|
|
|
50
52
|
'maximum_uptime_minutes': 'maximum_uptime_minutes'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, template_id=None, cloud_id=None, project_id=None, skip_start=None, name=None, maximum_uptime_minutes=None, local_vars_configuration=None): # noqa: E501
|
|
55
|
+
def __init__(self, template_id=None, template_version_id=None, cloud_id=None, project_id=None, skip_start=None, name=None, maximum_uptime_minutes=None, local_vars_configuration=None): # noqa: E501
|
|
54
56
|
"""CreateWorkspaceFromTemplate - a model defined in OpenAPI""" # noqa: E501
|
|
55
57
|
if local_vars_configuration is None:
|
|
56
58
|
local_vars_configuration = Configuration()
|
|
57
59
|
self.local_vars_configuration = local_vars_configuration
|
|
58
60
|
|
|
59
61
|
self._template_id = None
|
|
62
|
+
self._template_version_id = None
|
|
60
63
|
self._cloud_id = None
|
|
61
64
|
self._project_id = None
|
|
62
65
|
self._skip_start = None
|
|
@@ -65,6 +68,8 @@ class CreateWorkspaceFromTemplate(object):
|
|
|
65
68
|
self.discriminator = None
|
|
66
69
|
|
|
67
70
|
self.template_id = template_id
|
|
71
|
+
if template_version_id is not None:
|
|
72
|
+
self.template_version_id = template_version_id
|
|
68
73
|
self.cloud_id = cloud_id
|
|
69
74
|
if project_id is not None:
|
|
70
75
|
self.project_id = project_id
|
|
@@ -100,6 +105,29 @@ class CreateWorkspaceFromTemplate(object):
|
|
|
100
105
|
|
|
101
106
|
self._template_id = template_id
|
|
102
107
|
|
|
108
|
+
@property
|
|
109
|
+
def template_version_id(self):
|
|
110
|
+
"""Gets the template_version_id of this CreateWorkspaceFromTemplate. # noqa: E501
|
|
111
|
+
|
|
112
|
+
The Id of the template version to use. # noqa: E501
|
|
113
|
+
|
|
114
|
+
:return: The template_version_id of this CreateWorkspaceFromTemplate. # noqa: E501
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._template_version_id
|
|
118
|
+
|
|
119
|
+
@template_version_id.setter
|
|
120
|
+
def template_version_id(self, template_version_id):
|
|
121
|
+
"""Sets the template_version_id of this CreateWorkspaceFromTemplate.
|
|
122
|
+
|
|
123
|
+
The Id of the template version to use. # noqa: E501
|
|
124
|
+
|
|
125
|
+
:param template_version_id: The template_version_id of this CreateWorkspaceFromTemplate. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._template_version_id = template_version_id
|
|
130
|
+
|
|
103
131
|
@property
|
|
104
132
|
def cloud_id(self):
|
|
105
133
|
"""Gets the cloud_id of this CreateWorkspaceFromTemplate. # noqa: E501
|
|
@@ -35,16 +35,18 @@ class CreateWorkspaceTemplateVersion(object):
|
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'image_uri': 'str',
|
|
37
37
|
'compute_configs': 'dict(str, str)',
|
|
38
|
-
'artifacts': 'WorkspaceSystemArtifacts'
|
|
38
|
+
'artifacts': 'WorkspaceSystemArtifacts',
|
|
39
|
+
'source_workspace_id': 'str'
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
attribute_map = {
|
|
42
43
|
'image_uri': 'image_uri',
|
|
43
44
|
'compute_configs': 'compute_configs',
|
|
44
|
-
'artifacts': 'artifacts'
|
|
45
|
+
'artifacts': 'artifacts',
|
|
46
|
+
'source_workspace_id': 'source_workspace_id'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
def __init__(self, image_uri=None, compute_configs=None, artifacts=None, local_vars_configuration=None): # noqa: E501
|
|
49
|
+
def __init__(self, image_uri=None, compute_configs=None, artifacts=None, source_workspace_id=None, local_vars_configuration=None): # noqa: E501
|
|
48
50
|
"""CreateWorkspaceTemplateVersion - a model defined in OpenAPI""" # noqa: E501
|
|
49
51
|
if local_vars_configuration is None:
|
|
50
52
|
local_vars_configuration = Configuration()
|
|
@@ -53,6 +55,7 @@ class CreateWorkspaceTemplateVersion(object):
|
|
|
53
55
|
self._image_uri = None
|
|
54
56
|
self._compute_configs = None
|
|
55
57
|
self._artifacts = None
|
|
58
|
+
self._source_workspace_id = None
|
|
56
59
|
self.discriminator = None
|
|
57
60
|
|
|
58
61
|
if image_uri is not None:
|
|
@@ -61,6 +64,8 @@ class CreateWorkspaceTemplateVersion(object):
|
|
|
61
64
|
self.compute_configs = compute_configs
|
|
62
65
|
if artifacts is not None:
|
|
63
66
|
self.artifacts = artifacts
|
|
67
|
+
if source_workspace_id is not None:
|
|
68
|
+
self.source_workspace_id = source_workspace_id
|
|
64
69
|
|
|
65
70
|
@property
|
|
66
71
|
def image_uri(self):
|
|
@@ -131,6 +136,29 @@ class CreateWorkspaceTemplateVersion(object):
|
|
|
131
136
|
|
|
132
137
|
self._artifacts = artifacts
|
|
133
138
|
|
|
139
|
+
@property
|
|
140
|
+
def source_workspace_id(self):
|
|
141
|
+
"""Gets the source_workspace_id of this CreateWorkspaceTemplateVersion. # noqa: E501
|
|
142
|
+
|
|
143
|
+
Source workspace ID to copy image_uri, compute_configs, and artifacts from. If both source_workspace_id and artifacts are provided, artifacts will take precedence. # noqa: E501
|
|
144
|
+
|
|
145
|
+
:return: The source_workspace_id of this CreateWorkspaceTemplateVersion. # noqa: E501
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._source_workspace_id
|
|
149
|
+
|
|
150
|
+
@source_workspace_id.setter
|
|
151
|
+
def source_workspace_id(self, source_workspace_id):
|
|
152
|
+
"""Sets the source_workspace_id of this CreateWorkspaceTemplateVersion.
|
|
153
|
+
|
|
154
|
+
Source workspace ID to copy image_uri, compute_configs, and artifacts from. If both source_workspace_id and artifacts are provided, artifacts will take precedence. # noqa: E501
|
|
155
|
+
|
|
156
|
+
:param source_workspace_id: The source_workspace_id of this CreateWorkspaceTemplateVersion. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._source_workspace_id = source_workspace_id
|
|
161
|
+
|
|
134
162
|
def to_dict(self):
|
|
135
163
|
"""Returns the model properties as a dict"""
|
|
136
164
|
result = {}
|
|
@@ -52,6 +52,8 @@ class DecoratedListServiceAPIModel(object):
|
|
|
52
52
|
'base_url': 'str',
|
|
53
53
|
'ended_at': 'datetime',
|
|
54
54
|
'creator': 'MiniUser',
|
|
55
|
+
'is_multi_version': 'bool',
|
|
56
|
+
'error_message': 'str',
|
|
55
57
|
'type': 'ServiceType'
|
|
56
58
|
}
|
|
57
59
|
|
|
@@ -75,10 +77,12 @@ class DecoratedListServiceAPIModel(object):
|
|
|
75
77
|
'base_url': 'base_url',
|
|
76
78
|
'ended_at': 'ended_at',
|
|
77
79
|
'creator': 'creator',
|
|
80
|
+
'is_multi_version': 'is_multi_version',
|
|
81
|
+
'error_message': 'error_message',
|
|
78
82
|
'type': 'type'
|
|
79
83
|
}
|
|
80
84
|
|
|
81
|
-
def __init__(self, id=None, name=None, description=None, project_id=None, cloud_id=None, creator_id=None, created_at=None, hostname=None, current_state=None, goal_state=None, auth_token=None, auto_rollout_enabled=None, versions=None, primary_version=None, canary_version=None, service_observability_urls=None, base_url=None, ended_at=None, creator=None, type=None, local_vars_configuration=None): # noqa: E501
|
|
85
|
+
def __init__(self, id=None, name=None, description=None, project_id=None, cloud_id=None, creator_id=None, created_at=None, hostname=None, current_state=None, goal_state=None, auth_token=None, auto_rollout_enabled=None, versions=None, primary_version=None, canary_version=None, service_observability_urls=None, base_url=None, ended_at=None, creator=None, is_multi_version=None, error_message=None, type=None, local_vars_configuration=None): # noqa: E501
|
|
82
86
|
"""DecoratedListServiceAPIModel - a model defined in OpenAPI""" # noqa: E501
|
|
83
87
|
if local_vars_configuration is None:
|
|
84
88
|
local_vars_configuration = Configuration()
|
|
@@ -103,6 +107,8 @@ class DecoratedListServiceAPIModel(object):
|
|
|
103
107
|
self._base_url = None
|
|
104
108
|
self._ended_at = None
|
|
105
109
|
self._creator = None
|
|
110
|
+
self._is_multi_version = None
|
|
111
|
+
self._error_message = None
|
|
106
112
|
self._type = None
|
|
107
113
|
self.discriminator = None
|
|
108
114
|
|
|
@@ -129,6 +135,9 @@ class DecoratedListServiceAPIModel(object):
|
|
|
129
135
|
if ended_at is not None:
|
|
130
136
|
self.ended_at = ended_at
|
|
131
137
|
self.creator = creator
|
|
138
|
+
self.is_multi_version = is_multi_version
|
|
139
|
+
if error_message is not None:
|
|
140
|
+
self.error_message = error_message
|
|
132
141
|
self.type = type
|
|
133
142
|
|
|
134
143
|
@property
|
|
@@ -598,6 +607,54 @@ class DecoratedListServiceAPIModel(object):
|
|
|
598
607
|
|
|
599
608
|
self._creator = creator
|
|
600
609
|
|
|
610
|
+
@property
|
|
611
|
+
def is_multi_version(self):
|
|
612
|
+
"""Gets the is_multi_version of this DecoratedListServiceAPIModel. # noqa: E501
|
|
613
|
+
|
|
614
|
+
Whether the service is a multi-version service. # noqa: E501
|
|
615
|
+
|
|
616
|
+
:return: The is_multi_version of this DecoratedListServiceAPIModel. # noqa: E501
|
|
617
|
+
:rtype: bool
|
|
618
|
+
"""
|
|
619
|
+
return self._is_multi_version
|
|
620
|
+
|
|
621
|
+
@is_multi_version.setter
|
|
622
|
+
def is_multi_version(self, is_multi_version):
|
|
623
|
+
"""Sets the is_multi_version of this DecoratedListServiceAPIModel.
|
|
624
|
+
|
|
625
|
+
Whether the service is a multi-version service. # noqa: E501
|
|
626
|
+
|
|
627
|
+
:param is_multi_version: The is_multi_version of this DecoratedListServiceAPIModel. # noqa: E501
|
|
628
|
+
:type: bool
|
|
629
|
+
"""
|
|
630
|
+
if self.local_vars_configuration.client_side_validation and is_multi_version is None: # noqa: E501
|
|
631
|
+
raise ValueError("Invalid value for `is_multi_version`, must not be `None`") # noqa: E501
|
|
632
|
+
|
|
633
|
+
self._is_multi_version = is_multi_version
|
|
634
|
+
|
|
635
|
+
@property
|
|
636
|
+
def error_message(self):
|
|
637
|
+
"""Gets the error_message of this DecoratedListServiceAPIModel. # noqa: E501
|
|
638
|
+
|
|
639
|
+
Error message occurred while processing the API request. # noqa: E501
|
|
640
|
+
|
|
641
|
+
:return: The error_message of this DecoratedListServiceAPIModel. # noqa: E501
|
|
642
|
+
:rtype: str
|
|
643
|
+
"""
|
|
644
|
+
return self._error_message
|
|
645
|
+
|
|
646
|
+
@error_message.setter
|
|
647
|
+
def error_message(self, error_message):
|
|
648
|
+
"""Sets the error_message of this DecoratedListServiceAPIModel.
|
|
649
|
+
|
|
650
|
+
Error message occurred while processing the API request. # noqa: E501
|
|
651
|
+
|
|
652
|
+
:param error_message: The error_message of this DecoratedListServiceAPIModel. # noqa: E501
|
|
653
|
+
:type: str
|
|
654
|
+
"""
|
|
655
|
+
|
|
656
|
+
self._error_message = error_message
|
|
657
|
+
|
|
601
658
|
@property
|
|
602
659
|
def type(self):
|
|
603
660
|
"""Gets the type of this DecoratedListServiceAPIModel. # noqa: E501
|
|
@@ -51,7 +51,9 @@ class DecoratedProductionServiceV2APIModel(object):
|
|
|
51
51
|
'service_observability_urls': 'ServiceObservabilityUrls',
|
|
52
52
|
'base_url': 'str',
|
|
53
53
|
'ended_at': 'datetime',
|
|
54
|
-
'creator': 'MiniUser'
|
|
54
|
+
'creator': 'MiniUser',
|
|
55
|
+
'is_multi_version': 'bool',
|
|
56
|
+
'error_message': 'str'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
attribute_map = {
|
|
@@ -73,10 +75,12 @@ class DecoratedProductionServiceV2APIModel(object):
|
|
|
73
75
|
'service_observability_urls': 'service_observability_urls',
|
|
74
76
|
'base_url': 'base_url',
|
|
75
77
|
'ended_at': 'ended_at',
|
|
76
|
-
'creator': 'creator'
|
|
78
|
+
'creator': 'creator',
|
|
79
|
+
'is_multi_version': 'is_multi_version',
|
|
80
|
+
'error_message': 'error_message'
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
def __init__(self, id=None, name=None, description=None, project_id=None, cloud_id=None, creator_id=None, created_at=None, hostname=None, current_state=None, goal_state=None, auth_token=None, auto_rollout_enabled=None, versions=None, primary_version=None, canary_version=None, service_observability_urls=None, base_url=None, ended_at=None, creator=None, local_vars_configuration=None): # noqa: E501
|
|
83
|
+
def __init__(self, id=None, name=None, description=None, project_id=None, cloud_id=None, creator_id=None, created_at=None, hostname=None, current_state=None, goal_state=None, auth_token=None, auto_rollout_enabled=None, versions=None, primary_version=None, canary_version=None, service_observability_urls=None, base_url=None, ended_at=None, creator=None, is_multi_version=None, error_message=None, local_vars_configuration=None): # noqa: E501
|
|
80
84
|
"""DecoratedProductionServiceV2APIModel - a model defined in OpenAPI""" # noqa: E501
|
|
81
85
|
if local_vars_configuration is None:
|
|
82
86
|
local_vars_configuration = Configuration()
|
|
@@ -101,6 +105,8 @@ class DecoratedProductionServiceV2APIModel(object):
|
|
|
101
105
|
self._base_url = None
|
|
102
106
|
self._ended_at = None
|
|
103
107
|
self._creator = None
|
|
108
|
+
self._is_multi_version = None
|
|
109
|
+
self._error_message = None
|
|
104
110
|
self.discriminator = None
|
|
105
111
|
|
|
106
112
|
self.id = id
|
|
@@ -126,6 +132,9 @@ class DecoratedProductionServiceV2APIModel(object):
|
|
|
126
132
|
if ended_at is not None:
|
|
127
133
|
self.ended_at = ended_at
|
|
128
134
|
self.creator = creator
|
|
135
|
+
self.is_multi_version = is_multi_version
|
|
136
|
+
if error_message is not None:
|
|
137
|
+
self.error_message = error_message
|
|
129
138
|
|
|
130
139
|
@property
|
|
131
140
|
def id(self):
|
|
@@ -594,6 +603,54 @@ class DecoratedProductionServiceV2APIModel(object):
|
|
|
594
603
|
|
|
595
604
|
self._creator = creator
|
|
596
605
|
|
|
606
|
+
@property
|
|
607
|
+
def is_multi_version(self):
|
|
608
|
+
"""Gets the is_multi_version of this DecoratedProductionServiceV2APIModel. # noqa: E501
|
|
609
|
+
|
|
610
|
+
Whether the service is a multi-version service. # noqa: E501
|
|
611
|
+
|
|
612
|
+
:return: The is_multi_version of this DecoratedProductionServiceV2APIModel. # noqa: E501
|
|
613
|
+
:rtype: bool
|
|
614
|
+
"""
|
|
615
|
+
return self._is_multi_version
|
|
616
|
+
|
|
617
|
+
@is_multi_version.setter
|
|
618
|
+
def is_multi_version(self, is_multi_version):
|
|
619
|
+
"""Sets the is_multi_version of this DecoratedProductionServiceV2APIModel.
|
|
620
|
+
|
|
621
|
+
Whether the service is a multi-version service. # noqa: E501
|
|
622
|
+
|
|
623
|
+
:param is_multi_version: The is_multi_version of this DecoratedProductionServiceV2APIModel. # noqa: E501
|
|
624
|
+
:type: bool
|
|
625
|
+
"""
|
|
626
|
+
if self.local_vars_configuration.client_side_validation and is_multi_version is None: # noqa: E501
|
|
627
|
+
raise ValueError("Invalid value for `is_multi_version`, must not be `None`") # noqa: E501
|
|
628
|
+
|
|
629
|
+
self._is_multi_version = is_multi_version
|
|
630
|
+
|
|
631
|
+
@property
|
|
632
|
+
def error_message(self):
|
|
633
|
+
"""Gets the error_message of this DecoratedProductionServiceV2APIModel. # noqa: E501
|
|
634
|
+
|
|
635
|
+
Error message occurred while processing the API request. # noqa: E501
|
|
636
|
+
|
|
637
|
+
:return: The error_message of this DecoratedProductionServiceV2APIModel. # noqa: E501
|
|
638
|
+
:rtype: str
|
|
639
|
+
"""
|
|
640
|
+
return self._error_message
|
|
641
|
+
|
|
642
|
+
@error_message.setter
|
|
643
|
+
def error_message(self, error_message):
|
|
644
|
+
"""Sets the error_message of this DecoratedProductionServiceV2APIModel.
|
|
645
|
+
|
|
646
|
+
Error message occurred while processing the API request. # noqa: E501
|
|
647
|
+
|
|
648
|
+
:param error_message: The error_message of this DecoratedProductionServiceV2APIModel. # noqa: E501
|
|
649
|
+
:type: str
|
|
650
|
+
"""
|
|
651
|
+
|
|
652
|
+
self._error_message = error_message
|
|
653
|
+
|
|
597
654
|
def to_dict(self):
|
|
598
655
|
"""Returns the model properties as a dict"""
|
|
599
656
|
result = {}
|
|
@@ -38,7 +38,7 @@ class DecoratedServiceEventAPIModel(object):
|
|
|
38
38
|
'event_type': 'ServiceEventType',
|
|
39
39
|
'current_state': 'ServiceEventCurrentState',
|
|
40
40
|
'goal_state': 'ServiceGoalStates',
|
|
41
|
-
'level': '
|
|
41
|
+
'level': 'EventLevel',
|
|
42
42
|
'message': 'str',
|
|
43
43
|
'origin': 'ServiceEventOrigin',
|
|
44
44
|
'service_id': 'str',
|
|
@@ -244,7 +244,7 @@ class DecoratedServiceEventAPIModel(object):
|
|
|
244
244
|
|
|
245
245
|
|
|
246
246
|
:return: The level of this DecoratedServiceEventAPIModel. # noqa: E501
|
|
247
|
-
:rtype:
|
|
247
|
+
:rtype: EventLevel
|
|
248
248
|
"""
|
|
249
249
|
return self._level
|
|
250
250
|
|
|
@@ -254,7 +254,7 @@ class DecoratedServiceEventAPIModel(object):
|
|
|
254
254
|
|
|
255
255
|
|
|
256
256
|
:param level: The level of this DecoratedServiceEventAPIModel. # noqa: E501
|
|
257
|
-
:type:
|
|
257
|
+
:type: EventLevel
|
|
258
258
|
"""
|
|
259
259
|
|
|
260
260
|
self._level = level
|
|
@@ -34,15 +34,17 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'allocation_states': 'list[MachineAllocationState]',
|
|
37
|
-
'partitions': 'list[str]'
|
|
37
|
+
'partitions': 'list[str]',
|
|
38
|
+
'machine_type_partition_filters': 'list[MachineTypePartitionFilter]'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
attribute_map = {
|
|
41
42
|
'allocation_states': 'allocation_states',
|
|
42
|
-
'partitions': 'partitions'
|
|
43
|
+
'partitions': 'partitions',
|
|
44
|
+
'machine_type_partition_filters': 'machine_type_partition_filters'
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
def __init__(self, allocation_states=None, partitions=None, local_vars_configuration=None): # noqa: E501
|
|
47
|
+
def __init__(self, allocation_states=None, partitions=None, machine_type_partition_filters=None, local_vars_configuration=None): # noqa: E501
|
|
46
48
|
"""DescribeMachinePoolMachinesFilters - a model defined in OpenAPI""" # noqa: E501
|
|
47
49
|
if local_vars_configuration is None:
|
|
48
50
|
local_vars_configuration = Configuration()
|
|
@@ -50,12 +52,15 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
50
52
|
|
|
51
53
|
self._allocation_states = None
|
|
52
54
|
self._partitions = None
|
|
55
|
+
self._machine_type_partition_filters = None
|
|
53
56
|
self.discriminator = None
|
|
54
57
|
|
|
55
58
|
if allocation_states is not None:
|
|
56
59
|
self.allocation_states = allocation_states
|
|
57
60
|
if partitions is not None:
|
|
58
61
|
self.partitions = partitions
|
|
62
|
+
if machine_type_partition_filters is not None:
|
|
63
|
+
self.machine_type_partition_filters = machine_type_partition_filters
|
|
59
64
|
|
|
60
65
|
@property
|
|
61
66
|
def allocation_states(self):
|
|
@@ -84,7 +89,7 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
84
89
|
def partitions(self):
|
|
85
90
|
"""Gets the partitions of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
86
91
|
|
|
87
|
-
The partitions to filter by. # noqa: E501
|
|
92
|
+
The partitions to filter by (for backward compatibility). # noqa: E501
|
|
88
93
|
|
|
89
94
|
:return: The partitions of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
90
95
|
:rtype: list[str]
|
|
@@ -95,7 +100,7 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
95
100
|
def partitions(self, partitions):
|
|
96
101
|
"""Sets the partitions of this DescribeMachinePoolMachinesFilters.
|
|
97
102
|
|
|
98
|
-
The partitions to filter by. # noqa: E501
|
|
103
|
+
The partitions to filter by (for backward compatibility). # noqa: E501
|
|
99
104
|
|
|
100
105
|
:param partitions: The partitions of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
101
106
|
:type: list[str]
|
|
@@ -103,6 +108,29 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
103
108
|
|
|
104
109
|
self._partitions = partitions
|
|
105
110
|
|
|
111
|
+
@property
|
|
112
|
+
def machine_type_partition_filters(self):
|
|
113
|
+
"""Gets the machine_type_partition_filters of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
114
|
+
|
|
115
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The machine_type_partition_filters of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
118
|
+
:rtype: list[MachineTypePartitionFilter]
|
|
119
|
+
"""
|
|
120
|
+
return self._machine_type_partition_filters
|
|
121
|
+
|
|
122
|
+
@machine_type_partition_filters.setter
|
|
123
|
+
def machine_type_partition_filters(self, machine_type_partition_filters):
|
|
124
|
+
"""Sets the machine_type_partition_filters of this DescribeMachinePoolMachinesFilters.
|
|
125
|
+
|
|
126
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param machine_type_partition_filters: The machine_type_partition_filters of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
129
|
+
:type: list[MachineTypePartitionFilter]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._machine_type_partition_filters = machine_type_partition_filters
|
|
133
|
+
|
|
106
134
|
def to_dict(self):
|
|
107
135
|
"""Returns the model properties as a dict"""
|
|
108
136
|
result = {}
|
|
@@ -34,15 +34,17 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'workload_name': 'TextQuery',
|
|
37
|
-
'partitions': 'list[str]'
|
|
37
|
+
'partitions': 'list[str]',
|
|
38
|
+
'machine_type_partition_filters': 'list[MachineTypePartitionFilter]'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
attribute_map = {
|
|
41
42
|
'workload_name': 'workload_name',
|
|
42
|
-
'partitions': 'partitions'
|
|
43
|
+
'partitions': 'partitions',
|
|
44
|
+
'machine_type_partition_filters': 'machine_type_partition_filters'
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
def __init__(self, workload_name=None, partitions=None, local_vars_configuration=None): # noqa: E501
|
|
47
|
+
def __init__(self, workload_name=None, partitions=None, machine_type_partition_filters=None, local_vars_configuration=None): # noqa: E501
|
|
46
48
|
"""DescribeMachinePoolWorkloadsFilters - a model defined in OpenAPI""" # noqa: E501
|
|
47
49
|
if local_vars_configuration is None:
|
|
48
50
|
local_vars_configuration = Configuration()
|
|
@@ -50,12 +52,15 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
50
52
|
|
|
51
53
|
self._workload_name = None
|
|
52
54
|
self._partitions = None
|
|
55
|
+
self._machine_type_partition_filters = None
|
|
53
56
|
self.discriminator = None
|
|
54
57
|
|
|
55
58
|
if workload_name is not None:
|
|
56
59
|
self.workload_name = workload_name
|
|
57
60
|
if partitions is not None:
|
|
58
61
|
self.partitions = partitions
|
|
62
|
+
if machine_type_partition_filters is not None:
|
|
63
|
+
self.machine_type_partition_filters = machine_type_partition_filters
|
|
59
64
|
|
|
60
65
|
@property
|
|
61
66
|
def workload_name(self):
|
|
@@ -84,7 +89,7 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
84
89
|
def partitions(self):
|
|
85
90
|
"""Gets the partitions of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
86
91
|
|
|
87
|
-
The partitions to filter workload machines by
|
|
92
|
+
The partitions to filter workload machines by (for backward compatibility). # noqa: E501
|
|
88
93
|
|
|
89
94
|
:return: The partitions of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
90
95
|
:rtype: list[str]
|
|
@@ -95,7 +100,7 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
95
100
|
def partitions(self, partitions):
|
|
96
101
|
"""Sets the partitions of this DescribeMachinePoolWorkloadsFilters.
|
|
97
102
|
|
|
98
|
-
The partitions to filter workload machines by
|
|
103
|
+
The partitions to filter workload machines by (for backward compatibility). # noqa: E501
|
|
99
104
|
|
|
100
105
|
:param partitions: The partitions of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
101
106
|
:type: list[str]
|
|
@@ -103,6 +108,29 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
103
108
|
|
|
104
109
|
self._partitions = partitions
|
|
105
110
|
|
|
111
|
+
@property
|
|
112
|
+
def machine_type_partition_filters(self):
|
|
113
|
+
"""Gets the machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
114
|
+
|
|
115
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
118
|
+
:rtype: list[MachineTypePartitionFilter]
|
|
119
|
+
"""
|
|
120
|
+
return self._machine_type_partition_filters
|
|
121
|
+
|
|
122
|
+
@machine_type_partition_filters.setter
|
|
123
|
+
def machine_type_partition_filters(self, machine_type_partition_filters):
|
|
124
|
+
"""Sets the machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters.
|
|
125
|
+
|
|
126
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param machine_type_partition_filters: The machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
129
|
+
:type: list[MachineTypePartitionFilter]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._machine_type_partition_filters = machine_type_partition_filters
|
|
133
|
+
|
|
106
134
|
def to_dict(self):
|
|
107
135
|
"""Returns the model properties as a dict"""
|
|
108
136
|
result = {}
|