anyscale 0.26.56__py3-none-any.whl → 0.26.58__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/client/README.md +45 -0
- anyscale/client/openapi_client/__init__.py +32 -0
- anyscale/client/openapi_client/api/default_api.py +1882 -244
- anyscale/client/openapi_client/models/__init__.py +32 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
- anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
- anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/deleted_count.py +121 -0
- anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
- anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
- anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
- anyscale/client/openapi_client/models/published_filter.py +101 -0
- anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
- anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
- anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
- anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
- anyscale/client/openapi_client/models/tag_key.py +121 -0
- anyscale/client/openapi_client/models/tag_key_value.py +148 -0
- anyscale/client/openapi_client/models/tag_search_in.py +101 -0
- anyscale/client/openapi_client/models/tag_value.py +121 -0
- anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/task_attempts.py +101 -0
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
- anyscale/client/openapi_client/models/workspace_template.py +343 -204
- anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
- anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
- anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
- anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
- anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
- anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
- anyscale/commands/command_examples.py +1 -1
- anyscale/connect_utils/start_interactive_session.py +0 -1
- 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/shared_anyscale_utils/utils/id_gen.py +3 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/METADATA +1 -1
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/RECORD +53 -21
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/WHEEL +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/top_level.txt +0 -0
@@ -187,6 +187,8 @@ from openapi_client.models.create_user import CreateUser
|
|
187
187
|
from openapi_client.models.create_user_project_collaborator import CreateUserProjectCollaborator
|
188
188
|
from openapi_client.models.create_user_project_collaborator_value import CreateUserProjectCollaboratorValue
|
189
189
|
from openapi_client.models.create_workspace_from_template import CreateWorkspaceFromTemplate
|
190
|
+
from openapi_client.models.create_workspace_template import CreateWorkspaceTemplate
|
191
|
+
from openapi_client.models.create_workspace_template_version import CreateWorkspaceTemplateVersion
|
190
192
|
from openapi_client.models.createbugreportresponse_response import CreatebugreportresponseResponse
|
191
193
|
from openapi_client.models.createcomputetemplateconfig_response import CreatecomputetemplateconfigResponse
|
192
194
|
from openapi_client.models.createmachinepoolresponse_response import CreatemachinepoolresponseResponse
|
@@ -261,7 +263,10 @@ from openapi_client.models.decoratedsupportrequest_response import Decoratedsupp
|
|
261
263
|
from openapi_client.models.decoratedunifiedjob_list_response import DecoratedunifiedjobListResponse
|
262
264
|
from openapi_client.models.delete_machine_pool_request import DeleteMachinePoolRequest
|
263
265
|
from openapi_client.models.delete_machine_request import DeleteMachineRequest
|
266
|
+
from openapi_client.models.delete_resource_tags_request import DeleteResourceTagsRequest
|
267
|
+
from openapi_client.models.deleted_count import DeletedCount
|
264
268
|
from openapi_client.models.deleted_platform_fine_tuned_model import DeletedPlatformFineTunedModel
|
269
|
+
from openapi_client.models.deletedcount_response import DeletedcountResponse
|
265
270
|
from openapi_client.models.deletedplatformfinetunedmodel_response import DeletedplatformfinetunedmodelResponse
|
266
271
|
from openapi_client.models.deletemachinepoolresponse_response import DeletemachinepoolresponseResponse
|
267
272
|
from openapi_client.models.describe_machine_pool_machines_filters import DescribeMachinePoolMachinesFilters
|
@@ -300,6 +305,8 @@ from openapi_client.models.gcp_config import GCPConfig
|
|
300
305
|
from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
|
301
306
|
from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
|
302
307
|
from openapi_client.models.get_or_create_build_from_image_uri_request import GetOrCreateBuildFromImageUriRequest
|
308
|
+
from openapi_client.models.global_workspace_template import GlobalWorkspaceTemplate
|
309
|
+
from openapi_client.models.globalworkspacetemplate_list_response import GlobalworkspacetemplateListResponse
|
303
310
|
from openapi_client.models.grafana_dashboard import GrafanaDashboard
|
304
311
|
from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
|
305
312
|
from openapi_client.models.http_validation_error import HTTPValidationError
|
@@ -467,6 +474,7 @@ from openapi_client.models.projectcollaborator_list_response import Projectcolla
|
|
467
474
|
from openapi_client.models.projectdefaultsessionname_response import ProjectdefaultsessionnameResponse
|
468
475
|
from openapi_client.models.projects_sort_field import ProjectsSortField
|
469
476
|
from openapi_client.models.protocols import Protocols
|
477
|
+
from openapi_client.models.published_filter import PublishedFilter
|
470
478
|
from openapi_client.models.python_modules import PythonModules
|
471
479
|
from openapi_client.models.quota import Quota
|
472
480
|
from openapi_client.models.ray_gcs_external_storage_config import RayGCSExternalStorageConfig
|
@@ -488,11 +496,15 @@ from openapi_client.models.resource_alert_event_type import ResourceAlertEventTy
|
|
488
496
|
from openapi_client.models.resource_notification import ResourceNotification
|
489
497
|
from openapi_client.models.resource_quota import ResourceQuota
|
490
498
|
from openapi_client.models.resource_quota_status import ResourceQuotaStatus
|
499
|
+
from openapi_client.models.resource_tag_record import ResourceTagRecord
|
500
|
+
from openapi_client.models.resource_tag_resource_type import ResourceTagResourceType
|
501
|
+
from openapi_client.models.resource_tags_list import ResourceTagsList
|
491
502
|
from openapi_client.models.resourcenotification_list_response import ResourcenotificationListResponse
|
492
503
|
from openapi_client.models.resourcenotification_response import ResourcenotificationResponse
|
493
504
|
from openapi_client.models.resourcequota_list_response import ResourcequotaListResponse
|
494
505
|
from openapi_client.models.resourcequota_response import ResourcequotaResponse
|
495
506
|
from openapi_client.models.resources import Resources
|
507
|
+
from openapi_client.models.resourcetagslist_response import ResourcetagslistResponse
|
496
508
|
from openapi_client.models.rollback_service_model import RollbackServiceModel
|
497
509
|
from openapi_client.models.rollout_strategy import RolloutStrategy
|
498
510
|
from openapi_client.models.run_attempt_status import RunAttemptStatus
|
@@ -551,6 +563,14 @@ from openapi_client.models.summarize_machine_pool_response import SummarizeMachi
|
|
551
563
|
from openapi_client.models.summarizemachinepoolresponse_response import SummarizemachinepoolresponseResponse
|
552
564
|
from openapi_client.models.support_requests_query import SupportRequestsQuery
|
553
565
|
from openapi_client.models.system_workload_name import SystemWorkloadName
|
566
|
+
from openapi_client.models.tag_key import TagKey
|
567
|
+
from openapi_client.models.tag_key_value import TagKeyValue
|
568
|
+
from openapi_client.models.tag_search_in import TagSearchIn
|
569
|
+
from openapi_client.models.tag_value import TagValue
|
570
|
+
from openapi_client.models.tagkey_list_response import TagkeyListResponse
|
571
|
+
from openapi_client.models.tagkeyvalue_list_response import TagkeyvalueListResponse
|
572
|
+
from openapi_client.models.tagvalue_list_response import TagvalueListResponse
|
573
|
+
from openapi_client.models.task_attempts import TaskAttempts
|
554
574
|
from openapi_client.models.task_exception_group_aggregate import TaskExceptionGroupAggregate
|
555
575
|
from openapi_client.models.task_exception_group_aggregate_response import TaskExceptionGroupAggregateResponse
|
556
576
|
from openapi_client.models.task_function_name_group_aggregate import TaskFunctionNameGroupAggregate
|
@@ -592,6 +612,7 @@ from openapi_client.models.update_resource_quota import UpdateResourceQuota
|
|
592
612
|
from openapi_client.models.updatemachinepoolresponse_response import UpdatemachinepoolresponseResponse
|
593
613
|
from openapi_client.models.upload_session_command_logs_locations import UploadSessionCommandLogsLocations
|
594
614
|
from openapi_client.models.uploadsessioncommandlogslocations_response import UploadsessioncommandlogslocationsResponse
|
615
|
+
from openapi_client.models.upsert_resource_tags_request import UpsertResourceTagsRequest
|
595
616
|
from openapi_client.models.usage_by_cloud import UsageByCloud
|
596
617
|
from openapi_client.models.usage_by_cluster import UsageByCluster
|
597
618
|
from openapi_client.models.usage_by_instance_type import UsageByInstanceType
|
@@ -627,16 +648,27 @@ from openapi_client.models.workspace_event_source import WorkspaceEventSource
|
|
627
648
|
from openapi_client.models.workspace_event_source_filter import WorkspaceEventSourceFilter
|
628
649
|
from openapi_client.models.workspace_readme import WorkspaceReadme
|
629
650
|
from openapi_client.models.workspace_snapshot_states import WorkspaceSnapshotStates
|
651
|
+
from openapi_client.models.workspace_system_artifacts import WorkspaceSystemArtifacts
|
630
652
|
from openapi_client.models.workspace_template import WorkspaceTemplate
|
653
|
+
from openapi_client.models.workspace_template_category import WorkspaceTemplateCategory
|
631
654
|
from openapi_client.models.workspace_template_cluster_environment_metadata import WorkspaceTemplateClusterEnvironmentMetadata
|
655
|
+
from openapi_client.models.workspace_template_complexity import WorkspaceTemplateComplexity
|
656
|
+
from openapi_client.models.workspace_template_icon_background_color import WorkspaceTemplateIconBackgroundColor
|
657
|
+
from openapi_client.models.workspace_template_icon_type import WorkspaceTemplateIconType
|
632
658
|
from openapi_client.models.workspace_template_readme import WorkspaceTemplateReadme
|
659
|
+
from openapi_client.models.workspace_template_version import WorkspaceTemplateVersion
|
660
|
+
from openapi_client.models.workspace_template_version_data_object import WorkspaceTemplateVersionDataObject
|
661
|
+
from openapi_client.models.workspace_templates_sort_field import WorkspaceTemplatesSortField
|
633
662
|
from openapi_client.models.workspacedataplaneartifacts_response import WorkspacedataplaneartifactsResponse
|
634
663
|
from openapi_client.models.workspacedataplaneproxiedartifacts_response import WorkspacedataplaneproxiedartifactsResponse
|
635
664
|
from openapi_client.models.workspaceevent_list_response import WorkspaceeventListResponse
|
636
665
|
from openapi_client.models.workspacereadme_response import WorkspacereadmeResponse
|
637
666
|
from openapi_client.models.workspacetemplate_list_response import WorkspacetemplateListResponse
|
667
|
+
from openapi_client.models.workspacetemplate_response import WorkspacetemplateResponse
|
638
668
|
from openapi_client.models.workspacetemplateclusterenvironmentmetadata_response import WorkspacetemplateclusterenvironmentmetadataResponse
|
639
669
|
from openapi_client.models.workspacetemplatereadme_response import WorkspacetemplatereadmeResponse
|
670
|
+
from openapi_client.models.workspacetemplateversion_list_response import WorkspacetemplateversionListResponse
|
671
|
+
from openapi_client.models.workspacetemplateversion_response import WorkspacetemplateversionResponse
|
640
672
|
from openapi_client.models.write_cloud import WriteCloud
|
641
673
|
from openapi_client.models.write_cluster_config import WriteClusterConfig
|
642
674
|
from openapi_client.models.write_project import WriteProject
|
@@ -46,7 +46,8 @@ class ApplyProductionServiceV2Model(object):
|
|
46
46
|
'ray_gcs_external_storage_config': 'RayGCSExternalStorageConfig',
|
47
47
|
'tracing_config': 'TracingConfig',
|
48
48
|
'auto_complete_rollout': 'bool',
|
49
|
-
'max_surge_percent': 'int'
|
49
|
+
'max_surge_percent': 'int',
|
50
|
+
'tags': 'dict(str, str)'
|
50
51
|
}
|
51
52
|
|
52
53
|
attribute_map = {
|
@@ -63,10 +64,11 @@ class ApplyProductionServiceV2Model(object):
|
|
63
64
|
'ray_gcs_external_storage_config': 'ray_gcs_external_storage_config',
|
64
65
|
'tracing_config': 'tracing_config',
|
65
66
|
'auto_complete_rollout': 'auto_complete_rollout',
|
66
|
-
'max_surge_percent': 'max_surge_percent'
|
67
|
+
'max_surge_percent': 'max_surge_percent',
|
68
|
+
'tags': 'tags'
|
67
69
|
}
|
68
70
|
|
69
|
-
def __init__(self, name=None, description=None, project_id=None, version=None, canary_percent=None, ray_serve_config=None, build_id=None, compute_config_id=None, config=None, rollout_strategy=None, ray_gcs_external_storage_config=None, tracing_config=None, auto_complete_rollout=True, max_surge_percent=None, local_vars_configuration=None): # noqa: E501
|
71
|
+
def __init__(self, name=None, description=None, project_id=None, version=None, canary_percent=None, ray_serve_config=None, build_id=None, compute_config_id=None, config=None, rollout_strategy=None, ray_gcs_external_storage_config=None, tracing_config=None, auto_complete_rollout=True, max_surge_percent=None, tags=None, local_vars_configuration=None): # noqa: E501
|
70
72
|
"""ApplyProductionServiceV2Model - a model defined in OpenAPI""" # noqa: E501
|
71
73
|
if local_vars_configuration is None:
|
72
74
|
local_vars_configuration = Configuration()
|
@@ -86,6 +88,7 @@ class ApplyProductionServiceV2Model(object):
|
|
86
88
|
self._tracing_config = None
|
87
89
|
self._auto_complete_rollout = None
|
88
90
|
self._max_surge_percent = None
|
91
|
+
self._tags = None
|
89
92
|
self.discriminator = None
|
90
93
|
|
91
94
|
self.name = name
|
@@ -112,6 +115,8 @@ class ApplyProductionServiceV2Model(object):
|
|
112
115
|
self.auto_complete_rollout = auto_complete_rollout
|
113
116
|
if max_surge_percent is not None:
|
114
117
|
self.max_surge_percent = max_surge_percent
|
118
|
+
if tags is not None:
|
119
|
+
self.tags = tags
|
115
120
|
|
116
121
|
@property
|
117
122
|
def name(self):
|
@@ -443,6 +448,29 @@ class ApplyProductionServiceV2Model(object):
|
|
443
448
|
|
444
449
|
self._max_surge_percent = max_surge_percent
|
445
450
|
|
451
|
+
@property
|
452
|
+
def tags(self):
|
453
|
+
"""Gets the tags of this ApplyProductionServiceV2Model. # noqa: E501
|
454
|
+
|
455
|
+
Tags to associate with the service # noqa: E501
|
456
|
+
|
457
|
+
:return: The tags of this ApplyProductionServiceV2Model. # noqa: E501
|
458
|
+
:rtype: dict(str, str)
|
459
|
+
"""
|
460
|
+
return self._tags
|
461
|
+
|
462
|
+
@tags.setter
|
463
|
+
def tags(self, tags):
|
464
|
+
"""Sets the tags of this ApplyProductionServiceV2Model.
|
465
|
+
|
466
|
+
Tags to associate with the service # noqa: E501
|
467
|
+
|
468
|
+
:param tags: The tags of this ApplyProductionServiceV2Model. # noqa: E501
|
469
|
+
:type: dict(str, str)
|
470
|
+
"""
|
471
|
+
|
472
|
+
self._tags = tags
|
473
|
+
|
446
474
|
def to_dict(self):
|
447
475
|
"""Returns the model properties as a dict"""
|
448
476
|
result = {}
|
@@ -45,6 +45,7 @@ class CreateExperimentalWorkspace(object):
|
|
45
45
|
'cloned_workspace_id': 'str',
|
46
46
|
'template_id': 'str',
|
47
47
|
'template_url': 'str',
|
48
|
+
'tags': 'dict(str, str)',
|
48
49
|
'skip_start': 'bool'
|
49
50
|
}
|
50
51
|
|
@@ -61,10 +62,11 @@ class CreateExperimentalWorkspace(object):
|
|
61
62
|
'cloned_workspace_id': 'cloned_workspace_id',
|
62
63
|
'template_id': 'template_id',
|
63
64
|
'template_url': 'template_url',
|
65
|
+
'tags': 'tags',
|
64
66
|
'skip_start': 'skip_start'
|
65
67
|
}
|
66
68
|
|
67
|
-
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_url=None, skip_start=None, local_vars_configuration=None): # noqa: E501
|
69
|
+
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_url=None, tags=None, skip_start=None, local_vars_configuration=None): # noqa: E501
|
68
70
|
"""CreateExperimentalWorkspace - a model defined in OpenAPI""" # noqa: E501
|
69
71
|
if local_vars_configuration is None:
|
70
72
|
local_vars_configuration = Configuration()
|
@@ -82,6 +84,7 @@ class CreateExperimentalWorkspace(object):
|
|
82
84
|
self._cloned_workspace_id = None
|
83
85
|
self._template_id = None
|
84
86
|
self._template_url = None
|
87
|
+
self._tags = None
|
85
88
|
self._skip_start = None
|
86
89
|
self.discriminator = None
|
87
90
|
|
@@ -104,6 +107,8 @@ class CreateExperimentalWorkspace(object):
|
|
104
107
|
self.template_id = template_id
|
105
108
|
if template_url is not None:
|
106
109
|
self.template_url = template_url
|
110
|
+
if tags is not None:
|
111
|
+
self.tags = tags
|
107
112
|
if skip_start is not None:
|
108
113
|
self.skip_start = skip_start
|
109
114
|
|
@@ -393,6 +398,29 @@ class CreateExperimentalWorkspace(object):
|
|
393
398
|
|
394
399
|
self._template_url = template_url
|
395
400
|
|
401
|
+
@property
|
402
|
+
def tags(self):
|
403
|
+
"""Gets the tags of this CreateExperimentalWorkspace. # noqa: E501
|
404
|
+
|
405
|
+
Tags to associate with the workspace. # noqa: E501
|
406
|
+
|
407
|
+
:return: The tags of this CreateExperimentalWorkspace. # noqa: E501
|
408
|
+
:rtype: dict(str, str)
|
409
|
+
"""
|
410
|
+
return self._tags
|
411
|
+
|
412
|
+
@tags.setter
|
413
|
+
def tags(self, tags):
|
414
|
+
"""Sets the tags of this CreateExperimentalWorkspace.
|
415
|
+
|
416
|
+
Tags to associate with the workspace. # noqa: E501
|
417
|
+
|
418
|
+
:param tags: The tags of this CreateExperimentalWorkspace. # noqa: E501
|
419
|
+
:type: dict(str, str)
|
420
|
+
"""
|
421
|
+
|
422
|
+
self._tags = tags
|
423
|
+
|
396
424
|
@property
|
397
425
|
def skip_start(self):
|
398
426
|
"""Gets the skip_start of this CreateExperimentalWorkspace. # noqa: E501
|
@@ -0,0 +1,404 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Managed Ray API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from openapi_client.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class CreateWorkspaceTemplate(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'name': 'str',
|
37
|
+
'description': 'str',
|
38
|
+
'mins_to_complete': 'int',
|
39
|
+
'icon_type': 'WorkspaceTemplateIconType',
|
40
|
+
'icon_bg_color': 'WorkspaceTemplateIconBackgroundColor',
|
41
|
+
'complexity': 'WorkspaceTemplateComplexity',
|
42
|
+
'category': 'WorkspaceTemplateCategory',
|
43
|
+
'labels': 'list[str]',
|
44
|
+
'published_version_id': 'str',
|
45
|
+
'cloud_id': 'str',
|
46
|
+
'is_global': 'bool'
|
47
|
+
}
|
48
|
+
|
49
|
+
attribute_map = {
|
50
|
+
'name': 'name',
|
51
|
+
'description': 'description',
|
52
|
+
'mins_to_complete': 'mins_to_complete',
|
53
|
+
'icon_type': 'icon_type',
|
54
|
+
'icon_bg_color': 'icon_bg_color',
|
55
|
+
'complexity': 'complexity',
|
56
|
+
'category': 'category',
|
57
|
+
'labels': 'labels',
|
58
|
+
'published_version_id': 'published_version_id',
|
59
|
+
'cloud_id': 'cloud_id',
|
60
|
+
'is_global': 'is_global'
|
61
|
+
}
|
62
|
+
|
63
|
+
def __init__(self, name=None, description=None, mins_to_complete=None, icon_type=None, icon_bg_color=None, complexity=None, category=None, labels=None, published_version_id=None, cloud_id=None, is_global=False, local_vars_configuration=None): # noqa: E501
|
64
|
+
"""CreateWorkspaceTemplate - a model defined in OpenAPI""" # noqa: E501
|
65
|
+
if local_vars_configuration is None:
|
66
|
+
local_vars_configuration = Configuration()
|
67
|
+
self.local_vars_configuration = local_vars_configuration
|
68
|
+
|
69
|
+
self._name = None
|
70
|
+
self._description = None
|
71
|
+
self._mins_to_complete = None
|
72
|
+
self._icon_type = None
|
73
|
+
self._icon_bg_color = None
|
74
|
+
self._complexity = None
|
75
|
+
self._category = None
|
76
|
+
self._labels = None
|
77
|
+
self._published_version_id = None
|
78
|
+
self._cloud_id = None
|
79
|
+
self._is_global = None
|
80
|
+
self.discriminator = None
|
81
|
+
|
82
|
+
self.name = name
|
83
|
+
if description is not None:
|
84
|
+
self.description = description
|
85
|
+
if mins_to_complete is not None:
|
86
|
+
self.mins_to_complete = mins_to_complete
|
87
|
+
if icon_type is not None:
|
88
|
+
self.icon_type = icon_type
|
89
|
+
if icon_bg_color is not None:
|
90
|
+
self.icon_bg_color = icon_bg_color
|
91
|
+
if complexity is not None:
|
92
|
+
self.complexity = complexity
|
93
|
+
if category is not None:
|
94
|
+
self.category = category
|
95
|
+
if labels is not None:
|
96
|
+
self.labels = labels
|
97
|
+
if published_version_id is not None:
|
98
|
+
self.published_version_id = published_version_id
|
99
|
+
self.cloud_id = cloud_id
|
100
|
+
if is_global is not None:
|
101
|
+
self.is_global = is_global
|
102
|
+
|
103
|
+
@property
|
104
|
+
def name(self):
|
105
|
+
"""Gets the name of this CreateWorkspaceTemplate. # noqa: E501
|
106
|
+
|
107
|
+
Name of the template # noqa: E501
|
108
|
+
|
109
|
+
:return: The name of this CreateWorkspaceTemplate. # noqa: E501
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._name
|
113
|
+
|
114
|
+
@name.setter
|
115
|
+
def name(self, name):
|
116
|
+
"""Sets the name of this CreateWorkspaceTemplate.
|
117
|
+
|
118
|
+
Name of the template # noqa: E501
|
119
|
+
|
120
|
+
:param name: The name of this CreateWorkspaceTemplate. # noqa: E501
|
121
|
+
:type: str
|
122
|
+
"""
|
123
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
124
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
125
|
+
|
126
|
+
self._name = name
|
127
|
+
|
128
|
+
@property
|
129
|
+
def description(self):
|
130
|
+
"""Gets the description of this CreateWorkspaceTemplate. # noqa: E501
|
131
|
+
|
132
|
+
Description of the template # noqa: E501
|
133
|
+
|
134
|
+
:return: The description of this CreateWorkspaceTemplate. # noqa: E501
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._description
|
138
|
+
|
139
|
+
@description.setter
|
140
|
+
def description(self, description):
|
141
|
+
"""Sets the description of this CreateWorkspaceTemplate.
|
142
|
+
|
143
|
+
Description of the template # noqa: E501
|
144
|
+
|
145
|
+
:param description: The description of this CreateWorkspaceTemplate. # noqa: E501
|
146
|
+
:type: str
|
147
|
+
"""
|
148
|
+
|
149
|
+
self._description = description
|
150
|
+
|
151
|
+
@property
|
152
|
+
def mins_to_complete(self):
|
153
|
+
"""Gets the mins_to_complete of this CreateWorkspaceTemplate. # noqa: E501
|
154
|
+
|
155
|
+
Estimated minutes to complete this template # noqa: E501
|
156
|
+
|
157
|
+
:return: The mins_to_complete of this CreateWorkspaceTemplate. # noqa: E501
|
158
|
+
:rtype: int
|
159
|
+
"""
|
160
|
+
return self._mins_to_complete
|
161
|
+
|
162
|
+
@mins_to_complete.setter
|
163
|
+
def mins_to_complete(self, mins_to_complete):
|
164
|
+
"""Sets the mins_to_complete of this CreateWorkspaceTemplate.
|
165
|
+
|
166
|
+
Estimated minutes to complete this template # noqa: E501
|
167
|
+
|
168
|
+
:param mins_to_complete: The mins_to_complete of this CreateWorkspaceTemplate. # noqa: E501
|
169
|
+
:type: int
|
170
|
+
"""
|
171
|
+
|
172
|
+
self._mins_to_complete = mins_to_complete
|
173
|
+
|
174
|
+
@property
|
175
|
+
def icon_type(self):
|
176
|
+
"""Gets the icon_type of this CreateWorkspaceTemplate. # noqa: E501
|
177
|
+
|
178
|
+
Icon type for the template # noqa: E501
|
179
|
+
|
180
|
+
:return: The icon_type of this CreateWorkspaceTemplate. # noqa: E501
|
181
|
+
:rtype: WorkspaceTemplateIconType
|
182
|
+
"""
|
183
|
+
return self._icon_type
|
184
|
+
|
185
|
+
@icon_type.setter
|
186
|
+
def icon_type(self, icon_type):
|
187
|
+
"""Sets the icon_type of this CreateWorkspaceTemplate.
|
188
|
+
|
189
|
+
Icon type for the template # noqa: E501
|
190
|
+
|
191
|
+
:param icon_type: The icon_type of this CreateWorkspaceTemplate. # noqa: E501
|
192
|
+
:type: WorkspaceTemplateIconType
|
193
|
+
"""
|
194
|
+
|
195
|
+
self._icon_type = icon_type
|
196
|
+
|
197
|
+
@property
|
198
|
+
def icon_bg_color(self):
|
199
|
+
"""Gets the icon_bg_color of this CreateWorkspaceTemplate. # noqa: E501
|
200
|
+
|
201
|
+
Background color for the icon # noqa: E501
|
202
|
+
|
203
|
+
:return: The icon_bg_color of this CreateWorkspaceTemplate. # noqa: E501
|
204
|
+
:rtype: WorkspaceTemplateIconBackgroundColor
|
205
|
+
"""
|
206
|
+
return self._icon_bg_color
|
207
|
+
|
208
|
+
@icon_bg_color.setter
|
209
|
+
def icon_bg_color(self, icon_bg_color):
|
210
|
+
"""Sets the icon_bg_color of this CreateWorkspaceTemplate.
|
211
|
+
|
212
|
+
Background color for the icon # noqa: E501
|
213
|
+
|
214
|
+
:param icon_bg_color: The icon_bg_color of this CreateWorkspaceTemplate. # noqa: E501
|
215
|
+
:type: WorkspaceTemplateIconBackgroundColor
|
216
|
+
"""
|
217
|
+
|
218
|
+
self._icon_bg_color = icon_bg_color
|
219
|
+
|
220
|
+
@property
|
221
|
+
def complexity(self):
|
222
|
+
"""Gets the complexity of this CreateWorkspaceTemplate. # noqa: E501
|
223
|
+
|
224
|
+
Complexity level of the template # noqa: E501
|
225
|
+
|
226
|
+
:return: The complexity of this CreateWorkspaceTemplate. # noqa: E501
|
227
|
+
:rtype: WorkspaceTemplateComplexity
|
228
|
+
"""
|
229
|
+
return self._complexity
|
230
|
+
|
231
|
+
@complexity.setter
|
232
|
+
def complexity(self, complexity):
|
233
|
+
"""Sets the complexity of this CreateWorkspaceTemplate.
|
234
|
+
|
235
|
+
Complexity level of the template # noqa: E501
|
236
|
+
|
237
|
+
:param complexity: The complexity of this CreateWorkspaceTemplate. # noqa: E501
|
238
|
+
:type: WorkspaceTemplateComplexity
|
239
|
+
"""
|
240
|
+
|
241
|
+
self._complexity = complexity
|
242
|
+
|
243
|
+
@property
|
244
|
+
def category(self):
|
245
|
+
"""Gets the category of this CreateWorkspaceTemplate. # noqa: E501
|
246
|
+
|
247
|
+
Category of the template # noqa: E501
|
248
|
+
|
249
|
+
:return: The category of this CreateWorkspaceTemplate. # noqa: E501
|
250
|
+
:rtype: WorkspaceTemplateCategory
|
251
|
+
"""
|
252
|
+
return self._category
|
253
|
+
|
254
|
+
@category.setter
|
255
|
+
def category(self, category):
|
256
|
+
"""Sets the category of this CreateWorkspaceTemplate.
|
257
|
+
|
258
|
+
Category of the template # noqa: E501
|
259
|
+
|
260
|
+
:param category: The category of this CreateWorkspaceTemplate. # noqa: E501
|
261
|
+
:type: WorkspaceTemplateCategory
|
262
|
+
"""
|
263
|
+
|
264
|
+
self._category = category
|
265
|
+
|
266
|
+
@property
|
267
|
+
def labels(self):
|
268
|
+
"""Gets the labels of this CreateWorkspaceTemplate. # noqa: E501
|
269
|
+
|
270
|
+
Searchable labels for the template # noqa: E501
|
271
|
+
|
272
|
+
:return: The labels of this CreateWorkspaceTemplate. # noqa: E501
|
273
|
+
:rtype: list[str]
|
274
|
+
"""
|
275
|
+
return self._labels
|
276
|
+
|
277
|
+
@labels.setter
|
278
|
+
def labels(self, labels):
|
279
|
+
"""Sets the labels of this CreateWorkspaceTemplate.
|
280
|
+
|
281
|
+
Searchable labels for the template # noqa: E501
|
282
|
+
|
283
|
+
:param labels: The labels of this CreateWorkspaceTemplate. # noqa: E501
|
284
|
+
:type: list[str]
|
285
|
+
"""
|
286
|
+
|
287
|
+
self._labels = labels
|
288
|
+
|
289
|
+
@property
|
290
|
+
def published_version_id(self):
|
291
|
+
"""Gets the published_version_id of this CreateWorkspaceTemplate. # noqa: E501
|
292
|
+
|
293
|
+
ID of the published version # noqa: E501
|
294
|
+
|
295
|
+
:return: The published_version_id of this CreateWorkspaceTemplate. # noqa: E501
|
296
|
+
:rtype: str
|
297
|
+
"""
|
298
|
+
return self._published_version_id
|
299
|
+
|
300
|
+
@published_version_id.setter
|
301
|
+
def published_version_id(self, published_version_id):
|
302
|
+
"""Sets the published_version_id of this CreateWorkspaceTemplate.
|
303
|
+
|
304
|
+
ID of the published version # noqa: E501
|
305
|
+
|
306
|
+
:param published_version_id: The published_version_id of this CreateWorkspaceTemplate. # noqa: E501
|
307
|
+
:type: str
|
308
|
+
"""
|
309
|
+
|
310
|
+
self._published_version_id = published_version_id
|
311
|
+
|
312
|
+
@property
|
313
|
+
def cloud_id(self):
|
314
|
+
"""Gets the cloud_id of this CreateWorkspaceTemplate. # noqa: E501
|
315
|
+
|
316
|
+
Cloud ID this template is associated with # noqa: E501
|
317
|
+
|
318
|
+
:return: The cloud_id of this CreateWorkspaceTemplate. # noqa: E501
|
319
|
+
:rtype: str
|
320
|
+
"""
|
321
|
+
return self._cloud_id
|
322
|
+
|
323
|
+
@cloud_id.setter
|
324
|
+
def cloud_id(self, cloud_id):
|
325
|
+
"""Sets the cloud_id of this CreateWorkspaceTemplate.
|
326
|
+
|
327
|
+
Cloud ID this template is associated with # noqa: E501
|
328
|
+
|
329
|
+
:param cloud_id: The cloud_id of this CreateWorkspaceTemplate. # noqa: E501
|
330
|
+
:type: str
|
331
|
+
"""
|
332
|
+
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
333
|
+
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
334
|
+
|
335
|
+
self._cloud_id = cloud_id
|
336
|
+
|
337
|
+
@property
|
338
|
+
def is_global(self):
|
339
|
+
"""Gets the is_global of this CreateWorkspaceTemplate. # noqa: E501
|
340
|
+
|
341
|
+
Whether this is a global template # noqa: E501
|
342
|
+
|
343
|
+
:return: The is_global of this CreateWorkspaceTemplate. # noqa: E501
|
344
|
+
:rtype: bool
|
345
|
+
"""
|
346
|
+
return self._is_global
|
347
|
+
|
348
|
+
@is_global.setter
|
349
|
+
def is_global(self, is_global):
|
350
|
+
"""Sets the is_global of this CreateWorkspaceTemplate.
|
351
|
+
|
352
|
+
Whether this is a global template # noqa: E501
|
353
|
+
|
354
|
+
:param is_global: The is_global of this CreateWorkspaceTemplate. # noqa: E501
|
355
|
+
:type: bool
|
356
|
+
"""
|
357
|
+
|
358
|
+
self._is_global = is_global
|
359
|
+
|
360
|
+
def to_dict(self):
|
361
|
+
"""Returns the model properties as a dict"""
|
362
|
+
result = {}
|
363
|
+
|
364
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
365
|
+
value = getattr(self, attr)
|
366
|
+
if isinstance(value, list):
|
367
|
+
result[attr] = list(map(
|
368
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
369
|
+
value
|
370
|
+
))
|
371
|
+
elif hasattr(value, "to_dict"):
|
372
|
+
result[attr] = value.to_dict()
|
373
|
+
elif isinstance(value, dict):
|
374
|
+
result[attr] = dict(map(
|
375
|
+
lambda item: (item[0], item[1].to_dict())
|
376
|
+
if hasattr(item[1], "to_dict") else item,
|
377
|
+
value.items()
|
378
|
+
))
|
379
|
+
else:
|
380
|
+
result[attr] = value
|
381
|
+
|
382
|
+
return result
|
383
|
+
|
384
|
+
def to_str(self):
|
385
|
+
"""Returns the string representation of the model"""
|
386
|
+
return pprint.pformat(self.to_dict())
|
387
|
+
|
388
|
+
def __repr__(self):
|
389
|
+
"""For `print` and `pprint`"""
|
390
|
+
return self.to_str()
|
391
|
+
|
392
|
+
def __eq__(self, other):
|
393
|
+
"""Returns true if both objects are equal"""
|
394
|
+
if not isinstance(other, CreateWorkspaceTemplate):
|
395
|
+
return False
|
396
|
+
|
397
|
+
return self.to_dict() == other.to_dict()
|
398
|
+
|
399
|
+
def __ne__(self, other):
|
400
|
+
"""Returns true if both objects are not equal"""
|
401
|
+
if not isinstance(other, CreateWorkspaceTemplate):
|
402
|
+
return True
|
403
|
+
|
404
|
+
return self.to_dict() != other.to_dict()
|