yellowdog-sdk 10.0.0__py3-none-any.whl → 11.1.0__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.
- yellowdog_client/_version.py +1 -1
- yellowdog_client/model/__init__.py +0 -14
- yellowdog_client/model/aws_fleet_compute_source.py +2 -0
- yellowdog_client/model/aws_instances_compute_source.py +2 -0
- yellowdog_client/model/cloud_provider.py +0 -2
- {yellowdog_sdk-10.0.0.dist-info → yellowdog_sdk-11.1.0.dist-info}/METADATA +1 -1
- {yellowdog_sdk-10.0.0.dist-info → yellowdog_sdk-11.1.0.dist-info}/RECORD +10 -17
- yellowdog_client/model/alibaba_compute_source.py +0 -9
- yellowdog_client/model/alibaba_credential.py +0 -16
- yellowdog_client/model/alibaba_instance.py +0 -40
- yellowdog_client/model/alibaba_instance_charge_type.py +0 -15
- yellowdog_client/model/alibaba_instances_compute_source.py +0 -64
- yellowdog_client/model/alibaba_namespace_storage_configuration.py +0 -12
- yellowdog_client/model/alibaba_spot_strategy.py +0 -16
- {yellowdog_sdk-10.0.0.dist-info → yellowdog_sdk-11.1.0.dist-info}/WHEEL +0 -0
- {yellowdog_sdk-10.0.0.dist-info → yellowdog_sdk-11.1.0.dist-info}/licenses/LICENSE +0 -0
- {yellowdog_sdk-10.0.0.dist-info → yellowdog_sdk-11.1.0.dist-info}/top_level.txt +0 -0
yellowdog_client/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '
|
|
1
|
+
__version__ = '11.1.0' # YEL-10717
|
|
@@ -11,13 +11,6 @@ from .add_group_request import AddGroupRequest
|
|
|
11
11
|
from .add_node_actions_request import AddNodeActionsRequest
|
|
12
12
|
from .add_user_request import AddUserRequest
|
|
13
13
|
from .add_user_response import AddUserResponse
|
|
14
|
-
from .alibaba_compute_source import AlibabaComputeSource
|
|
15
|
-
from .alibaba_credential import AlibabaCredential
|
|
16
|
-
from .alibaba_instance import AlibabaInstance
|
|
17
|
-
from .alibaba_instance_charge_type import AlibabaInstanceChargeType
|
|
18
|
-
from .alibaba_instances_compute_source import AlibabaInstancesComputeSource
|
|
19
|
-
from .alibaba_namespace_storage_configuration import AlibabaNamespaceStorageConfiguration
|
|
20
|
-
from .alibaba_spot_strategy import AlibabaSpotStrategy
|
|
21
14
|
from .allowance import Allowance
|
|
22
15
|
from .allowance_exhausted_notification import AllowanceExhaustedNotification
|
|
23
16
|
from .allowance_limit_enforcement import AllowanceLimitEnforcement
|
|
@@ -337,13 +330,6 @@ __all__ = [
|
|
|
337
330
|
"AddNodeActionsRequest",
|
|
338
331
|
"AddUserRequest",
|
|
339
332
|
"AddUserResponse",
|
|
340
|
-
"AlibabaComputeSource",
|
|
341
|
-
"AlibabaCredential",
|
|
342
|
-
"AlibabaInstance",
|
|
343
|
-
"AlibabaInstanceChargeType",
|
|
344
|
-
"AlibabaInstancesComputeSource",
|
|
345
|
-
"AlibabaNamespaceStorageConfiguration",
|
|
346
|
-
"AlibabaSpotStrategy",
|
|
347
333
|
"Allowance",
|
|
348
334
|
"AllowanceExhaustedNotification",
|
|
349
335
|
"AllowanceLimitEnforcement",
|
|
@@ -32,6 +32,7 @@ class AwsFleetComputeSource(AwsComputeSource):
|
|
|
32
32
|
statusMessage: Optional[str] = field(default=None, init=False)
|
|
33
33
|
exhaustion: Optional[ComputeSourceExhaustion] = field(default=None, init=False)
|
|
34
34
|
supportingResourceCreated: Optional[bool] = field(default=None, init=False)
|
|
35
|
+
rootDeviceName: Optional[str] = field(default=None, init=False)
|
|
35
36
|
name: str
|
|
36
37
|
credential: str
|
|
37
38
|
region: str
|
|
@@ -50,6 +51,7 @@ class AwsFleetComputeSource(AwsComputeSource):
|
|
|
50
51
|
"""The ID of the subnet to use for the provisioned instances."""
|
|
51
52
|
userData: Optional[str] = None
|
|
52
53
|
instanceTags: Optional[Dict[str, str]] = None
|
|
54
|
+
bootVolumeSizeGb: Optional[int] = None
|
|
53
55
|
iamInstanceProfileArn: Optional[str] = None
|
|
54
56
|
"""The ARN of the IAM Instance Profile to use for the provisioned instances."""
|
|
55
57
|
keyName: Optional[str] = None
|
|
@@ -26,6 +26,7 @@ class AwsInstancesComputeSource(AwsComputeSource):
|
|
|
26
26
|
statusMessage: Optional[str] = field(default=None, init=False)
|
|
27
27
|
exhaustion: Optional[ComputeSourceExhaustion] = field(default=None, init=False)
|
|
28
28
|
supportingResourceCreated: Optional[bool] = field(default=None, init=False)
|
|
29
|
+
rootDeviceName: Optional[str] = field(default=None, init=False)
|
|
29
30
|
name: str
|
|
30
31
|
credential: str
|
|
31
32
|
region: str
|
|
@@ -42,6 +43,7 @@ class AwsInstancesComputeSource(AwsComputeSource):
|
|
|
42
43
|
"""The ID of the subnet to use for the provisioned instances."""
|
|
43
44
|
userData: Optional[str] = None
|
|
44
45
|
instanceTags: Optional[Dict[str, str]] = None
|
|
46
|
+
bootVolumeSizeGb: Optional[int] = None
|
|
45
47
|
iamInstanceProfileArn: Optional[str] = None
|
|
46
48
|
"""The ARN of the IAM Instance Profile to use for the provisioned instances."""
|
|
47
49
|
keyName: Optional[str] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
yellowdog_client/__init__.py,sha256=xHGTw5UbjkeEl_hC8_gJCacfji6462qJWD1nvJdFssE,13162
|
|
3
|
-
yellowdog_client/_version.py,sha256
|
|
3
|
+
yellowdog_client/_version.py,sha256=-EQn8GNbt6H1BN4pVElPmbwNinVmpydPGRp7haZrnx4,35
|
|
4
4
|
yellowdog_client/client_collection.py,sha256=VSEzjf6iR1qCQ0YGLyDq_Kgvw8r832QDwTp6-MLB4Vs,388
|
|
5
5
|
yellowdog_client/platform_client.py,sha256=yCzKsOQKllnfzwP9bG-JGtvOdvY7EaEQzFsgX3ERzVY,7476
|
|
6
6
|
yellowdog_client/account/__init__.py,sha256=DiLL3uSMyVlAKWsncX0k5Ioc2hw87HQoEkSYO0ro0fg,456
|
|
@@ -53,7 +53,7 @@ yellowdog_client/images/images_service_proxy.py,sha256=eyP4u6FoIH1WJvNM_m8tacTCs
|
|
|
53
53
|
yellowdog_client/images/page.py,sha256=UIvlxvzdcfnKvbcq2Cn6IB7ZtQMc3dzcBTUfElvVPwQ,391
|
|
54
54
|
yellowdog_client/images/pageable.py,sha256=msD8uGGJ2F5jEqTNDYaFrh6z6drlxOXZ1AmB0T3edM0,296
|
|
55
55
|
yellowdog_client/images/sort.py,sha256=YS05DlIRg1Cm3QLBi6KFjFdB3g-b3WrqFFitlMJUEMM,167
|
|
56
|
-
yellowdog_client/model/__init__.py,sha256=
|
|
56
|
+
yellowdog_client/model/__init__.py,sha256=ZrVH4oipGF9oqkoqgoZ3YHxKDj9Tq3tmR_BteiNoAIs,26172
|
|
57
57
|
yellowdog_client/model/access_delegate.py,sha256=jIW5P9jWG0LUirmci-rnHW_Lytv7dfKRJjAKwaLwvrU,575
|
|
58
58
|
yellowdog_client/model/account.py,sha256=r_-7J-JjjMcQPZzaQ4_o9y6XY7-GMPRLWt9mGOucYU0,394
|
|
59
59
|
yellowdog_client/model/account_allowance.py,sha256=c-MkSSRLB5Y5TMDZl5h5fipj4vzLLlO_AQXPeRJ0AYw,1021
|
|
@@ -67,13 +67,6 @@ yellowdog_client/model/add_group_request.py,sha256=9HV_ygW9GNqY25MZcbJJj59iWcV8v
|
|
|
67
67
|
yellowdog_client/model/add_node_actions_request.py,sha256=2jIZay71NiCnm7uyZxHDigdhb-wGulifD1qRKux5JOQ,247
|
|
68
68
|
yellowdog_client/model/add_user_request.py,sha256=xTaZpQ4RhX0iJWXCHPRPnDAXwnOB44Ii8A8rOAf12iY,116
|
|
69
69
|
yellowdog_client/model/add_user_response.py,sha256=_Bh_ria9w24vasFVbOxUEgbsd09u4tGb4mhON2qx6mo,154
|
|
70
|
-
yellowdog_client/model/alibaba_compute_source.py,sha256=rfu1XfwbTuJh-cjDTRDxwbpjuHhfH9ZUGQfmqYZahSk,348
|
|
71
|
-
yellowdog_client/model/alibaba_credential.py,sha256=I9tE0VPU03I5UDX5lGWDvMWBETNdY1pQg5DYBUTntyY,553
|
|
72
|
-
yellowdog_client/model/alibaba_instance.py,sha256=_hX8nbMetWeq4u9QuIliv8OlaINbZ7agQpzuiObYwso,1773
|
|
73
|
-
yellowdog_client/model/alibaba_instance_charge_type.py,sha256=KwKCNj4IXn8cQGTrhbGjyiHualS6kJpDvw0ObLgZkW0,342
|
|
74
|
-
yellowdog_client/model/alibaba_instances_compute_source.py,sha256=3mQG6wFitEtLMckzRQ0uBKDlBMdqqHAzumtqbWomWRs,3584
|
|
75
|
-
yellowdog_client/model/alibaba_namespace_storage_configuration.py,sha256=fSps3B7IUcm0G4C_fc7dR-Uy0xbJhRux1EmD7QtzG6k,392
|
|
76
|
-
yellowdog_client/model/alibaba_spot_strategy.py,sha256=_zZx01-CWKlb-enNnTE7cjf1yL8OtwuGde2B53qyQks,426
|
|
77
70
|
yellowdog_client/model/allowance.py,sha256=9BMKrxuT4UKTgvLhYnlyiXI2wkfcO9GYElbKLuYubcU,167
|
|
78
71
|
yellowdog_client/model/allowance_exhausted_notification.py,sha256=l38uP4l0CmC6v1qsPksCA-go-00Kt1Ec1t_RrhD1fKo,255
|
|
79
72
|
yellowdog_client/model/allowance_limit_enforcement.py,sha256=uvU86l0iY3-lcb3i0YHN3EVF6dxbWOM7ATYGgEPh0XE,436
|
|
@@ -95,7 +88,7 @@ yellowdog_client/model/aws_capacity_reservation.py,sha256=uzfqnLT5qhrDeaQpE_oy12
|
|
|
95
88
|
yellowdog_client/model/aws_capacity_reservation_preference.py,sha256=kB_bGTdD8VXYxkG97k38P4RLG30KmUuIOmEI32BnuzE,224
|
|
96
89
|
yellowdog_client/model/aws_compute_source.py,sha256=rHxDoWM0az9wp9Cvxn4lvISYJgt6VwqjTKZkb_FyaaY,330
|
|
97
90
|
yellowdog_client/model/aws_credential.py,sha256=fzMT9bUiHEaQCKyRQCyqrh0di3jKta-wIABbQyU4N3w,770
|
|
98
|
-
yellowdog_client/model/aws_fleet_compute_source.py,sha256=
|
|
91
|
+
yellowdog_client/model/aws_fleet_compute_source.py,sha256=AOyqN0p3kDsrY-8SWH-TS2QJcik-tmA2ffsEiH3um3g,4988
|
|
99
92
|
yellowdog_client/model/aws_fleet_instance_override.py,sha256=SaQhKm7i_KYzovZ3Ou8djgq1KLAo2NlL5lnfapgBPvc,537
|
|
100
93
|
yellowdog_client/model/aws_fleet_on_demand_allocation_strategy.py,sha256=CS1oTf-BeKu3yRtUSuZn-rBgeuPTqu2wn47lulxq0vE,628
|
|
101
94
|
yellowdog_client/model/aws_fleet_on_demand_options.py,sha256=DSVCB7KaX1-dMZSqSVdxjHH2QUCJHKjlWrO_WZ0b1fs,1092
|
|
@@ -103,7 +96,7 @@ yellowdog_client/model/aws_fleet_purchase_option.py,sha256=Wb-DXkWgp9L-Akuu92xkp
|
|
|
103
96
|
yellowdog_client/model/aws_fleet_spot_allocation_strategy.py,sha256=RJDX7BVRdUgZepG23t-X7NnoslEdo7luRsPH6GbWjYs,875
|
|
104
97
|
yellowdog_client/model/aws_fleet_spot_options.py,sha256=8KKlTgYfPOBE3ERM3nT-jIDpgfjtSc_5RnkiGGVNMas,1292
|
|
105
98
|
yellowdog_client/model/aws_instance.py,sha256=n-HqqJ5PN9vPCzDE0QFZfcJfMC-NJ-idXwAH9rD--30,1865
|
|
106
|
-
yellowdog_client/model/aws_instances_compute_source.py,sha256=
|
|
99
|
+
yellowdog_client/model/aws_instances_compute_source.py,sha256=v0UK0LgZpXOYqYXHkiWDlL8FyCPGh2jgZq1uEANWnVU,4666
|
|
107
100
|
yellowdog_client/model/aws_network_interface_type.py,sha256=1PZ0l1KNfyQNVU5m9sRbyxOmxT6YZAyjvRfCMg4Q_uE,371
|
|
108
101
|
yellowdog_client/model/aws_placement_group.py,sha256=iPtjq-__iIoUVRjxjXSiaEspVU48d-5zAcG1F_11ZQA,170
|
|
109
102
|
yellowdog_client/model/aws_secondary_network_interface.py,sha256=ymdwZqs8b6Vcaz6EBk0ZL2a3PLGrx-9YrMQsVgilTRk,598
|
|
@@ -128,7 +121,7 @@ yellowdog_client/model/best_compute_source_report_source_attribute.py,sha256=Yk7
|
|
|
128
121
|
yellowdog_client/model/best_compute_source_report_string_constraint.py,sha256=Yfcm4JasSoi3z2Dx56U8QgunLhNq5gibJEgVkw3WoQ0,477
|
|
129
122
|
yellowdog_client/model/change_password_request.py,sha256=0_pKunaeN94NHEW5zilHntfY7_XX1ken50_UMmQCr14,118
|
|
130
123
|
yellowdog_client/model/check_credentials_result.py,sha256=x_ornFEoN1SIaiyJoX2xL01uFim6it760kklsRqYRPA,554
|
|
131
|
-
yellowdog_client/model/cloud_provider.py,sha256=
|
|
124
|
+
yellowdog_client/model/cloud_provider.py,sha256=KwzhrA2XpI5ua4eSFLxHeLdcNMRXajT2Ee8tzFC1Dmk,689
|
|
132
125
|
yellowdog_client/model/compute_namespace_filter.py,sha256=ZDq9TrtAtjoW9io8eL2Oe9e6EaQ1SgM4hsHfYu_vDXw,256
|
|
133
126
|
yellowdog_client/model/compute_provision_strategy.py,sha256=AAhCn3zehsvJH9SRr5yJOLtsl_hkhgiD0PRS7MDeQJM,388
|
|
134
127
|
yellowdog_client/model/compute_requirement.py,sha256=j3KLMJF6Fi6RoNHvKyV_wHUAjgJAnYWFk2M6ijqMPFI,2937
|
|
@@ -472,8 +465,8 @@ yellowdog_client/usage/__init__.py,sha256=XQwRJqTdxKZa1QUTsxBEL0TqQJeQHGyPklFeqc
|
|
|
472
465
|
yellowdog_client/usage/allowances_client.py,sha256=H6n63jXjT4OwuWJgFUXSjSmvGTZz9uspy3kj3upinaA,1337
|
|
473
466
|
yellowdog_client/usage/allowances_client_impl.py,sha256=nQPnSzJKhL3WvyCn5fmiDkwE84xZryH9YvV5Z1GjU4M,2061
|
|
474
467
|
yellowdog_client/usage/allowances_service_proxy.py,sha256=uO6LWnpjIzUcZTGdOxPXn7SyYX7NMRqO5KUiHUGr490,1320
|
|
475
|
-
yellowdog_sdk-
|
|
476
|
-
yellowdog_sdk-
|
|
477
|
-
yellowdog_sdk-
|
|
478
|
-
yellowdog_sdk-
|
|
479
|
-
yellowdog_sdk-
|
|
468
|
+
yellowdog_sdk-11.1.0.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
469
|
+
yellowdog_sdk-11.1.0.dist-info/METADATA,sha256=9iZWuayqp9TH9N_H1Witc6VhXOxmeA2cytkRiW2aJT8,3239
|
|
470
|
+
yellowdog_sdk-11.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
471
|
+
yellowdog_sdk-11.1.0.dist-info/top_level.txt,sha256=6PH16DcoqpYHhQ5A0UJOjf0tg-1rTrNC9C2CLqCMuFo,26
|
|
472
|
+
yellowdog_sdk-11.1.0.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass, field
|
|
2
|
-
|
|
3
|
-
from .compute_source import ComputeSource
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@dataclass
|
|
7
|
-
class AlibabaComputeSource(ComputeSource):
|
|
8
|
-
"""Derives from ComputeSource to provide the interface for all Alibaba Cloud compute source model objects."""
|
|
9
|
-
type: str = field(default="co.yellowdog.platform.model.AlibabaComputeSource", init=False)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass, field
|
|
2
|
-
from typing import Optional
|
|
3
|
-
|
|
4
|
-
from .credential import Credential
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@dataclass
|
|
8
|
-
class AlibabaCredential(Credential):
|
|
9
|
-
"""Holds the Access Key ID and Secret Access Key which form a set of credentials for Alibaba Cloud."""
|
|
10
|
-
type: str = field(default="co.yellowdog.platform.account.credentials.AlibabaCredential", init=False)
|
|
11
|
-
name: str
|
|
12
|
-
accessKeyId: str
|
|
13
|
-
"""The Alibaba Cloud Access Key ID"""
|
|
14
|
-
secretAccessKey: str
|
|
15
|
-
"""The Alibaba Cloud Secret Access Key"""
|
|
16
|
-
description: Optional[str] = None
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass, field
|
|
2
|
-
from datetime import datetime
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from .cloud_provider import CloudProvider
|
|
6
|
-
from .instance import Instance
|
|
7
|
-
from .instance_id import InstanceId
|
|
8
|
-
from .instance_status import InstanceStatus
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@dataclass
|
|
12
|
-
class AlibabaInstance(Instance):
|
|
13
|
-
"""Extends Instance to add fields specific to the Alibaba Cloud compute sources."""
|
|
14
|
-
type: str = field(default="co.yellowdog.platform.model.AlibabaInstance", init=False)
|
|
15
|
-
id: Optional[InstanceId] = None
|
|
16
|
-
"""The unique identifier for this instance formed from the YellowDog Compute Source ID and the provider supplied instance ID"""
|
|
17
|
-
createdTime: Optional[datetime] = None
|
|
18
|
-
"""The date and time when this instance was first created."""
|
|
19
|
-
provider: Optional[CloudProvider] = None
|
|
20
|
-
"""The cloud provider that supplies this instance."""
|
|
21
|
-
instanceType: Optional[str] = None
|
|
22
|
-
"""The machine type of this instance."""
|
|
23
|
-
region: Optional[str] = None
|
|
24
|
-
"""The region where this instance is provisioned."""
|
|
25
|
-
subregion: Optional[str] = None
|
|
26
|
-
"""The subregion where this instance is provisioned."""
|
|
27
|
-
imageId: Optional[str] = None
|
|
28
|
-
"""The machine image ID used for this instance."""
|
|
29
|
-
hostname: Optional[str] = None
|
|
30
|
-
"""The hostname of this instance."""
|
|
31
|
-
privateIpAddress: Optional[str] = None
|
|
32
|
-
"""The private IP address of this instance."""
|
|
33
|
-
publicIpAddress: Optional[str] = None
|
|
34
|
-
"""The public IP address of this instance."""
|
|
35
|
-
spot: bool = False
|
|
36
|
-
"""Indicates if this instance was provisioned via spot pricing vs on-demand."""
|
|
37
|
-
status: Optional[InstanceStatus] = None
|
|
38
|
-
"""The status of this instance."""
|
|
39
|
-
statusChangedTime: Optional[datetime] = None
|
|
40
|
-
"""The date and time when the status last changed"""
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class AlibabaInstanceChargeType(Enum):
|
|
5
|
-
PRE_PAID = "PRE_PAID", "PrePaid"
|
|
6
|
-
POST_PAID = "POST_PAID", "PostPaid"
|
|
7
|
-
|
|
8
|
-
def __new__(cls, value, code: str):
|
|
9
|
-
obj = object.__new__(cls)
|
|
10
|
-
obj._value_ = value
|
|
11
|
-
obj.code = code
|
|
12
|
-
return obj
|
|
13
|
-
|
|
14
|
-
def __str__(self) -> str:
|
|
15
|
-
return self.name
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass, field
|
|
2
|
-
from typing import Dict, Optional, Set
|
|
3
|
-
|
|
4
|
-
from .alibaba_compute_source import AlibabaComputeSource
|
|
5
|
-
from .alibaba_instance_charge_type import AlibabaInstanceChargeType
|
|
6
|
-
from .alibaba_spot_strategy import AlibabaSpotStrategy
|
|
7
|
-
from .compute_source_exhaustion import ComputeSourceExhaustion
|
|
8
|
-
from .compute_source_status import ComputeSourceStatus
|
|
9
|
-
from .compute_source_traits import ComputeSourceTraits
|
|
10
|
-
from .instance_pricing import InstancePricing
|
|
11
|
-
from .instance_summary import InstanceSummary
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@dataclass
|
|
15
|
-
class AlibabaInstancesComputeSource(AlibabaComputeSource):
|
|
16
|
-
"""Defines a source of compute composed of Alibaba Cloud ECS instances."""
|
|
17
|
-
type: str = field(default="co.yellowdog.platform.model.AlibabaInstancesComputeSource", init=False)
|
|
18
|
-
traits: Optional[ComputeSourceTraits] = field(default=None, init=False)
|
|
19
|
-
instancePricing: Optional[InstancePricing] = field(default=None, init=False)
|
|
20
|
-
credentials: Optional[Set[str]] = field(default=None, init=False)
|
|
21
|
-
supportingResourceCreated: Optional[bool] = field(default=None, init=False)
|
|
22
|
-
id: Optional[str] = field(default=None, init=False)
|
|
23
|
-
createdFromId: Optional[str] = field(default=None, init=False)
|
|
24
|
-
instanceSummary: Optional[InstanceSummary] = field(default=None, init=False)
|
|
25
|
-
status: Optional[ComputeSourceStatus] = field(default=None, init=False)
|
|
26
|
-
statusMessage: Optional[str] = field(default=None, init=False)
|
|
27
|
-
exhaustion: Optional[ComputeSourceExhaustion] = field(default=None, init=False)
|
|
28
|
-
name: str
|
|
29
|
-
"""The name of the compute source. This must be unique within a compute requirement."""
|
|
30
|
-
credential: str
|
|
31
|
-
region: str
|
|
32
|
-
"""The Alibaba Cloud region where instances will be provisioned."""
|
|
33
|
-
vSwitchId: str
|
|
34
|
-
"""The ID of the virtual switch to use for the provisioned instances."""
|
|
35
|
-
securityGroupId: str
|
|
36
|
-
"""The ID of the Alibaba Cloud Security Group for the provisioned instances."""
|
|
37
|
-
instanceType: str
|
|
38
|
-
"""The Alibaba Cloud instance type for the provisioned instances."""
|
|
39
|
-
imageId: str
|
|
40
|
-
"""The region-specific Alibaba Cloud ID for the image to use for the provisioned instances."""
|
|
41
|
-
availabilityZone: Optional[str] = None
|
|
42
|
-
"""The Alibaba Cloud availability zone within the region where instances will be provisioned."""
|
|
43
|
-
userData: Optional[str] = None
|
|
44
|
-
instanceTags: Optional[Dict[str, str]] = None
|
|
45
|
-
ramRoleName: Optional[str] = None
|
|
46
|
-
"""The name of the RAM Role to use for the provisioned instances."""
|
|
47
|
-
keyName: Optional[str] = None
|
|
48
|
-
"""The name of the Alibaba Cloud key pair to use when logging into any instances provisioned from this source."""
|
|
49
|
-
instanceChargeType: Optional[AlibabaInstanceChargeType] = None
|
|
50
|
-
"""The Alibaba Cloud charge type to use for the provisioned instances."""
|
|
51
|
-
assignPublicIp: bool = False
|
|
52
|
-
"""Indicates if provisioned instances should be assigned public IP addresses."""
|
|
53
|
-
spotStrategy: Optional[AlibabaSpotStrategy] = None
|
|
54
|
-
"""The Alibaba Cloud spot strategy to use when provisioning instances."""
|
|
55
|
-
spotPriceLimit: Optional[float] = None
|
|
56
|
-
"""The Alibaba Cloud spot price limit to use with SPOT_WITH_PRICE_LIMIT spot strategy."""
|
|
57
|
-
limit: int = 0
|
|
58
|
-
specifyMinimum: bool = False
|
|
59
|
-
"""
|
|
60
|
-
Indicates if YellowDog Compute should specify the minimum when requesting instances from Alibaba Cloud.
|
|
61
|
-
If true, then no instances are provisioned unless all requested instances are available;
|
|
62
|
-
otherwise, if false, YellowDog Compute will provision as many instances as possible up to the number requested from this compute source.
|
|
63
|
-
"""
|
|
64
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
from dataclasses import dataclass, field
|
|
2
|
-
|
|
3
|
-
from .namespace_storage_configuration import NamespaceStorageConfiguration
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@dataclass
|
|
7
|
-
class AlibabaNamespaceStorageConfiguration(NamespaceStorageConfiguration):
|
|
8
|
-
type: str = field(default="co.yellowdog.platform.model.AlibabaNamespaceStorageConfiguration", init=False)
|
|
9
|
-
namespace: str
|
|
10
|
-
endpoint: str
|
|
11
|
-
bucketName: str
|
|
12
|
-
credential: str
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class AlibabaSpotStrategy(Enum):
|
|
5
|
-
NO_SPOT = "NO_SPOT", "NoSpot"
|
|
6
|
-
SPOT_WITH_PRICE_LIMIT = "SPOT_WITH_PRICE_LIMIT", "SpotWithPriceLimit"
|
|
7
|
-
SPOT_AS_PRICE_GO = "SPOT_AS_PRICE_GO", "SpotAsPriceGo"
|
|
8
|
-
|
|
9
|
-
def __new__(cls, value, code: str):
|
|
10
|
-
obj = object.__new__(cls)
|
|
11
|
-
obj._value_ = value
|
|
12
|
-
obj.code = code
|
|
13
|
-
return obj
|
|
14
|
-
|
|
15
|
-
def __str__(self) -> str:
|
|
16
|
-
return self.name
|
|
File without changes
|
|
File without changes
|
|
File without changes
|