yellowdog-sdk 9.3.1__py3-none-any.whl → 9.3.2__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__ = '9.3.1' # YEL-10080
1
+ __version__ = '9.3.2' # YEL-13544
@@ -403,6 +403,10 @@ class ComputeClient(ABC, Closeable):
403
403
  def get_compute_source_template(self, compute_source_template_id: str) -> ComputeSourceTemplate:
404
404
  pass
405
405
 
406
+ @abstractmethod
407
+ def get_compute_source_template_by_name(self, namespace: str, compute_source_template_name: str) -> ComputeSourceTemplate:
408
+ pass
409
+
406
410
  @abstractmethod
407
411
  def find_all_compute_source_templates(self) -> List[ComputeSourceTemplateSummary]:
408
412
  pass
@@ -193,6 +193,9 @@ class ComputeClientImpl(ComputeClient):
193
193
  def get_compute_source_template(self, compute_source_template_id: str) -> ComputeSourceTemplate:
194
194
  return self.__service_proxy.get_compute_source_template_by_id(compute_source_template_id)
195
195
 
196
+ def get_compute_source_template_by_name(self, namespace: str, compute_source_template_name: str) -> ComputeSourceTemplate:
197
+ return self.__service_proxy.get_compute_source_template_by_name(namespace, compute_source_template_name)
198
+
196
199
  def find_all_compute_source_templates(self) -> List[ComputeSourceTemplateSummary]:
197
200
  return self.__service_proxy.find_all_compute_source_templates()
198
201
 
@@ -84,6 +84,9 @@ class ComputeServiceProxy:
84
84
  def get_compute_source_template_by_id(self, compute_source_template_id: str) -> ComputeSourceTemplate:
85
85
  return self._proxy.get(ComputeSourceTemplate, "templates/sources/%s" % compute_source_template_id)
86
86
 
87
+ def get_compute_source_template_by_name(self, namespace, compute_source_template_name) -> ComputeSourceTemplate:
88
+ return self._proxy.get(ComputeSourceTemplate, "namespaces/%s/templates/sources/%s" % (namespace, compute_source_template_name))
89
+
87
90
  def find_all_compute_source_templates(self) -> List[ComputeSourceTemplateSummary]:
88
91
  return self._proxy.get(List[ComputeSourceTemplateSummary], "templates/sources")
89
92
 
@@ -106,7 +109,7 @@ class ComputeServiceProxy:
106
109
  return self._proxy.get(ComputeRequirementTemplate, "templates/requirements/%s" % template_id)
107
110
 
108
111
  def get_compute_requirement_template_by_name(self, namespace: str, name: str) -> ComputeRequirementTemplate:
109
- return self._proxy.get(ComputeRequirementTemplate, "templates/requirements/%s/%s" % (namespace, name))
112
+ return self._proxy.get(ComputeRequirementTemplate, "namespaces/%s/templates/requirements/%s" % (namespace, name))
110
113
 
111
114
  def find_all_compute_requirement_templates(self) -> List[ComputeRequirementTemplateSummary]:
112
115
  return self._proxy.get(List[ComputeRequirementTemplateSummary], "templates/requirements")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yellowdog-sdk
3
- Version: 9.3.1
3
+ Version: 9.3.2
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=2FnA7VnSZbmeyoNvaa5kcmFvpU3KzZOlQF2qj_fgBYo,34
3
+ yellowdog_client/_version.py,sha256=dkDB7Oy46IqWtqiesvjb6nRamphqvnPFrYryI-5mNNI,34
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
@@ -41,10 +41,10 @@ yellowdog_client/common/server_sent_events/sse4python/event_source_state.py,sha2
41
41
  yellowdog_client/common/server_sent_events/sse4python/server_sent_event.py,sha256=Vix4z5BbJVyX6vvUVMcNhHfBmrDSpn237-S1bs4B5-U,271
42
42
  yellowdog_client/common/server_sent_events/sse4python/sse_stream.py,sha256=YF4onI3dlb0pVm2V5nSR0ZiPGfzoDLARu_Gyx7ZUoiU,5088
43
43
  yellowdog_client/compute/__init__.py,sha256=CsE9SMIMubIZStR5lPKq6h9r_7x9zkmd9oUGcVVKomU,485
44
- yellowdog_client/compute/compute_client.py,sha256=FJFGpaNxie76fMdXEqE6N8n5i7GOoFyPFVJd4ohukJI,20801
45
- yellowdog_client/compute/compute_client_impl.py,sha256=bk_NrGMuRXXiZiHeZOoxTVCd0IK15FWJbKlM5k9F5Po,15473
44
+ yellowdog_client/compute/compute_client.py,sha256=yNbOUOTpDOei6cnA-jIZzoppM0oLbftKF56WpKIqQs4,20962
45
+ yellowdog_client/compute/compute_client_impl.py,sha256=vjTSJWqBsg-9RunrsKtxlszR2iJ4zdsisdU66XPiADA,15714
46
46
  yellowdog_client/compute/compute_requirement_helper.py,sha256=Ia44T-cwvvSvOD3n2lbmJroEiyc6DmM1zVPUgAt0VNA,4416
47
- yellowdog_client/compute/compute_service_proxy.py,sha256=KR8gopIbZu0KLDq_z-R-4uOBV2G6Yi1pXOl1GpRq_Q0,6909
47
+ yellowdog_client/compute/compute_service_proxy.py,sha256=tIu6iNO4H-QxZEUrMBPt1WFmrE8Ju18tm7k_hNhTAA4,7174
48
48
  yellowdog_client/compute/predicated_compute_subscription_event_listener.py,sha256=psaVEvOMkze5dy95uW02VeQePeKXkQmOwV1i18tU8Zg,2153
49
49
  yellowdog_client/images/__init__.py,sha256=E5EeflQVqAIlff0ZQzQs5cCQKFOqmDn3ARAla0Hbr7s,823
50
50
  yellowdog_client/images/images_client.py,sha256=dci0RSVeVVgkrH7-Ag1ppDDoh7mVKKezTKKpe2WoiNg,2311
@@ -465,8 +465,8 @@ yellowdog_client/usage/__init__.py,sha256=XQwRJqTdxKZa1QUTsxBEL0TqQJeQHGyPklFeqc
465
465
  yellowdog_client/usage/allowances_client.py,sha256=H6n63jXjT4OwuWJgFUXSjSmvGTZz9uspy3kj3upinaA,1337
466
466
  yellowdog_client/usage/allowances_client_impl.py,sha256=nQPnSzJKhL3WvyCn5fmiDkwE84xZryH9YvV5Z1GjU4M,2061
467
467
  yellowdog_client/usage/allowances_service_proxy.py,sha256=uO6LWnpjIzUcZTGdOxPXn7SyYX7NMRqO5KUiHUGr490,1320
468
- yellowdog_sdk-9.3.1.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
469
- yellowdog_sdk-9.3.1.dist-info/METADATA,sha256=sjJovojfyis5vrGw9-VRdBGTsAXfHWREjTIXBDnQFAc,3238
470
- yellowdog_sdk-9.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
471
- yellowdog_sdk-9.3.1.dist-info/top_level.txt,sha256=6PH16DcoqpYHhQ5A0UJOjf0tg-1rTrNC9C2CLqCMuFo,26
472
- yellowdog_sdk-9.3.1.dist-info/RECORD,,
468
+ yellowdog_sdk-9.3.2.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
469
+ yellowdog_sdk-9.3.2.dist-info/METADATA,sha256=1NEDPcdgLE9QgHfgtDlGQqmmoqQ7COPvpHXoLUTvfX4,3238
470
+ yellowdog_sdk-9.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
471
+ yellowdog_sdk-9.3.2.dist-info/top_level.txt,sha256=6PH16DcoqpYHhQ5A0UJOjf0tg-1rTrNC9C2CLqCMuFo,26
472
+ yellowdog_sdk-9.3.2.dist-info/RECORD,,