yellowdog-sdk 10.0.0__py3-none-any.whl → 11.0.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.
@@ -1 +1 @@
1
- __version__ = '10.0.0' # YEL-13543
1
+ __version__ = '11.0.0' # YEL-13643
@@ -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",
@@ -3,8 +3,6 @@ from enum import Enum
3
3
 
4
4
  class CloudProvider(Enum):
5
5
  """Enumerates Cloud Compute Providers."""
6
- ALIBABA = "ALIBABA", "Alibaba"
7
- """Alibaba Cloud"""
8
6
  AWS = "AWS", "AWS"
9
7
  """Amazon Web Services (AWS)"""
10
8
  GOOGLE = "GOOGLE", "Google Cloud"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yellowdog-sdk
3
- Version: 10.0.0
3
+ Version: 11.0.0
4
4
  Summary: SDK for the YellowDog Platform
5
5
  Author-email: YellowDog Limited <support@yellowdog.co>
6
6
  Project-URL: Homepage, https://yellowdog.co
@@ -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=LEWciWA2eLPWbiDWzmZDmkbfJCnMvv12RcvFQGcgjwk,35
3
+ yellowdog_client/_version.py,sha256=woGvMtZ-ofaD-N6s1ryptCE1U1EIkVb1-beyfatJhrk,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=2SX_I3myr1EI3qxiMc5KEuHtI9JvJ9n4QzSC51gcwk0,26831
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
@@ -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=OXQJco__ZJk-a9lr13BB54AmiTdg64ot8vArS_dG_rY,748
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-10.0.0.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
476
- yellowdog_sdk-10.0.0.dist-info/METADATA,sha256=e_0VtLI1_ngQEN2oiaWM7Eq7Ws--V2RNDy-F2P99I5k,3239
477
- yellowdog_sdk-10.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
478
- yellowdog_sdk-10.0.0.dist-info/top_level.txt,sha256=6PH16DcoqpYHhQ5A0UJOjf0tg-1rTrNC9C2CLqCMuFo,26
479
- yellowdog_sdk-10.0.0.dist-info/RECORD,,
468
+ yellowdog_sdk-11.0.0.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
469
+ yellowdog_sdk-11.0.0.dist-info/METADATA,sha256=eDQ38MQIrcLFsPdkPV5K9Be6zADXT728yEJdD7dIe2c,3239
470
+ yellowdog_sdk-11.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
471
+ yellowdog_sdk-11.0.0.dist-info/top_level.txt,sha256=6PH16DcoqpYHhQ5A0UJOjf0tg-1rTrNC9C2CLqCMuFo,26
472
+ yellowdog_sdk-11.0.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