blob: c96d74b61c8ef449ab6f9ecc60cecd40056ab27f [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="sourcerepo_v1.html">Cloud Source Repositories API</a> . <a href="sourcerepo_v1.projects.html">projects</a> . <a href="sourcerepo_v1.projects.repos.html">repos</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040079<p class="firstline">Creates a repo in the given project with the given name.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040080<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070081 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Deletes a repo.</p>
83<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070084 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Returns information about a repo.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040088<p class="firstline">Gets the access control policy for a resource.</p>
89<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(name, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040091<p class="firstline">Returns all repos belonging to a project. The sizes of the repos are</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Updates information about a repo.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100<p class="firstline">Sets the access control policy on the specified resource. Replaces any</p>
101<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 <code><a href="#sync">sync(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Synchronize a connected repo.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107<h3>Method Details</h3>
108<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400110 <pre>Creates a repo in the given project with the given name.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400111
112If the named repository already exists, `CreateRepo` returns
113`ALREADY_EXISTS`.
114
115Args:
116 parent: string, The project in which to create the repo. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700117`projects/&lt;project&gt;`. (required)
118 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400119 The object takes the form of:
120
121{ # A repository (or repo) is a Git repository storing versioned source content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
126 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
127 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700128 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130 # messages. This service account needs to be in the same project as the
131 # PubsubConfig. When added, the caller needs to have
132 # iam.serviceAccounts.actAs permission on this service account. If
133 # unspecified, it defaults to the compute engine default service account.
134 },
135 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700136 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
137 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
138 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 &quot;size&quot;: &quot;A String&quot;, # The disk usage of the repo, in bytes. Read-only field. Size is only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 # returned by GetRepo.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700141 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
142 # Read-only field.
143 # hosting service, for example GitHub or Bitbucket.
144 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
145 # Removing this webhook from the other hosting service will stop
146 # Google Cloud Source Repositories from receiving notifications,
147 # and thereby disabling mirroring.
148 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
149 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
150 # Removing this key from the other service would deauthorize
151 # Google Cloud Source Repositories from mirroring.
152 },
153 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
154 # Read-only field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400155}
156
157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162Returns:
163 An object of the form:
164
165 { # A repository (or repo) is a Git repository storing versioned source content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700169 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
170 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
171 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700172 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700174 # messages. This service account needs to be in the same project as the
175 # PubsubConfig. When added, the caller needs to have
176 # iam.serviceAccounts.actAs permission on this service account. If
177 # unspecified, it defaults to the compute engine default service account.
178 },
179 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700180 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
181 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
182 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;size&quot;: &quot;A String&quot;, # The disk usage of the repo, in bytes. Read-only field. Size is only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 # returned by GetRepo.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
186 # Read-only field.
187 # hosting service, for example GitHub or Bitbucket.
188 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
189 # Removing this webhook from the other hosting service will stop
190 # Google Cloud Source Repositories from receiving notifications,
191 # and thereby disabling mirroring.
192 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
193 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
194 # Removing this key from the other service would deauthorize
195 # Google Cloud Source Repositories from mirroring.
196 },
197 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
198 # Read-only field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400199 }</pre>
200</div>
201
202<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700203 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400204 <pre>Deletes a repo.
205
206Args:
207 name: string, The name of the repo to delete. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700208`projects/&lt;project&gt;/repos/&lt;repo&gt;`. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214Returns:
215 An object of the form:
216
217 { # A generic empty message that you can re-use to avoid defining duplicated
218 # empty messages in your APIs. A typical example is to use it as the request
219 # or the response type of an API method. For instance:
220 #
221 # service Foo {
222 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
223 # }
224 #
225 # The JSON representation for `Empty` is empty JSON object `{}`.
226 }</pre>
227</div>
228
229<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700230 <code class="details" id="get">get(name, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400231 <pre>Returns information about a repo.
232
233Args:
234 name: string, The name of the requested repository. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700235`projects/&lt;project&gt;/repos/&lt;repo&gt;`. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400236 x__xgafv: string, V1 error format.
237 Allowed values
238 1 - v1 error format
239 2 - v2 error format
240
241Returns:
242 An object of the form:
243
244 { # A repository (or repo) is a Git repository storing versioned source content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700248 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
249 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
250 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700251 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 # messages. This service account needs to be in the same project as the
254 # PubsubConfig. When added, the caller needs to have
255 # iam.serviceAccounts.actAs permission on this service account. If
256 # unspecified, it defaults to the compute engine default service account.
257 },
258 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700259 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
260 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
261 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 &quot;size&quot;: &quot;A String&quot;, # The disk usage of the repo, in bytes. Read-only field. Size is only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 # returned by GetRepo.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
265 # Read-only field.
266 # hosting service, for example GitHub or Bitbucket.
267 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
268 # Removing this webhook from the other hosting service will stop
269 # Google Cloud Source Repositories from receiving notifications,
270 # and thereby disabling mirroring.
271 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
272 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
273 # Removing this key from the other service would deauthorize
274 # Google Cloud Source Repositories from mirroring.
275 },
276 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
277 # Read-only field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400278 }</pre>
279</div>
280
281<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700282 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400283 <pre>Gets the access control policy for a resource.
284Returns an empty policy if the resource exists and does not have a policy
285set.
286
287Args:
288 resource: string, REQUIRED: The resource for which the policy is being requested.
289See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700290 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.
291
292Valid values are 0, 1, and 3. Requests specifying an invalid value will be
293rejected.
294
295Requests for policies with any conditional bindings must specify version 3.
296Policies without any conditional bindings may specify any valid value or
297leave the field unset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700298
299To learn which resources support conditions in their IAM policies, see the
300[IAM
301documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400302 x__xgafv: string, V1 error format.
303 Allowed values
304 1 - v1 error format
305 2 - v2 error format
306
307Returns:
308 An object of the form:
309
Dan O'Mearadd494642020-05-01 07:42:23 -0700310 { # An Identity and Access Management (IAM) policy, which specifies access
311 # controls for Google Cloud resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400312 #
313 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700314 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
315 # `members` to a single `role`. Members can be user accounts, service accounts,
316 # Google groups, and domains (such as G Suite). A `role` is a named list of
317 # permissions; each `role` can be an IAM predefined role or a user-created
318 # custom role.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400319 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700320 # For some types of Google Cloud resources, a `binding` can also specify a
321 # `condition`, which is a logical expression that allows access to a resource
322 # only if the expression evaluates to `true`. A condition can add constraints
323 # based on attributes of the request, the resource, or both. To learn which
324 # resources support conditions in their IAM policies, see the
325 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700326 #
327 # **JSON example:**
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400328 #
329 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 # &quot;bindings&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400331 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
333 # &quot;members&quot;: [
334 # &quot;user:mike@example.com&quot;,
335 # &quot;group:admins@example.com&quot;,
336 # &quot;domain:google.com&quot;,
337 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400338 # ]
339 # },
340 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700342 # &quot;members&quot;: [
343 # &quot;user:eve@example.com&quot;
344 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 # &quot;condition&quot;: {
346 # &quot;title&quot;: &quot;expirable access&quot;,
347 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
348 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700349 # }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400350 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700351 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
353 # &quot;version&quot;: 3
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400354 # }
355 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700356 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 #
358 # bindings:
359 # - members:
360 # - user:mike@example.com
361 # - group:admins@example.com
362 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700363 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
364 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700366 # - user:eve@example.com
367 # role: roles/resourcemanager.organizationViewer
368 # condition:
369 # title: expirable access
370 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700372 # - etag: BwWWja0YfJA=
373 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400375 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700376 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
378 { # Specifies the audit configuration for a service.
379 # The configuration determines which permission types are logged, and what
380 # identities, if any, are exempted from logging.
381 # An AuditConfig must have one or more AuditLogConfigs.
382 #
383 # If there are AuditConfigs for both `allServices` and a specific service,
384 # the union of the two AuditConfigs is used for that service: the log_types
385 # specified in each AuditConfig are enabled, and the exempted_members in each
386 # AuditLogConfig are exempted.
387 #
388 # Example Policy with multiple AuditConfigs:
389 #
390 # {
391 # &quot;audit_configs&quot;: [
392 # {
393 # &quot;service&quot;: &quot;allServices&quot;
394 # &quot;audit_log_configs&quot;: [
395 # {
396 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
397 # &quot;exempted_members&quot;: [
398 # &quot;user:jose@example.com&quot;
399 # ]
400 # },
401 # {
402 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
403 # },
404 # {
405 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
406 # }
407 # ]
408 # },
409 # {
410 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
411 # &quot;audit_log_configs&quot;: [
412 # {
413 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
414 # },
415 # {
416 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
417 # &quot;exempted_members&quot;: [
418 # &quot;user:aliya@example.com&quot;
419 # ]
420 # }
421 # ]
422 # }
423 # ]
424 # }
425 #
426 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
427 # logging. It also exempts jose@example.com from DATA_READ logging, and
428 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700429 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
430 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
431 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
433 { # Provides the configuration for logging a type of permissions.
434 # Example:
435 #
436 # {
437 # &quot;audit_log_configs&quot;: [
438 # {
439 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
440 # &quot;exempted_members&quot;: [
441 # &quot;user:jose@example.com&quot;
442 # ]
443 # },
444 # {
445 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
446 # }
447 # ]
448 # }
449 #
450 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
451 # jose@example.com from DATA_READ logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700452 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
454 # permission.
455 # Follows the same format of Binding.members.
456 &quot;A String&quot;,
457 ],
458 },
459 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 },
461 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700462 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
463 # prevent simultaneous updates of a policy from overwriting each other.
464 # It is strongly suggested that systems make use of the `etag` in the
465 # read-modify-write cycle to perform policy updates in order to avoid race
466 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
467 # systems are expected to put that etag in the request to `setIamPolicy` to
468 # ensure that their change will be applied to the same version of the policy.
469 #
470 # **Important:** If you use IAM Conditions, you must include the `etag` field
471 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
472 # you to overwrite a version `3` policy with a version `1` policy, and all of
473 # the conditions in the version `3` policy are lost.
474 &quot;version&quot;: 42, # Specifies the format of the policy.
475 #
476 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
477 # are rejected.
478 #
479 # Any operation that affects conditional role bindings must specify version
480 # `3`. This requirement applies to the following operations:
481 #
482 # * Getting a policy that includes a conditional role binding
483 # * Adding a conditional role binding to a policy
484 # * Changing a conditional role binding in a policy
485 # * Removing any role binding, with or without a condition, from a policy
486 # that includes conditions
487 #
488 # **Important:** If you use IAM Conditions, you must include the `etag` field
489 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
490 # you to overwrite a version `3` policy with a version `1` policy, and all of
491 # the conditions in the version `3` policy are lost.
492 #
493 # If a policy does not include any conditions, operations on that policy may
494 # specify any valid version or leave the field unset.
495 #
496 # To learn which resources support conditions in their IAM policies, see the
497 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700499 # `condition` that determines how and when the `bindings` are applied. Each
500 # of the `bindings` must contain at least one member.
501 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
503 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700504 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
505 # `members` can have the following values:
506 #
507 # * `allUsers`: A special identifier that represents anyone who is
508 # on the internet; with or without a Google account.
509 #
510 # * `allAuthenticatedUsers`: A special identifier that represents anyone
511 # who is authenticated with a Google account or a service account.
512 #
513 # * `user:{emailid}`: An email address that represents a specific Google
514 # account. For example, `alice@example.com` .
515 #
516 #
517 # * `serviceAccount:{emailid}`: An email address that represents a service
518 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
519 #
520 # * `group:{emailid}`: An email address that represents a Google group.
521 # For example, `admins@example.com`.
522 #
523 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
524 # identifier) representing a user that has been recently deleted. For
525 # example, `alice@example.com?uid=123456789012345678901`. If the user is
526 # recovered, this value reverts to `user:{emailid}` and the recovered user
527 # retains the role in the binding.
528 #
529 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
530 # unique identifier) representing a service account that has been recently
531 # deleted. For example,
532 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
533 # If the service account is undeleted, this value reverts to
534 # `serviceAccount:{emailid}` and the undeleted service account retains the
535 # role in the binding.
536 #
537 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
538 # identifier) representing a Google group that has been recently
539 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
540 # the group is recovered, this value reverts to `group:{emailid}` and the
541 # recovered group retains the role in the binding.
542 #
543 #
544 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
545 # users of that domain. For example, `google.com` or `example.com`.
546 #
547 &quot;A String&quot;,
548 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700549 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
550 #
551 # If the condition evaluates to `true`, then this binding applies to the
552 # current request.
553 #
554 # If the condition evaluates to `false`, then this binding does not apply to
555 # the current request. However, a different role binding might grant the same
556 # role to one or more of the members in this binding.
557 #
558 # To learn which resources support conditions in their IAM policies, see the
559 # [IAM
560 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
561 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
562 # are documented at https://github.com/google/cel-spec.
563 #
564 # Example (Comparison):
565 #
566 # title: &quot;Summary size limit&quot;
567 # description: &quot;Determines if a summary is less than 100 chars&quot;
568 # expression: &quot;document.summary.size() &lt; 100&quot;
569 #
570 # Example (Equality):
571 #
572 # title: &quot;Requestor is owner&quot;
573 # description: &quot;Determines if requestor is the document owner&quot;
574 # expression: &quot;document.owner == request.auth.claims.email&quot;
575 #
576 # Example (Logic):
577 #
578 # title: &quot;Public documents&quot;
579 # description: &quot;Determine whether the document should be publicly visible&quot;
580 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
581 #
582 # Example (Data Manipulation):
583 #
584 # title: &quot;Notification string&quot;
585 # description: &quot;Create a notification string with a timestamp.&quot;
586 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
587 #
588 # The exact variables and functions that may be referenced within an expression
589 # are determined by the service that evaluates it. See the service
590 # documentation for additional information.
591 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
592 # describes the expression, e.g. when hovered over it in a UI.
593 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
594 # syntax.
595 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
596 # its purpose. This can be used e.g. in UIs which allow to enter the
597 # expression.
598 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
599 # reporting, e.g. a file name and a position in the file.
600 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700601 },
602 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400603 }</pre>
604</div>
605
606<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700607 <code class="details" id="list">list(name, pageSize=None, pageToken=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400608 <pre>Returns all repos belonging to a project. The sizes of the repos are
609not set by ListRepos. To get the size of a repo, use GetRepo.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400610
611Args:
612 name: string, The project ID whose repos should be listed. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700613`projects/&lt;project&gt;`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700614 pageSize: integer, Maximum number of repositories to return; between 1 and 500.
615If not set or zero, defaults to 100 at the server.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400616 pageToken: string, Resume listing repositories where a prior ListReposResponse
617left off. This is an opaque token that must be obtained from
Bu Sun Kim65020912020-05-20 12:08:20 -0700618a recent, prior ListReposResponse&#x27;s next_page_token field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400619 x__xgafv: string, V1 error format.
620 Allowed values
621 1 - v1 error format
622 2 - v2 error format
623
624Returns:
625 An object of the form:
626
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400627 { # Response for ListRepos. The size is not set in the returned repositories.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 &quot;repos&quot;: [ # The listed repos.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400629 { # A repository (or repo) is a Git repository storing versioned source content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700631 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700633 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
634 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
635 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700636 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700638 # messages. This service account needs to be in the same project as the
639 # PubsubConfig. When added, the caller needs to have
640 # iam.serviceAccounts.actAs permission on this service account. If
641 # unspecified, it defaults to the compute engine default service account.
642 },
643 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700644 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
645 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
646 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 &quot;size&quot;: &quot;A String&quot;, # The disk usage of the repo, in bytes. Read-only field. Size is only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700648 # returned by GetRepo.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700649 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
650 # Read-only field.
651 # hosting service, for example GitHub or Bitbucket.
652 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
653 # Removing this webhook from the other hosting service will stop
654 # Google Cloud Source Repositories from receiving notifications,
655 # and thereby disabling mirroring.
656 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
657 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
658 # Removing this key from the other service would deauthorize
659 # Google Cloud Source Repositories from mirroring.
660 },
661 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
662 # Read-only field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400663 },
664 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 &quot;nextPageToken&quot;: &quot;A String&quot;, # If non-empty, additional repositories exist within the project. These
666 # can be retrieved by including this value in the next ListReposRequest&#x27;s
667 # page_token field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400668 }</pre>
669</div>
670
671<div class="method">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400672 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
673 <pre>Retrieves the next page of results.
674
675Args:
676 previous_request: The request for the previous page. (required)
677 previous_response: The response from the request for the previous page. (required)
678
679Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400681 page. Returns None if there are no more items in the collection.
682 </pre>
683</div>
684
685<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700686 <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700687 <pre>Updates information about a repo.
688
689Args:
690 name: string, The name of the requested repository. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700691`projects/&lt;project&gt;/repos/&lt;repo&gt;`. (required)
692 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700693 The object takes the form of:
694
695{ # Request for UpdateRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700696 &quot;repo&quot;: { # A repository (or repo) is a Git repository storing versioned source content. # The new configuration for the repository.
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700698 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700700 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
701 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
702 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700703 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700704 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700705 # messages. This service account needs to be in the same project as the
706 # PubsubConfig. When added, the caller needs to have
707 # iam.serviceAccounts.actAs permission on this service account. If
708 # unspecified, it defaults to the compute engine default service account.
709 },
710 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700711 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
712 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
713 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;size&quot;: &quot;A String&quot;, # The disk usage of the repo, in bytes. Read-only field. Size is only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 # returned by GetRepo.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700716 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
717 # Read-only field.
718 # hosting service, for example GitHub or Bitbucket.
719 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
720 # Removing this webhook from the other hosting service will stop
721 # Google Cloud Source Repositories from receiving notifications,
722 # and thereby disabling mirroring.
723 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
724 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
725 # Removing this key from the other service would deauthorize
726 # Google Cloud Source Repositories from mirroring.
727 },
728 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
729 # Read-only field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700731 &quot;updateMask&quot;: &quot;A String&quot;, # A FieldMask specifying which fields of the repo to modify. Only the fields
732 # in the mask will be modified. If no mask is provided, this request is
733 # no-op.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700734 }
735
736 x__xgafv: string, V1 error format.
737 Allowed values
738 1 - v1 error format
739 2 - v2 error format
740
741Returns:
742 An object of the form:
743
744 { # A repository (or repo) is a Git repository storing versioned source content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700746 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700748 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
749 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
750 # project as this config is in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700751 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Email address of the service account used for publishing Cloud Pub/Sub
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700753 # messages. This service account needs to be in the same project as the
754 # PubsubConfig. When added, the caller needs to have
755 # iam.serviceAccounts.actAs permission on this service account. If
756 # unspecified, it defaults to the compute engine default service account.
757 },
758 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700759 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
760 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
761 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 &quot;size&quot;: &quot;A String&quot;, # The disk usage of the repo, in bytes. Read-only field. Size is only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700763 # returned by GetRepo.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700764 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
765 # Read-only field.
766 # hosting service, for example GitHub or Bitbucket.
767 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
768 # Removing this webhook from the other hosting service will stop
769 # Google Cloud Source Repositories from receiving notifications,
770 # and thereby disabling mirroring.
771 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
772 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
773 # Removing this key from the other service would deauthorize
774 # Google Cloud Source Repositories from mirroring.
775 },
776 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
777 # Read-only field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700778 }</pre>
779</div>
780
781<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700782 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400783 <pre>Sets the access control policy on the specified resource. Replaces any
784existing policy.
785
786Args:
787 resource: string, REQUIRED: The resource for which the policy is being specified.
788See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400790 The object takes the form of:
791
792{ # Request message for `SetIamPolicy` method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700793 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
794 # the fields in the mask will be modified. If no mask is provided, the
795 # following default mask is used:
796 #
797 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400799 # the policy is limited to a few 10s of KB. An empty policy is a
800 # valid policy but certain Cloud Platform services (such as Projects)
801 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700802 # controls for Google Cloud resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400803 #
804 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700805 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
806 # `members` to a single `role`. Members can be user accounts, service accounts,
807 # Google groups, and domains (such as G Suite). A `role` is a named list of
808 # permissions; each `role` can be an IAM predefined role or a user-created
809 # custom role.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400810 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700811 # For some types of Google Cloud resources, a `binding` can also specify a
812 # `condition`, which is a logical expression that allows access to a resource
813 # only if the expression evaluates to `true`. A condition can add constraints
814 # based on attributes of the request, the resource, or both. To learn which
815 # resources support conditions in their IAM policies, see the
816 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700817 #
818 # **JSON example:**
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400819 #
820 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 # &quot;bindings&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400822 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700823 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
824 # &quot;members&quot;: [
825 # &quot;user:mike@example.com&quot;,
826 # &quot;group:admins@example.com&quot;,
827 # &quot;domain:google.com&quot;,
828 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400829 # ]
830 # },
831 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700833 # &quot;members&quot;: [
834 # &quot;user:eve@example.com&quot;
835 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700836 # &quot;condition&quot;: {
837 # &quot;title&quot;: &quot;expirable access&quot;,
838 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
839 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700840 # }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400841 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700842 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700843 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
844 # &quot;version&quot;: 3
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400845 # }
846 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700847 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700848 #
849 # bindings:
850 # - members:
851 # - user:mike@example.com
852 # - group:admins@example.com
853 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700854 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
855 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700856 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700857 # - user:eve@example.com
858 # role: roles/resourcemanager.organizationViewer
859 # condition:
860 # title: expirable access
861 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700862 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700863 # - etag: BwWWja0YfJA=
864 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700865 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400866 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700867 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700868 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
869 { # Specifies the audit configuration for a service.
870 # The configuration determines which permission types are logged, and what
871 # identities, if any, are exempted from logging.
872 # An AuditConfig must have one or more AuditLogConfigs.
873 #
874 # If there are AuditConfigs for both `allServices` and a specific service,
875 # the union of the two AuditConfigs is used for that service: the log_types
876 # specified in each AuditConfig are enabled, and the exempted_members in each
877 # AuditLogConfig are exempted.
878 #
879 # Example Policy with multiple AuditConfigs:
880 #
881 # {
882 # &quot;audit_configs&quot;: [
883 # {
884 # &quot;service&quot;: &quot;allServices&quot;
885 # &quot;audit_log_configs&quot;: [
886 # {
887 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
888 # &quot;exempted_members&quot;: [
889 # &quot;user:jose@example.com&quot;
890 # ]
891 # },
892 # {
893 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
894 # },
895 # {
896 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
897 # }
898 # ]
899 # },
900 # {
901 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
902 # &quot;audit_log_configs&quot;: [
903 # {
904 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
905 # },
906 # {
907 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
908 # &quot;exempted_members&quot;: [
909 # &quot;user:aliya@example.com&quot;
910 # ]
911 # }
912 # ]
913 # }
914 # ]
915 # }
916 #
917 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
918 # logging. It also exempts jose@example.com from DATA_READ logging, and
919 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700920 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
921 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
922 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
924 { # Provides the configuration for logging a type of permissions.
925 # Example:
926 #
927 # {
928 # &quot;audit_log_configs&quot;: [
929 # {
930 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
931 # &quot;exempted_members&quot;: [
932 # &quot;user:jose@example.com&quot;
933 # ]
934 # },
935 # {
936 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
937 # }
938 # ]
939 # }
940 #
941 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
942 # jose@example.com from DATA_READ logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700943 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
945 # permission.
946 # Follows the same format of Binding.members.
947 &quot;A String&quot;,
948 ],
949 },
950 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 },
952 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700953 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
954 # prevent simultaneous updates of a policy from overwriting each other.
955 # It is strongly suggested that systems make use of the `etag` in the
956 # read-modify-write cycle to perform policy updates in order to avoid race
957 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
958 # systems are expected to put that etag in the request to `setIamPolicy` to
959 # ensure that their change will be applied to the same version of the policy.
960 #
961 # **Important:** If you use IAM Conditions, you must include the `etag` field
962 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
963 # you to overwrite a version `3` policy with a version `1` policy, and all of
964 # the conditions in the version `3` policy are lost.
965 &quot;version&quot;: 42, # Specifies the format of the policy.
966 #
967 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
968 # are rejected.
969 #
970 # Any operation that affects conditional role bindings must specify version
971 # `3`. This requirement applies to the following operations:
972 #
973 # * Getting a policy that includes a conditional role binding
974 # * Adding a conditional role binding to a policy
975 # * Changing a conditional role binding in a policy
976 # * Removing any role binding, with or without a condition, from a policy
977 # that includes conditions
978 #
979 # **Important:** If you use IAM Conditions, you must include the `etag` field
980 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
981 # you to overwrite a version `3` policy with a version `1` policy, and all of
982 # the conditions in the version `3` policy are lost.
983 #
984 # If a policy does not include any conditions, operations on that policy may
985 # specify any valid version or leave the field unset.
986 #
987 # To learn which resources support conditions in their IAM policies, see the
988 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700989 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700990 # `condition` that determines how and when the `bindings` are applied. Each
991 # of the `bindings` must contain at least one member.
992 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700993 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
994 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700995 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
996 # `members` can have the following values:
997 #
998 # * `allUsers`: A special identifier that represents anyone who is
999 # on the internet; with or without a Google account.
1000 #
1001 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1002 # who is authenticated with a Google account or a service account.
1003 #
1004 # * `user:{emailid}`: An email address that represents a specific Google
1005 # account. For example, `alice@example.com` .
1006 #
1007 #
1008 # * `serviceAccount:{emailid}`: An email address that represents a service
1009 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1010 #
1011 # * `group:{emailid}`: An email address that represents a Google group.
1012 # For example, `admins@example.com`.
1013 #
1014 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1015 # identifier) representing a user that has been recently deleted. For
1016 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1017 # recovered, this value reverts to `user:{emailid}` and the recovered user
1018 # retains the role in the binding.
1019 #
1020 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1021 # unique identifier) representing a service account that has been recently
1022 # deleted. For example,
1023 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1024 # If the service account is undeleted, this value reverts to
1025 # `serviceAccount:{emailid}` and the undeleted service account retains the
1026 # role in the binding.
1027 #
1028 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1029 # identifier) representing a Google group that has been recently
1030 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1031 # the group is recovered, this value reverts to `group:{emailid}` and the
1032 # recovered group retains the role in the binding.
1033 #
1034 #
1035 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1036 # users of that domain. For example, `google.com` or `example.com`.
1037 #
1038 &quot;A String&quot;,
1039 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001040 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1041 #
1042 # If the condition evaluates to `true`, then this binding applies to the
1043 # current request.
1044 #
1045 # If the condition evaluates to `false`, then this binding does not apply to
1046 # the current request. However, a different role binding might grant the same
1047 # role to one or more of the members in this binding.
1048 #
1049 # To learn which resources support conditions in their IAM policies, see the
1050 # [IAM
1051 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1052 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1053 # are documented at https://github.com/google/cel-spec.
1054 #
1055 # Example (Comparison):
1056 #
1057 # title: &quot;Summary size limit&quot;
1058 # description: &quot;Determines if a summary is less than 100 chars&quot;
1059 # expression: &quot;document.summary.size() &lt; 100&quot;
1060 #
1061 # Example (Equality):
1062 #
1063 # title: &quot;Requestor is owner&quot;
1064 # description: &quot;Determines if requestor is the document owner&quot;
1065 # expression: &quot;document.owner == request.auth.claims.email&quot;
1066 #
1067 # Example (Logic):
1068 #
1069 # title: &quot;Public documents&quot;
1070 # description: &quot;Determine whether the document should be publicly visible&quot;
1071 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1072 #
1073 # Example (Data Manipulation):
1074 #
1075 # title: &quot;Notification string&quot;
1076 # description: &quot;Create a notification string with a timestamp.&quot;
1077 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1078 #
1079 # The exact variables and functions that may be referenced within an expression
1080 # are determined by the service that evaluates it. See the service
1081 # documentation for additional information.
1082 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1083 # describes the expression, e.g. when hovered over it in a UI.
1084 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1085 # syntax.
1086 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1087 # its purpose. This can be used e.g. in UIs which allow to enter the
1088 # expression.
1089 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1090 # reporting, e.g. a file name and a position in the file.
1091 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001092 },
1093 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001094 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001095 }
1096
1097 x__xgafv: string, V1 error format.
1098 Allowed values
1099 1 - v1 error format
1100 2 - v2 error format
1101
1102Returns:
1103 An object of the form:
1104
Dan O'Mearadd494642020-05-01 07:42:23 -07001105 { # An Identity and Access Management (IAM) policy, which specifies access
1106 # controls for Google Cloud resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001107 #
1108 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001109 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1110 # `members` to a single `role`. Members can be user accounts, service accounts,
1111 # Google groups, and domains (such as G Suite). A `role` is a named list of
1112 # permissions; each `role` can be an IAM predefined role or a user-created
1113 # custom role.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001114 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001115 # For some types of Google Cloud resources, a `binding` can also specify a
1116 # `condition`, which is a logical expression that allows access to a resource
1117 # only if the expression evaluates to `true`. A condition can add constraints
1118 # based on attributes of the request, the resource, or both. To learn which
1119 # resources support conditions in their IAM policies, see the
1120 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001121 #
1122 # **JSON example:**
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001123 #
1124 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001125 # &quot;bindings&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001126 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001127 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1128 # &quot;members&quot;: [
1129 # &quot;user:mike@example.com&quot;,
1130 # &quot;group:admins@example.com&quot;,
1131 # &quot;domain:google.com&quot;,
1132 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001133 # ]
1134 # },
1135 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001136 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001137 # &quot;members&quot;: [
1138 # &quot;user:eve@example.com&quot;
1139 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001140 # &quot;condition&quot;: {
1141 # &quot;title&quot;: &quot;expirable access&quot;,
1142 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1143 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001144 # }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001145 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001146 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001147 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1148 # &quot;version&quot;: 3
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001149 # }
1150 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001151 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001152 #
1153 # bindings:
1154 # - members:
1155 # - user:mike@example.com
1156 # - group:admins@example.com
1157 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001158 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1159 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001160 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001161 # - user:eve@example.com
1162 # role: roles/resourcemanager.organizationViewer
1163 # condition:
1164 # title: expirable access
1165 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001166 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001167 # - etag: BwWWja0YfJA=
1168 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001169 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001170 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001171 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001172 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1173 { # Specifies the audit configuration for a service.
1174 # The configuration determines which permission types are logged, and what
1175 # identities, if any, are exempted from logging.
1176 # An AuditConfig must have one or more AuditLogConfigs.
1177 #
1178 # If there are AuditConfigs for both `allServices` and a specific service,
1179 # the union of the two AuditConfigs is used for that service: the log_types
1180 # specified in each AuditConfig are enabled, and the exempted_members in each
1181 # AuditLogConfig are exempted.
1182 #
1183 # Example Policy with multiple AuditConfigs:
1184 #
1185 # {
1186 # &quot;audit_configs&quot;: [
1187 # {
1188 # &quot;service&quot;: &quot;allServices&quot;
1189 # &quot;audit_log_configs&quot;: [
1190 # {
1191 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1192 # &quot;exempted_members&quot;: [
1193 # &quot;user:jose@example.com&quot;
1194 # ]
1195 # },
1196 # {
1197 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1198 # },
1199 # {
1200 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1201 # }
1202 # ]
1203 # },
1204 # {
1205 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1206 # &quot;audit_log_configs&quot;: [
1207 # {
1208 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1209 # },
1210 # {
1211 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1212 # &quot;exempted_members&quot;: [
1213 # &quot;user:aliya@example.com&quot;
1214 # ]
1215 # }
1216 # ]
1217 # }
1218 # ]
1219 # }
1220 #
1221 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1222 # logging. It also exempts jose@example.com from DATA_READ logging, and
1223 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001224 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1225 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1226 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1228 { # Provides the configuration for logging a type of permissions.
1229 # Example:
1230 #
1231 # {
1232 # &quot;audit_log_configs&quot;: [
1233 # {
1234 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1235 # &quot;exempted_members&quot;: [
1236 # &quot;user:jose@example.com&quot;
1237 # ]
1238 # },
1239 # {
1240 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1241 # }
1242 # ]
1243 # }
1244 #
1245 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1246 # jose@example.com from DATA_READ logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001247 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001248 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1249 # permission.
1250 # Follows the same format of Binding.members.
1251 &quot;A String&quot;,
1252 ],
1253 },
1254 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001255 },
1256 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001257 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1258 # prevent simultaneous updates of a policy from overwriting each other.
1259 # It is strongly suggested that systems make use of the `etag` in the
1260 # read-modify-write cycle to perform policy updates in order to avoid race
1261 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1262 # systems are expected to put that etag in the request to `setIamPolicy` to
1263 # ensure that their change will be applied to the same version of the policy.
1264 #
1265 # **Important:** If you use IAM Conditions, you must include the `etag` field
1266 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1267 # you to overwrite a version `3` policy with a version `1` policy, and all of
1268 # the conditions in the version `3` policy are lost.
1269 &quot;version&quot;: 42, # Specifies the format of the policy.
1270 #
1271 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1272 # are rejected.
1273 #
1274 # Any operation that affects conditional role bindings must specify version
1275 # `3`. This requirement applies to the following operations:
1276 #
1277 # * Getting a policy that includes a conditional role binding
1278 # * Adding a conditional role binding to a policy
1279 # * Changing a conditional role binding in a policy
1280 # * Removing any role binding, with or without a condition, from a policy
1281 # that includes conditions
1282 #
1283 # **Important:** If you use IAM Conditions, you must include the `etag` field
1284 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1285 # you to overwrite a version `3` policy with a version `1` policy, and all of
1286 # the conditions in the version `3` policy are lost.
1287 #
1288 # If a policy does not include any conditions, operations on that policy may
1289 # specify any valid version or leave the field unset.
1290 #
1291 # To learn which resources support conditions in their IAM policies, see the
1292 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001293 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001294 # `condition` that determines how and when the `bindings` are applied. Each
1295 # of the `bindings` must contain at least one member.
1296 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1298 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001299 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1300 # `members` can have the following values:
1301 #
1302 # * `allUsers`: A special identifier that represents anyone who is
1303 # on the internet; with or without a Google account.
1304 #
1305 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1306 # who is authenticated with a Google account or a service account.
1307 #
1308 # * `user:{emailid}`: An email address that represents a specific Google
1309 # account. For example, `alice@example.com` .
1310 #
1311 #
1312 # * `serviceAccount:{emailid}`: An email address that represents a service
1313 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1314 #
1315 # * `group:{emailid}`: An email address that represents a Google group.
1316 # For example, `admins@example.com`.
1317 #
1318 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1319 # identifier) representing a user that has been recently deleted. For
1320 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1321 # recovered, this value reverts to `user:{emailid}` and the recovered user
1322 # retains the role in the binding.
1323 #
1324 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1325 # unique identifier) representing a service account that has been recently
1326 # deleted. For example,
1327 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1328 # If the service account is undeleted, this value reverts to
1329 # `serviceAccount:{emailid}` and the undeleted service account retains the
1330 # role in the binding.
1331 #
1332 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1333 # identifier) representing a Google group that has been recently
1334 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1335 # the group is recovered, this value reverts to `group:{emailid}` and the
1336 # recovered group retains the role in the binding.
1337 #
1338 #
1339 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1340 # users of that domain. For example, `google.com` or `example.com`.
1341 #
1342 &quot;A String&quot;,
1343 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001344 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1345 #
1346 # If the condition evaluates to `true`, then this binding applies to the
1347 # current request.
1348 #
1349 # If the condition evaluates to `false`, then this binding does not apply to
1350 # the current request. However, a different role binding might grant the same
1351 # role to one or more of the members in this binding.
1352 #
1353 # To learn which resources support conditions in their IAM policies, see the
1354 # [IAM
1355 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1356 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1357 # are documented at https://github.com/google/cel-spec.
1358 #
1359 # Example (Comparison):
1360 #
1361 # title: &quot;Summary size limit&quot;
1362 # description: &quot;Determines if a summary is less than 100 chars&quot;
1363 # expression: &quot;document.summary.size() &lt; 100&quot;
1364 #
1365 # Example (Equality):
1366 #
1367 # title: &quot;Requestor is owner&quot;
1368 # description: &quot;Determines if requestor is the document owner&quot;
1369 # expression: &quot;document.owner == request.auth.claims.email&quot;
1370 #
1371 # Example (Logic):
1372 #
1373 # title: &quot;Public documents&quot;
1374 # description: &quot;Determine whether the document should be publicly visible&quot;
1375 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1376 #
1377 # Example (Data Manipulation):
1378 #
1379 # title: &quot;Notification string&quot;
1380 # description: &quot;Create a notification string with a timestamp.&quot;
1381 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1382 #
1383 # The exact variables and functions that may be referenced within an expression
1384 # are determined by the service that evaluates it. See the service
1385 # documentation for additional information.
1386 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1387 # describes the expression, e.g. when hovered over it in a UI.
1388 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1389 # syntax.
1390 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1391 # its purpose. This can be used e.g. in UIs which allow to enter the
1392 # expression.
1393 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1394 # reporting, e.g. a file name and a position in the file.
1395 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001396 },
1397 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001398 }</pre>
1399</div>
1400
1401<div class="method">
1402 <code class="details" id="sync">sync(name, body=None, x__xgafv=None)</code>
1403 <pre>Synchronize a connected repo.
1404
1405The response contains SyncRepoMetadata in the metadata field.
1406
1407Args:
1408 name: string, The name of the repo to synchronize. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -07001409`projects/&lt;project&gt;/repos/&lt;repo&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001410 body: object, The request body.
1411 The object takes the form of:
1412
1413{ # Request for SyncRepo.
1414 }
1415
1416 x__xgafv: string, V1 error format.
1417 Allowed values
1418 1 - v1 error format
1419 2 - v2 error format
1420
1421Returns:
1422 An object of the form:
1423
1424 { # This resource represents a long-running operation that is the result of a
1425 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001426 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1427 # contains progress information and common metadata such as create time.
1428 # Some services might not provide such metadata. Any method that returns a
1429 # long-running operation should document the metadata type, if any.
1430 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1431 },
1432 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1433 # originally returns it. If you use the default HTTP mapping, the
1434 # `name` should be a resource name ending with `operations/{unique_id}`.
1435 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1436 # If `true`, the operation is completed, and either `error` or `response` is
1437 # available.
1438 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1439 # different programming environments, including REST APIs and RPC APIs. It is
1440 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1441 # three pieces of data: error code, error message, and error details.
1442 #
1443 # You can find out more about this error model and how to work with it in the
1444 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1445 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1446 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1447 # message types for APIs to use.
1448 {
1449 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1450 },
1451 ],
1452 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1453 # user-facing error message should be localized and sent in the
1454 # google.rpc.Status.details field, or localized by the client.
1455 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07001457 # method returns no data on success, such as `Delete`, the response is
1458 # `google.protobuf.Empty`. If the original method is standard
1459 # `Get`/`Create`/`Update`, the response should be the resource. For other
1460 # methods, the response should have the type `XxxResponse`, where `Xxx`
1461 # is the original method name. For example, if the original method name
1462 # is `TakeSnapshot()`, the inferred response type is
1463 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001465 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001466 }</pre>
1467</div>
1468
1469<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001470 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001471 <pre>Returns permissions that a caller has on the specified resource.
1472If the resource does not exist, this will return an empty set of
1473permissions, not a NOT_FOUND error.
1474
1475Args:
1476 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1477See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001478 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001479 The object takes the form of:
1480
1481{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001482 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1483 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001484 # information see
1485 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001486 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001487 ],
1488 }
1489
1490 x__xgafv: string, V1 error format.
1491 Allowed values
1492 1 - v1 error format
1493 2 - v2 error format
1494
1495Returns:
1496 An object of the form:
1497
1498 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001499 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001500 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001501 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001502 ],
1503 }</pre>
1504</div>
1505
1506</body></html>