snowflake-cli 3.9.0__py3-none-any.whl → 3.9.1__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.
@@ -16,7 +16,7 @@ from __future__ import annotations
16
16
 
17
17
  from enum import Enum, unique
18
18
 
19
- VERSION = "3.9.0"
19
+ VERSION = "3.9.1"
20
20
 
21
21
 
22
22
  @unique
@@ -40,7 +40,11 @@ from snowflake.cli.api.console.console import cli_console
40
40
  from snowflake.cli.api.constants import ObjectType
41
41
  from snowflake.cli.api.exceptions import CliError
42
42
  from snowflake.cli.api.identifiers import FQN
43
- from snowflake.cli.api.output.types import MessageResult, QueryResult, SingleQueryResult
43
+ from snowflake.cli.api.output.types import (
44
+ MessageResult,
45
+ QueryJsonValueResult,
46
+ QueryResult,
47
+ )
44
48
 
45
49
  app = SnowTyperFactory(
46
50
  name="project",
@@ -101,7 +105,7 @@ def execute(
101
105
  version=version,
102
106
  variables=variables,
103
107
  )
104
- return SingleQueryResult(result)
108
+ return QueryJsonValueResult(result)
105
109
 
106
110
 
107
111
  @app.command(requires_connection=True)
@@ -122,7 +126,7 @@ def dry_run(
122
126
  dry_run=True,
123
127
  variables=variables,
124
128
  )
125
- return SingleQueryResult(result)
129
+ return QueryJsonValueResult(result)
126
130
 
127
131
 
128
132
  @app.command(requires_connection=True)
@@ -64,10 +64,10 @@ def url(private_link: bool = PrivateLinkOption, **options) -> MessageResult:
64
64
 
65
65
 
66
66
  @app.command(requires_connection=True)
67
- def login(**options) -> MessageResult:
67
+ def login(private_link: bool = PrivateLinkOption, **options) -> MessageResult:
68
68
  """
69
69
  Logs in to the account image registry with the current user's credentials through Docker.
70
70
 
71
71
  Must be called from a role that can view at least one image repository in the image registry.
72
72
  """
73
- return MessageResult(RegistryManager().docker_registry_login().strip())
73
+ return MessageResult(RegistryManager().docker_registry_login(private_link).strip())
@@ -101,8 +101,8 @@ class RegistryManager(SqlExecutionMixin):
101
101
  sample_repository_url = f"//{sample_repository_url}"
102
102
  return urlparse(sample_repository_url).netloc
103
103
 
104
- def docker_registry_login(self) -> str:
105
- registry_url = self.get_registry_url()
104
+ def docker_registry_login(self, private_link: bool = False) -> str:
105
+ registry_url = self.get_registry_url(private_link)
106
106
  token = self.get_token()
107
107
  command = [
108
108
  "docker",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: snowflake-cli
3
- Version: 3.9.0
3
+ Version: 3.9.1
4
4
  Summary: Snowflake CLI
5
5
  Project-URL: Source code, https://github.com/snowflakedb/snowflake-cli
6
6
  Project-URL: Bug Tracker, https://github.com/snowflakedb/snowflake-cli/issues
@@ -1,4 +1,4 @@
1
- snowflake/cli/__about__.py,sha256=6rWPuwbMr8fiWeokcMMcfK7tjg1MounLoE2W0kQnnYM,852
1
+ snowflake/cli/__about__.py,sha256=I3yd_lGUmaEO1hMjsxur38AMsCh96rxtVZ4yFjnHQAU,852
2
2
  snowflake/cli/__init__.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh9ou8J439uU,578
3
3
  snowflake/cli/_app/__init__.py,sha256=CR_uTgoqHnU1XdyRhm5iQsS86yWXGVx5Ht7aGSDNFmc,765
4
4
  snowflake/cli/_app/__main__.py,sha256=ZmcFdFqAtk2mFMz-cqCFdGd0iYzc7UsLH1oT1U40S0k,858
@@ -124,7 +124,7 @@ snowflake/cli/_plugins/plugin/commands.py,sha256=JoDeE-ggxYE6FKulNGJQrfl7nao7lg8
124
124
  snowflake/cli/_plugins/plugin/manager.py,sha256=eeW5b0zAvvsZREgIVH7afAQbKHI2YqqdIjqo0hqFfHs,2641
125
125
  snowflake/cli/_plugins/plugin/plugin_spec.py,sha256=5XZJPT42ZIEARYvthic3jLEB4CvDUdMeWTM6YfDkD9k,995
126
126
  snowflake/cli/_plugins/project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
127
- snowflake/cli/_plugins/project/commands.py,sha256=q8LtSBtD09iKFJc21ZR3KXEo1cD2F-W5bn-RULuFoEU,7643
127
+ snowflake/cli/_plugins/project/commands.py,sha256=Z9y-ijQs4npDeG3vU3yfeoWdD9F_k_KFygYjhKrg2JQ,7669
128
128
  snowflake/cli/_plugins/project/feature_flags.py,sha256=wcogqMHGLVo4T83nmPOKTlO0Oz02i6d887KRLbHnUS0,805
129
129
  snowflake/cli/_plugins/project/manager.py,sha256=VUJzgKL3CIMN6PfNkmvzX2Imt0UebqV67htdyfuC3mQ,4432
130
130
  snowflake/cli/_plugins/project/plugin_spec.py,sha256=wlRaaVR5pSq2qzty_E__LuRmgWoz5QKsVoijT3pbeTE,996
@@ -154,8 +154,8 @@ snowflake/cli/_plugins/spcs/compute_pool/compute_pool_entity.py,sha256=Uf1B26_AR
154
154
  snowflake/cli/_plugins/spcs/compute_pool/compute_pool_entity_model.py,sha256=XnI8hPeaXQ7d3AtOQVtYVnvWhGuDz6bhYSD2Uji1HqU,1639
155
155
  snowflake/cli/_plugins/spcs/compute_pool/manager.py,sha256=pf8fXBf84Snw6grHE31Rdj0HYNYKAQHRxgGQ7cnSNlk,6013
156
156
  snowflake/cli/_plugins/spcs/image_registry/__init__.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh9ou8J439uU,578
157
- snowflake/cli/_plugins/spcs/image_registry/commands.py,sha256=W2AKp8i5Wmyys2H2x-ORJt7oEmmxzbnMPsyS5wq2e_g,2631
158
- snowflake/cli/_plugins/spcs/image_registry/manager.py,sha256=8ZI2PhiyIsiskK0RdguBKK5GoDkgTk27Wg5brQgKA9M,4611
157
+ snowflake/cli/_plugins/spcs/image_registry/commands.py,sha256=q4hHDvrhmGSVetA_k7QnoTw-qOyXSQ65c9j_43qirGM,2683
158
+ snowflake/cli/_plugins/spcs/image_registry/manager.py,sha256=lj3vOqwQyDJL2uVziBjCux-4AuuF9meYsX2vmZjbMVs,4651
159
159
  snowflake/cli/_plugins/spcs/image_repository/__init__.py,sha256=uGA_QRGW3iGwaegpFsLgOhup0zBliBSXh9ou8J439uU,578
160
160
  snowflake/cli/_plugins/spcs/image_repository/commands.py,sha256=SVLrqwl9iVA74GSRCY8ATVfW164Ay3b_GkHUdSY9qpg,6391
161
161
  snowflake/cli/_plugins/spcs/image_repository/image_repository_entity.py,sha256=GT2h1xkefD6js38uYbZYN_NjBffJqBBZrz6-F5zyJPs,260
@@ -290,8 +290,8 @@ snowflake/cli/api/utils/path_utils.py,sha256=OgR7cwbHXqP875RgPJGrAvDC1RRTU-2-Yss
290
290
  snowflake/cli/api/utils/python_api_utils.py,sha256=wTNxXrma78wPvBz-Jo-ixNtP8ZjDCDh4TvciEnhYIAM,300
291
291
  snowflake/cli/api/utils/templating_functions.py,sha256=zu2oK1BEC9yyWtDx17Hr-VAYHvCtagaOdxIrm70JQys,4955
292
292
  snowflake/cli/api/utils/types.py,sha256=fVKuls8axKSsBzPqWwrkwkwoXXmedqxNJKqfXrrGyBM,1190
293
- snowflake_cli-3.9.0.dist-info/METADATA,sha256=_TQGEJb90reIsX5ZJtD6VNqUCPfEV4or_LjR_wst918,18316
294
- snowflake_cli-3.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
295
- snowflake_cli-3.9.0.dist-info/entry_points.txt,sha256=6QmSI0wUX6p7f-dGvrPdswlQyVAVGi1AtOUbE8X6bho,58
296
- snowflake_cli-3.9.0.dist-info/licenses/LICENSE,sha256=mJMA3Uz2AbjU_kVggo1CAx01XhBsI7BSi2H7ggUg_-c,11344
297
- snowflake_cli-3.9.0.dist-info/RECORD,,
293
+ snowflake_cli-3.9.1.dist-info/METADATA,sha256=yoq-FFyb_IezAy8gUq1N-D2tnEojt8B0aBLgXcDwRjA,18316
294
+ snowflake_cli-3.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
295
+ snowflake_cli-3.9.1.dist-info/entry_points.txt,sha256=6QmSI0wUX6p7f-dGvrPdswlQyVAVGi1AtOUbE8X6bho,58
296
+ snowflake_cli-3.9.1.dist-info/licenses/LICENSE,sha256=mJMA3Uz2AbjU_kVggo1CAx01XhBsI7BSi2H7ggUg_-c,11344
297
+ snowflake_cli-3.9.1.dist-info/RECORD,,