blob: 22a65b93241fdddfa06f35b9c5350e67125349bc [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 Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(name, pageToken=None, pageSize=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;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 # Read-only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 # hosting service, for example GitHub or Bitbucket.
125 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
126 # Removing this key from the other service would deauthorize
127 # Google Cloud Source Repositories from mirroring.
128 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
129 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
130 # Removing this webhook from the other hosting service will stop
131 # Google Cloud Source Repositories from receiving notifications,
132 # and thereby disabling mirroring.
133 },
134 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
135 # Read-only field.
136 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
139 &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 -0700140 # messages. This service account needs to be in the same project as the
141 # PubsubConfig. When added, the caller needs to have
142 # iam.serviceAccounts.actAs permission on this service account. If
143 # unspecified, it defaults to the compute engine default service account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
145 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
146 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
147 # project as this config is in.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 },
149 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &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 -0700151 # returned by GetRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700153 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400154 # eg, `projects/myproject/repos/name/with/slash`
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;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 # Read-only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 # hosting service, for example GitHub or Bitbucket.
169 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
170 # Removing this key from the other service would deauthorize
171 # Google Cloud Source Repositories from mirroring.
172 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
173 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
174 # Removing this webhook from the other hosting service will stop
175 # Google Cloud Source Repositories from receiving notifications,
176 # and thereby disabling mirroring.
177 },
178 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
179 # Read-only field.
180 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
183 &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 -0700184 # messages. This service account needs to be in the same project as the
185 # PubsubConfig. When added, the caller needs to have
186 # iam.serviceAccounts.actAs permission on this service account. If
187 # unspecified, it defaults to the compute engine default service account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
189 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
190 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
191 # project as this config is in.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 },
193 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &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 -0700195 # returned by GetRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700197 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400198 # eg, `projects/myproject/repos/name/with/slash`
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;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 # Read-only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 # hosting service, for example GitHub or Bitbucket.
248 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
249 # Removing this key from the other service would deauthorize
250 # Google Cloud Source Repositories from mirroring.
251 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
252 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
253 # Removing this webhook from the other hosting service will stop
254 # Google Cloud Source Repositories from receiving notifications,
255 # and thereby disabling mirroring.
256 },
257 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
258 # Read-only field.
259 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700260 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
262 &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 -0700263 # messages. This service account needs to be in the same project as the
264 # PubsubConfig. When added, the caller needs to have
265 # iam.serviceAccounts.actAs permission on this service account. If
266 # unspecified, it defaults to the compute engine default service account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
268 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
269 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
270 # project as this config is in.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 },
272 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 &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 -0700274 # returned by GetRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700276 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400277 # eg, `projects/myproject/repos/name/with/slash`
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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400298 x__xgafv: string, V1 error format.
299 Allowed values
300 1 - v1 error format
301 2 - v2 error format
302
303Returns:
304 An object of the form:
305
Dan O'Mearadd494642020-05-01 07:42:23 -0700306 { # An Identity and Access Management (IAM) policy, which specifies access
307 # controls for Google Cloud resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400308 #
309 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700310 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
311 # `members` to a single `role`. Members can be user accounts, service accounts,
312 # Google groups, and domains (such as G Suite). A `role` is a named list of
313 # permissions; each `role` can be an IAM predefined role or a user-created
314 # custom role.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400315 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700316 # Optionally, a `binding` can specify a `condition`, which is a logical
317 # expression that allows access to a resource only if the expression evaluates
318 # to `true`. A condition can add constraints based on attributes of the
319 # request, the resource, or both.
320 #
321 # **JSON example:**
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400322 #
323 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 # &quot;bindings&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400325 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700326 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
327 # &quot;members&quot;: [
328 # &quot;user:mike@example.com&quot;,
329 # &quot;group:admins@example.com&quot;,
330 # &quot;domain:google.com&quot;,
331 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400332 # ]
333 # },
334 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
336 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
337 # &quot;condition&quot;: {
338 # &quot;title&quot;: &quot;expirable access&quot;,
339 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
340 # &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 -0700341 # }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400342 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700343 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
345 # &quot;version&quot;: 3
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400346 # }
347 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700348 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349 #
350 # bindings:
351 # - members:
352 # - user:mike@example.com
353 # - group:admins@example.com
354 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700355 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
356 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 # - user:eve@example.com
359 # role: roles/resourcemanager.organizationViewer
360 # condition:
361 # title: expirable access
362 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700364 # - etag: BwWWja0YfJA=
365 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700366 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400367 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700368 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
370 # prevent simultaneous updates of a policy from overwriting each other.
371 # It is strongly suggested that systems make use of the `etag` in the
372 # read-modify-write cycle to perform policy updates in order to avoid race
373 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
374 # systems are expected to put that etag in the request to `setIamPolicy` to
375 # ensure that their change will be applied to the same version of the policy.
376 #
377 # **Important:** If you use IAM Conditions, you must include the `etag` field
378 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
379 # you to overwrite a version `3` policy with a version `1` policy, and all of
380 # the conditions in the version `3` policy are lost.
381 &quot;version&quot;: 42, # Specifies the format of the policy.
382 #
383 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
384 # are rejected.
385 #
386 # Any operation that affects conditional role bindings must specify version
387 # `3`. This requirement applies to the following operations:
388 #
389 # * Getting a policy that includes a conditional role binding
390 # * Adding a conditional role binding to a policy
391 # * Changing a conditional role binding in a policy
392 # * Removing any role binding, with or without a condition, from a policy
393 # that includes conditions
394 #
395 # **Important:** If you use IAM Conditions, you must include the `etag` field
396 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
397 # you to overwrite a version `3` policy with a version `1` policy, and all of
398 # the conditions in the version `3` policy are lost.
399 #
400 # If a policy does not include any conditions, operations on that policy may
401 # specify any valid version or leave the field unset.
402 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
403 { # Specifies the audit configuration for a service.
404 # The configuration determines which permission types are logged, and what
405 # identities, if any, are exempted from logging.
406 # An AuditConfig must have one or more AuditLogConfigs.
407 #
408 # If there are AuditConfigs for both `allServices` and a specific service,
409 # the union of the two AuditConfigs is used for that service: the log_types
410 # specified in each AuditConfig are enabled, and the exempted_members in each
411 # AuditLogConfig are exempted.
412 #
413 # Example Policy with multiple AuditConfigs:
414 #
415 # {
416 # &quot;audit_configs&quot;: [
417 # {
418 # &quot;service&quot;: &quot;allServices&quot;
419 # &quot;audit_log_configs&quot;: [
420 # {
421 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
422 # &quot;exempted_members&quot;: [
423 # &quot;user:jose@example.com&quot;
424 # ]
425 # },
426 # {
427 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
428 # },
429 # {
430 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
431 # }
432 # ]
433 # },
434 # {
435 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
436 # &quot;audit_log_configs&quot;: [
437 # {
438 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
439 # },
440 # {
441 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
442 # &quot;exempted_members&quot;: [
443 # &quot;user:aliya@example.com&quot;
444 # ]
445 # }
446 # ]
447 # }
448 # ]
449 # }
450 #
451 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
452 # logging. It also exempts jose@example.com from DATA_READ logging, and
453 # aliya@example.com from DATA_WRITE logging.
454 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
455 { # Provides the configuration for logging a type of permissions.
456 # Example:
457 #
458 # {
459 # &quot;audit_log_configs&quot;: [
460 # {
461 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
462 # &quot;exempted_members&quot;: [
463 # &quot;user:jose@example.com&quot;
464 # ]
465 # },
466 # {
467 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
468 # }
469 # ]
470 # }
471 #
472 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
473 # jose@example.com from DATA_READ logging.
474 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
475 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
476 # permission.
477 # Follows the same format of Binding.members.
478 &quot;A String&quot;,
479 ],
480 },
481 ],
482 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
483 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
484 # `allServices` is a special value that covers all services.
485 },
486 ],
487 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700488 # `condition` that determines how and when the `bindings` are applied. Each
489 # of the `bindings` must contain at least one member.
490 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700491 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700492 # `members` can have the following values:
493 #
494 # * `allUsers`: A special identifier that represents anyone who is
495 # on the internet; with or without a Google account.
496 #
497 # * `allAuthenticatedUsers`: A special identifier that represents anyone
498 # who is authenticated with a Google account or a service account.
499 #
500 # * `user:{emailid}`: An email address that represents a specific Google
501 # account. For example, `alice@example.com` .
502 #
503 #
504 # * `serviceAccount:{emailid}`: An email address that represents a service
505 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
506 #
507 # * `group:{emailid}`: An email address that represents a Google group.
508 # For example, `admins@example.com`.
509 #
510 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
511 # identifier) representing a user that has been recently deleted. For
512 # example, `alice@example.com?uid=123456789012345678901`. If the user is
513 # recovered, this value reverts to `user:{emailid}` and the recovered user
514 # retains the role in the binding.
515 #
516 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
517 # unique identifier) representing a service account that has been recently
518 # deleted. For example,
519 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
520 # If the service account is undeleted, this value reverts to
521 # `serviceAccount:{emailid}` and the undeleted service account retains the
522 # role in the binding.
523 #
524 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
525 # identifier) representing a Google group that has been recently
526 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
527 # the group is recovered, this value reverts to `group:{emailid}` and the
528 # recovered group retains the role in the binding.
529 #
530 #
531 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
532 # users of that domain. For example, `google.com` or `example.com`.
533 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700535 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
537 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
538 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Dan O'Mearadd494642020-05-01 07:42:23 -0700539 # NOTE: An unsatisfied condition will not allow user access via current
540 # binding. Different bindings, including their conditions, are examined
541 # independently.
542 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
543 # are documented at https://github.com/google/cel-spec.
544 #
545 # Example (Comparison):
546 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 # title: &quot;Summary size limit&quot;
548 # description: &quot;Determines if a summary is less than 100 chars&quot;
549 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700550 #
551 # Example (Equality):
552 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 # title: &quot;Requestor is owner&quot;
554 # description: &quot;Determines if requestor is the document owner&quot;
555 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700556 #
557 # Example (Logic):
558 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 # title: &quot;Public documents&quot;
560 # description: &quot;Determine whether the document should be publicly visible&quot;
561 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700562 #
563 # Example (Data Manipulation):
564 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700565 # title: &quot;Notification string&quot;
566 # description: &quot;Create a notification string with a timestamp.&quot;
567 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700568 #
569 # The exact variables and functions that may be referenced within an expression
570 # are determined by the service that evaluates it. See the service
571 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -0700573 # its purpose. This can be used e.g. in UIs which allow to enter the
574 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
576 # reporting, e.g. a file name and a position in the file.
577 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
578 # describes the expression, e.g. when hovered over it in a UI.
579 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
580 # syntax.
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 },
582 },
583 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400584 }</pre>
585</div>
586
587<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 <code class="details" id="list">list(name, pageToken=None, pageSize=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400589 <pre>Returns all repos belonging to a project. The sizes of the repos are
590not set by ListRepos. To get the size of a repo, use GetRepo.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400591
592Args:
593 name: string, The project ID whose repos should be listed. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700594`projects/&lt;project&gt;`. (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400595 pageToken: string, Resume listing repositories where a prior ListReposResponse
596left off. This is an opaque token that must be obtained from
Bu Sun Kim65020912020-05-20 12:08:20 -0700597a recent, prior ListReposResponse&#x27;s next_page_token field.
598 pageSize: integer, Maximum number of repositories to return; between 1 and 500.
599If not set or zero, defaults to 100 at the server.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400600 x__xgafv: string, V1 error format.
601 Allowed values
602 1 - v1 error format
603 2 - v2 error format
604
605Returns:
606 An object of the form:
607
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400608 { # Response for ListRepos. The size is not set in the returned repositories.
Bu Sun Kim65020912020-05-20 12:08:20 -0700609 &quot;repos&quot;: [ # The listed repos.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400610 { # A repository (or repo) is a Git repository storing versioned source content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700611 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700612 # Read-only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 # hosting service, for example GitHub or Bitbucket.
614 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
615 # Removing this key from the other service would deauthorize
616 # Google Cloud Source Repositories from mirroring.
617 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
618 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
619 # Removing this webhook from the other hosting service will stop
620 # Google Cloud Source Repositories from receiving notifications,
621 # and thereby disabling mirroring.
622 },
623 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
624 # Read-only field.
625 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
628 &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 -0700629 # messages. This service account needs to be in the same project as the
630 # PubsubConfig. When added, the caller needs to have
631 # iam.serviceAccounts.actAs permission on this service account. If
632 # unspecified, it defaults to the compute engine default service account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700633 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
634 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
635 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
636 # project as this config is in.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 },
638 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &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 -0700640 # returned by GetRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700642 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400643 # eg, `projects/myproject/repos/name/with/slash`
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400644 },
645 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 &quot;nextPageToken&quot;: &quot;A String&quot;, # If non-empty, additional repositories exist within the project. These
647 # can be retrieved by including this value in the next ListReposRequest&#x27;s
648 # page_token field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400649 }</pre>
650</div>
651
652<div class="method">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400653 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
654 <pre>Retrieves the next page of results.
655
656Args:
657 previous_request: The request for the previous page. (required)
658 previous_response: The response from the request for the previous page. (required)
659
660Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700661 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400662 page. Returns None if there are no more items in the collection.
663 </pre>
664</div>
665
666<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700667 <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 <pre>Updates information about a repo.
669
670Args:
671 name: string, The name of the requested repository. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700672`projects/&lt;project&gt;/repos/&lt;repo&gt;`. (required)
673 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700674 The object takes the form of:
675
676{ # Request for UpdateRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700677 &quot;repo&quot;: { # A repository (or repo) is a Git repository storing versioned source content. # The new configuration for the repository.
678 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679 # Read-only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 # hosting service, for example GitHub or Bitbucket.
681 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
682 # Removing this key from the other service would deauthorize
683 # Google Cloud Source Repositories from mirroring.
684 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
685 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
686 # Removing this webhook from the other hosting service will stop
687 # Google Cloud Source Repositories from receiving notifications,
688 # and thereby disabling mirroring.
689 },
690 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
691 # Read-only field.
692 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700693 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700694 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
695 &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 -0700696 # messages. This service account needs to be in the same project as the
697 # PubsubConfig. When added, the caller needs to have
698 # iam.serviceAccounts.actAs permission on this service account. If
699 # unspecified, it defaults to the compute engine default service account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
701 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
702 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
703 # project as this config is in.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700704 },
705 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700706 &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 -0700707 # returned by GetRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700709 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700710 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700711 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 &quot;updateMask&quot;: &quot;A String&quot;, # A FieldMask specifying which fields of the repo to modify. Only the fields
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 # in the mask will be modified. If no mask is provided, this request is
714 # no-op.
715 }
716
717 x__xgafv: string, V1 error format.
718 Allowed values
719 1 - v1 error format
720 2 - v2 error format
721
722Returns:
723 An object of the form:
724
725 { # A repository (or repo) is a Git repository storing versioned source content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700726 &quot;mirrorConfig&quot;: { # Configuration to automatically mirror a repository from another # How this repository mirrors a repository managed by another service.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700727 # Read-only field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700728 # hosting service, for example GitHub or Bitbucket.
729 &quot;deployKeyId&quot;: &quot;A String&quot;, # ID of the SSH deploy key at the other hosting service.
730 # Removing this key from the other service would deauthorize
731 # Google Cloud Source Repositories from mirroring.
732 &quot;url&quot;: &quot;A String&quot;, # URL of the main repository at the other hosting service.
733 &quot;webhookId&quot;: &quot;A String&quot;, # ID of the webhook listening to updates to trigger mirroring.
734 # Removing this webhook from the other hosting service will stop
735 # Google Cloud Source Repositories from receiving notifications,
736 # and thereby disabling mirroring.
737 },
738 &quot;url&quot;: &quot;A String&quot;, # URL to clone the repository from Google Cloud Source Repositories.
739 # Read-only field.
740 &quot;pubsubConfigs&quot;: { # How this repository publishes a change in the repository through Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700741 # Pub/Sub. Keyed by the topic names.
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 &quot;a_key&quot;: { # Configuration to publish a Cloud Pub/Sub message.
743 &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 -0700744 # messages. This service account needs to be in the same project as the
745 # PubsubConfig. When added, the caller needs to have
746 # iam.serviceAccounts.actAs permission on this service account. If
747 # unspecified, it defaults to the compute engine default service account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 &quot;messageFormat&quot;: &quot;A String&quot;, # The format of the Cloud Pub/Sub messages.
749 &quot;topic&quot;: &quot;A String&quot;, # A topic of Cloud Pub/Sub. Values are of the form
750 # `projects/&lt;project&gt;/topics/&lt;topic&gt;`. The project needs to be the same
751 # project as this config is in.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700752 },
753 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700754 &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 -0700755 # returned by GetRepo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &quot;name&quot;: &quot;A String&quot;, # Resource name of the repository, of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700757 # `projects/&lt;project&gt;/repos/&lt;repo&gt;`. The repo name may contain slashes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700758 # eg, `projects/myproject/repos/name/with/slash`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700759 }</pre>
760</div>
761
762<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700763 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400764 <pre>Sets the access control policy on the specified resource. Replaces any
765existing policy.
766
767Args:
768 resource: string, REQUIRED: The resource for which the policy is being specified.
769See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700770 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400771 The object takes the form of:
772
773{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 &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 -0400775 # the policy is limited to a few 10s of KB. An empty policy is a
776 # valid policy but certain Cloud Platform services (such as Projects)
777 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700778 # controls for Google Cloud resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400779 #
780 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700781 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
782 # `members` to a single `role`. Members can be user accounts, service accounts,
783 # Google groups, and domains (such as G Suite). A `role` is a named list of
784 # permissions; each `role` can be an IAM predefined role or a user-created
785 # custom role.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400786 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700787 # Optionally, a `binding` can specify a `condition`, which is a logical
788 # expression that allows access to a resource only if the expression evaluates
789 # to `true`. A condition can add constraints based on attributes of the
790 # request, the resource, or both.
791 #
792 # **JSON example:**
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400793 #
794 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 # &quot;bindings&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400796 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700797 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
798 # &quot;members&quot;: [
799 # &quot;user:mike@example.com&quot;,
800 # &quot;group:admins@example.com&quot;,
801 # &quot;domain:google.com&quot;,
802 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400803 # ]
804 # },
805 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
807 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
808 # &quot;condition&quot;: {
809 # &quot;title&quot;: &quot;expirable access&quot;,
810 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
811 # &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 -0700812 # }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400813 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700814 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700815 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
816 # &quot;version&quot;: 3
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400817 # }
818 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700819 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 #
821 # bindings:
822 # - members:
823 # - user:mike@example.com
824 # - group:admins@example.com
825 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700826 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
827 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700828 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700829 # - user:eve@example.com
830 # role: roles/resourcemanager.organizationViewer
831 # condition:
832 # title: expirable access
833 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700835 # - etag: BwWWja0YfJA=
836 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700837 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400838 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700839 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
841 # prevent simultaneous updates of a policy from overwriting each other.
842 # It is strongly suggested that systems make use of the `etag` in the
843 # read-modify-write cycle to perform policy updates in order to avoid race
844 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
845 # systems are expected to put that etag in the request to `setIamPolicy` to
846 # ensure that their change will be applied to the same version of the policy.
847 #
848 # **Important:** If you use IAM Conditions, you must include the `etag` field
849 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
850 # you to overwrite a version `3` policy with a version `1` policy, and all of
851 # the conditions in the version `3` policy are lost.
852 &quot;version&quot;: 42, # Specifies the format of the policy.
853 #
854 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
855 # are rejected.
856 #
857 # Any operation that affects conditional role bindings must specify version
858 # `3`. This requirement applies to the following operations:
859 #
860 # * Getting a policy that includes a conditional role binding
861 # * Adding a conditional role binding to a policy
862 # * Changing a conditional role binding in a policy
863 # * Removing any role binding, with or without a condition, from a policy
864 # that includes conditions
865 #
866 # **Important:** If you use IAM Conditions, you must include the `etag` field
867 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
868 # you to overwrite a version `3` policy with a version `1` policy, and all of
869 # the conditions in the version `3` policy are lost.
870 #
871 # If a policy does not include any conditions, operations on that policy may
872 # specify any valid version or leave the field unset.
873 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
874 { # Specifies the audit configuration for a service.
875 # The configuration determines which permission types are logged, and what
876 # identities, if any, are exempted from logging.
877 # An AuditConfig must have one or more AuditLogConfigs.
878 #
879 # If there are AuditConfigs for both `allServices` and a specific service,
880 # the union of the two AuditConfigs is used for that service: the log_types
881 # specified in each AuditConfig are enabled, and the exempted_members in each
882 # AuditLogConfig are exempted.
883 #
884 # Example Policy with multiple AuditConfigs:
885 #
886 # {
887 # &quot;audit_configs&quot;: [
888 # {
889 # &quot;service&quot;: &quot;allServices&quot;
890 # &quot;audit_log_configs&quot;: [
891 # {
892 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
893 # &quot;exempted_members&quot;: [
894 # &quot;user:jose@example.com&quot;
895 # ]
896 # },
897 # {
898 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
899 # },
900 # {
901 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
902 # }
903 # ]
904 # },
905 # {
906 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
907 # &quot;audit_log_configs&quot;: [
908 # {
909 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
910 # },
911 # {
912 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
913 # &quot;exempted_members&quot;: [
914 # &quot;user:aliya@example.com&quot;
915 # ]
916 # }
917 # ]
918 # }
919 # ]
920 # }
921 #
922 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
923 # logging. It also exempts jose@example.com from DATA_READ logging, and
924 # aliya@example.com from DATA_WRITE logging.
925 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
926 { # Provides the configuration for logging a type of permissions.
927 # Example:
928 #
929 # {
930 # &quot;audit_log_configs&quot;: [
931 # {
932 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
933 # &quot;exempted_members&quot;: [
934 # &quot;user:jose@example.com&quot;
935 # ]
936 # },
937 # {
938 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
939 # }
940 # ]
941 # }
942 #
943 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
944 # jose@example.com from DATA_READ logging.
945 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
946 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
947 # permission.
948 # Follows the same format of Binding.members.
949 &quot;A String&quot;,
950 ],
951 },
952 ],
953 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
954 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
955 # `allServices` is a special value that covers all services.
956 },
957 ],
958 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700959 # `condition` that determines how and when the `bindings` are applied. Each
960 # of the `bindings` must contain at least one member.
961 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700962 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700963 # `members` can have the following values:
964 #
965 # * `allUsers`: A special identifier that represents anyone who is
966 # on the internet; with or without a Google account.
967 #
968 # * `allAuthenticatedUsers`: A special identifier that represents anyone
969 # who is authenticated with a Google account or a service account.
970 #
971 # * `user:{emailid}`: An email address that represents a specific Google
972 # account. For example, `alice@example.com` .
973 #
974 #
975 # * `serviceAccount:{emailid}`: An email address that represents a service
976 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
977 #
978 # * `group:{emailid}`: An email address that represents a Google group.
979 # For example, `admins@example.com`.
980 #
981 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
982 # identifier) representing a user that has been recently deleted. For
983 # example, `alice@example.com?uid=123456789012345678901`. If the user is
984 # recovered, this value reverts to `user:{emailid}` and the recovered user
985 # retains the role in the binding.
986 #
987 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
988 # unique identifier) representing a service account that has been recently
989 # deleted. For example,
990 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
991 # If the service account is undeleted, this value reverts to
992 # `serviceAccount:{emailid}` and the undeleted service account retains the
993 # role in the binding.
994 #
995 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
996 # identifier) representing a Google group that has been recently
997 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
998 # the group is recovered, this value reverts to `group:{emailid}` and the
999 # recovered group retains the role in the binding.
1000 #
1001 #
1002 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1003 # users of that domain. For example, `google.com` or `example.com`.
1004 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001006 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1008 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1009 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Dan O'Mearadd494642020-05-01 07:42:23 -07001010 # NOTE: An unsatisfied condition will not allow user access via current
1011 # binding. Different bindings, including their conditions, are examined
1012 # independently.
1013 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1014 # are documented at https://github.com/google/cel-spec.
1015 #
1016 # Example (Comparison):
1017 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 # title: &quot;Summary size limit&quot;
1019 # description: &quot;Determines if a summary is less than 100 chars&quot;
1020 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001021 #
1022 # Example (Equality):
1023 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001024 # title: &quot;Requestor is owner&quot;
1025 # description: &quot;Determines if requestor is the document owner&quot;
1026 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001027 #
1028 # Example (Logic):
1029 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001030 # title: &quot;Public documents&quot;
1031 # description: &quot;Determine whether the document should be publicly visible&quot;
1032 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001033 #
1034 # Example (Data Manipulation):
1035 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 # title: &quot;Notification string&quot;
1037 # description: &quot;Create a notification string with a timestamp.&quot;
1038 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001039 #
1040 # The exact variables and functions that may be referenced within an expression
1041 # are determined by the service that evaluates it. See the service
1042 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -07001044 # its purpose. This can be used e.g. in UIs which allow to enter the
1045 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1047 # reporting, e.g. a file name and a position in the file.
1048 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1049 # describes the expression, e.g. when hovered over it in a UI.
1050 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1051 # syntax.
Dan O'Mearadd494642020-05-01 07:42:23 -07001052 },
1053 },
1054 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001055 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001056 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001057 # the fields in the mask will be modified. If no mask is provided, the
1058 # following default mask is used:
Dan O'Mearadd494642020-05-01 07:42:23 -07001059 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001060 # `paths: &quot;bindings, etag&quot;`
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001061 }
1062
1063 x__xgafv: string, V1 error format.
1064 Allowed values
1065 1 - v1 error format
1066 2 - v2 error format
1067
1068Returns:
1069 An object of the form:
1070
Dan O'Mearadd494642020-05-01 07:42:23 -07001071 { # An Identity and Access Management (IAM) policy, which specifies access
1072 # controls for Google Cloud resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001073 #
1074 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001075 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1076 # `members` to a single `role`. Members can be user accounts, service accounts,
1077 # Google groups, and domains (such as G Suite). A `role` is a named list of
1078 # permissions; each `role` can be an IAM predefined role or a user-created
1079 # custom role.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001080 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001081 # Optionally, a `binding` can specify a `condition`, which is a logical
1082 # expression that allows access to a resource only if the expression evaluates
1083 # to `true`. A condition can add constraints based on attributes of the
1084 # request, the resource, or both.
1085 #
1086 # **JSON example:**
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001087 #
1088 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001089 # &quot;bindings&quot;: [
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001090 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001091 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1092 # &quot;members&quot;: [
1093 # &quot;user:mike@example.com&quot;,
1094 # &quot;group:admins@example.com&quot;,
1095 # &quot;domain:google.com&quot;,
1096 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001097 # ]
1098 # },
1099 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1101 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
1102 # &quot;condition&quot;: {
1103 # &quot;title&quot;: &quot;expirable access&quot;,
1104 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1105 # &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 -07001106 # }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001107 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001108 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001109 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1110 # &quot;version&quot;: 3
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001111 # }
1112 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001113 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001114 #
1115 # bindings:
1116 # - members:
1117 # - user:mike@example.com
1118 # - group:admins@example.com
1119 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001120 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1121 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001122 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001123 # - user:eve@example.com
1124 # role: roles/resourcemanager.organizationViewer
1125 # condition:
1126 # title: expirable access
1127 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001128 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001129 # - etag: BwWWja0YfJA=
1130 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001131 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001132 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001133 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001134 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1135 # prevent simultaneous updates of a policy from overwriting each other.
1136 # It is strongly suggested that systems make use of the `etag` in the
1137 # read-modify-write cycle to perform policy updates in order to avoid race
1138 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1139 # systems are expected to put that etag in the request to `setIamPolicy` to
1140 # ensure that their change will be applied to the same version of the policy.
1141 #
1142 # **Important:** If you use IAM Conditions, you must include the `etag` field
1143 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1144 # you to overwrite a version `3` policy with a version `1` policy, and all of
1145 # the conditions in the version `3` policy are lost.
1146 &quot;version&quot;: 42, # Specifies the format of the policy.
1147 #
1148 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1149 # are rejected.
1150 #
1151 # Any operation that affects conditional role bindings must specify version
1152 # `3`. This requirement applies to the following operations:
1153 #
1154 # * Getting a policy that includes a conditional role binding
1155 # * Adding a conditional role binding to a policy
1156 # * Changing a conditional role binding in a policy
1157 # * Removing any role binding, with or without a condition, from a policy
1158 # that includes conditions
1159 #
1160 # **Important:** If you use IAM Conditions, you must include the `etag` field
1161 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1162 # you to overwrite a version `3` policy with a version `1` policy, and all of
1163 # the conditions in the version `3` policy are lost.
1164 #
1165 # If a policy does not include any conditions, operations on that policy may
1166 # specify any valid version or leave the field unset.
1167 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1168 { # Specifies the audit configuration for a service.
1169 # The configuration determines which permission types are logged, and what
1170 # identities, if any, are exempted from logging.
1171 # An AuditConfig must have one or more AuditLogConfigs.
1172 #
1173 # If there are AuditConfigs for both `allServices` and a specific service,
1174 # the union of the two AuditConfigs is used for that service: the log_types
1175 # specified in each AuditConfig are enabled, and the exempted_members in each
1176 # AuditLogConfig are exempted.
1177 #
1178 # Example Policy with multiple AuditConfigs:
1179 #
1180 # {
1181 # &quot;audit_configs&quot;: [
1182 # {
1183 # &quot;service&quot;: &quot;allServices&quot;
1184 # &quot;audit_log_configs&quot;: [
1185 # {
1186 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1187 # &quot;exempted_members&quot;: [
1188 # &quot;user:jose@example.com&quot;
1189 # ]
1190 # },
1191 # {
1192 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1193 # },
1194 # {
1195 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1196 # }
1197 # ]
1198 # },
1199 # {
1200 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1201 # &quot;audit_log_configs&quot;: [
1202 # {
1203 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1204 # },
1205 # {
1206 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1207 # &quot;exempted_members&quot;: [
1208 # &quot;user:aliya@example.com&quot;
1209 # ]
1210 # }
1211 # ]
1212 # }
1213 # ]
1214 # }
1215 #
1216 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1217 # logging. It also exempts jose@example.com from DATA_READ logging, and
1218 # aliya@example.com from DATA_WRITE logging.
1219 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1220 { # Provides the configuration for logging a type of permissions.
1221 # Example:
1222 #
1223 # {
1224 # &quot;audit_log_configs&quot;: [
1225 # {
1226 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1227 # &quot;exempted_members&quot;: [
1228 # &quot;user:jose@example.com&quot;
1229 # ]
1230 # },
1231 # {
1232 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1233 # }
1234 # ]
1235 # }
1236 #
1237 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1238 # jose@example.com from DATA_READ logging.
1239 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1240 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1241 # permission.
1242 # Follows the same format of Binding.members.
1243 &quot;A String&quot;,
1244 ],
1245 },
1246 ],
1247 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1248 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1249 # `allServices` is a special value that covers all services.
1250 },
1251 ],
1252 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001253 # `condition` that determines how and when the `bindings` are applied. Each
1254 # of the `bindings` must contain at least one member.
1255 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001256 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001257 # `members` can have the following values:
1258 #
1259 # * `allUsers`: A special identifier that represents anyone who is
1260 # on the internet; with or without a Google account.
1261 #
1262 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1263 # who is authenticated with a Google account or a service account.
1264 #
1265 # * `user:{emailid}`: An email address that represents a specific Google
1266 # account. For example, `alice@example.com` .
1267 #
1268 #
1269 # * `serviceAccount:{emailid}`: An email address that represents a service
1270 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1271 #
1272 # * `group:{emailid}`: An email address that represents a Google group.
1273 # For example, `admins@example.com`.
1274 #
1275 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1276 # identifier) representing a user that has been recently deleted. For
1277 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1278 # recovered, this value reverts to `user:{emailid}` and the recovered user
1279 # retains the role in the binding.
1280 #
1281 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1282 # unique identifier) representing a service account that has been recently
1283 # deleted. For example,
1284 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1285 # If the service account is undeleted, this value reverts to
1286 # `serviceAccount:{emailid}` and the undeleted service account retains the
1287 # role in the binding.
1288 #
1289 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1290 # identifier) representing a Google group that has been recently
1291 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1292 # the group is recovered, this value reverts to `group:{emailid}` and the
1293 # recovered group retains the role in the binding.
1294 #
1295 #
1296 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1297 # users of that domain. For example, `google.com` or `example.com`.
1298 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001300 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001301 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1302 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1303 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
Dan O'Mearadd494642020-05-01 07:42:23 -07001304 # NOTE: An unsatisfied condition will not allow user access via current
1305 # binding. Different bindings, including their conditions, are examined
1306 # independently.
1307 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1308 # are documented at https://github.com/google/cel-spec.
1309 #
1310 # Example (Comparison):
1311 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 # title: &quot;Summary size limit&quot;
1313 # description: &quot;Determines if a summary is less than 100 chars&quot;
1314 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001315 #
1316 # Example (Equality):
1317 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 # title: &quot;Requestor is owner&quot;
1319 # description: &quot;Determines if requestor is the document owner&quot;
1320 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001321 #
1322 # Example (Logic):
1323 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 # title: &quot;Public documents&quot;
1325 # description: &quot;Determine whether the document should be publicly visible&quot;
1326 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001327 #
1328 # Example (Data Manipulation):
1329 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001330 # title: &quot;Notification string&quot;
1331 # description: &quot;Create a notification string with a timestamp.&quot;
1332 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001333 #
1334 # The exact variables and functions that may be referenced within an expression
1335 # are determined by the service that evaluates it. See the service
1336 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -07001338 # its purpose. This can be used e.g. in UIs which allow to enter the
1339 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1341 # reporting, e.g. a file name and a position in the file.
1342 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1343 # describes the expression, e.g. when hovered over it in a UI.
1344 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1345 # syntax.
Dan O'Mearadd494642020-05-01 07:42:23 -07001346 },
1347 },
1348 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001349 }</pre>
1350</div>
1351
1352<div class="method">
1353 <code class="details" id="sync">sync(name, body=None, x__xgafv=None)</code>
1354 <pre>Synchronize a connected repo.
1355
1356The response contains SyncRepoMetadata in the metadata field.
1357
1358Args:
1359 name: string, The name of the repo to synchronize. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -07001360`projects/&lt;project&gt;/repos/&lt;repo&gt;`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001361 body: object, The request body.
1362 The object takes the form of:
1363
1364{ # Request for SyncRepo.
1365 }
1366
1367 x__xgafv: string, V1 error format.
1368 Allowed values
1369 1 - v1 error format
1370 2 - v2 error format
1371
1372Returns:
1373 An object of the form:
1374
1375 { # This resource represents a long-running operation that is the result of a
1376 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001378 # contains progress information and common metadata such as create time.
1379 # Some services might not provide such metadata. Any method that returns a
1380 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -07001381 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001382 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -07001384 # If `true`, the operation is completed, and either `error` or `response` is
1385 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001386 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07001387 # method returns no data on success, such as `Delete`, the response is
1388 # `google.protobuf.Empty`. If the original method is standard
1389 # `Get`/`Create`/`Update`, the response should be the resource. For other
1390 # methods, the response should have the type `XxxResponse`, where `Xxx`
1391 # is the original method name. For example, if the original method name
1392 # is `TakeSnapshot()`, the inferred response type is
1393 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001395 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -07001397 # originally returns it. If you use the default HTTP mapping, the
1398 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001399 &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.
1400 # different programming environments, including REST APIs and RPC APIs. It is
1401 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1402 # three pieces of data: error code, error message, and error details.
1403 #
1404 # You can find out more about this error model and how to work with it in the
1405 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1406 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1407 # user-facing error message should be localized and sent in the
1408 # google.rpc.Status.details field, or localized by the client.
1409 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1410 # message types for APIs to use.
1411 {
1412 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1413 },
1414 ],
1415 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1416 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001417 }</pre>
1418</div>
1419
1420<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001421 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001422 <pre>Returns permissions that a caller has on the specified resource.
1423If the resource does not exist, this will return an empty set of
1424permissions, not a NOT_FOUND error.
1425
1426Args:
1427 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1428See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001429 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001430 The object takes the form of:
1431
1432{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001433 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1434 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001435 # information see
1436 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001437 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001438 ],
1439 }
1440
1441 x__xgafv: string, V1 error format.
1442 Allowed values
1443 1 - v1 error format
1444 2 - v2 error format
1445
1446Returns:
1447 An object of the form:
1448
1449 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001450 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001451 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001452 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001453 ],
1454 }</pre>
1455</div>
1456
1457</body></html>