Debian Codegraph @

docs/dyn/dataform_v1.projects.locations.repositories.workspaces.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="dataform_v1.html">Dataform API</a> . <a href="dataform_v1.projects.html">projects</a> . <a href="dataform_v1.projects.locations.html">locations</a> . <a href="dataform_v1.projects.locations.repositories.html">repositories</a> . <a href="dataform_v1.projects.locations.repositories.workspaces.html">workspaces</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#commit">commit(name, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Applies a Git commit for uncommitted files in a Workspace.</p>
83 <p class="toc_element">
84 <code><a href="#create">create(parent, body=None, workspaceId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Creates a new Workspace in a given Repository.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Deletes a single Workspace.</p>
89 <p class="toc_element">
90 <code><a href="#fetchFileDiff">fetchFileDiff(workspace, path=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Fetches Git diff for an uncommitted file in a Workspace.</p>
92 <p class="toc_element">
93 <code><a href="#fetchFileGitStatuses">fetchFileGitStatuses(name, x__xgafv=None)</a></code></p>
94 <p class="firstline">Fetches Git statuses for the files in a Workspace.</p>
95 <p class="toc_element">
96 <code><a href="#fetchGitAheadBehind">fetchGitAheadBehind(name, remoteBranch=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Fetches Git ahead/behind against a remote branch.</p>
98 <p class="toc_element">
99 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
100 <p class="firstline">Fetches a single Workspace.</p>
101 <p class="toc_element">
102 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
104 <p class="toc_element">
105 <code><a href="#installNpmPackages">installNpmPackages(workspace, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Installs dependency NPM packages (inside a Workspace).</p>
107 <p class="toc_element">
108 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Lists Workspaces in a given Repository.</p>
110 <p class="toc_element">
111 <code><a href="#list_next">list_next()</a></code></p>
112 <p class="firstline">Retrieves the next page of results.</p>
113 <p class="toc_element">
114 <code><a href="#makeDirectory">makeDirectory(workspace, body=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Creates a directory inside a Workspace.</p>
116 <p class="toc_element">
117 <code><a href="#moveDirectory">moveDirectory(workspace, body=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Moves a directory (inside a Workspace), and all of its contents, to a new location.</p>
119 <p class="toc_element">
120 <code><a href="#moveFile">moveFile(workspace, body=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Moves a file (inside a Workspace) to a new location.</p>
122 <p class="toc_element">
123 <code><a href="#pull">pull(name, body=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Pulls Git commits from the Repository's remote into a Workspace.</p>
125 <p class="toc_element">
126 <code><a href="#push">push(name, body=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Pushes Git commits from a Workspace to the Repository's remote.</p>
128 <p class="toc_element">
129 <code><a href="#queryDirectoryContents">queryDirectoryContents(workspace, pageSize=None, pageToken=None, path=None, view=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Returns the contents of a given Workspace directory.</p>
131 <p class="toc_element">
132 <code><a href="#queryDirectoryContents_next">queryDirectoryContents_next()</a></code></p>
133 <p class="firstline">Retrieves the next page of results.</p>
134 <p class="toc_element">
135 <code><a href="#readFile">readFile(workspace, path=None, revision=None, x__xgafv=None)</a></code></p>
136 <p class="firstline">Returns the contents of a file (inside a Workspace).</p>
137 <p class="toc_element">
138 <code><a href="#removeDirectory">removeDirectory(workspace, body=None, x__xgafv=None)</a></code></p>
139 <p class="firstline">Deletes a directory (inside a Workspace) and all of its contents.</p>
140 <p class="toc_element">
141 <code><a href="#removeFile">removeFile(workspace, body=None, x__xgafv=None)</a></code></p>
142 <p class="firstline">Deletes a file (inside a Workspace).</p>
143 <p class="toc_element">
144 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p>
145 <p class="firstline">Performs a Git reset for uncommitted files in a Workspace.</p>
146 <p class="toc_element">
147 <code><a href="#searchFiles">searchFiles(workspace, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
148 <p class="firstline">Finds the contents of a given Workspace directory by filter.</p>
149 <p class="toc_element">
150 <code><a href="#searchFiles_next">searchFiles_next()</a></code></p>
151 <p class="firstline">Retrieves the next page of results.</p>
152 <p class="toc_element">
153 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
154 <p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
155 <p class="toc_element">
156 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
157 <p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
158 <p class="toc_element">
159 <code><a href="#writeFile">writeFile(workspace, body=None, x__xgafv=None)</a></code></p>
160 <p class="firstline">Writes to a file (inside a Workspace).</p>
161 <h3>Method Details</h3>
162 <div class="method">
163 <code class="details" id="close">close()</code>
164 <pre>Close httplib2 connections.</pre>
165 </div>
166
167 <div class="method">
168 <code class="details" id="commit">commit(name, body=None, x__xgafv=None)</code>
169 <pre>Applies a Git commit for uncommitted files in a Workspace.
170
171 Args:
172 name: string, Required. The workspace&#x27;s name. (required)
173 body: object, The request body.
174 The object takes the form of:
175
176 { # `CommitWorkspaceChanges` request message.
177 &quot;author&quot;: { # Represents the author of a Git commit. # Required. The commit&#x27;s author.
178 &quot;emailAddress&quot;: &quot;A String&quot;, # Required. The commit author&#x27;s email address.
179 &quot;name&quot;: &quot;A String&quot;, # Required. The commit author&#x27;s name.
180 },
181 &quot;commitMessage&quot;: &quot;A String&quot;, # Optional. The commit&#x27;s message.
182 &quot;paths&quot;: [ # Optional. Full file paths to commit including filename, rooted at workspace root. If left empty, all files will be committed.
183 &quot;A String&quot;,
184 ],
185 }
186
187 x__xgafv: string, V1 error format.
188 Allowed values
189 1 - v1 error format
190 2 - v2 error format
191
192 Returns:
193 An object of the form:
194
195 { # `CommitWorkspaceChanges` response message.
196 }</pre>
197 </div>
198
199 <div class="method">
200 <code class="details" id="create">create(parent, body=None, workspaceId=None, x__xgafv=None)</code>
201 <pre>Creates a new Workspace in a given Repository.
202
203 Args:
204 parent: string, Required. The repository in which to create the workspace. Must be in the format `projects/*/locations/*/repositories/*`. (required)
205 body: object, The request body.
206 The object takes the form of:
207
208 { # Represents a Dataform Git workspace.
209 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp of when the workspace was created.
210 &quot;dataEncryptionState&quot;: { # Describes encryption state of a resource. # Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key.
211 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Required. The KMS key version name with which data of a resource is encrypted.
212 },
213 &quot;disableMoves&quot;: True or False, # Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted.
214 &quot;internalMetadata&quot;: &quot;A String&quot;, # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
215 &quot;name&quot;: &quot;A String&quot;, # Identifier. The workspace&#x27;s name.
216 &quot;privateResourceMetadata&quot;: { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` resources, the `user_scoped` field is always `true`.
217 &quot;userScoped&quot;: True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace.
218 },
219 }
220
221 workspaceId: string, Required. The ID to use for the workspace, which will become the final component of the workspace&#x27;s resource name.
222 x__xgafv: string, V1 error format.
223 Allowed values
224 1 - v1 error format
225 2 - v2 error format
226
227 Returns:
228 An object of the form:
229
230 { # Represents a Dataform Git workspace.
231 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp of when the workspace was created.
232 &quot;dataEncryptionState&quot;: { # Describes encryption state of a resource. # Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key.
233 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Required. The KMS key version name with which data of a resource is encrypted.
234 },
235 &quot;disableMoves&quot;: True or False, # Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted.
236 &quot;internalMetadata&quot;: &quot;A String&quot;, # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
237 &quot;name&quot;: &quot;A String&quot;, # Identifier. The workspace&#x27;s name.
238 &quot;privateResourceMetadata&quot;: { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` resources, the `user_scoped` field is always `true`.
239 &quot;userScoped&quot;: True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace.
240 },
241 }</pre>
242 </div>
243
244 <div class="method">
245 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
246 <pre>Deletes a single Workspace.
247
248 Args:
249 name: string, Required. The workspace resource&#x27;s name. (required)
250 x__xgafv: string, V1 error format.
251 Allowed values
252 1 - v1 error format
253 2 - v2 error format
254
255 Returns:
256 An object of the form:
257
258 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
259 }</pre>
260 </div>
261
262 <div class="method">
263 <code class="details" id="fetchFileDiff">fetchFileDiff(workspace, path=None, x__xgafv=None)</code>
264 <pre>Fetches Git diff for an uncommitted file in a Workspace.
265
266 Args:
267 workspace: string, Required. The workspace&#x27;s name. (required)
268 path: string, Required. The file&#x27;s full path including filename, relative to the workspace root.
269 x__xgafv: string, V1 error format.
270 Allowed values
271 1 - v1 error format
272 2 - v2 error format
273
274 Returns:
275 An object of the form:
276
277 { # `FetchFileDiff` response message.
278 &quot;formattedDiff&quot;: &quot;A String&quot;, # The raw formatted Git diff for the file.
279 }</pre>
280 </div>
281
282 <div class="method">
283 <code class="details" id="fetchFileGitStatuses">fetchFileGitStatuses(name, x__xgafv=None)</code>
284 <pre>Fetches Git statuses for the files in a Workspace.
285
286 Args:
287 name: string, Required. The workspace&#x27;s name. (required)
288 x__xgafv: string, V1 error format.
289 Allowed values
290 1 - v1 error format
291 2 - v2 error format
292
293 Returns:
294 An object of the form:
295
296 { # `FetchFileGitStatuses` response message.
297 &quot;uncommittedFileChanges&quot;: [ # A list of all files which have uncommitted Git changes. There will only be a single entry for any given file.
298 { # Represents the Git state of a file with uncommitted changes.
299 &quot;path&quot;: &quot;A String&quot;, # The file&#x27;s full path including filename, relative to the workspace root.
300 &quot;state&quot;: &quot;A String&quot;, # Output only. Indicates the status of the file.
301 },
302 ],
303 }</pre>
304 </div>
305
306 <div class="method">
307 <code class="details" id="fetchGitAheadBehind">fetchGitAheadBehind(name, remoteBranch=None, x__xgafv=None)</code>
308 <pre>Fetches Git ahead/behind against a remote branch.
309
310 Args:
311 name: string, Required. The workspace&#x27;s name. (required)
312 remoteBranch: string, Optional. The name of the branch in the Git remote against which this workspace should be compared. If left unset, the repository&#x27;s default branch name will be used.
313 x__xgafv: string, V1 error format.
314 Allowed values
315 1 - v1 error format
316 2 - v2 error format
317
318 Returns:
319 An object of the form:
320
321 { # `FetchGitAheadBehind` response message.
322 &quot;commitsAhead&quot;: 42, # The number of commits in the remote branch that are not in the workspace.
323 &quot;commitsBehind&quot;: 42, # The number of commits in the workspace that are not in the remote branch.
324 }</pre>
325 </div>
326
327 <div class="method">
328 <code class="details" id="get">get(name, x__xgafv=None)</code>
329 <pre>Fetches a single Workspace.
330
331 Args:
332 name: string, Required. The workspace&#x27;s name. (required)
333 x__xgafv: string, V1 error format.
334 Allowed values
335 1 - v1 error format
336 2 - v2 error format
337
338 Returns:
339 An object of the form:
340
341 { # Represents a Dataform Git workspace.
342 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp of when the workspace was created.
343 &quot;dataEncryptionState&quot;: { # Describes encryption state of a resource. # Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key.
344 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Required. The KMS key version name with which data of a resource is encrypted.
345 },
346 &quot;disableMoves&quot;: True or False, # Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted.
347 &quot;internalMetadata&quot;: &quot;A String&quot;, # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
348 &quot;name&quot;: &quot;A String&quot;, # Identifier. The workspace&#x27;s name.
349 &quot;privateResourceMetadata&quot;: { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` resources, the `user_scoped` field is always `true`.
350 &quot;userScoped&quot;: True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace.
351 },
352 }</pre>
353 </div>
354
355 <div class="method">
356 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
357 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
358
359 Args:
360 resource: string, REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
361 options_requestedPolicyVersion: integer, Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
362 x__xgafv: string, V1 error format.
363 Allowed values
364 1 - v1 error format
365 2 - v2 error format
366
367 Returns:
368 An object of the form:
369
370 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
371 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
372 { # Associates `members`, or principals, with a `role`.
373 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
374 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
375 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
376 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
377 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
378 },
379 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
380 &quot;A String&quot;,
381 ],
382 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
383 },
384 ],
385 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
386 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
387 }</pre>
388 </div>
389
390 <div class="method">
391 <code class="details" id="installNpmPackages">installNpmPackages(workspace, body=None, x__xgafv=None)</code>
392 <pre>Installs dependency NPM packages (inside a Workspace).
393
394 Args:
395 workspace: string, Required. The workspace&#x27;s name. (required)
396 body: object, The request body.
397 The object takes the form of:
398
399 { # `InstallNpmPackages` request message.
400 }
401
402 x__xgafv: string, V1 error format.
403 Allowed values
404 1 - v1 error format
405 2 - v2 error format
406
407 Returns:
408 An object of the form:
409
410 { # `InstallNpmPackages` response message.
411 }</pre>
412 </div>
413
414 <div class="method">
415 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
416 <pre>Lists Workspaces in a given Repository.
417
418 Args:
419 parent: string, Required. The repository in which to list workspaces. Must be in the format `projects/*/locations/*/repositories/*`. (required)
420 filter: string, Optional. Filter for the returned list.
421 orderBy: string, Optional. This field only supports ordering by `name`. If unspecified, the server will choose the ordering. If specified, the default order is ascending for the `name` field.
422 pageSize: integer, Optional. Maximum number of workspaces to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
423 pageToken: string, Optional. Page token received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces`, with the exception of `page_size`, must match the call that provided the page token.
424 x__xgafv: string, V1 error format.
425 Allowed values
426 1 - v1 error format
427 2 - v2 error format
428
429 Returns:
430 An object of the form:
431
432 { # `ListWorkspaces` response message.
433 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
434 &quot;unreachable&quot;: [ # Locations which could not be reached.
435 &quot;A String&quot;,
436 ],
437 &quot;workspaces&quot;: [ # List of workspaces.
438 { # Represents a Dataform Git workspace.
439 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp of when the workspace was created.
440 &quot;dataEncryptionState&quot;: { # Describes encryption state of a resource. # Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key.
441 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # Required. The KMS key version name with which data of a resource is encrypted.
442 },
443 &quot;disableMoves&quot;: True or False, # Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted.
444 &quot;internalMetadata&quot;: &quot;A String&quot;, # Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
445 &quot;name&quot;: &quot;A String&quot;, # Identifier. The workspace&#x27;s name.
446 &quot;privateResourceMetadata&quot;: { # Metadata used to identify if a resource is user scoped. # Output only. Metadata indicating whether this resource is user-scoped. For `Workspace` resources, the `user_scoped` field is always `true`.
447 &quot;userScoped&quot;: True or False, # Output only. If true, this resource is user-scoped, meaning it is either a workspace or sourced from a workspace.
448 },
449 },
450 ],
451 }</pre>
452 </div>
453
454 <div class="method">
455 <code class="details" id="list_next">list_next()</code>
456 <pre>Retrieves the next page of results.
457
458 Args:
459 previous_request: The request for the previous page. (required)
460 previous_response: The response from the request for the previous page. (required)
461
462 Returns:
463 A request object that you can call &#x27;execute()&#x27; on to request the next
464 page. Returns None if there are no more items in the collection.
465 </pre>
466 </div>
467
468 <div class="method">
469 <code class="details" id="makeDirectory">makeDirectory(workspace, body=None, x__xgafv=None)</code>
470 <pre>Creates a directory inside a Workspace.
471
472 Args:
473 workspace: string, Required. The workspace&#x27;s name. (required)
474 body: object, The request body.
475 The object takes the form of:
476
477 { # `MakeDirectory` request message.
478 &quot;path&quot;: &quot;A String&quot;, # Required. The directory&#x27;s full path including directory name, relative to the workspace root.
479 }
480
481 x__xgafv: string, V1 error format.
482 Allowed values
483 1 - v1 error format
484 2 - v2 error format
485
486 Returns:
487 An object of the form:
488
489 { # `MakeDirectory` response message.
490 }</pre>
491 </div>
492
493 <div class="method">
494 <code class="details" id="moveDirectory">moveDirectory(workspace, body=None, x__xgafv=None)</code>
495 <pre>Moves a directory (inside a Workspace), and all of its contents, to a new location.
496
497 Args:
498 workspace: string, Required. The workspace&#x27;s name. (required)
499 body: object, The request body.
500 The object takes the form of:
501
502 { # `MoveDirectory` request message.
503 &quot;newPath&quot;: &quot;A String&quot;, # Required. The new path for the directory including directory name, rooted at workspace root.
504 &quot;path&quot;: &quot;A String&quot;, # Required. The directory&#x27;s full path including directory name, relative to the workspace root.
505 }
506
507 x__xgafv: string, V1 error format.
508 Allowed values
509 1 - v1 error format
510 2 - v2 error format
511
512 Returns:
513 An object of the form:
514
515 { # `MoveDirectory` response message.
516 }</pre>
517 </div>
518
519 <div class="method">
520 <code class="details" id="moveFile">moveFile(workspace, body=None, x__xgafv=None)</code>
521 <pre>Moves a file (inside a Workspace) to a new location.
522
523 Args:
524 workspace: string, Required. The workspace&#x27;s name. (required)
525 body: object, The request body.
526 The object takes the form of:
527
528 { # `MoveFile` request message.
529 &quot;newPath&quot;: &quot;A String&quot;, # Required. The file&#x27;s new path including filename, relative to the workspace root.
530 &quot;path&quot;: &quot;A String&quot;, # Required. The file&#x27;s full path including filename, relative to the workspace root.
531 }
532
533 x__xgafv: string, V1 error format.
534 Allowed values
535 1 - v1 error format
536 2 - v2 error format
537
538 Returns:
539 An object of the form:
540
541 { # `MoveFile` response message.
542 }</pre>
543 </div>
544
545 <div class="method">
546 <code class="details" id="pull">pull(name, body=None, x__xgafv=None)</code>
547 <pre>Pulls Git commits from the Repository&#x27;s remote into a Workspace.
548
549 Args:
550 name: string, Required. The workspace&#x27;s name. (required)
551 body: object, The request body.
552 The object takes the form of:
553
554 { # `PullGitCommits` request message.
555 &quot;author&quot;: { # Represents the author of a Git commit. # Required. The author of any merge commit which may be created as a result of merging fetched Git commits into this workspace.
556 &quot;emailAddress&quot;: &quot;A String&quot;, # Required. The commit author&#x27;s email address.
557 &quot;name&quot;: &quot;A String&quot;, # Required. The commit author&#x27;s name.
558 },
559 &quot;remoteBranch&quot;: &quot;A String&quot;, # Optional. The name of the branch in the Git remote from which to pull commits. If left unset, the repository&#x27;s default branch name will be used.
560 }
561
562 x__xgafv: string, V1 error format.
563 Allowed values
564 1 - v1 error format
565 2 - v2 error format
566
567 Returns:
568 An object of the form:
569
570 { # `PullGitCommits` response message.
571 }</pre>
572 </div>
573
574 <div class="method">
575 <code class="details" id="push">push(name, body=None, x__xgafv=None)</code>
576 <pre>Pushes Git commits from a Workspace to the Repository&#x27;s remote.
577
578 Args:
579 name: string, Required. The workspace&#x27;s name. (required)
580 body: object, The request body.
581 The object takes the form of:
582
583 { # `PushGitCommits` request message.
584 &quot;remoteBranch&quot;: &quot;A String&quot;, # Optional. The name of the branch in the Git remote to which commits should be pushed. If left unset, the repository&#x27;s default branch name will be used.
585 }
586
587 x__xgafv: string, V1 error format.
588 Allowed values
589 1 - v1 error format
590 2 - v2 error format
591
592 Returns:
593 An object of the form:
594
595 { # `PushGitCommits` response message.
596 }</pre>
597 </div>
598
599 <div class="method">
600 <code class="details" id="queryDirectoryContents">queryDirectoryContents(workspace, pageSize=None, pageToken=None, path=None, view=None, x__xgafv=None)</code>
601 <pre>Returns the contents of a given Workspace directory.
602
603 Args:
604 workspace: string, Required. The workspace&#x27;s name. (required)
605 pageSize: integer, Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
606 pageToken: string, Optional. Page token received from a previous `QueryDirectoryContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDirectoryContents`, with the exception of `page_size`, must match the call that provided the page token.
607 path: string, Optional. The directory&#x27;s full path including directory name, relative to the workspace root. If left unset, the workspace root is used.
608 view: string, Optional. Specifies the metadata to return for each directory entry. If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected workspaces.
609 Allowed values
610 DIRECTORY_CONTENTS_VIEW_UNSPECIFIED - The default unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
611 DIRECTORY_CONTENTS_VIEW_BASIC - Includes only the file or directory name. This is the default behavior.
612 DIRECTORY_CONTENTS_VIEW_METADATA - Includes all metadata for each file or directory. Currently not supported by CMEK-protected workspaces.
613 x__xgafv: string, V1 error format.
614 Allowed values
615 1 - v1 error format
616 2 - v2 error format
617
618 Returns:
619 An object of the form:
620
621 { # `QueryDirectoryContents` response message.
622 &quot;directoryEntries&quot;: [ # List of entries in the directory.
623 { # Represents a single entry in a directory.
624 &quot;directory&quot;: &quot;A String&quot;, # A child directory in the directory. The path is returned including the full folder structure from the root.
625 &quot;file&quot;: &quot;A String&quot;, # A file in the directory. The path is returned including the full folder structure from the root.
626 &quot;metadata&quot;: { # Represents metadata for a single entry in a filesystem. # Entry with metadata.
627 &quot;sizeBytes&quot;: &quot;A String&quot;, # Output only. Provides the size of the entry in bytes. For directories, this will be 0.
628 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Represents the time of the last modification of the entry.
629 },
630 },
631 ],
632 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
633 }</pre>
634 </div>
635
636 <div class="method">
637 <code class="details" id="queryDirectoryContents_next">queryDirectoryContents_next()</code>
638 <pre>Retrieves the next page of results.
639
640 Args:
641 previous_request: The request for the previous page. (required)
642 previous_response: The response from the request for the previous page. (required)
643
644 Returns:
645 A request object that you can call &#x27;execute()&#x27; on to request the next
646 page. Returns None if there are no more items in the collection.
647 </pre>
648 </div>
649
650 <div class="method">
651 <code class="details" id="readFile">readFile(workspace, path=None, revision=None, x__xgafv=None)</code>
652 <pre>Returns the contents of a file (inside a Workspace).
653
654 Args:
655 workspace: string, Required. The workspace&#x27;s name. (required)
656 path: string, Required. The file&#x27;s full path including filename, relative to the workspace root.
657 revision: string, Optional. The Git revision of the file to return. If left empty, the current contents of `path` will be returned.
658 x__xgafv: string, V1 error format.
659 Allowed values
660 1 - v1 error format
661 2 - v2 error format
662
663 Returns:
664 An object of the form:
665
666 { # `ReadFile` response message.
667 &quot;fileContents&quot;: &quot;A String&quot;, # The file&#x27;s contents.
668 }</pre>
669 </div>
670
671 <div class="method">
672 <code class="details" id="removeDirectory">removeDirectory(workspace, body=None, x__xgafv=None)</code>
673 <pre>Deletes a directory (inside a Workspace) and all of its contents.
674
675 Args:
676 workspace: string, Required. The workspace&#x27;s name. (required)
677 body: object, The request body.
678 The object takes the form of:
679
680 { # `RemoveDirectory` request message.
681 &quot;path&quot;: &quot;A String&quot;, # Required. The directory&#x27;s full path including directory name, relative to the workspace root.
682 }
683
684 x__xgafv: string, V1 error format.
685 Allowed values
686 1 - v1 error format
687 2 - v2 error format
688
689 Returns:
690 An object of the form:
691
692 { # `RemoveDirectory` response message.
693 }</pre>
694 </div>
695
696 <div class="method">
697 <code class="details" id="removeFile">removeFile(workspace, body=None, x__xgafv=None)</code>
698 <pre>Deletes a file (inside a Workspace).
699
700 Args:
701 workspace: string, Required. The workspace&#x27;s name. (required)
702 body: object, The request body.
703 The object takes the form of:
704
705 { # `RemoveFile` request message.
706 &quot;path&quot;: &quot;A String&quot;, # Required. The file&#x27;s full path including filename, relative to the workspace root.
707 }
708
709 x__xgafv: string, V1 error format.
710 Allowed values
711 1 - v1 error format
712 2 - v2 error format
713
714 Returns:
715 An object of the form:
716
717 { # `RemoveFile` response message.
718 }</pre>
719 </div>
720
721 <div class="method">
722 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
723 <pre>Performs a Git reset for uncommitted files in a Workspace.
724
725 Args:
726 name: string, Required. The workspace&#x27;s name. (required)
727 body: object, The request body.
728 The object takes the form of:
729
730 { # `ResetWorkspaceChanges` request message.
731 &quot;clean&quot;: True or False, # Optional. If set to true, untracked files will be deleted.
732 &quot;paths&quot;: [ # Optional. Full file paths to reset back to their committed state including filename, rooted at workspace root. If left empty, all files will be reset.
733 &quot;A String&quot;,
734 ],
735 }
736
737 x__xgafv: string, V1 error format.
738 Allowed values
739 1 - v1 error format
740 2 - v2 error format
741
742 Returns:
743 An object of the form:
744
745 { # `ResetWorkspaceChanges` response message.
746 }</pre>
747 </div>
748
749 <div class="method">
750 <code class="details" id="searchFiles">searchFiles(workspace, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
751 <pre>Finds the contents of a given Workspace directory by filter.
752
753 Args:
754 workspace: string, Required. The workspace&#x27;s name. (required)
755 filter: string, Optional. Optional filter for the returned list in filtering format. Filtering is only currently supported on the `path` field. See https://google.aip.dev/160 for details.
756 pageSize: integer, Optional. Maximum number of search results to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
757 pageToken: string, Optional. Page token received from a previous `SearchFilesRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchFilesRequest`, with the exception of `page_size`, must match the call that provided the page token.
758 x__xgafv: string, V1 error format.
759 Allowed values
760 1 - v1 error format
761 2 - v2 error format
762
763 Returns:
764 An object of the form:
765
766 { # Client-facing representation of a file search response.
767 &quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
768 &quot;searchResults&quot;: [ # List of matched results.
769 { # Client-facing representation of a search result entry.
770 &quot;directory&quot;: { # Client-facing representation of a directory entry in search results. # Details when search result is a directory.
771 &quot;path&quot;: &quot;A String&quot;, # File system path relative to the workspace root.
772 },
773 &quot;file&quot;: { # Client-facing representation of a file entry in search results. # Details when search result is a file.
774 &quot;path&quot;: &quot;A String&quot;, # File system path relative to the workspace root.
775 },
776 },
777 ],
778 }</pre>
779 </div>
780
781 <div class="method">
782 <code class="details" id="searchFiles_next">searchFiles_next()</code>
783 <pre>Retrieves the next page of results.
784
785 Args:
786 previous_request: The request for the previous page. (required)
787 previous_response: The response from the request for the previous page. (required)
788
789 Returns:
790 A request object that you can call &#x27;execute()&#x27; on to request the next
791 page. Returns None if there are no more items in the collection.
792 </pre>
793 </div>
794
795 <div class="method">
796 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
797 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
798
799 Args:
800 resource: string, REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
801 body: object, The request body.
802 The object takes the form of:
803
804 { # Request message for `SetIamPolicy` method.
805 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
806 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
807 { # Associates `members`, or principals, with a `role`.
808 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
809 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
810 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
811 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
812 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
813 },
814 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
815 &quot;A String&quot;,
816 ],
817 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
818 },
819 ],
820 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
821 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
822 },
823 }
824
825 x__xgafv: string, V1 error format.
826 Allowed values
827 1 - v1 error format
828 2 - v2 error format
829
830 Returns:
831 An object of the form:
832
833 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
834 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
835 { # Associates `members`, or principals, with a `role`.
836 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
837 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
838 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
839 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
840 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
841 },
842 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
843 &quot;A String&quot;,
844 ],
845 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
846 },
847 ],
848 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
849 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
850 }</pre>
851 </div>
852
853 <div class="method">
854 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
855 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
856
857 Args:
858 resource: string, REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
859 body: object, The request body.
860 The object takes the form of:
861
862 { # Request message for `TestIamPermissions` method.
863 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
864 &quot;A String&quot;,
865 ],
866 }
867
868 x__xgafv: string, V1 error format.
869 Allowed values
870 1 - v1 error format
871 2 - v2 error format
872
873 Returns:
874 An object of the form:
875
876 { # Response message for `TestIamPermissions` method.
877 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
878 &quot;A String&quot;,
879 ],
880 }</pre>
881 </div>
882
883 <div class="method">
884 <code class="details" id="writeFile">writeFile(workspace, body=None, x__xgafv=None)</code>
885 <pre>Writes to a file (inside a Workspace).
886
887 Args:
888 workspace: string, Required. The workspace&#x27;s name. (required)
889 body: object, The request body.
890 The object takes the form of:
891
892 { # `WriteFile` request message.
893 &quot;contents&quot;: &quot;A String&quot;, # Required. The file&#x27;s contents.
894 &quot;path&quot;: &quot;A String&quot;, # Required. The file.
895 }
896
897 x__xgafv: string, V1 error format.
898 Allowed values
899 1 - v1 error format
900 2 - v2 error format
901
902 Returns:
903 An object of the form:
904
905 { # `WriteFile` response message.
906 }</pre>
907 </div>
908
909 </body></html>