blob: af203e53e6eb7fe19cde904ee3eec73681a14d9a [file] [log] [blame]
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="cloudresourcemanager_v1beta1.html">Cloud Resource Manager API</a> . <a href="cloudresourcemanager_v1beta1.projects.html">projects</a></h1>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(body=None, useLegacyStack=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080079<p class="firstline">Creates a Project resource.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000080<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070081 <code><a href="#delete">delete(projectId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080082<p class="firstline">Marks the Project identified by the specified</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000083<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070084 <code><a href="#get">get(projectId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080085<p class="firstline">Retrieves the Project identified by the specified</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000086<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#getAncestry">getAncestry(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080088<p class="firstline">Gets a list of ancestors in the resource hierarchy for the Project</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070089<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080091<p class="firstline">Returns the IAM access control policy for the specified Project.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070092<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 <code><a href="#list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Lists Projects that the caller has the `resourcemanager.projects.get`</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000095<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</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>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100<p class="firstline">Sets the IAM access control policy for the specified Project.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800103<p class="firstline">Returns permissions that a caller has on the specified Project.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700104<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105 <code><a href="#undelete">undelete(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800106<p class="firstline">Restores the Project identified by the specified</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#update">update(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800109<p class="firstline">Updates the attributes of the Project identified by the specified</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000110<h3>Method Details</h3>
111<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code class="details" id="create">create(body=None, useLegacyStack=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800113 <pre>Creates a Project resource.
114
115Initially, the Project resource is owned by its creator exclusively.
116The creator can later grant permission to others to read or update the
117Project.
118
119Several APIs are activated automatically for the Project, including
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120Google Cloud Storage. The parent is identified by a specified
121ResourceId, which must include both an ID and a type, such as
122project, folder, or organization.
123
124This method does not associate the new project with a billing account.
125You can set or update the billing account associated with a project using
126the [`projects.updateBillingInfo`]
127(/billing/reference/rest/v1/projects/updateBillingInfo) method.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000128
129Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 body: object, The request body.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000131 The object takes the form of:
132
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800133{ # A Project is a high-level Google Cloud Platform entity. It is a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400134 # container for ACLs, APIs, App Engine Apps, VMs, and other
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800135 # Google Cloud Platform resources.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700136 &quot;projectId&quot;: &quot;A String&quot;, # The unique, user-assigned ID of the Project.
137 # It must be 6 to 30 lowercase letters, digits, or hyphens.
138 # It must start with a letter.
139 # Trailing hyphens are prohibited.
140 #
141 # Example: &lt;code&gt;tokyo-rain-123&lt;/code&gt;
142 # Read-only after creation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700143 &quot;labels&quot;: { # The labels associated with this Project.
144 #
145 # Label keys must be between 1 and 63 characters long and must conform
146 # to the following regular expression: a-z{0,62}.
147 #
148 # Label values must be between 0 and 63 characters long and must conform
149 # to the regular expression [a-z0-9_-]{0,63}. A label value can be empty.
150 #
151 # No more than 256 labels can be associated with a given resource.
152 #
153 # Clients should store labels in a representation such as JSON that does not
154 # depend on specific characters being disallowed.
155 #
156 # Example: &lt;code&gt;&quot;environment&quot; : &quot;dev&quot;&lt;/code&gt;
157 # Read-write.
158 &quot;a_key&quot;: &quot;A String&quot;,
159 },
160 &quot;createTime&quot;: &quot;A String&quot;, # Creation time.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800161 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 # Read-only.
163 &quot;projectNumber&quot;: &quot;A String&quot;, # The number uniquely identifying the project.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800164 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 # Example: &lt;code&gt;415104041262&lt;/code&gt;
166 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;lifecycleState&quot;: &quot;A String&quot;, # The Project lifecycle state.
168 #
169 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;parent&quot;: { # A container to reference an id for any resource type. A `resource` in Google # An optional reference to a parent Resource.
171 #
172 # Supported parent types include &quot;organization&quot; and &quot;folder&quot;. Once set, the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 # parent cannot be cleared. The `parent` can be set on creation or using the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800174 # `UpdateProject` method; the end user must have the
175 # `resourcemanager.projects.create` permission on the parent.
176 #
177 # Read-write.
178 # Cloud Platform is a generic term for something you (a developer) may want to
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 # interact with through one of our API&#x27;s. Some examples are an App Engine app,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800180 # a Compute Engine instance, a Cloud SQL database, and so on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;id&quot;: &quot;A String&quot;, # Required field for the type-specific id. This should correspond to the id
182 # used in the type-specific API&#x27;s.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700183 &quot;type&quot;: &quot;A String&quot;, # Required field representing the resource type this id is for.
184 # At present, the valid types are &quot;project&quot;, &quot;folder&quot;, and &quot;organization&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700185 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700186 &quot;name&quot;: &quot;A String&quot;, # The optional user-assigned display name of the Project.
187 # When present it must be between 4 to 30 characters.
188 # Allowed characters are: lowercase and uppercase letters, numbers,
189 # hyphen, single-quote, double-quote, space, and exclamation point.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700190 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700191 # Example: &lt;code&gt;My Project&lt;/code&gt;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800192 # Read-write.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000193}
194
Dan O'Mearadd494642020-05-01 07:42:23 -0700195 useLegacyStack: boolean, A now unused experiment opt-out option.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000196 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800197 Allowed values
198 1 - v1 error format
199 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000200
201Returns:
202 An object of the form:
203
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800204 { # A Project is a high-level Google Cloud Platform entity. It is a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400205 # container for ACLs, APIs, App Engine Apps, VMs, and other
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800206 # Google Cloud Platform resources.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700207 &quot;projectId&quot;: &quot;A String&quot;, # The unique, user-assigned ID of the Project.
208 # It must be 6 to 30 lowercase letters, digits, or hyphens.
209 # It must start with a letter.
210 # Trailing hyphens are prohibited.
211 #
212 # Example: &lt;code&gt;tokyo-rain-123&lt;/code&gt;
213 # Read-only after creation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700214 &quot;labels&quot;: { # The labels associated with this Project.
215 #
216 # Label keys must be between 1 and 63 characters long and must conform
217 # to the following regular expression: a-z{0,62}.
218 #
219 # Label values must be between 0 and 63 characters long and must conform
220 # to the regular expression [a-z0-9_-]{0,63}. A label value can be empty.
221 #
222 # No more than 256 labels can be associated with a given resource.
223 #
224 # Clients should store labels in a representation such as JSON that does not
225 # depend on specific characters being disallowed.
226 #
227 # Example: &lt;code&gt;&quot;environment&quot; : &quot;dev&quot;&lt;/code&gt;
228 # Read-write.
229 &quot;a_key&quot;: &quot;A String&quot;,
230 },
231 &quot;createTime&quot;: &quot;A String&quot;, # Creation time.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800232 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 # Read-only.
234 &quot;projectNumber&quot;: &quot;A String&quot;, # The number uniquely identifying the project.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800235 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 # Example: &lt;code&gt;415104041262&lt;/code&gt;
237 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700238 &quot;lifecycleState&quot;: &quot;A String&quot;, # The Project lifecycle state.
239 #
240 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;parent&quot;: { # A container to reference an id for any resource type. A `resource` in Google # An optional reference to a parent Resource.
242 #
243 # Supported parent types include &quot;organization&quot; and &quot;folder&quot;. Once set, the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 # parent cannot be cleared. The `parent` can be set on creation or using the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800245 # `UpdateProject` method; the end user must have the
246 # `resourcemanager.projects.create` permission on the parent.
247 #
248 # Read-write.
249 # Cloud Platform is a generic term for something you (a developer) may want to
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 # interact with through one of our API&#x27;s. Some examples are an App Engine app,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800251 # a Compute Engine instance, a Cloud SQL database, and so on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;id&quot;: &quot;A String&quot;, # Required field for the type-specific id. This should correspond to the id
253 # used in the type-specific API&#x27;s.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 &quot;type&quot;: &quot;A String&quot;, # Required field representing the resource type this id is for.
255 # At present, the valid types are &quot;project&quot;, &quot;folder&quot;, and &quot;organization&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700256 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700257 &quot;name&quot;: &quot;A String&quot;, # The optional user-assigned display name of the Project.
258 # When present it must be between 4 to 30 characters.
259 # Allowed characters are: lowercase and uppercase letters, numbers,
260 # hyphen, single-quote, double-quote, space, and exclamation point.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700261 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700262 # Example: &lt;code&gt;My Project&lt;/code&gt;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800263 # Read-write.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000264 }</pre>
265</div>
266
267<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700268 <code class="details" id="delete">delete(projectId, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800269 <pre>Marks the Project identified by the specified
270`project_id` (for example, `my-project-123`) for deletion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271This method will only affect the Project if it has a lifecycle state of
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800272ACTIVE.
273
Bu Sun Kim65020912020-05-20 12:08:20 -0700274This method changes the Project&#x27;s lifecycle state from
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800275ACTIVE
276to DELETE_REQUESTED.
277The deletion starts at an unspecified time, at which point the project is
278no longer accessible.
279
280Until the deletion completes, you can check the lifecycle state
281checked by retrieving the Project with GetProject,
282and the Project remains visible to ListProjects.
283However, you cannot update the project.
284
285After the deletion completes, the Project is not retrievable by
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286the GetProject
287and ListProjects
288methods.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800289
290The caller must have modify permissions for this Project.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000291
292Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800293 projectId: string, The Project ID (for example, `foo-bar-123`).
294
295Required. (required)
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000296 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800297 Allowed values
298 1 - v1 error format
299 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000300
301Returns:
302 An object of the form:
303
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800304 { # A generic empty message that you can re-use to avoid defining duplicated
305 # empty messages in your APIs. A typical example is to use it as the request
306 # or the response type of an API method. For instance:
307 #
308 # service Foo {
309 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
310 # }
311 #
312 # The JSON representation for `Empty` is empty JSON object `{}`.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000313 }</pre>
314</div>
315
316<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700317 <code class="details" id="get">get(projectId, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800318 <pre>Retrieves the Project identified by the specified
319`project_id` (for example, `my-project-123`).
320
321The caller must have read permissions for this Project.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000322
323Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800324 projectId: string, The Project ID (for example, `my-project-123`).
325
326Required. (required)
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000327 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800328 Allowed values
329 1 - v1 error format
330 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000331
332Returns:
333 An object of the form:
334
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800335 { # A Project is a high-level Google Cloud Platform entity. It is a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400336 # container for ACLs, APIs, App Engine Apps, VMs, and other
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800337 # Google Cloud Platform resources.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700338 &quot;projectId&quot;: &quot;A String&quot;, # The unique, user-assigned ID of the Project.
339 # It must be 6 to 30 lowercase letters, digits, or hyphens.
340 # It must start with a letter.
341 # Trailing hyphens are prohibited.
342 #
343 # Example: &lt;code&gt;tokyo-rain-123&lt;/code&gt;
344 # Read-only after creation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700345 &quot;labels&quot;: { # The labels associated with this Project.
346 #
347 # Label keys must be between 1 and 63 characters long and must conform
348 # to the following regular expression: a-z{0,62}.
349 #
350 # Label values must be between 0 and 63 characters long and must conform
351 # to the regular expression [a-z0-9_-]{0,63}. A label value can be empty.
352 #
353 # No more than 256 labels can be associated with a given resource.
354 #
355 # Clients should store labels in a representation such as JSON that does not
356 # depend on specific characters being disallowed.
357 #
358 # Example: &lt;code&gt;&quot;environment&quot; : &quot;dev&quot;&lt;/code&gt;
359 # Read-write.
360 &quot;a_key&quot;: &quot;A String&quot;,
361 },
362 &quot;createTime&quot;: &quot;A String&quot;, # Creation time.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800363 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 # Read-only.
365 &quot;projectNumber&quot;: &quot;A String&quot;, # The number uniquely identifying the project.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800366 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 # Example: &lt;code&gt;415104041262&lt;/code&gt;
368 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700369 &quot;lifecycleState&quot;: &quot;A String&quot;, # The Project lifecycle state.
370 #
371 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;parent&quot;: { # A container to reference an id for any resource type. A `resource` in Google # An optional reference to a parent Resource.
373 #
374 # Supported parent types include &quot;organization&quot; and &quot;folder&quot;. Once set, the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 # parent cannot be cleared. The `parent` can be set on creation or using the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800376 # `UpdateProject` method; the end user must have the
377 # `resourcemanager.projects.create` permission on the parent.
378 #
379 # Read-write.
380 # Cloud Platform is a generic term for something you (a developer) may want to
Bu Sun Kim65020912020-05-20 12:08:20 -0700381 # interact with through one of our API&#x27;s. Some examples are an App Engine app,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800382 # a Compute Engine instance, a Cloud SQL database, and so on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;id&quot;: &quot;A String&quot;, # Required field for the type-specific id. This should correspond to the id
384 # used in the type-specific API&#x27;s.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700385 &quot;type&quot;: &quot;A String&quot;, # Required field representing the resource type this id is for.
386 # At present, the valid types are &quot;project&quot;, &quot;folder&quot;, and &quot;organization&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700387 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700388 &quot;name&quot;: &quot;A String&quot;, # The optional user-assigned display name of the Project.
389 # When present it must be between 4 to 30 characters.
390 # Allowed characters are: lowercase and uppercase letters, numbers,
391 # hyphen, single-quote, double-quote, space, and exclamation point.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700392 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700393 # Example: &lt;code&gt;My Project&lt;/code&gt;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800394 # Read-write.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000395 }</pre>
396</div>
397
398<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700399 <code class="details" id="getAncestry">getAncestry(projectId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800400 <pre>Gets a list of ancestors in the resource hierarchy for the Project
401identified by the specified `project_id` (for example, `my-project-123`).
402
403The caller must have read permissions for this Project.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700404
405Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800406 projectId: string, The Project ID (for example, `my-project-123`).
407
408Required. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700409 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700410 The object takes the form of:
411
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800412{ # The request sent to the
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 # [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetAncestry]
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800414 # method.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700415 }
416
417 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800418 Allowed values
419 1 - v1 error format
420 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700421
422Returns:
423 An object of the form:
424
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700425 { # Response from the
426 # projects.getAncestry
427 # method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 &quot;ancestor&quot;: [ # Ancestors are ordered from bottom to top of the resource hierarchy. The
429 # first ancestor is the project itself, followed by the project&#x27;s parent,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800430 # etc.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700431 { # Identifying information for a single ancestor of a project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;resourceId&quot;: { # A container to reference an id for any resource type. A `resource` in Google # Resource id of the ancestor.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800433 # Cloud Platform is a generic term for something you (a developer) may want to
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 # interact with through one of our API&#x27;s. Some examples are an App Engine app,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800435 # a Compute Engine instance, a Cloud SQL database, and so on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 &quot;id&quot;: &quot;A String&quot;, # Required field for the type-specific id. This should correspond to the id
437 # used in the type-specific API&#x27;s.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700438 &quot;type&quot;: &quot;A String&quot;, # Required field representing the resource type this id is for.
439 # At present, the valid types are &quot;project&quot;, &quot;folder&quot;, and &quot;organization&quot;.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700440 },
441 },
442 ],
443 }</pre>
444</div>
445
446<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800448 <pre>Returns the IAM access control policy for the specified Project.
449Permission is denied if the policy or the resource does not exist.
Takashi Matsuo06694102015-09-11 13:55:40 -0700450
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700451For additional information about resource structure and identification,
452see [Resource Names](/apis/design/resource_names).
453
Takashi Matsuo06694102015-09-11 13:55:40 -0700454Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800455 resource: string, REQUIRED: The resource for which the policy is being requested.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400456See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700457 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700458 The object takes the form of:
459
460{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
Dan O'Mearadd494642020-05-01 07:42:23 -0700462 # `GetIamPolicy`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700464 #
465 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
466 # rejected.
467 #
468 # Requests for policies with any conditional bindings must specify version 3.
469 # Policies without any conditional bindings may specify any valid value or
470 # leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700471 #
472 # To learn which resources support conditions in their IAM policies, see the
473 # [IAM
474 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700475 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700476 }
477
478 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800479 Allowed values
480 1 - v1 error format
481 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700482
483Returns:
484 An object of the form:
485
Dan O'Mearadd494642020-05-01 07:42:23 -0700486 { # An Identity and Access Management (IAM) policy, which specifies access
487 # controls for Google Cloud resources.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800488 #
489 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700490 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
491 # `members` to a single `role`. Members can be user accounts, service accounts,
492 # Google groups, and domains (such as G Suite). A `role` is a named list of
493 # permissions; each `role` can be an IAM predefined role or a user-created
494 # custom role.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800495 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700496 # For some types of Google Cloud resources, a `binding` can also specify a
497 # `condition`, which is a logical expression that allows access to a resource
498 # only if the expression evaluates to `true`. A condition can add constraints
499 # based on attributes of the request, the resource, or both. To learn which
500 # resources support conditions in their IAM policies, see the
501 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700502 #
503 # **JSON example:**
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800504 #
505 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 # &quot;bindings&quot;: [
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800507 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700508 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
509 # &quot;members&quot;: [
510 # &quot;user:mike@example.com&quot;,
511 # &quot;group:admins@example.com&quot;,
512 # &quot;domain:google.com&quot;,
513 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800514 # ]
515 # },
516 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700517 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
518 # &quot;members&quot;: [
519 # &quot;user:eve@example.com&quot;
520 # ],
521 # &quot;condition&quot;: {
522 # &quot;title&quot;: &quot;expirable access&quot;,
523 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
524 # &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 -0700525 # }
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800526 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700527 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
529 # &quot;version&quot;: 3
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800530 # }
531 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700532 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 #
534 # bindings:
535 # - members:
536 # - user:mike@example.com
537 # - group:admins@example.com
538 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700539 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
540 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700541 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700542 # - user:eve@example.com
543 # role: roles/resourcemanager.organizationViewer
544 # condition:
545 # title: expirable access
546 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700548 # - etag: BwWWja0YfJA=
549 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700550 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800551 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700552 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700553 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
554 # prevent simultaneous updates of a policy from overwriting each other.
555 # It is strongly suggested that systems make use of the `etag` in the
556 # read-modify-write cycle to perform policy updates in order to avoid race
557 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
558 # systems are expected to put that etag in the request to `setIamPolicy` to
559 # ensure that their change will be applied to the same version of the policy.
560 #
561 # **Important:** If you use IAM Conditions, you must include the `etag` field
562 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
563 # you to overwrite a version `3` policy with a version `1` policy, and all of
564 # the conditions in the version `3` policy are lost.
565 &quot;version&quot;: 42, # Specifies the format of the policy.
566 #
567 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
568 # are rejected.
569 #
570 # Any operation that affects conditional role bindings must specify version
571 # `3`. This requirement applies to the following operations:
572 #
573 # * Getting a policy that includes a conditional role binding
574 # * Adding a conditional role binding to a policy
575 # * Changing a conditional role binding in a policy
576 # * Removing any role binding, with or without a condition, from a policy
577 # that includes conditions
578 #
579 # **Important:** If you use IAM Conditions, you must include the `etag` field
580 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
581 # you to overwrite a version `3` policy with a version `1` policy, and all of
582 # the conditions in the version `3` policy are lost.
583 #
584 # If a policy does not include any conditions, operations on that policy may
585 # specify any valid version or leave the field unset.
586 #
587 # To learn which resources support conditions in their IAM policies, see the
588 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700590 # `condition` that determines how and when the `bindings` are applied. Each
591 # of the `bindings` must contain at least one member.
Takashi Matsuo06694102015-09-11 13:55:40 -0700592 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800594 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
596 #
597 # If the condition evaluates to `true`, then this binding applies to the
598 # current request.
599 #
600 # If the condition evaluates to `false`, then this binding does not apply to
601 # the current request. However, a different role binding might grant the same
602 # role to one or more of the members in this binding.
603 #
604 # To learn which resources support conditions in their IAM policies, see the
605 # [IAM
606 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700607 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
608 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700609 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700610 # Example (Comparison):
611 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 # title: &quot;Summary size limit&quot;
613 # description: &quot;Determines if a summary is less than 100 chars&quot;
614 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700615 #
616 # Example (Equality):
617 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 # title: &quot;Requestor is owner&quot;
619 # description: &quot;Determines if requestor is the document owner&quot;
620 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700621 #
622 # Example (Logic):
623 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700624 # title: &quot;Public documents&quot;
625 # description: &quot;Determine whether the document should be publicly visible&quot;
626 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700627 #
628 # Example (Data Manipulation):
629 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 # title: &quot;Notification string&quot;
631 # description: &quot;Create a notification string with a timestamp.&quot;
632 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700633 #
634 # The exact variables and functions that may be referenced within an expression
635 # are determined by the service that evaluates it. See the service
636 # documentation for additional information.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700637 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
638 # syntax.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700639 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
640 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700642 # its purpose. This can be used e.g. in UIs which allow to enter the
643 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700644 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
645 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800648 # `members` can have the following values:
649 #
650 # * `allUsers`: A special identifier that represents anyone who is
651 # on the internet; with or without a Google account.
652 #
653 # * `allAuthenticatedUsers`: A special identifier that represents anyone
654 # who is authenticated with a Google account or a service account.
655 #
656 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -0700657 # account. For example, `alice@example.com` .
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800658 #
659 #
660 # * `serviceAccount:{emailid}`: An email address that represents a service
661 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
662 #
663 # * `group:{emailid}`: An email address that represents a Google group.
664 # For example, `admins@example.com`.
665 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700666 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
667 # identifier) representing a user that has been recently deleted. For
668 # example, `alice@example.com?uid=123456789012345678901`. If the user is
669 # recovered, this value reverts to `user:{emailid}` and the recovered user
670 # retains the role in the binding.
671 #
672 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
673 # unique identifier) representing a service account that has been recently
674 # deleted. For example,
675 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
676 # If the service account is undeleted, this value reverts to
677 # `serviceAccount:{emailid}` and the undeleted service account retains the
678 # role in the binding.
679 #
680 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
681 # identifier) representing a Google group that has been recently
682 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
683 # the group is recovered, this value reverts to `group:{emailid}` and the
684 # recovered group retains the role in the binding.
685 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400686 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700687 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800688 # users of that domain. For example, `google.com` or `example.com`.
689 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700690 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700691 ],
692 },
693 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700694 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
695 { # Specifies the audit configuration for a service.
696 # The configuration determines which permission types are logged, and what
697 # identities, if any, are exempted from logging.
698 # An AuditConfig must have one or more AuditLogConfigs.
699 #
700 # If there are AuditConfigs for both `allServices` and a specific service,
701 # the union of the two AuditConfigs is used for that service: the log_types
702 # specified in each AuditConfig are enabled, and the exempted_members in each
703 # AuditLogConfig are exempted.
704 #
705 # Example Policy with multiple AuditConfigs:
706 #
707 # {
708 # &quot;audit_configs&quot;: [
709 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700710 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700711 # &quot;audit_log_configs&quot;: [
712 # {
713 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
714 # &quot;exempted_members&quot;: [
715 # &quot;user:jose@example.com&quot;
716 # ]
717 # },
718 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700719 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700720 # },
721 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700722 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700723 # }
724 # ]
725 # },
726 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700727 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700728 # &quot;audit_log_configs&quot;: [
729 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700730 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700731 # },
732 # {
733 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
734 # &quot;exempted_members&quot;: [
735 # &quot;user:aliya@example.com&quot;
736 # ]
737 # }
738 # ]
739 # }
740 # ]
741 # }
742 #
743 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
744 # logging. It also exempts jose@example.com from DATA_READ logging, and
745 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700746 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
747 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
748 # `allServices` is a special value that covers all services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700749 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
750 { # Provides the configuration for logging a type of permissions.
751 # Example:
752 #
753 # {
754 # &quot;audit_log_configs&quot;: [
755 # {
756 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
757 # &quot;exempted_members&quot;: [
758 # &quot;user:jose@example.com&quot;
759 # ]
760 # },
761 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700762 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700763 # }
764 # ]
765 # }
766 #
767 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
768 # jose@example.com from DATA_READ logging.
769 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
770 # permission.
771 # Follows the same format of Binding.members.
772 &quot;A String&quot;,
773 ],
774 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
775 },
776 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700777 },
778 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700779 }</pre>
780</div>
781
782<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700783 <code class="details" id="list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784 <pre>Lists Projects that the caller has the `resourcemanager.projects.get`
785permission on and satisfy the specified filter.
786
787This method returns Projects in an unspecified order.
788This method is eventually consistent with project mutations; this means
789that a newly created project may not appear in the results or recent
790updates to an existing project may not be reflected in the results. To
791retrieve the latest state of a project, use the
792GetProject method.
793
794NOTE: If the request filter contains a `parent.type` and `parent.id` and
795the caller has the `resourcemanager.projects.list` permission on the
796parent, the results will be drawn from an alternate index which provides
797more consistent results. In future versions of this API, this List method
798will be split into List and Search to properly capture the behavorial
799difference.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000800
801Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700802 filter: string, An expression for filtering the results of the request. Filter rules are
803case insensitive. The fields eligible for filtering are:
804
805+ `name`
806+ `id`
Dan O'Mearadd494642020-05-01 07:42:23 -0700807+ `labels.&lt;key&gt;` (where *key* is the name of a label)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808+ `parent.type`
809+ `parent.id`
810
811Some examples of using labels as filters:
812
813| Filter | Description |
814|------------------|-----------------------------------------------------|
Bu Sun Kim65020912020-05-20 12:08:20 -0700815| name:how* | The project&#x27;s name starts with &quot;how&quot;. |
816| name:Howl | The project&#x27;s name is `Howl` or `howl`. |
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700817| name:HOWL | Equivalent to above. |
818| NAME:howl | Equivalent to above. |
819| labels.color:* | The project has the label `color`. |
Bu Sun Kim65020912020-05-20 12:08:20 -0700820| labels.color:red | The project&#x27;s label `color` has the value `red`. |
821| labels.color:red&amp;nbsp;labels.size:big |The project&#x27;s label `color` has
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700822 the value `red` and its label `size` has the value `big`. |
823
824If no filter is specified, the call will return projects for which the user
825has the `resourcemanager.projects.get` permission.
826
827NOTE: To perform a by-parent query (eg., what projects are directly in a
828Folder), the caller must have the `resourcemanager.projects.list`
829permission on the parent and the filter must contain both a `parent.type`
830and a `parent.id` restriction
Bu Sun Kim65020912020-05-20 12:08:20 -0700831(example: &quot;parent.type:folder parent.id:123&quot;). In this case an alternate
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700832search index is used which provides more consistent results.
833
834Optional.
Bu Sun Kim65020912020-05-20 12:08:20 -0700835 pageSize: integer, The maximum number of Projects to return in the response.
836The server can return fewer Projects than requested.
837If unspecified, server picks an appropriate default.
838
839Optional.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700840 pageToken: string, A pagination token returned from a previous call to ListProjects
841that indicates from where listing should continue.
842
843Optional.
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 x__xgafv: string, V1 error format.
845 Allowed values
846 1 - v1 error format
847 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000848
849Returns:
850 An object of the form:
851
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800852 { # A page of the response received from the
853 # ListProjects
854 # method.
855 #
856 # A paginated response where more pages are available has
857 # `next_page_token` set. This token can be used in a subsequent request to
858 # retrieve the next request page.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700859 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token.
860 #
861 # If the result set is too large to fit in a single response, this token
862 # is returned. It encodes the position of the current result cursor.
863 # Feeding this value into a new list request with the `page_token` parameter
864 # gives the next page of the results.
865 #
866 # When `next_page_token` is not filled in, there is no next page and
867 # the list returned is the last page in the result set.
868 #
869 # Pagination tokens have a limited lifetime.
Bu Sun Kim65020912020-05-20 12:08:20 -0700870 &quot;projects&quot;: [ # The list of Projects that matched the list filter. This list can
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800871 # be paginated.
872 { # A Project is a high-level Google Cloud Platform entity. It is a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400873 # container for ACLs, APIs, App Engine Apps, VMs, and other
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800874 # Google Cloud Platform resources.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700875 &quot;projectId&quot;: &quot;A String&quot;, # The unique, user-assigned ID of the Project.
876 # It must be 6 to 30 lowercase letters, digits, or hyphens.
877 # It must start with a letter.
878 # Trailing hyphens are prohibited.
879 #
880 # Example: &lt;code&gt;tokyo-rain-123&lt;/code&gt;
881 # Read-only after creation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700882 &quot;labels&quot;: { # The labels associated with this Project.
883 #
884 # Label keys must be between 1 and 63 characters long and must conform
885 # to the following regular expression: a-z{0,62}.
886 #
887 # Label values must be between 0 and 63 characters long and must conform
888 # to the regular expression [a-z0-9_-]{0,63}. A label value can be empty.
889 #
890 # No more than 256 labels can be associated with a given resource.
891 #
892 # Clients should store labels in a representation such as JSON that does not
893 # depend on specific characters being disallowed.
894 #
895 # Example: &lt;code&gt;&quot;environment&quot; : &quot;dev&quot;&lt;/code&gt;
896 # Read-write.
897 &quot;a_key&quot;: &quot;A String&quot;,
898 },
899 &quot;createTime&quot;: &quot;A String&quot;, # Creation time.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800900 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 # Read-only.
902 &quot;projectNumber&quot;: &quot;A String&quot;, # The number uniquely identifying the project.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800903 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 # Example: &lt;code&gt;415104041262&lt;/code&gt;
905 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700906 &quot;lifecycleState&quot;: &quot;A String&quot;, # The Project lifecycle state.
907 #
908 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700909 &quot;parent&quot;: { # A container to reference an id for any resource type. A `resource` in Google # An optional reference to a parent Resource.
910 #
911 # Supported parent types include &quot;organization&quot; and &quot;folder&quot;. Once set, the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 # parent cannot be cleared. The `parent` can be set on creation or using the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800913 # `UpdateProject` method; the end user must have the
914 # `resourcemanager.projects.create` permission on the parent.
915 #
916 # Read-write.
917 # Cloud Platform is a generic term for something you (a developer) may want to
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 # interact with through one of our API&#x27;s. Some examples are an App Engine app,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800919 # a Compute Engine instance, a Cloud SQL database, and so on.
Bu Sun Kim65020912020-05-20 12:08:20 -0700920 &quot;id&quot;: &quot;A String&quot;, # Required field for the type-specific id. This should correspond to the id
921 # used in the type-specific API&#x27;s.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700922 &quot;type&quot;: &quot;A String&quot;, # Required field representing the resource type this id is for.
923 # At present, the valid types are &quot;project&quot;, &quot;folder&quot;, and &quot;organization&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700924 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700925 &quot;name&quot;: &quot;A String&quot;, # The optional user-assigned display name of the Project.
926 # When present it must be between 4 to 30 characters.
927 # Allowed characters are: lowercase and uppercase letters, numbers,
928 # hyphen, single-quote, double-quote, space, and exclamation point.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700929 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700930 # Example: &lt;code&gt;My Project&lt;/code&gt;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800931 # Read-write.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000932 },
933 ],
934 }</pre>
935</div>
936
937<div class="method">
938 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
939 <pre>Retrieves the next page of results.
940
941Args:
942 previous_request: The request for the previous page. (required)
943 previous_response: The response from the request for the previous page. (required)
944
945Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 A request object that you can call &#x27;execute()&#x27; on to request the next
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000947 page. Returns None if there are no more items in the collection.
948 </pre>
949</div>
950
951<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700952 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700953 <pre>Sets the IAM access control policy for the specified Project.
954
955CAUTION: This method will replace the existing policy, and cannot be used
956to append additional IAM settings.
957
958NOTE: Removing service accounts from policies or changing their roles can
959render services completely inoperable. It is important to understand how
960the service account is being used before removing or updating its roles.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800961
962The following constraints apply when using `setIamPolicy()`:
963
964+ Project does not support `allUsers` and `allAuthenticatedUsers` as
965`members` in a `Binding` of a `Policy`.
966
Dan O'Mearadd494642020-05-01 07:42:23 -0700967+ The owner role can be granted to a `user`, `serviceAccount`, or a group
968that is part of an organization. For example,
969group@myownpersonaldomain.com could be added as an owner to a project in
970the myownpersonaldomain.com organization, but not the examplepetstore.com
971organization.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800972
973+ Service accounts can be made owners of a project directly
974without any restrictions. However, to be added as an owner, a user must be
975invited via Cloud Platform console and must accept the invitation.
976
977+ A user cannot be granted the owner role using `setIamPolicy()`. The user
978must be granted the owner role using the Cloud Platform Console and must
979explicitly accept the invitation.
980
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700981+ Invitations to grant the owner role cannot be sent using
982`setIamPolicy()`; they must be sent only using the Cloud Platform Console.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800983
984+ Membership changes that leave the project without any owners that have
985accepted the Terms of Service (ToS) will be rejected.
986
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700987+ If the project is not part of an organization, there must be at least
988one owner who has accepted the Terms of Service (ToS) agreement in the
989policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
990from the policy will fail. This restriction also applies to legacy
991projects that no longer have owners who have accepted the ToS. Edits to
992IAM policies will be rejected until the lack of a ToS-accepting owner is
993rectified.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800994
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700995Authorization requires the Google IAM permission
996`resourcemanager.projects.setIamPolicy` on the project
Takashi Matsuo06694102015-09-11 13:55:40 -0700997
998Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800999 resource: string, REQUIRED: The resource for which the policy is being specified.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001000See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001001 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -07001002 The object takes the form of:
1003
1004{ # Request message for `SetIamPolicy` method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001005 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1006 # the fields in the mask will be modified. If no mask is provided, the
1007 # following default mask is used:
1008 #
1009 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -07001010 &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
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001011 # the policy is limited to a few 10s of KB. An empty policy is a
1012 # valid policy but certain Cloud Platform services (such as Projects)
1013 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -07001014 # controls for Google Cloud resources.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001015 #
1016 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001017 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1018 # `members` to a single `role`. Members can be user accounts, service accounts,
1019 # Google groups, and domains (such as G Suite). A `role` is a named list of
1020 # permissions; each `role` can be an IAM predefined role or a user-created
1021 # custom role.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001022 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 # For some types of Google Cloud resources, a `binding` can also specify a
1024 # `condition`, which is a logical expression that allows access to a resource
1025 # only if the expression evaluates to `true`. A condition can add constraints
1026 # based on attributes of the request, the resource, or both. To learn which
1027 # resources support conditions in their IAM policies, see the
1028 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001029 #
1030 # **JSON example:**
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001031 #
1032 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 # &quot;bindings&quot;: [
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001034 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1036 # &quot;members&quot;: [
1037 # &quot;user:mike@example.com&quot;,
1038 # &quot;group:admins@example.com&quot;,
1039 # &quot;domain:google.com&quot;,
1040 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001041 # ]
1042 # },
1043 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001044 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1045 # &quot;members&quot;: [
1046 # &quot;user:eve@example.com&quot;
1047 # ],
1048 # &quot;condition&quot;: {
1049 # &quot;title&quot;: &quot;expirable access&quot;,
1050 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1051 # &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 -07001052 # }
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001053 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001054 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001055 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1056 # &quot;version&quot;: 3
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001057 # }
1058 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001059 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001060 #
1061 # bindings:
1062 # - members:
1063 # - user:mike@example.com
1064 # - group:admins@example.com
1065 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001066 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1067 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001068 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001069 # - user:eve@example.com
1070 # role: roles/resourcemanager.organizationViewer
1071 # condition:
1072 # title: expirable access
1073 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001074 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001075 # - etag: BwWWja0YfJA=
1076 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001077 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001078 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001079 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001080 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1081 # prevent simultaneous updates of a policy from overwriting each other.
1082 # It is strongly suggested that systems make use of the `etag` in the
1083 # read-modify-write cycle to perform policy updates in order to avoid race
1084 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1085 # systems are expected to put that etag in the request to `setIamPolicy` to
1086 # ensure that their change will be applied to the same version of the policy.
1087 #
1088 # **Important:** If you use IAM Conditions, you must include the `etag` field
1089 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1090 # you to overwrite a version `3` policy with a version `1` policy, and all of
1091 # the conditions in the version `3` policy are lost.
1092 &quot;version&quot;: 42, # Specifies the format of the policy.
1093 #
1094 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1095 # are rejected.
1096 #
1097 # Any operation that affects conditional role bindings must specify version
1098 # `3`. This requirement applies to the following operations:
1099 #
1100 # * Getting a policy that includes a conditional role binding
1101 # * Adding a conditional role binding to a policy
1102 # * Changing a conditional role binding in a policy
1103 # * Removing any role binding, with or without a condition, from a policy
1104 # that includes conditions
1105 #
1106 # **Important:** If you use IAM Conditions, you must include the `etag` field
1107 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1108 # you to overwrite a version `3` policy with a version `1` policy, and all of
1109 # the conditions in the version `3` policy are lost.
1110 #
1111 # If a policy does not include any conditions, operations on that policy may
1112 # specify any valid version or leave the field unset.
1113 #
1114 # To learn which resources support conditions in their IAM policies, see the
1115 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001116 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001117 # `condition` that determines how and when the `bindings` are applied. Each
1118 # of the `bindings` must contain at least one member.
Takashi Matsuo06694102015-09-11 13:55:40 -07001119 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001120 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001121 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001122 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1123 #
1124 # If the condition evaluates to `true`, then this binding applies to the
1125 # current request.
1126 #
1127 # If the condition evaluates to `false`, then this binding does not apply to
1128 # the current request. However, a different role binding might grant the same
1129 # role to one or more of the members in this binding.
1130 #
1131 # To learn which resources support conditions in their IAM policies, see the
1132 # [IAM
1133 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001134 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1135 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001136 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001137 # Example (Comparison):
1138 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001139 # title: &quot;Summary size limit&quot;
1140 # description: &quot;Determines if a summary is less than 100 chars&quot;
1141 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001142 #
1143 # Example (Equality):
1144 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 # title: &quot;Requestor is owner&quot;
1146 # description: &quot;Determines if requestor is the document owner&quot;
1147 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001148 #
1149 # Example (Logic):
1150 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001151 # title: &quot;Public documents&quot;
1152 # description: &quot;Determine whether the document should be publicly visible&quot;
1153 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001154 #
1155 # Example (Data Manipulation):
1156 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001157 # title: &quot;Notification string&quot;
1158 # description: &quot;Create a notification string with a timestamp.&quot;
1159 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001160 #
1161 # The exact variables and functions that may be referenced within an expression
1162 # are determined by the service that evaluates it. See the service
1163 # documentation for additional information.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001164 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1165 # syntax.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001166 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1167 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001169 # its purpose. This can be used e.g. in UIs which allow to enter the
1170 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001171 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1172 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001173 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001175 # `members` can have the following values:
1176 #
1177 # * `allUsers`: A special identifier that represents anyone who is
1178 # on the internet; with or without a Google account.
1179 #
1180 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1181 # who is authenticated with a Google account or a service account.
1182 #
1183 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001184 # account. For example, `alice@example.com` .
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001185 #
1186 #
1187 # * `serviceAccount:{emailid}`: An email address that represents a service
1188 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1189 #
1190 # * `group:{emailid}`: An email address that represents a Google group.
1191 # For example, `admins@example.com`.
1192 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001193 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1194 # identifier) representing a user that has been recently deleted. For
1195 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1196 # recovered, this value reverts to `user:{emailid}` and the recovered user
1197 # retains the role in the binding.
1198 #
1199 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1200 # unique identifier) representing a service account that has been recently
1201 # deleted. For example,
1202 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1203 # If the service account is undeleted, this value reverts to
1204 # `serviceAccount:{emailid}` and the undeleted service account retains the
1205 # role in the binding.
1206 #
1207 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1208 # identifier) representing a Google group that has been recently
1209 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1210 # the group is recovered, this value reverts to `group:{emailid}` and the
1211 # recovered group retains the role in the binding.
1212 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001213 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001214 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001215 # users of that domain. For example, `google.com` or `example.com`.
1216 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -07001218 ],
1219 },
1220 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001221 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1222 { # Specifies the audit configuration for a service.
1223 # The configuration determines which permission types are logged, and what
1224 # identities, if any, are exempted from logging.
1225 # An AuditConfig must have one or more AuditLogConfigs.
1226 #
1227 # If there are AuditConfigs for both `allServices` and a specific service,
1228 # the union of the two AuditConfigs is used for that service: the log_types
1229 # specified in each AuditConfig are enabled, and the exempted_members in each
1230 # AuditLogConfig are exempted.
1231 #
1232 # Example Policy with multiple AuditConfigs:
1233 #
1234 # {
1235 # &quot;audit_configs&quot;: [
1236 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001237 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001238 # &quot;audit_log_configs&quot;: [
1239 # {
1240 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1241 # &quot;exempted_members&quot;: [
1242 # &quot;user:jose@example.com&quot;
1243 # ]
1244 # },
1245 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001246 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001247 # },
1248 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001249 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001250 # }
1251 # ]
1252 # },
1253 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001254 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001255 # &quot;audit_log_configs&quot;: [
1256 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001257 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001258 # },
1259 # {
1260 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1261 # &quot;exempted_members&quot;: [
1262 # &quot;user:aliya@example.com&quot;
1263 # ]
1264 # }
1265 # ]
1266 # }
1267 # ]
1268 # }
1269 #
1270 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1271 # logging. It also exempts jose@example.com from DATA_READ logging, and
1272 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001273 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1274 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1275 # `allServices` is a special value that covers all services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001276 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1277 { # Provides the configuration for logging a type of permissions.
1278 # Example:
1279 #
1280 # {
1281 # &quot;audit_log_configs&quot;: [
1282 # {
1283 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1284 # &quot;exempted_members&quot;: [
1285 # &quot;user:jose@example.com&quot;
1286 # ]
1287 # },
1288 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001289 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001290 # }
1291 # ]
1292 # }
1293 #
1294 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1295 # jose@example.com from DATA_READ logging.
1296 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1297 # permission.
1298 # Follows the same format of Binding.members.
1299 &quot;A String&quot;,
1300 ],
1301 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1302 },
1303 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001304 },
1305 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001306 },
1307 }
1308
1309 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001310 Allowed values
1311 1 - v1 error format
1312 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001313
1314Returns:
1315 An object of the form:
1316
Dan O'Mearadd494642020-05-01 07:42:23 -07001317 { # An Identity and Access Management (IAM) policy, which specifies access
1318 # controls for Google Cloud resources.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001319 #
1320 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001321 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1322 # `members` to a single `role`. Members can be user accounts, service accounts,
1323 # Google groups, and domains (such as G Suite). A `role` is a named list of
1324 # permissions; each `role` can be an IAM predefined role or a user-created
1325 # custom role.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001326 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001327 # For some types of Google Cloud resources, a `binding` can also specify a
1328 # `condition`, which is a logical expression that allows access to a resource
1329 # only if the expression evaluates to `true`. A condition can add constraints
1330 # based on attributes of the request, the resource, or both. To learn which
1331 # resources support conditions in their IAM policies, see the
1332 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001333 #
1334 # **JSON example:**
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001335 #
1336 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 # &quot;bindings&quot;: [
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001338 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1340 # &quot;members&quot;: [
1341 # &quot;user:mike@example.com&quot;,
1342 # &quot;group:admins@example.com&quot;,
1343 # &quot;domain:google.com&quot;,
1344 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001345 # ]
1346 # },
1347 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001348 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1349 # &quot;members&quot;: [
1350 # &quot;user:eve@example.com&quot;
1351 # ],
1352 # &quot;condition&quot;: {
1353 # &quot;title&quot;: &quot;expirable access&quot;,
1354 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1355 # &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 -07001356 # }
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001357 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001358 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001359 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1360 # &quot;version&quot;: 3
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001361 # }
1362 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001363 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001364 #
1365 # bindings:
1366 # - members:
1367 # - user:mike@example.com
1368 # - group:admins@example.com
1369 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001370 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1371 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001372 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001373 # - user:eve@example.com
1374 # role: roles/resourcemanager.organizationViewer
1375 # condition:
1376 # title: expirable access
1377 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001378 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001379 # - etag: BwWWja0YfJA=
1380 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001381 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001382 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001383 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001384 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1385 # prevent simultaneous updates of a policy from overwriting each other.
1386 # It is strongly suggested that systems make use of the `etag` in the
1387 # read-modify-write cycle to perform policy updates in order to avoid race
1388 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1389 # systems are expected to put that etag in the request to `setIamPolicy` to
1390 # ensure that their change will be applied to the same version of the policy.
1391 #
1392 # **Important:** If you use IAM Conditions, you must include the `etag` field
1393 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1394 # you to overwrite a version `3` policy with a version `1` policy, and all of
1395 # the conditions in the version `3` policy are lost.
1396 &quot;version&quot;: 42, # Specifies the format of the policy.
1397 #
1398 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1399 # are rejected.
1400 #
1401 # Any operation that affects conditional role bindings must specify version
1402 # `3`. This requirement applies to the following operations:
1403 #
1404 # * Getting a policy that includes a conditional role binding
1405 # * Adding a conditional role binding to a policy
1406 # * Changing a conditional role binding in a policy
1407 # * Removing any role binding, with or without a condition, from a policy
1408 # that includes conditions
1409 #
1410 # **Important:** If you use IAM Conditions, you must include the `etag` field
1411 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1412 # you to overwrite a version `3` policy with a version `1` policy, and all of
1413 # the conditions in the version `3` policy are lost.
1414 #
1415 # If a policy does not include any conditions, operations on that policy may
1416 # specify any valid version or leave the field unset.
1417 #
1418 # To learn which resources support conditions in their IAM policies, see the
1419 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001421 # `condition` that determines how and when the `bindings` are applied. Each
1422 # of the `bindings` must contain at least one member.
Takashi Matsuo06694102015-09-11 13:55:40 -07001423 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001424 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001425 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1427 #
1428 # If the condition evaluates to `true`, then this binding applies to the
1429 # current request.
1430 #
1431 # If the condition evaluates to `false`, then this binding does not apply to
1432 # the current request. However, a different role binding might grant the same
1433 # role to one or more of the members in this binding.
1434 #
1435 # To learn which resources support conditions in their IAM policies, see the
1436 # [IAM
1437 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001438 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1439 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001440 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001441 # Example (Comparison):
1442 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001443 # title: &quot;Summary size limit&quot;
1444 # description: &quot;Determines if a summary is less than 100 chars&quot;
1445 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001446 #
1447 # Example (Equality):
1448 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 # title: &quot;Requestor is owner&quot;
1450 # description: &quot;Determines if requestor is the document owner&quot;
1451 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001452 #
1453 # Example (Logic):
1454 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001455 # title: &quot;Public documents&quot;
1456 # description: &quot;Determine whether the document should be publicly visible&quot;
1457 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001458 #
1459 # Example (Data Manipulation):
1460 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001461 # title: &quot;Notification string&quot;
1462 # description: &quot;Create a notification string with a timestamp.&quot;
1463 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001464 #
1465 # The exact variables and functions that may be referenced within an expression
1466 # are determined by the service that evaluates it. See the service
1467 # documentation for additional information.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001468 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1469 # syntax.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001470 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1471 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001472 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473 # its purpose. This can be used e.g. in UIs which allow to enter the
1474 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001475 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1476 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001477 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001479 # `members` can have the following values:
1480 #
1481 # * `allUsers`: A special identifier that represents anyone who is
1482 # on the internet; with or without a Google account.
1483 #
1484 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1485 # who is authenticated with a Google account or a service account.
1486 #
1487 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001488 # account. For example, `alice@example.com` .
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001489 #
1490 #
1491 # * `serviceAccount:{emailid}`: An email address that represents a service
1492 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1493 #
1494 # * `group:{emailid}`: An email address that represents a Google group.
1495 # For example, `admins@example.com`.
1496 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001497 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1498 # identifier) representing a user that has been recently deleted. For
1499 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1500 # recovered, this value reverts to `user:{emailid}` and the recovered user
1501 # retains the role in the binding.
1502 #
1503 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1504 # unique identifier) representing a service account that has been recently
1505 # deleted. For example,
1506 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1507 # If the service account is undeleted, this value reverts to
1508 # `serviceAccount:{emailid}` and the undeleted service account retains the
1509 # role in the binding.
1510 #
1511 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1512 # identifier) representing a Google group that has been recently
1513 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1514 # the group is recovered, this value reverts to `group:{emailid}` and the
1515 # recovered group retains the role in the binding.
1516 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001517 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001518 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001519 # users of that domain. For example, `google.com` or `example.com`.
1520 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001521 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -07001522 ],
1523 },
1524 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001525 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1526 { # Specifies the audit configuration for a service.
1527 # The configuration determines which permission types are logged, and what
1528 # identities, if any, are exempted from logging.
1529 # An AuditConfig must have one or more AuditLogConfigs.
1530 #
1531 # If there are AuditConfigs for both `allServices` and a specific service,
1532 # the union of the two AuditConfigs is used for that service: the log_types
1533 # specified in each AuditConfig are enabled, and the exempted_members in each
1534 # AuditLogConfig are exempted.
1535 #
1536 # Example Policy with multiple AuditConfigs:
1537 #
1538 # {
1539 # &quot;audit_configs&quot;: [
1540 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001541 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001542 # &quot;audit_log_configs&quot;: [
1543 # {
1544 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1545 # &quot;exempted_members&quot;: [
1546 # &quot;user:jose@example.com&quot;
1547 # ]
1548 # },
1549 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001550 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001551 # },
1552 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001553 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001554 # }
1555 # ]
1556 # },
1557 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001558 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001559 # &quot;audit_log_configs&quot;: [
1560 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001561 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001562 # },
1563 # {
1564 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1565 # &quot;exempted_members&quot;: [
1566 # &quot;user:aliya@example.com&quot;
1567 # ]
1568 # }
1569 # ]
1570 # }
1571 # ]
1572 # }
1573 #
1574 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1575 # logging. It also exempts jose@example.com from DATA_READ logging, and
1576 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001577 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1578 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1579 # `allServices` is a special value that covers all services.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001580 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1581 { # Provides the configuration for logging a type of permissions.
1582 # Example:
1583 #
1584 # {
1585 # &quot;audit_log_configs&quot;: [
1586 # {
1587 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1588 # &quot;exempted_members&quot;: [
1589 # &quot;user:jose@example.com&quot;
1590 # ]
1591 # },
1592 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001593 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001594 # }
1595 # ]
1596 # }
1597 #
1598 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1599 # jose@example.com from DATA_READ logging.
1600 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1601 # permission.
1602 # Follows the same format of Binding.members.
1603 &quot;A String&quot;,
1604 ],
1605 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1606 },
1607 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001608 },
1609 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001610 }</pre>
1611</div>
1612
1613<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001614 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001615 <pre>Returns permissions that a caller has on the specified Project.
Takashi Matsuo06694102015-09-11 13:55:40 -07001616
1617Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001618 resource: string, REQUIRED: The resource for which the policy detail is being requested.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001619See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001620 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -07001621 The object takes the form of:
1622
1623{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001624 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1625 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001626 # information see
1627 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001628 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -07001629 ],
1630 }
1631
1632 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001633 Allowed values
1634 1 - v1 error format
1635 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001636
1637Returns:
1638 An object of the form:
1639
1640 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001641 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001642 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001643 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -07001644 ],
1645 }</pre>
1646</div>
1647
1648<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001649 <code class="details" id="undelete">undelete(projectId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001650 <pre>Restores the Project identified by the specified
1651`project_id` (for example, `my-project-123`).
1652You can only use this method for a Project that has a lifecycle state of
1653DELETE_REQUESTED.
1654After deletion starts, the Project cannot be restored.
1655
1656The caller must have modify permissions for this Project.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001657
1658Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001659 projectId: string, The project ID (for example, `foo-bar-123`).
1660
1661Required. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001662 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001663 The object takes the form of:
1664
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001665{ # The request sent to the UndeleteProject
1666 # method.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001667 }
1668
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001669 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001670 Allowed values
1671 1 - v1 error format
1672 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001673
1674Returns:
1675 An object of the form:
1676
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001677 { # A generic empty message that you can re-use to avoid defining duplicated
1678 # empty messages in your APIs. A typical example is to use it as the request
1679 # or the response type of an API method. For instance:
1680 #
1681 # service Foo {
1682 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1683 # }
1684 #
1685 # The JSON representation for `Empty` is empty JSON object `{}`.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001686 }</pre>
1687</div>
1688
1689<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001690 <code class="details" id="update">update(projectId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001691 <pre>Updates the attributes of the Project identified by the specified
1692`project_id` (for example, `my-project-123`).
1693
1694The caller must have modify permissions for this Project.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001695
1696Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001697 projectId: string, The project ID (for example, `my-project-123`).
1698
1699Required. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001700 body: object, The request body.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001701 The object takes the form of:
1702
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001703{ # A Project is a high-level Google Cloud Platform entity. It is a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001704 # container for ACLs, APIs, App Engine Apps, VMs, and other
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001705 # Google Cloud Platform resources.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001706 &quot;projectId&quot;: &quot;A String&quot;, # The unique, user-assigned ID of the Project.
1707 # It must be 6 to 30 lowercase letters, digits, or hyphens.
1708 # It must start with a letter.
1709 # Trailing hyphens are prohibited.
1710 #
1711 # Example: &lt;code&gt;tokyo-rain-123&lt;/code&gt;
1712 # Read-only after creation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001713 &quot;labels&quot;: { # The labels associated with this Project.
1714 #
1715 # Label keys must be between 1 and 63 characters long and must conform
1716 # to the following regular expression: a-z{0,62}.
1717 #
1718 # Label values must be between 0 and 63 characters long and must conform
1719 # to the regular expression [a-z0-9_-]{0,63}. A label value can be empty.
1720 #
1721 # No more than 256 labels can be associated with a given resource.
1722 #
1723 # Clients should store labels in a representation such as JSON that does not
1724 # depend on specific characters being disallowed.
1725 #
1726 # Example: &lt;code&gt;&quot;environment&quot; : &quot;dev&quot;&lt;/code&gt;
1727 # Read-write.
1728 &quot;a_key&quot;: &quot;A String&quot;,
1729 },
1730 &quot;createTime&quot;: &quot;A String&quot;, # Creation time.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001731 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001732 # Read-only.
1733 &quot;projectNumber&quot;: &quot;A String&quot;, # The number uniquely identifying the project.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001734 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001735 # Example: &lt;code&gt;415104041262&lt;/code&gt;
1736 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001737 &quot;lifecycleState&quot;: &quot;A String&quot;, # The Project lifecycle state.
1738 #
1739 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001740 &quot;parent&quot;: { # A container to reference an id for any resource type. A `resource` in Google # An optional reference to a parent Resource.
1741 #
1742 # Supported parent types include &quot;organization&quot; and &quot;folder&quot;. Once set, the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001743 # parent cannot be cleared. The `parent` can be set on creation or using the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001744 # `UpdateProject` method; the end user must have the
1745 # `resourcemanager.projects.create` permission on the parent.
1746 #
1747 # Read-write.
1748 # Cloud Platform is a generic term for something you (a developer) may want to
Bu Sun Kim65020912020-05-20 12:08:20 -07001749 # interact with through one of our API&#x27;s. Some examples are an App Engine app,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001750 # a Compute Engine instance, a Cloud SQL database, and so on.
Bu Sun Kim65020912020-05-20 12:08:20 -07001751 &quot;id&quot;: &quot;A String&quot;, # Required field for the type-specific id. This should correspond to the id
1752 # used in the type-specific API&#x27;s.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001753 &quot;type&quot;: &quot;A String&quot;, # Required field representing the resource type this id is for.
1754 # At present, the valid types are &quot;project&quot;, &quot;folder&quot;, and &quot;organization&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -07001755 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001756 &quot;name&quot;: &quot;A String&quot;, # The optional user-assigned display name of the Project.
1757 # When present it must be between 4 to 30 characters.
1758 # Allowed characters are: lowercase and uppercase letters, numbers,
1759 # hyphen, single-quote, double-quote, space, and exclamation point.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001760 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001761 # Example: &lt;code&gt;My Project&lt;/code&gt;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001762 # Read-write.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001763}
1764
1765 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001766 Allowed values
1767 1 - v1 error format
1768 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001769
1770Returns:
1771 An object of the form:
1772
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001773 { # A Project is a high-level Google Cloud Platform entity. It is a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001774 # container for ACLs, APIs, App Engine Apps, VMs, and other
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001775 # Google Cloud Platform resources.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001776 &quot;projectId&quot;: &quot;A String&quot;, # The unique, user-assigned ID of the Project.
1777 # It must be 6 to 30 lowercase letters, digits, or hyphens.
1778 # It must start with a letter.
1779 # Trailing hyphens are prohibited.
1780 #
1781 # Example: &lt;code&gt;tokyo-rain-123&lt;/code&gt;
1782 # Read-only after creation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001783 &quot;labels&quot;: { # The labels associated with this Project.
1784 #
1785 # Label keys must be between 1 and 63 characters long and must conform
1786 # to the following regular expression: a-z{0,62}.
1787 #
1788 # Label values must be between 0 and 63 characters long and must conform
1789 # to the regular expression [a-z0-9_-]{0,63}. A label value can be empty.
1790 #
1791 # No more than 256 labels can be associated with a given resource.
1792 #
1793 # Clients should store labels in a representation such as JSON that does not
1794 # depend on specific characters being disallowed.
1795 #
1796 # Example: &lt;code&gt;&quot;environment&quot; : &quot;dev&quot;&lt;/code&gt;
1797 # Read-write.
1798 &quot;a_key&quot;: &quot;A String&quot;,
1799 },
1800 &quot;createTime&quot;: &quot;A String&quot;, # Creation time.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001801 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 # Read-only.
1803 &quot;projectNumber&quot;: &quot;A String&quot;, # The number uniquely identifying the project.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001804 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001805 # Example: &lt;code&gt;415104041262&lt;/code&gt;
1806 # Read-only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001807 &quot;lifecycleState&quot;: &quot;A String&quot;, # The Project lifecycle state.
1808 #
1809 # Read-only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 &quot;parent&quot;: { # A container to reference an id for any resource type. A `resource` in Google # An optional reference to a parent Resource.
1811 #
1812 # Supported parent types include &quot;organization&quot; and &quot;folder&quot;. Once set, the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001813 # parent cannot be cleared. The `parent` can be set on creation or using the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001814 # `UpdateProject` method; the end user must have the
1815 # `resourcemanager.projects.create` permission on the parent.
1816 #
1817 # Read-write.
1818 # Cloud Platform is a generic term for something you (a developer) may want to
Bu Sun Kim65020912020-05-20 12:08:20 -07001819 # interact with through one of our API&#x27;s. Some examples are an App Engine app,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001820 # a Compute Engine instance, a Cloud SQL database, and so on.
Bu Sun Kim65020912020-05-20 12:08:20 -07001821 &quot;id&quot;: &quot;A String&quot;, # Required field for the type-specific id. This should correspond to the id
1822 # used in the type-specific API&#x27;s.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001823 &quot;type&quot;: &quot;A String&quot;, # Required field representing the resource type this id is for.
1824 # At present, the valid types are &quot;project&quot;, &quot;folder&quot;, and &quot;organization&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -07001825 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001826 &quot;name&quot;: &quot;A String&quot;, # The optional user-assigned display name of the Project.
1827 # When present it must be between 4 to 30 characters.
1828 # Allowed characters are: lowercase and uppercase letters, numbers,
1829 # hyphen, single-quote, double-quote, space, and exclamation point.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001830 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001831 # Example: &lt;code&gt;My Project&lt;/code&gt;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001832 # Read-write.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001833 }</pre>
1834</div>
1835
1836</body></html>