blob: 6d5b95d03ee21c41a8ae537290530a2aa4ac02d0 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="iam_v1.html">Identity and Access Management (IAM) API</a> . <a href="iam_v1.projects.html">projects</a> . <a href="iam_v1.projects.roles.html">roles</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070082<p class="firstline">Creates a new custom Role.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes a custom Role. When you delete a custom role, the following changes occur immediately: * You cannot bind a member to the custom role in an IAM Policy. * Existing bindings to the custom role are not changed, but they have no effect. * By default, the response from ListRoles does not include the custom role. You have 7 days to undelete the custom role. After 7 days, the following changes occur: * The custom role is permanently deleted and cannot be recovered. * If an IAM policy contains a binding to the custom role, the binding is permanently removed.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070088<p class="firstline">Gets the definition of a Role.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080090 <code><a href="#list">list(parent, pageToken=None, showDeleted=None, pageSize=None, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070097<p class="firstline">Updates the definition of a custom Role.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#undelete">undelete(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100<p class="firstline">Undeletes a custom Role.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700109 <pre>Creates a new custom Role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110
111Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 parent: string, The `parent` parameter&#x27;s value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type&#x27;s `parent` value format is described below: * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create): `projects/{PROJECT_ID}`. This method creates project-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create): `organizations/{ORGANIZATION_ID}`. This method creates organization-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 The object takes the form of:
115
116{ # The request to create a new role.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117 &quot;roleId&quot;: &quot;A String&quot;, # The role ID to use for this role. A role ID may contain alphanumeric characters, underscores (`_`), and periods (`.`). It must contain a minimum of 3 characters and a maximum of 64 characters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800118 &quot;role&quot;: { # A role in the Identity and Access Management API. # The Role resource to create.
119 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
120 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
121 &quot;A String&quot;,
122 ],
123 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
124 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
125 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
126 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
127 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
128 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129 }
130
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136Returns:
137 An object of the form:
138
139 { # A role in the Identity and Access Management API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800140 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
141 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
142 &quot;A String&quot;,
143 ],
144 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
145 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
146 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
147 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
148 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
149 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150</div>
151
152<div class="method">
153 <code class="details" id="delete">delete(name, etag=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700154 <pre>Deletes a custom Role. When you delete a custom role, the following changes occur immediately: * You cannot bind a member to the custom role in an IAM Policy. * Existing bindings to the custom role are not changed, but they have no effect. * By default, the response from ListRoles does not include the custom role. You have 7 days to undelete the custom role. After 7 days, the following changes occur: * The custom role is permanently deleted and cannot be recovered. * If an IAM policy contains a binding to the custom role, the binding is permanently removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155
156Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700157 name: string, The `name` parameter&#x27;s value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type&#x27;s `name` value format is described below: * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700158 etag: string, Used to perform a consistent read-modify-write.
159 x__xgafv: string, V1 error format.
160 Allowed values
161 1 - v1 error format
162 2 - v2 error format
163
164Returns:
165 An object of the form:
166
167 { # A role in the Identity and Access Management API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800168 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
169 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
170 &quot;A String&quot;,
171 ],
172 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
173 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
174 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
175 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
176 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
177 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178</div>
179
180<div class="method">
181 <code class="details" id="get">get(name, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700182 <pre>Gets the definition of a Role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700183
184Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700185 name: string, The `name` parameter&#x27;s value depends on the target resource for the request, namely [`roles`](/iam/reference/rest/v1/roles), [`projects`](/iam/reference/rest/v1/projects.roles), or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type&#x27;s `name` value format is described below: * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. This method returns results from all [predefined roles](/iam/docs/understanding-roles#predefined_roles) in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190
191Returns:
192 An object of the form:
193
194 { # A role in the Identity and Access Management API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800195 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
196 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
197 &quot;A String&quot;,
198 ],
199 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
200 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
201 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
202 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
203 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
204 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700205</div>
206
207<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800208 <code class="details" id="list">list(parent, pageToken=None, showDeleted=None, pageSize=None, view=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 <pre>Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210
211Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 parent: string, The `parent` parameter&#x27;s value depends on the target resource for the request, namely [`roles`](/iam/reference/rest/v1/roles), [`projects`](/iam/reference/rest/v1/projects.roles), or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type&#x27;s `parent` value format is described below: * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string. This method doesn&#x27;t require a resource; it simply returns all [predefined roles](/iam/docs/understanding-roles#predefined_roles) in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles` * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list): `projects/{PROJECT_ID}`. This method lists all project-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list): `organizations/{ORGANIZATION_ID}`. This method lists all organization-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800213 pageToken: string, Optional pagination token returned in an earlier ListRolesResponse.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 showDeleted: boolean, Include Roles that have been deleted.
215 pageSize: integer, Optional limit on the number of roles to include in the response. The default is 300, and the maximum is 1,000.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700216 view: string, Optional view for the returned Role objects. When `FULL` is specified, the `includedPermissions` field is returned, which includes a list of all permissions in the role. The default value is `BASIC`, which does not return the `includedPermissions` field.
217 Allowed values
218 BASIC - Omits the `included_permissions` field. This is the default value.
219 FULL - Returns all fields.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 x__xgafv: string, V1 error format.
221 Allowed values
222 1 - v1 error format
223 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224
225Returns:
226 An object of the form:
227
228 { # The response containing the roles defined under a resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800229 &quot;nextPageToken&quot;: &quot;A String&quot;, # To retrieve the next page of results, set `ListRolesRequest.page_token` to this value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700230 &quot;roles&quot;: [ # The Roles defined on this resource.
231 { # A role in the Identity and Access Management API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800232 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
233 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
234 &quot;A String&quot;,
235 ],
236 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
237 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
238 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
239 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
240 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
241 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700242 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 }</pre>
244</div>
245
246<div class="method">
247 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
248 <pre>Retrieves the next page of results.
249
250Args:
251 previous_request: The request for the previous page. (required)
252 previous_response: The response from the request for the previous page. (required)
253
254Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256 page. Returns None if there are no more items in the collection.
257 </pre>
258</div>
259
260<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700261 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700262 <pre>Updates the definition of a custom Role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263
264Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 name: string, The `name` parameter&#x27;s value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type&#x27;s `name` value format is described below: * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700266 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700267 The object takes the form of:
268
269{ # A role in the Identity and Access Management API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800270 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
271 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
272 &quot;A String&quot;,
273 ],
274 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
275 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
276 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
277 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
278 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
279 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280
281 updateMask: string, A mask describing which fields in the Role have changed.
282 x__xgafv: string, V1 error format.
283 Allowed values
284 1 - v1 error format
285 2 - v2 error format
286
287Returns:
288 An object of the form:
289
290 { # A role in the Identity and Access Management API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800291 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
292 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
293 &quot;A String&quot;,
294 ],
295 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
296 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
297 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
298 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
299 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
300 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700301</div>
302
303<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700304 <code class="details" id="undelete">undelete(name, body=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700305 <pre>Undeletes a custom Role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306
307Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700308 name: string, The `name` parameter&#x27;s value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type&#x27;s `name` value format is described below: * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700309 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 The object takes the form of:
311
312{ # The request to undelete an existing role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 }
315
316 x__xgafv: string, V1 error format.
317 Allowed values
318 1 - v1 error format
319 2 - v2 error format
320
321Returns:
322 An object of the form:
323
324 { # A role in the Identity and Access Management API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800325 &quot;stage&quot;: &quot;A String&quot;, # The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role.
326 &quot;includedPermissions&quot;: [ # The names of the permissions this role grants when bound in an IAM policy.
327 &quot;A String&quot;,
328 ],
329 &quot;etag&quot;: &quot;A String&quot;, # Used to perform a consistent read-modify-write.
330 &quot;title&quot;: &quot;A String&quot;, # Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
331 &quot;description&quot;: &quot;A String&quot;, # Optional. A human-readable description for the role.
332 &quot;name&quot;: &quot;A String&quot;, # The name of the role. When Role is used in CreateRole, the role name must not be set. When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
333 &quot;deleted&quot;: True or False, # The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
334 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700335</div>
336
337</body></html>