pulumi-gcp 8.41.0a1755297349__py3-none-any.whl → 8.41.0a1755638986__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.
- pulumi_gcp/__init__.py +16 -0
- pulumi_gcp/artifactregistry/__init__.py +3 -0
- pulumi_gcp/artifactregistry/get_package.py +220 -0
- pulumi_gcp/artifactregistry/get_repositories.py +160 -0
- pulumi_gcp/artifactregistry/get_version.py +261 -0
- pulumi_gcp/artifactregistry/outputs.py +100 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan.py +114 -7
- pulumi_gcp/backupdisasterrecovery/get_backup_plan.py +12 -1
- pulumi_gcp/bigquery/dataset.py +2 -2
- pulumi_gcp/composer/user_workloads_config_map.py +26 -2
- pulumi_gcp/compute/_inputs.py +355 -0
- pulumi_gcp/compute/get_region_backend_service.py +12 -1
- pulumi_gcp/compute/outputs.py +404 -0
- pulumi_gcp/compute/region_backend_service.py +257 -0
- pulumi_gcp/compute/region_security_policy.py +54 -0
- pulumi_gcp/compute/service_attachment.py +126 -0
- pulumi_gcp/container/_inputs.py +435 -15
- pulumi_gcp/container/outputs.py +494 -13
- pulumi_gcp/diagflow/__init__.py +1 -0
- pulumi_gcp/diagflow/_inputs.py +168 -0
- pulumi_gcp/diagflow/cx_playbook.py +967 -0
- pulumi_gcp/diagflow/outputs.py +117 -0
- pulumi_gcp/gkeonprem/vmware_admin_cluster.py +24 -3
- pulumi_gcp/memorystore/get_instance.py +12 -1
- pulumi_gcp/memorystore/instance.py +70 -0
- pulumi_gcp/pubsub/subscription.py +84 -0
- pulumi_gcp/pubsub/topic.py +80 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/sql/_inputs.py +82 -4
- pulumi_gcp/sql/database_instance.py +108 -7
- pulumi_gcp/sql/get_database_instance.py +12 -1
- pulumi_gcp/sql/outputs.py +154 -7
- pulumi_gcp/storage/_inputs.py +104 -12
- pulumi_gcp/storage/outputs.py +84 -7
- pulumi_gcp/vertex/__init__.py +1 -0
- pulumi_gcp/vertex/_inputs.py +122 -0
- pulumi_gcp/vertex/ai_rag_engine_config.py +354 -0
- pulumi_gcp/vertex/outputs.py +69 -0
- {pulumi_gcp-8.41.0a1755297349.dist-info → pulumi_gcp-8.41.0a1755638986.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.41.0a1755297349.dist-info → pulumi_gcp-8.41.0a1755638986.dist-info}/RECORD +42 -37
- {pulumi_gcp-8.41.0a1755297349.dist-info → pulumi_gcp-8.41.0a1755638986.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.41.0a1755297349.dist-info → pulumi_gcp-8.41.0a1755638986.dist-info}/top_level.txt +0 -0
pulumi_gcp/__init__.py
CHANGED
@@ -5100,6 +5100,14 @@ _utilities.register(
|
|
5100
5100
|
"gcp:diagflow/cxPage:CxPage": "CxPage"
|
5101
5101
|
}
|
5102
5102
|
},
|
5103
|
+
{
|
5104
|
+
"pkg": "gcp",
|
5105
|
+
"mod": "diagflow/cxPlaybook",
|
5106
|
+
"fqn": "pulumi_gcp.diagflow",
|
5107
|
+
"classes": {
|
5108
|
+
"gcp:diagflow/cxPlaybook:CxPlaybook": "CxPlaybook"
|
5109
|
+
}
|
5110
|
+
},
|
5103
5111
|
{
|
5104
5112
|
"pkg": "gcp",
|
5105
5113
|
"mod": "diagflow/cxSecuritySettings",
|
@@ -9932,6 +9940,14 @@ _utilities.register(
|
|
9932
9940
|
"gcp:vertex/aiMetadataStore:AiMetadataStore": "AiMetadataStore"
|
9933
9941
|
}
|
9934
9942
|
},
|
9943
|
+
{
|
9944
|
+
"pkg": "gcp",
|
9945
|
+
"mod": "vertex/aiRagEngineConfig",
|
9946
|
+
"fqn": "pulumi_gcp.vertex",
|
9947
|
+
"classes": {
|
9948
|
+
"gcp:vertex/aiRagEngineConfig:AiRagEngineConfig": "AiRagEngineConfig"
|
9949
|
+
}
|
9950
|
+
},
|
9935
9951
|
{
|
9936
9952
|
"pkg": "gcp",
|
9937
9953
|
"mod": "vertex/aiTensorboard",
|
@@ -9,8 +9,11 @@ import typing
|
|
9
9
|
from .get_docker_image import *
|
10
10
|
from .get_docker_images import *
|
11
11
|
from .get_locations import *
|
12
|
+
from .get_package import *
|
13
|
+
from .get_repositories import *
|
12
14
|
from .get_repository import *
|
13
15
|
from .get_repository_iam_policy import *
|
16
|
+
from .get_version import *
|
14
17
|
from .repository import *
|
15
18
|
from .repository_iam_binding import *
|
16
19
|
from .repository_iam_member import *
|
@@ -0,0 +1,220 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
|
17
|
+
__all__ = [
|
18
|
+
'GetPackageResult',
|
19
|
+
'AwaitableGetPackageResult',
|
20
|
+
'get_package',
|
21
|
+
'get_package_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetPackageResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getPackage.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, annotations=None, create_time=None, display_name=None, id=None, location=None, name=None, project=None, repository_id=None, update_time=None):
|
30
|
+
if annotations and not isinstance(annotations, dict):
|
31
|
+
raise TypeError("Expected argument 'annotations' to be a dict")
|
32
|
+
pulumi.set(__self__, "annotations", annotations)
|
33
|
+
if create_time and not isinstance(create_time, str):
|
34
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
35
|
+
pulumi.set(__self__, "create_time", create_time)
|
36
|
+
if display_name and not isinstance(display_name, str):
|
37
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
38
|
+
pulumi.set(__self__, "display_name", display_name)
|
39
|
+
if id and not isinstance(id, str):
|
40
|
+
raise TypeError("Expected argument 'id' to be a str")
|
41
|
+
pulumi.set(__self__, "id", id)
|
42
|
+
if location and not isinstance(location, str):
|
43
|
+
raise TypeError("Expected argument 'location' to be a str")
|
44
|
+
pulumi.set(__self__, "location", location)
|
45
|
+
if name and not isinstance(name, str):
|
46
|
+
raise TypeError("Expected argument 'name' to be a str")
|
47
|
+
pulumi.set(__self__, "name", name)
|
48
|
+
if project and not isinstance(project, str):
|
49
|
+
raise TypeError("Expected argument 'project' to be a str")
|
50
|
+
pulumi.set(__self__, "project", project)
|
51
|
+
if repository_id and not isinstance(repository_id, str):
|
52
|
+
raise TypeError("Expected argument 'repository_id' to be a str")
|
53
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
54
|
+
if update_time and not isinstance(update_time, str):
|
55
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
56
|
+
pulumi.set(__self__, "update_time", update_time)
|
57
|
+
|
58
|
+
@_builtins.property
|
59
|
+
@pulumi.getter
|
60
|
+
def annotations(self) -> Mapping[str, _builtins.str]:
|
61
|
+
"""
|
62
|
+
Client specified annotations.
|
63
|
+
"""
|
64
|
+
return pulumi.get(self, "annotations")
|
65
|
+
|
66
|
+
@_builtins.property
|
67
|
+
@pulumi.getter(name="createTime")
|
68
|
+
def create_time(self) -> _builtins.str:
|
69
|
+
"""
|
70
|
+
The time, as a RFC 3339 string, this package was created.
|
71
|
+
"""
|
72
|
+
return pulumi.get(self, "create_time")
|
73
|
+
|
74
|
+
@_builtins.property
|
75
|
+
@pulumi.getter(name="displayName")
|
76
|
+
def display_name(self) -> _builtins.str:
|
77
|
+
"""
|
78
|
+
The display name of the package.
|
79
|
+
"""
|
80
|
+
return pulumi.get(self, "display_name")
|
81
|
+
|
82
|
+
@_builtins.property
|
83
|
+
@pulumi.getter
|
84
|
+
def id(self) -> _builtins.str:
|
85
|
+
"""
|
86
|
+
The provider-assigned unique ID for this managed resource.
|
87
|
+
"""
|
88
|
+
return pulumi.get(self, "id")
|
89
|
+
|
90
|
+
@_builtins.property
|
91
|
+
@pulumi.getter
|
92
|
+
def location(self) -> _builtins.str:
|
93
|
+
return pulumi.get(self, "location")
|
94
|
+
|
95
|
+
@_builtins.property
|
96
|
+
@pulumi.getter
|
97
|
+
def name(self) -> _builtins.str:
|
98
|
+
return pulumi.get(self, "name")
|
99
|
+
|
100
|
+
@_builtins.property
|
101
|
+
@pulumi.getter
|
102
|
+
def project(self) -> Optional[_builtins.str]:
|
103
|
+
return pulumi.get(self, "project")
|
104
|
+
|
105
|
+
@_builtins.property
|
106
|
+
@pulumi.getter(name="repositoryId")
|
107
|
+
def repository_id(self) -> _builtins.str:
|
108
|
+
return pulumi.get(self, "repository_id")
|
109
|
+
|
110
|
+
@_builtins.property
|
111
|
+
@pulumi.getter(name="updateTime")
|
112
|
+
def update_time(self) -> _builtins.str:
|
113
|
+
"""
|
114
|
+
The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "update_time")
|
117
|
+
|
118
|
+
|
119
|
+
class AwaitableGetPackageResult(GetPackageResult):
|
120
|
+
# pylint: disable=using-constant-test
|
121
|
+
def __await__(self):
|
122
|
+
if False:
|
123
|
+
yield self
|
124
|
+
return GetPackageResult(
|
125
|
+
annotations=self.annotations,
|
126
|
+
create_time=self.create_time,
|
127
|
+
display_name=self.display_name,
|
128
|
+
id=self.id,
|
129
|
+
location=self.location,
|
130
|
+
name=self.name,
|
131
|
+
project=self.project,
|
132
|
+
repository_id=self.repository_id,
|
133
|
+
update_time=self.update_time)
|
134
|
+
|
135
|
+
|
136
|
+
def get_package(location: Optional[_builtins.str] = None,
|
137
|
+
name: Optional[_builtins.str] = None,
|
138
|
+
project: Optional[_builtins.str] = None,
|
139
|
+
repository_id: Optional[_builtins.str] = None,
|
140
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPackageResult:
|
141
|
+
"""
|
142
|
+
This data source fetches information of a package from a provided Artifact Registry repository.
|
143
|
+
|
144
|
+
## Example Usage
|
145
|
+
|
146
|
+
```python
|
147
|
+
import pulumi
|
148
|
+
import pulumi_google as google
|
149
|
+
|
150
|
+
my_package = google.index.ArtifactRegistryPackage("my_package",
|
151
|
+
location=us-west1,
|
152
|
+
repository_id=my-repository)
|
153
|
+
```
|
154
|
+
|
155
|
+
|
156
|
+
:param _builtins.str location: The location of the artifact registry.
|
157
|
+
:param _builtins.str name: The name of the package.
|
158
|
+
:param _builtins.str project: The project ID in which the resource belongs. If it is not provided, the provider project is used.
|
159
|
+
:param _builtins.str repository_id: The last part of the repository name to fetch from.
|
160
|
+
"""
|
161
|
+
__args__ = dict()
|
162
|
+
__args__['location'] = location
|
163
|
+
__args__['name'] = name
|
164
|
+
__args__['project'] = project
|
165
|
+
__args__['repositoryId'] = repository_id
|
166
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
167
|
+
__ret__ = pulumi.runtime.invoke('gcp:artifactregistry/getPackage:getPackage', __args__, opts=opts, typ=GetPackageResult).value
|
168
|
+
|
169
|
+
return AwaitableGetPackageResult(
|
170
|
+
annotations=pulumi.get(__ret__, 'annotations'),
|
171
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
172
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
173
|
+
id=pulumi.get(__ret__, 'id'),
|
174
|
+
location=pulumi.get(__ret__, 'location'),
|
175
|
+
name=pulumi.get(__ret__, 'name'),
|
176
|
+
project=pulumi.get(__ret__, 'project'),
|
177
|
+
repository_id=pulumi.get(__ret__, 'repository_id'),
|
178
|
+
update_time=pulumi.get(__ret__, 'update_time'))
|
179
|
+
def get_package_output(location: Optional[pulumi.Input[_builtins.str]] = None,
|
180
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
181
|
+
project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
182
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
183
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPackageResult]:
|
184
|
+
"""
|
185
|
+
This data source fetches information of a package from a provided Artifact Registry repository.
|
186
|
+
|
187
|
+
## Example Usage
|
188
|
+
|
189
|
+
```python
|
190
|
+
import pulumi
|
191
|
+
import pulumi_google as google
|
192
|
+
|
193
|
+
my_package = google.index.ArtifactRegistryPackage("my_package",
|
194
|
+
location=us-west1,
|
195
|
+
repository_id=my-repository)
|
196
|
+
```
|
197
|
+
|
198
|
+
|
199
|
+
:param _builtins.str location: The location of the artifact registry.
|
200
|
+
:param _builtins.str name: The name of the package.
|
201
|
+
:param _builtins.str project: The project ID in which the resource belongs. If it is not provided, the provider project is used.
|
202
|
+
:param _builtins.str repository_id: The last part of the repository name to fetch from.
|
203
|
+
"""
|
204
|
+
__args__ = dict()
|
205
|
+
__args__['location'] = location
|
206
|
+
__args__['name'] = name
|
207
|
+
__args__['project'] = project
|
208
|
+
__args__['repositoryId'] = repository_id
|
209
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
210
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:artifactregistry/getPackage:getPackage', __args__, opts=opts, typ=GetPackageResult)
|
211
|
+
return __ret__.apply(lambda __response__: GetPackageResult(
|
212
|
+
annotations=pulumi.get(__response__, 'annotations'),
|
213
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
214
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
215
|
+
id=pulumi.get(__response__, 'id'),
|
216
|
+
location=pulumi.get(__response__, 'location'),
|
217
|
+
name=pulumi.get(__response__, 'name'),
|
218
|
+
project=pulumi.get(__response__, 'project'),
|
219
|
+
repository_id=pulumi.get(__response__, 'repository_id'),
|
220
|
+
update_time=pulumi.get(__response__, 'update_time')))
|
@@ -0,0 +1,160 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetRepositoriesResult',
|
20
|
+
'AwaitableGetRepositoriesResult',
|
21
|
+
'get_repositories',
|
22
|
+
'get_repositories_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetRepositoriesResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getRepositories.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, id=None, location=None, name_filter=None, project=None, repositories=None):
|
31
|
+
if id and not isinstance(id, str):
|
32
|
+
raise TypeError("Expected argument 'id' to be a str")
|
33
|
+
pulumi.set(__self__, "id", id)
|
34
|
+
if location and not isinstance(location, str):
|
35
|
+
raise TypeError("Expected argument 'location' to be a str")
|
36
|
+
pulumi.set(__self__, "location", location)
|
37
|
+
if name_filter and not isinstance(name_filter, str):
|
38
|
+
raise TypeError("Expected argument 'name_filter' to be a str")
|
39
|
+
pulumi.set(__self__, "name_filter", name_filter)
|
40
|
+
if project and not isinstance(project, str):
|
41
|
+
raise TypeError("Expected argument 'project' to be a str")
|
42
|
+
pulumi.set(__self__, "project", project)
|
43
|
+
if repositories and not isinstance(repositories, list):
|
44
|
+
raise TypeError("Expected argument 'repositories' to be a list")
|
45
|
+
pulumi.set(__self__, "repositories", repositories)
|
46
|
+
|
47
|
+
@_builtins.property
|
48
|
+
@pulumi.getter
|
49
|
+
def id(self) -> _builtins.str:
|
50
|
+
"""
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
52
|
+
"""
|
53
|
+
return pulumi.get(self, "id")
|
54
|
+
|
55
|
+
@_builtins.property
|
56
|
+
@pulumi.getter
|
57
|
+
def location(self) -> _builtins.str:
|
58
|
+
return pulumi.get(self, "location")
|
59
|
+
|
60
|
+
@_builtins.property
|
61
|
+
@pulumi.getter(name="nameFilter")
|
62
|
+
def name_filter(self) -> Optional[_builtins.str]:
|
63
|
+
return pulumi.get(self, "name_filter")
|
64
|
+
|
65
|
+
@_builtins.property
|
66
|
+
@pulumi.getter
|
67
|
+
def project(self) -> Optional[_builtins.str]:
|
68
|
+
return pulumi.get(self, "project")
|
69
|
+
|
70
|
+
@_builtins.property
|
71
|
+
@pulumi.getter
|
72
|
+
def repositories(self) -> Sequence['outputs.GetRepositoriesRepositoryResult']:
|
73
|
+
"""
|
74
|
+
A list of all retrieved Artifact Registry repositories. Structure is defined below.
|
75
|
+
"""
|
76
|
+
return pulumi.get(self, "repositories")
|
77
|
+
|
78
|
+
|
79
|
+
class AwaitableGetRepositoriesResult(GetRepositoriesResult):
|
80
|
+
# pylint: disable=using-constant-test
|
81
|
+
def __await__(self):
|
82
|
+
if False:
|
83
|
+
yield self
|
84
|
+
return GetRepositoriesResult(
|
85
|
+
id=self.id,
|
86
|
+
location=self.location,
|
87
|
+
name_filter=self.name_filter,
|
88
|
+
project=self.project,
|
89
|
+
repositories=self.repositories)
|
90
|
+
|
91
|
+
|
92
|
+
def get_repositories(location: Optional[_builtins.str] = None,
|
93
|
+
name_filter: Optional[_builtins.str] = None,
|
94
|
+
project: Optional[_builtins.str] = None,
|
95
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRepositoriesResult:
|
96
|
+
"""
|
97
|
+
Get information about Artifact Registry repositories.
|
98
|
+
See [the official documentation](https://cloud.google.com/artifact-registry/docs)
|
99
|
+
and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories/list).
|
100
|
+
|
101
|
+
```python
|
102
|
+
import pulumi
|
103
|
+
import pulumi_gcp as gcp
|
104
|
+
|
105
|
+
example = gcp.artifactregistry.get_repositories(location="us-central1",
|
106
|
+
project="my-project")
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
:param _builtins.str location: The location of the artifact registry repositories. eg `us-central1`.
|
111
|
+
:param _builtins.str name_filter: Optional. An expression for filtering the results by name. You can also use wildcards `*`. I.e. `my-repo`, `*-repo`, `my-*`, `*-re*`. For further information reach out to the [API docs](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories/list).
|
112
|
+
:param _builtins.str project: The ID of the project. If it is not provided, the provider project is used.
|
113
|
+
"""
|
114
|
+
__args__ = dict()
|
115
|
+
__args__['location'] = location
|
116
|
+
__args__['nameFilter'] = name_filter
|
117
|
+
__args__['project'] = project
|
118
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
119
|
+
__ret__ = pulumi.runtime.invoke('gcp:artifactregistry/getRepositories:getRepositories', __args__, opts=opts, typ=GetRepositoriesResult).value
|
120
|
+
|
121
|
+
return AwaitableGetRepositoriesResult(
|
122
|
+
id=pulumi.get(__ret__, 'id'),
|
123
|
+
location=pulumi.get(__ret__, 'location'),
|
124
|
+
name_filter=pulumi.get(__ret__, 'name_filter'),
|
125
|
+
project=pulumi.get(__ret__, 'project'),
|
126
|
+
repositories=pulumi.get(__ret__, 'repositories'))
|
127
|
+
def get_repositories_output(location: Optional[pulumi.Input[_builtins.str]] = None,
|
128
|
+
name_filter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
129
|
+
project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
130
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRepositoriesResult]:
|
131
|
+
"""
|
132
|
+
Get information about Artifact Registry repositories.
|
133
|
+
See [the official documentation](https://cloud.google.com/artifact-registry/docs)
|
134
|
+
and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories/list).
|
135
|
+
|
136
|
+
```python
|
137
|
+
import pulumi
|
138
|
+
import pulumi_gcp as gcp
|
139
|
+
|
140
|
+
example = gcp.artifactregistry.get_repositories(location="us-central1",
|
141
|
+
project="my-project")
|
142
|
+
```
|
143
|
+
|
144
|
+
|
145
|
+
:param _builtins.str location: The location of the artifact registry repositories. eg `us-central1`.
|
146
|
+
:param _builtins.str name_filter: Optional. An expression for filtering the results by name. You can also use wildcards `*`. I.e. `my-repo`, `*-repo`, `my-*`, `*-re*`. For further information reach out to the [API docs](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories/list).
|
147
|
+
:param _builtins.str project: The ID of the project. If it is not provided, the provider project is used.
|
148
|
+
"""
|
149
|
+
__args__ = dict()
|
150
|
+
__args__['location'] = location
|
151
|
+
__args__['nameFilter'] = name_filter
|
152
|
+
__args__['project'] = project
|
153
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
154
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:artifactregistry/getRepositories:getRepositories', __args__, opts=opts, typ=GetRepositoriesResult)
|
155
|
+
return __ret__.apply(lambda __response__: GetRepositoriesResult(
|
156
|
+
id=pulumi.get(__response__, 'id'),
|
157
|
+
location=pulumi.get(__response__, 'location'),
|
158
|
+
name_filter=pulumi.get(__response__, 'name_filter'),
|
159
|
+
project=pulumi.get(__response__, 'project'),
|
160
|
+
repositories=pulumi.get(__response__, 'repositories')))
|
@@ -0,0 +1,261 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetVersionResult',
|
20
|
+
'AwaitableGetVersionResult',
|
21
|
+
'get_version',
|
22
|
+
'get_version_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetVersionResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getVersion.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, annotations=None, create_time=None, description=None, id=None, location=None, name=None, package_name=None, project=None, related_tags=None, repository_id=None, update_time=None, version_name=None, view=None):
|
31
|
+
if annotations and not isinstance(annotations, dict):
|
32
|
+
raise TypeError("Expected argument 'annotations' to be a dict")
|
33
|
+
pulumi.set(__self__, "annotations", annotations)
|
34
|
+
if create_time and not isinstance(create_time, str):
|
35
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
36
|
+
pulumi.set(__self__, "create_time", create_time)
|
37
|
+
if description and not isinstance(description, str):
|
38
|
+
raise TypeError("Expected argument 'description' to be a str")
|
39
|
+
pulumi.set(__self__, "description", description)
|
40
|
+
if id and not isinstance(id, str):
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
42
|
+
pulumi.set(__self__, "id", id)
|
43
|
+
if location and not isinstance(location, str):
|
44
|
+
raise TypeError("Expected argument 'location' to be a str")
|
45
|
+
pulumi.set(__self__, "location", location)
|
46
|
+
if name and not isinstance(name, str):
|
47
|
+
raise TypeError("Expected argument 'name' to be a str")
|
48
|
+
pulumi.set(__self__, "name", name)
|
49
|
+
if package_name and not isinstance(package_name, str):
|
50
|
+
raise TypeError("Expected argument 'package_name' to be a str")
|
51
|
+
pulumi.set(__self__, "package_name", package_name)
|
52
|
+
if project and not isinstance(project, str):
|
53
|
+
raise TypeError("Expected argument 'project' to be a str")
|
54
|
+
pulumi.set(__self__, "project", project)
|
55
|
+
if related_tags and not isinstance(related_tags, list):
|
56
|
+
raise TypeError("Expected argument 'related_tags' to be a list")
|
57
|
+
pulumi.set(__self__, "related_tags", related_tags)
|
58
|
+
if repository_id and not isinstance(repository_id, str):
|
59
|
+
raise TypeError("Expected argument 'repository_id' to be a str")
|
60
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
61
|
+
if update_time and not isinstance(update_time, str):
|
62
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
63
|
+
pulumi.set(__self__, "update_time", update_time)
|
64
|
+
if version_name and not isinstance(version_name, str):
|
65
|
+
raise TypeError("Expected argument 'version_name' to be a str")
|
66
|
+
pulumi.set(__self__, "version_name", version_name)
|
67
|
+
if view and not isinstance(view, str):
|
68
|
+
raise TypeError("Expected argument 'view' to be a str")
|
69
|
+
pulumi.set(__self__, "view", view)
|
70
|
+
|
71
|
+
@_builtins.property
|
72
|
+
@pulumi.getter
|
73
|
+
def annotations(self) -> Mapping[str, _builtins.str]:
|
74
|
+
"""
|
75
|
+
Client specified annotations.
|
76
|
+
"""
|
77
|
+
return pulumi.get(self, "annotations")
|
78
|
+
|
79
|
+
@_builtins.property
|
80
|
+
@pulumi.getter(name="createTime")
|
81
|
+
def create_time(self) -> _builtins.str:
|
82
|
+
"""
|
83
|
+
The time, as a RFC 3339 string, this package was created.
|
84
|
+
"""
|
85
|
+
return pulumi.get(self, "create_time")
|
86
|
+
|
87
|
+
@_builtins.property
|
88
|
+
@pulumi.getter
|
89
|
+
def description(self) -> _builtins.str:
|
90
|
+
"""
|
91
|
+
Description of the version, as specified in its metadata.
|
92
|
+
"""
|
93
|
+
return pulumi.get(self, "description")
|
94
|
+
|
95
|
+
@_builtins.property
|
96
|
+
@pulumi.getter
|
97
|
+
def id(self) -> _builtins.str:
|
98
|
+
"""
|
99
|
+
The provider-assigned unique ID for this managed resource.
|
100
|
+
"""
|
101
|
+
return pulumi.get(self, "id")
|
102
|
+
|
103
|
+
@_builtins.property
|
104
|
+
@pulumi.getter
|
105
|
+
def location(self) -> _builtins.str:
|
106
|
+
return pulumi.get(self, "location")
|
107
|
+
|
108
|
+
@_builtins.property
|
109
|
+
@pulumi.getter
|
110
|
+
def name(self) -> _builtins.str:
|
111
|
+
"""
|
112
|
+
The name of the version, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1`. If the package part contains slashes, the slashes are escaped.
|
113
|
+
"""
|
114
|
+
return pulumi.get(self, "name")
|
115
|
+
|
116
|
+
@_builtins.property
|
117
|
+
@pulumi.getter(name="packageName")
|
118
|
+
def package_name(self) -> _builtins.str:
|
119
|
+
return pulumi.get(self, "package_name")
|
120
|
+
|
121
|
+
@_builtins.property
|
122
|
+
@pulumi.getter
|
123
|
+
def project(self) -> Optional[_builtins.str]:
|
124
|
+
return pulumi.get(self, "project")
|
125
|
+
|
126
|
+
@_builtins.property
|
127
|
+
@pulumi.getter(name="relatedTags")
|
128
|
+
def related_tags(self) -> Sequence['outputs.GetVersionRelatedTagResult']:
|
129
|
+
"""
|
130
|
+
A list of related tags. Will contain up to 100 tags that reference this version.
|
131
|
+
"""
|
132
|
+
return pulumi.get(self, "related_tags")
|
133
|
+
|
134
|
+
@_builtins.property
|
135
|
+
@pulumi.getter(name="repositoryId")
|
136
|
+
def repository_id(self) -> _builtins.str:
|
137
|
+
return pulumi.get(self, "repository_id")
|
138
|
+
|
139
|
+
@_builtins.property
|
140
|
+
@pulumi.getter(name="updateTime")
|
141
|
+
def update_time(self) -> _builtins.str:
|
142
|
+
"""
|
143
|
+
The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
|
144
|
+
"""
|
145
|
+
return pulumi.get(self, "update_time")
|
146
|
+
|
147
|
+
@_builtins.property
|
148
|
+
@pulumi.getter(name="versionName")
|
149
|
+
def version_name(self) -> _builtins.str:
|
150
|
+
return pulumi.get(self, "version_name")
|
151
|
+
|
152
|
+
@_builtins.property
|
153
|
+
@pulumi.getter
|
154
|
+
def view(self) -> Optional[_builtins.str]:
|
155
|
+
return pulumi.get(self, "view")
|
156
|
+
|
157
|
+
|
158
|
+
class AwaitableGetVersionResult(GetVersionResult):
|
159
|
+
# pylint: disable=using-constant-test
|
160
|
+
def __await__(self):
|
161
|
+
if False:
|
162
|
+
yield self
|
163
|
+
return GetVersionResult(
|
164
|
+
annotations=self.annotations,
|
165
|
+
create_time=self.create_time,
|
166
|
+
description=self.description,
|
167
|
+
id=self.id,
|
168
|
+
location=self.location,
|
169
|
+
name=self.name,
|
170
|
+
package_name=self.package_name,
|
171
|
+
project=self.project,
|
172
|
+
related_tags=self.related_tags,
|
173
|
+
repository_id=self.repository_id,
|
174
|
+
update_time=self.update_time,
|
175
|
+
version_name=self.version_name,
|
176
|
+
view=self.view)
|
177
|
+
|
178
|
+
|
179
|
+
def get_version(location: Optional[_builtins.str] = None,
|
180
|
+
package_name: Optional[_builtins.str] = None,
|
181
|
+
project: Optional[_builtins.str] = None,
|
182
|
+
repository_id: Optional[_builtins.str] = None,
|
183
|
+
version_name: Optional[_builtins.str] = None,
|
184
|
+
view: Optional[_builtins.str] = None,
|
185
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVersionResult:
|
186
|
+
"""
|
187
|
+
This data source fetches information of a version from a provided Artifact Registry repository.
|
188
|
+
|
189
|
+
|
190
|
+
:param _builtins.str location: The location of the artifact registry.
|
191
|
+
:param _builtins.str package_name: The name of the package.
|
192
|
+
:param _builtins.str project: The project ID in which the resource belongs. If it is not provided, the provider project is used.
|
193
|
+
:param _builtins.str repository_id: The last part of the repository name to fetch from.
|
194
|
+
:param _builtins.str version_name: The name of the version.
|
195
|
+
:param _builtins.str view: The view, which determines what version information is returned in a response. Possible values are `"BASIC"` and `"FULL"`. Defaults to `"BASIC"`.
|
196
|
+
"""
|
197
|
+
__args__ = dict()
|
198
|
+
__args__['location'] = location
|
199
|
+
__args__['packageName'] = package_name
|
200
|
+
__args__['project'] = project
|
201
|
+
__args__['repositoryId'] = repository_id
|
202
|
+
__args__['versionName'] = version_name
|
203
|
+
__args__['view'] = view
|
204
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
205
|
+
__ret__ = pulumi.runtime.invoke('gcp:artifactregistry/getVersion:getVersion', __args__, opts=opts, typ=GetVersionResult).value
|
206
|
+
|
207
|
+
return AwaitableGetVersionResult(
|
208
|
+
annotations=pulumi.get(__ret__, 'annotations'),
|
209
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
210
|
+
description=pulumi.get(__ret__, 'description'),
|
211
|
+
id=pulumi.get(__ret__, 'id'),
|
212
|
+
location=pulumi.get(__ret__, 'location'),
|
213
|
+
name=pulumi.get(__ret__, 'name'),
|
214
|
+
package_name=pulumi.get(__ret__, 'package_name'),
|
215
|
+
project=pulumi.get(__ret__, 'project'),
|
216
|
+
related_tags=pulumi.get(__ret__, 'related_tags'),
|
217
|
+
repository_id=pulumi.get(__ret__, 'repository_id'),
|
218
|
+
update_time=pulumi.get(__ret__, 'update_time'),
|
219
|
+
version_name=pulumi.get(__ret__, 'version_name'),
|
220
|
+
view=pulumi.get(__ret__, 'view'))
|
221
|
+
def get_version_output(location: Optional[pulumi.Input[_builtins.str]] = None,
|
222
|
+
package_name: Optional[pulumi.Input[_builtins.str]] = None,
|
223
|
+
project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
224
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
225
|
+
version_name: Optional[pulumi.Input[_builtins.str]] = None,
|
226
|
+
view: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
227
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVersionResult]:
|
228
|
+
"""
|
229
|
+
This data source fetches information of a version from a provided Artifact Registry repository.
|
230
|
+
|
231
|
+
|
232
|
+
:param _builtins.str location: The location of the artifact registry.
|
233
|
+
:param _builtins.str package_name: The name of the package.
|
234
|
+
:param _builtins.str project: The project ID in which the resource belongs. If it is not provided, the provider project is used.
|
235
|
+
:param _builtins.str repository_id: The last part of the repository name to fetch from.
|
236
|
+
:param _builtins.str version_name: The name of the version.
|
237
|
+
:param _builtins.str view: The view, which determines what version information is returned in a response. Possible values are `"BASIC"` and `"FULL"`. Defaults to `"BASIC"`.
|
238
|
+
"""
|
239
|
+
__args__ = dict()
|
240
|
+
__args__['location'] = location
|
241
|
+
__args__['packageName'] = package_name
|
242
|
+
__args__['project'] = project
|
243
|
+
__args__['repositoryId'] = repository_id
|
244
|
+
__args__['versionName'] = version_name
|
245
|
+
__args__['view'] = view
|
246
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
247
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:artifactregistry/getVersion:getVersion', __args__, opts=opts, typ=GetVersionResult)
|
248
|
+
return __ret__.apply(lambda __response__: GetVersionResult(
|
249
|
+
annotations=pulumi.get(__response__, 'annotations'),
|
250
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
251
|
+
description=pulumi.get(__response__, 'description'),
|
252
|
+
id=pulumi.get(__response__, 'id'),
|
253
|
+
location=pulumi.get(__response__, 'location'),
|
254
|
+
name=pulumi.get(__response__, 'name'),
|
255
|
+
package_name=pulumi.get(__response__, 'package_name'),
|
256
|
+
project=pulumi.get(__response__, 'project'),
|
257
|
+
related_tags=pulumi.get(__response__, 'related_tags'),
|
258
|
+
repository_id=pulumi.get(__response__, 'repository_id'),
|
259
|
+
update_time=pulumi.get(__response__, 'update_time'),
|
260
|
+
version_name=pulumi.get(__response__, 'version_name'),
|
261
|
+
view=pulumi.get(__response__, 'view')))
|