Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 75 | <h1><a href="runtimeconfig_v1beta1.html">Cloud Runtime Configuration API</a> . <a href="runtimeconfig_v1beta1.projects.html">projects</a> . <a href="runtimeconfig_v1beta1.projects.configs.html">configs</a></h1> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="runtimeconfig_v1beta1.projects.configs.operations.html">operations()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the operations Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
| 83 | <code><a href="runtimeconfig_v1beta1.projects.configs.variables.html">variables()</a></code> |
| 84 | </p> |
| 85 | <p class="firstline">Returns the variables Resource.</p> |
| 86 | |
| 87 | <p class="toc_element"> |
| 88 | <code><a href="runtimeconfig_v1beta1.projects.configs.waiters.html">waiters()</a></code> |
| 89 | </p> |
| 90 | <p class="firstline">Returns the waiters Resource.</p> |
| 91 | |
| 92 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 93 | <code><a href="#create">create(parent, body=None, requestId=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 94 | <p class="firstline">Creates a new RuntimeConfig resource. The configuration name must be</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 95 | <p class="toc_element"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 96 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 97 | <p class="firstline">Deletes a RuntimeConfig resource.</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 99 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 100 | <p class="firstline">Gets information about a RuntimeConfig resource.</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 101 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 102 | <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 103 | <p class="firstline">Gets the access control policy for a resource.</p> |
| 104 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 105 | <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 106 | <p class="firstline">Lists all the RuntimeConfig resources within project.</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 107 | <p class="toc_element"> |
| 108 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 109 | <p class="firstline">Retrieves the next page of results.</p> |
| 110 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 111 | <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 112 | <p class="firstline">Sets the access control policy on the specified resource. Replaces any</p> |
| 113 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 114 | <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 115 | <p class="firstline">Returns permissions that a caller has on the specified resource.</p> |
| 116 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 117 | <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 118 | <p class="firstline">Updates a RuntimeConfig resource. The configuration must exist beforehand.</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 119 | <h3>Method Details</h3> |
| 120 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 121 | <code class="details" id="create">create(parent, body=None, requestId=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 122 | <pre>Creates a new RuntimeConfig resource. The configuration name must be |
| 123 | unique within project. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 124 | |
| 125 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 126 | parent: string, The [project |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 127 | ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 128 | for this request, in the format `projects/[PROJECT_ID]`. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 129 | body: object, The request body. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 130 | The object takes the form of: |
| 131 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 132 | { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 133 | # service. A RuntimeConfig resource consists of metadata and a hierarchy of |
| 134 | # variables. |
| 135 | "name": "A String", # The resource name of a runtime config. The name must have the format: |
| 136 | # |
| 137 | # projects/[PROJECT_ID]/configs/[CONFIG_NAME] |
| 138 | # |
| 139 | # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an |
| 140 | # arbitrary name that matches the |
| 141 | # `[0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])?` regular expression. |
| 142 | # The length of `[CONFIG_NAME]` must be less than 64 characters. |
| 143 | # |
| 144 | # You pick the RuntimeConfig resource name, but the server will validate that |
| 145 | # the name adheres to this format. After you create the resource, you cannot |
| 146 | # change the resource's name. |
| 147 | "description": "A String", # An optional description of the RuntimeConfig object. |
| 148 | } |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 149 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 150 | requestId: string, An optional but recommended unique `request_id`. If the server |
| 151 | receives two `create()` requests with the same |
| 152 | `request_id`, then the second request will be ignored and the |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 153 | first resource created and stored in the backend is returned. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 154 | Empty `request_id` fields are ignored. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 155 | |
| 156 | It is responsibility of the client to ensure uniqueness of the |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 157 | `request_id` strings. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 158 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 159 | `request_id` strings are limited to 64 characters. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 160 | x__xgafv: string, V1 error format. |
| 161 | Allowed values |
| 162 | 1 - v1 error format |
| 163 | 2 - v2 error format |
| 164 | |
| 165 | Returns: |
| 166 | An object of the form: |
| 167 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 168 | { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 169 | # service. A RuntimeConfig resource consists of metadata and a hierarchy of |
| 170 | # variables. |
| 171 | "name": "A String", # The resource name of a runtime config. The name must have the format: |
| 172 | # |
| 173 | # projects/[PROJECT_ID]/configs/[CONFIG_NAME] |
| 174 | # |
| 175 | # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an |
| 176 | # arbitrary name that matches the |
| 177 | # `[0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])?` regular expression. |
| 178 | # The length of `[CONFIG_NAME]` must be less than 64 characters. |
| 179 | # |
| 180 | # You pick the RuntimeConfig resource name, but the server will validate that |
| 181 | # the name adheres to this format. After you create the resource, you cannot |
| 182 | # change the resource's name. |
| 183 | "description": "A String", # An optional description of the RuntimeConfig object. |
| 184 | }</pre> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 185 | </div> |
| 186 | |
| 187 | <div class="method"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 188 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 189 | <pre>Deletes a RuntimeConfig resource. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 190 | |
| 191 | Args: |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 192 | name: string, The RuntimeConfig resource to delete, in the format: |
| 193 | |
| 194 | `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required) |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 195 | x__xgafv: string, V1 error format. |
| 196 | Allowed values |
| 197 | 1 - v1 error format |
| 198 | 2 - v2 error format |
| 199 | |
| 200 | Returns: |
| 201 | An object of the form: |
| 202 | |
| 203 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 204 | # empty messages in your APIs. A typical example is to use it as the request |
| 205 | # or the response type of an API method. For instance: |
| 206 | # |
| 207 | # service Foo { |
| 208 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 209 | # } |
| 210 | # |
| 211 | # The JSON representation for `Empty` is empty JSON object `{}`. |
| 212 | }</pre> |
| 213 | </div> |
| 214 | |
| 215 | <div class="method"> |
Thomas Coffee | 2f24537 | 2017-03-27 10:39:26 -0700 | [diff] [blame] | 216 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 217 | <pre>Gets information about a RuntimeConfig resource. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 218 | |
| 219 | Args: |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 220 | name: string, The name of the RuntimeConfig resource to retrieve, in the format: |
| 221 | |
| 222 | `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required) |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 223 | x__xgafv: string, V1 error format. |
| 224 | Allowed values |
| 225 | 1 - v1 error format |
| 226 | 2 - v2 error format |
| 227 | |
| 228 | Returns: |
| 229 | An object of the form: |
| 230 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 231 | { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 232 | # service. A RuntimeConfig resource consists of metadata and a hierarchy of |
| 233 | # variables. |
| 234 | "name": "A String", # The resource name of a runtime config. The name must have the format: |
| 235 | # |
| 236 | # projects/[PROJECT_ID]/configs/[CONFIG_NAME] |
| 237 | # |
| 238 | # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an |
| 239 | # arbitrary name that matches the |
| 240 | # `[0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])?` regular expression. |
| 241 | # The length of `[CONFIG_NAME]` must be less than 64 characters. |
| 242 | # |
| 243 | # You pick the RuntimeConfig resource name, but the server will validate that |
| 244 | # the name adheres to this format. After you create the resource, you cannot |
| 245 | # change the resource's name. |
| 246 | "description": "A String", # An optional description of the RuntimeConfig object. |
| 247 | }</pre> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 248 | </div> |
| 249 | |
| 250 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 251 | <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 252 | <pre>Gets the access control policy for a resource. |
| 253 | Returns an empty policy if the resource exists and does not have a policy |
| 254 | set. |
| 255 | |
| 256 | Args: |
| 257 | resource: string, REQUIRED: The resource for which the policy is being requested. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 258 | See the operation documentation for the appropriate value for this field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 259 | options_requestedPolicyVersion: integer, Optional. The policy format version to be returned. |
| 260 | |
| 261 | Valid values are 0, 1, and 3. Requests specifying an invalid value will be |
| 262 | rejected. |
| 263 | |
| 264 | Requests for policies with any conditional bindings must specify version 3. |
| 265 | Policies without any conditional bindings may specify any valid value or |
| 266 | leave the field unset. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 267 | |
| 268 | To learn which resources support conditions in their IAM policies, see the |
| 269 | [IAM |
| 270 | documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 271 | x__xgafv: string, V1 error format. |
| 272 | Allowed values |
| 273 | 1 - v1 error format |
| 274 | 2 - v2 error format |
| 275 | |
| 276 | Returns: |
| 277 | An object of the form: |
| 278 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 279 | { # An Identity and Access Management (IAM) policy, which specifies access |
| 280 | # controls for Google Cloud resources. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 281 | # |
| 282 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 283 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 284 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 285 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 286 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 287 | # custom role. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 288 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 289 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 290 | # `condition`, which is a logical expression that allows access to a resource |
| 291 | # only if the expression evaluates to `true`. A condition can add constraints |
| 292 | # based on attributes of the request, the resource, or both. To learn which |
| 293 | # resources support conditions in their IAM policies, see the |
| 294 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 295 | # |
| 296 | # **JSON example:** |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 297 | # |
| 298 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 299 | # "bindings": [ |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 300 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 301 | # "role": "roles/resourcemanager.organizationAdmin", |
| 302 | # "members": [ |
| 303 | # "user:mike@example.com", |
| 304 | # "group:admins@example.com", |
| 305 | # "domain:google.com", |
| 306 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 307 | # ] |
| 308 | # }, |
| 309 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 310 | # "role": "roles/resourcemanager.organizationViewer", |
| 311 | # "members": [ |
| 312 | # "user:eve@example.com" |
| 313 | # ], |
| 314 | # "condition": { |
| 315 | # "title": "expirable access", |
| 316 | # "description": "Does not grant access after Sep 2020", |
| 317 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 318 | # } |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 319 | # } |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 320 | # ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 321 | # "etag": "BwWWja0YfJA=", |
| 322 | # "version": 3 |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 323 | # } |
| 324 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 325 | # **YAML example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 326 | # |
| 327 | # bindings: |
| 328 | # - members: |
| 329 | # - user:mike@example.com |
| 330 | # - group:admins@example.com |
| 331 | # - domain:google.com |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 332 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 333 | # role: roles/resourcemanager.organizationAdmin |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 334 | # - members: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 335 | # - user:eve@example.com |
| 336 | # role: roles/resourcemanager.organizationViewer |
| 337 | # condition: |
| 338 | # title: expirable access |
| 339 | # description: Does not grant access after Sep 2020 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 340 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 341 | # - etag: BwWWja0YfJA= |
| 342 | # - version: 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 343 | # |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 344 | # For a description of IAM and its features, see the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 345 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 346 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 347 | # prevent simultaneous updates of a policy from overwriting each other. |
| 348 | # It is strongly suggested that systems make use of the `etag` in the |
| 349 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 350 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 351 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 352 | # ensure that their change will be applied to the same version of the policy. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 353 | # |
| 354 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 355 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 356 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 357 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 358 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 359 | # `condition` that determines how and when the `bindings` are applied. Each |
| 360 | # of the `bindings` must contain at least one member. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 361 | { # Associates `members` with a `role`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 362 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 363 | # `members` can have the following values: |
| 364 | # |
| 365 | # * `allUsers`: A special identifier that represents anyone who is |
| 366 | # on the internet; with or without a Google account. |
| 367 | # |
| 368 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 369 | # who is authenticated with a Google account or a service account. |
| 370 | # |
| 371 | # * `user:{emailid}`: An email address that represents a specific Google |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 372 | # account. For example, `alice@example.com` . |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 373 | # |
| 374 | # |
| 375 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 376 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 377 | # |
| 378 | # * `group:{emailid}`: An email address that represents a Google group. |
| 379 | # For example, `admins@example.com`. |
| 380 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 381 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 382 | # identifier) representing a user that has been recently deleted. For |
| 383 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 384 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 385 | # retains the role in the binding. |
| 386 | # |
| 387 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 388 | # unique identifier) representing a service account that has been recently |
| 389 | # deleted. For example, |
| 390 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 391 | # If the service account is undeleted, this value reverts to |
| 392 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 393 | # role in the binding. |
| 394 | # |
| 395 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 396 | # identifier) representing a Google group that has been recently |
| 397 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 398 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 399 | # recovered group retains the role in the binding. |
| 400 | # |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 401 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 402 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 403 | # users of that domain. For example, `google.com` or `example.com`. |
| 404 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 405 | "A String", |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 406 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 407 | "role": "A String", # Role that is assigned to `members`. |
| 408 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 409 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 410 | # |
| 411 | # If the condition evaluates to `true`, then this binding applies to the |
| 412 | # current request. |
| 413 | # |
| 414 | # If the condition evaluates to `false`, then this binding does not apply to |
| 415 | # the current request. However, a different role binding might grant the same |
| 416 | # role to one or more of the members in this binding. |
| 417 | # |
| 418 | # To learn which resources support conditions in their IAM policies, see the |
| 419 | # [IAM |
| 420 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 421 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 422 | # are documented at https://github.com/google/cel-spec. |
| 423 | # |
| 424 | # Example (Comparison): |
| 425 | # |
| 426 | # title: "Summary size limit" |
| 427 | # description: "Determines if a summary is less than 100 chars" |
| 428 | # expression: "document.summary.size() < 100" |
| 429 | # |
| 430 | # Example (Equality): |
| 431 | # |
| 432 | # title: "Requestor is owner" |
| 433 | # description: "Determines if requestor is the document owner" |
| 434 | # expression: "document.owner == request.auth.claims.email" |
| 435 | # |
| 436 | # Example (Logic): |
| 437 | # |
| 438 | # title: "Public documents" |
| 439 | # description: "Determine whether the document should be publicly visible" |
| 440 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 441 | # |
| 442 | # Example (Data Manipulation): |
| 443 | # |
| 444 | # title: "Notification string" |
| 445 | # description: "Create a notification string with a timestamp." |
| 446 | # expression: "'New message received at ' + string(document.create_time)" |
| 447 | # |
| 448 | # The exact variables and functions that may be referenced within an expression |
| 449 | # are determined by the service that evaluates it. See the service |
| 450 | # documentation for additional information. |
| 451 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 452 | # describes the expression, e.g. when hovered over it in a UI. |
| 453 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 454 | # syntax. |
| 455 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 456 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 457 | # expression. |
| 458 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 459 | # reporting, e.g. a file name and a position in the file. |
| 460 | }, |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 461 | }, |
| 462 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 463 | "version": 42, # Specifies the format of the policy. |
| 464 | # |
| 465 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 466 | # are rejected. |
| 467 | # |
| 468 | # Any operation that affects conditional role bindings must specify version |
| 469 | # `3`. This requirement applies to the following operations: |
| 470 | # |
| 471 | # * Getting a policy that includes a conditional role binding |
| 472 | # * Adding a conditional role binding to a policy |
| 473 | # * Changing a conditional role binding in a policy |
| 474 | # * Removing any role binding, with or without a condition, from a policy |
| 475 | # that includes conditions |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 476 | # |
| 477 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 478 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 479 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 480 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 481 | # |
| 482 | # If a policy does not include any conditions, operations on that policy may |
| 483 | # specify any valid version or leave the field unset. |
| 484 | # |
| 485 | # To learn which resources support conditions in their IAM policies, see the |
| 486 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 487 | }</pre> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 488 | </div> |
| 489 | |
| 490 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 491 | <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 492 | <pre>Lists all the RuntimeConfig resources within project. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 493 | |
| 494 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 495 | parent: string, The [project |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 496 | ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 497 | for this request, in the format `projects/[PROJECT_ID]`. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 498 | pageSize: integer, Specifies the number of results to return per page. If there are fewer |
| 499 | elements than the specified number, returns all elements. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 500 | pageToken: string, Specifies a page token to use. Set `pageToken` to a `nextPageToken` |
| 501 | returned by a previous list request to get the next page of results. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 502 | x__xgafv: string, V1 error format. |
| 503 | Allowed values |
| 504 | 1 - v1 error format |
| 505 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 506 | |
| 507 | Returns: |
| 508 | An object of the form: |
| 509 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 510 | { # `ListConfigs()` returns the following response. The order of returned |
| 511 | # objects is arbitrary; that is, it is not ordered in any particular way. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 512 | "configs": [ # A list of the configurations in the project. The order of returned |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 513 | # objects is arbitrary; that is, it is not ordered in any particular way. |
| 514 | { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 515 | # service. A RuntimeConfig resource consists of metadata and a hierarchy of |
| 516 | # variables. |
| 517 | "name": "A String", # The resource name of a runtime config. The name must have the format: |
| 518 | # |
| 519 | # projects/[PROJECT_ID]/configs/[CONFIG_NAME] |
| 520 | # |
| 521 | # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an |
| 522 | # arbitrary name that matches the |
| 523 | # `[0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])?` regular expression. |
| 524 | # The length of `[CONFIG_NAME]` must be less than 64 characters. |
| 525 | # |
| 526 | # You pick the RuntimeConfig resource name, but the server will validate that |
| 527 | # the name adheres to this format. After you create the resource, you cannot |
| 528 | # change the resource's name. |
| 529 | "description": "A String", # An optional description of the RuntimeConfig object. |
| 530 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 531 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 532 | "nextPageToken": "A String", # This token allows you to get the next page of results for list requests. |
| 533 | # If the number of results is larger than `pageSize`, use the `nextPageToken` |
| 534 | # as a value for the query parameter `pageToken` in the next list request. |
| 535 | # Subsequent list requests will have their own `nextPageToken` to continue |
| 536 | # paging through the results |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 537 | }</pre> |
| 538 | </div> |
| 539 | |
| 540 | <div class="method"> |
| 541 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 542 | <pre>Retrieves the next page of results. |
| 543 | |
| 544 | Args: |
| 545 | previous_request: The request for the previous page. (required) |
| 546 | previous_response: The response from the request for the previous page. (required) |
| 547 | |
| 548 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 549 | A request object that you can call 'execute()' on to request the next |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 550 | page. Returns None if there are no more items in the collection. |
| 551 | </pre> |
| 552 | </div> |
| 553 | |
| 554 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 555 | <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 556 | <pre>Sets the access control policy on the specified resource. Replaces any |
| 557 | existing policy. |
| 558 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 559 | Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. |
| 560 | |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 561 | Args: |
| 562 | resource: string, REQUIRED: The resource for which the policy is being specified. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 563 | See the operation documentation for the appropriate value for this field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 564 | body: object, The request body. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 565 | The object takes the form of: |
| 566 | |
| 567 | { # Request message for `SetIamPolicy` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 568 | "policy": { # 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 Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 569 | # the policy is limited to a few 10s of KB. An empty policy is a |
| 570 | # valid policy but certain Cloud Platform services (such as Projects) |
| 571 | # might reject them. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 572 | # controls for Google Cloud resources. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 573 | # |
| 574 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 575 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 576 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 577 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 578 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 579 | # custom role. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 580 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 581 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 582 | # `condition`, which is a logical expression that allows access to a resource |
| 583 | # only if the expression evaluates to `true`. A condition can add constraints |
| 584 | # based on attributes of the request, the resource, or both. To learn which |
| 585 | # resources support conditions in their IAM policies, see the |
| 586 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 587 | # |
| 588 | # **JSON example:** |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 589 | # |
| 590 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 591 | # "bindings": [ |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 592 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 593 | # "role": "roles/resourcemanager.organizationAdmin", |
| 594 | # "members": [ |
| 595 | # "user:mike@example.com", |
| 596 | # "group:admins@example.com", |
| 597 | # "domain:google.com", |
| 598 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 599 | # ] |
| 600 | # }, |
| 601 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 602 | # "role": "roles/resourcemanager.organizationViewer", |
| 603 | # "members": [ |
| 604 | # "user:eve@example.com" |
| 605 | # ], |
| 606 | # "condition": { |
| 607 | # "title": "expirable access", |
| 608 | # "description": "Does not grant access after Sep 2020", |
| 609 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 610 | # } |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 611 | # } |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 612 | # ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 613 | # "etag": "BwWWja0YfJA=", |
| 614 | # "version": 3 |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 615 | # } |
| 616 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 617 | # **YAML example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 618 | # |
| 619 | # bindings: |
| 620 | # - members: |
| 621 | # - user:mike@example.com |
| 622 | # - group:admins@example.com |
| 623 | # - domain:google.com |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 624 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 625 | # role: roles/resourcemanager.organizationAdmin |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 626 | # - members: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 627 | # - user:eve@example.com |
| 628 | # role: roles/resourcemanager.organizationViewer |
| 629 | # condition: |
| 630 | # title: expirable access |
| 631 | # description: Does not grant access after Sep 2020 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 632 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 633 | # - etag: BwWWja0YfJA= |
| 634 | # - version: 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 635 | # |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 636 | # For a description of IAM and its features, see the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 637 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 638 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 639 | # prevent simultaneous updates of a policy from overwriting each other. |
| 640 | # It is strongly suggested that systems make use of the `etag` in the |
| 641 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 642 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 643 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 644 | # ensure that their change will be applied to the same version of the policy. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 645 | # |
| 646 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 647 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 648 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 649 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 650 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 651 | # `condition` that determines how and when the `bindings` are applied. Each |
| 652 | # of the `bindings` must contain at least one member. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 653 | { # Associates `members` with a `role`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 654 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 655 | # `members` can have the following values: |
| 656 | # |
| 657 | # * `allUsers`: A special identifier that represents anyone who is |
| 658 | # on the internet; with or without a Google account. |
| 659 | # |
| 660 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 661 | # who is authenticated with a Google account or a service account. |
| 662 | # |
| 663 | # * `user:{emailid}`: An email address that represents a specific Google |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 664 | # account. For example, `alice@example.com` . |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 665 | # |
| 666 | # |
| 667 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 668 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 669 | # |
| 670 | # * `group:{emailid}`: An email address that represents a Google group. |
| 671 | # For example, `admins@example.com`. |
| 672 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 673 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 674 | # identifier) representing a user that has been recently deleted. For |
| 675 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 676 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 677 | # retains the role in the binding. |
| 678 | # |
| 679 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 680 | # unique identifier) representing a service account that has been recently |
| 681 | # deleted. For example, |
| 682 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 683 | # If the service account is undeleted, this value reverts to |
| 684 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 685 | # role in the binding. |
| 686 | # |
| 687 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 688 | # identifier) representing a Google group that has been recently |
| 689 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 690 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 691 | # recovered group retains the role in the binding. |
| 692 | # |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 693 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 694 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 695 | # users of that domain. For example, `google.com` or `example.com`. |
| 696 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 697 | "A String", |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 698 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 699 | "role": "A String", # Role that is assigned to `members`. |
| 700 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 701 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 702 | # |
| 703 | # If the condition evaluates to `true`, then this binding applies to the |
| 704 | # current request. |
| 705 | # |
| 706 | # If the condition evaluates to `false`, then this binding does not apply to |
| 707 | # the current request. However, a different role binding might grant the same |
| 708 | # role to one or more of the members in this binding. |
| 709 | # |
| 710 | # To learn which resources support conditions in their IAM policies, see the |
| 711 | # [IAM |
| 712 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 713 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 714 | # are documented at https://github.com/google/cel-spec. |
| 715 | # |
| 716 | # Example (Comparison): |
| 717 | # |
| 718 | # title: "Summary size limit" |
| 719 | # description: "Determines if a summary is less than 100 chars" |
| 720 | # expression: "document.summary.size() < 100" |
| 721 | # |
| 722 | # Example (Equality): |
| 723 | # |
| 724 | # title: "Requestor is owner" |
| 725 | # description: "Determines if requestor is the document owner" |
| 726 | # expression: "document.owner == request.auth.claims.email" |
| 727 | # |
| 728 | # Example (Logic): |
| 729 | # |
| 730 | # title: "Public documents" |
| 731 | # description: "Determine whether the document should be publicly visible" |
| 732 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 733 | # |
| 734 | # Example (Data Manipulation): |
| 735 | # |
| 736 | # title: "Notification string" |
| 737 | # description: "Create a notification string with a timestamp." |
| 738 | # expression: "'New message received at ' + string(document.create_time)" |
| 739 | # |
| 740 | # The exact variables and functions that may be referenced within an expression |
| 741 | # are determined by the service that evaluates it. See the service |
| 742 | # documentation for additional information. |
| 743 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 744 | # describes the expression, e.g. when hovered over it in a UI. |
| 745 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 746 | # syntax. |
| 747 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 748 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 749 | # expression. |
| 750 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 751 | # reporting, e.g. a file name and a position in the file. |
| 752 | }, |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 753 | }, |
| 754 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 755 | "version": 42, # Specifies the format of the policy. |
| 756 | # |
| 757 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 758 | # are rejected. |
| 759 | # |
| 760 | # Any operation that affects conditional role bindings must specify version |
| 761 | # `3`. This requirement applies to the following operations: |
| 762 | # |
| 763 | # * Getting a policy that includes a conditional role binding |
| 764 | # * Adding a conditional role binding to a policy |
| 765 | # * Changing a conditional role binding in a policy |
| 766 | # * Removing any role binding, with or without a condition, from a policy |
| 767 | # that includes conditions |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 768 | # |
| 769 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 770 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 771 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 772 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 773 | # |
| 774 | # If a policy does not include any conditions, operations on that policy may |
| 775 | # specify any valid version or leave the field unset. |
| 776 | # |
| 777 | # To learn which resources support conditions in their IAM policies, see the |
| 778 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 779 | }, |
| 780 | } |
| 781 | |
| 782 | x__xgafv: string, V1 error format. |
| 783 | Allowed values |
| 784 | 1 - v1 error format |
| 785 | 2 - v2 error format |
| 786 | |
| 787 | Returns: |
| 788 | An object of the form: |
| 789 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 790 | { # An Identity and Access Management (IAM) policy, which specifies access |
| 791 | # controls for Google Cloud resources. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 792 | # |
| 793 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 794 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 795 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 796 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 797 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 798 | # custom role. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 799 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 800 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 801 | # `condition`, which is a logical expression that allows access to a resource |
| 802 | # only if the expression evaluates to `true`. A condition can add constraints |
| 803 | # based on attributes of the request, the resource, or both. To learn which |
| 804 | # resources support conditions in their IAM policies, see the |
| 805 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 806 | # |
| 807 | # **JSON example:** |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 808 | # |
| 809 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 810 | # "bindings": [ |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 811 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 812 | # "role": "roles/resourcemanager.organizationAdmin", |
| 813 | # "members": [ |
| 814 | # "user:mike@example.com", |
| 815 | # "group:admins@example.com", |
| 816 | # "domain:google.com", |
| 817 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 818 | # ] |
| 819 | # }, |
| 820 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 821 | # "role": "roles/resourcemanager.organizationViewer", |
| 822 | # "members": [ |
| 823 | # "user:eve@example.com" |
| 824 | # ], |
| 825 | # "condition": { |
| 826 | # "title": "expirable access", |
| 827 | # "description": "Does not grant access after Sep 2020", |
| 828 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 829 | # } |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 830 | # } |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 831 | # ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 832 | # "etag": "BwWWja0YfJA=", |
| 833 | # "version": 3 |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 834 | # } |
| 835 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 836 | # **YAML example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 837 | # |
| 838 | # bindings: |
| 839 | # - members: |
| 840 | # - user:mike@example.com |
| 841 | # - group:admins@example.com |
| 842 | # - domain:google.com |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 843 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 844 | # role: roles/resourcemanager.organizationAdmin |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 845 | # - members: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 846 | # - user:eve@example.com |
| 847 | # role: roles/resourcemanager.organizationViewer |
| 848 | # condition: |
| 849 | # title: expirable access |
| 850 | # description: Does not grant access after Sep 2020 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 851 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 852 | # - etag: BwWWja0YfJA= |
| 853 | # - version: 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 854 | # |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 855 | # For a description of IAM and its features, see the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 856 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 857 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 858 | # prevent simultaneous updates of a policy from overwriting each other. |
| 859 | # It is strongly suggested that systems make use of the `etag` in the |
| 860 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 861 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 862 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 863 | # ensure that their change will be applied to the same version of the policy. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 864 | # |
| 865 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 866 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 867 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 868 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 869 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 870 | # `condition` that determines how and when the `bindings` are applied. Each |
| 871 | # of the `bindings` must contain at least one member. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 872 | { # Associates `members` with a `role`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 873 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 874 | # `members` can have the following values: |
| 875 | # |
| 876 | # * `allUsers`: A special identifier that represents anyone who is |
| 877 | # on the internet; with or without a Google account. |
| 878 | # |
| 879 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 880 | # who is authenticated with a Google account or a service account. |
| 881 | # |
| 882 | # * `user:{emailid}`: An email address that represents a specific Google |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 883 | # account. For example, `alice@example.com` . |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 884 | # |
| 885 | # |
| 886 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 887 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 888 | # |
| 889 | # * `group:{emailid}`: An email address that represents a Google group. |
| 890 | # For example, `admins@example.com`. |
| 891 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 892 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 893 | # identifier) representing a user that has been recently deleted. For |
| 894 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 895 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 896 | # retains the role in the binding. |
| 897 | # |
| 898 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 899 | # unique identifier) representing a service account that has been recently |
| 900 | # deleted. For example, |
| 901 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 902 | # If the service account is undeleted, this value reverts to |
| 903 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 904 | # role in the binding. |
| 905 | # |
| 906 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 907 | # identifier) representing a Google group that has been recently |
| 908 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 909 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 910 | # recovered group retains the role in the binding. |
| 911 | # |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 912 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 913 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 914 | # users of that domain. For example, `google.com` or `example.com`. |
| 915 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 916 | "A String", |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 917 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 918 | "role": "A String", # Role that is assigned to `members`. |
| 919 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 920 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 921 | # |
| 922 | # If the condition evaluates to `true`, then this binding applies to the |
| 923 | # current request. |
| 924 | # |
| 925 | # If the condition evaluates to `false`, then this binding does not apply to |
| 926 | # the current request. However, a different role binding might grant the same |
| 927 | # role to one or more of the members in this binding. |
| 928 | # |
| 929 | # To learn which resources support conditions in their IAM policies, see the |
| 930 | # [IAM |
| 931 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 932 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 933 | # are documented at https://github.com/google/cel-spec. |
| 934 | # |
| 935 | # Example (Comparison): |
| 936 | # |
| 937 | # title: "Summary size limit" |
| 938 | # description: "Determines if a summary is less than 100 chars" |
| 939 | # expression: "document.summary.size() < 100" |
| 940 | # |
| 941 | # Example (Equality): |
| 942 | # |
| 943 | # title: "Requestor is owner" |
| 944 | # description: "Determines if requestor is the document owner" |
| 945 | # expression: "document.owner == request.auth.claims.email" |
| 946 | # |
| 947 | # Example (Logic): |
| 948 | # |
| 949 | # title: "Public documents" |
| 950 | # description: "Determine whether the document should be publicly visible" |
| 951 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 952 | # |
| 953 | # Example (Data Manipulation): |
| 954 | # |
| 955 | # title: "Notification string" |
| 956 | # description: "Create a notification string with a timestamp." |
| 957 | # expression: "'New message received at ' + string(document.create_time)" |
| 958 | # |
| 959 | # The exact variables and functions that may be referenced within an expression |
| 960 | # are determined by the service that evaluates it. See the service |
| 961 | # documentation for additional information. |
| 962 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 963 | # describes the expression, e.g. when hovered over it in a UI. |
| 964 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 965 | # syntax. |
| 966 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 967 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 968 | # expression. |
| 969 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 970 | # reporting, e.g. a file name and a position in the file. |
| 971 | }, |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 972 | }, |
| 973 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 974 | "version": 42, # Specifies the format of the policy. |
| 975 | # |
| 976 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 977 | # are rejected. |
| 978 | # |
| 979 | # Any operation that affects conditional role bindings must specify version |
| 980 | # `3`. This requirement applies to the following operations: |
| 981 | # |
| 982 | # * Getting a policy that includes a conditional role binding |
| 983 | # * Adding a conditional role binding to a policy |
| 984 | # * Changing a conditional role binding in a policy |
| 985 | # * Removing any role binding, with or without a condition, from a policy |
| 986 | # that includes conditions |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 987 | # |
| 988 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 989 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 990 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 991 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 992 | # |
| 993 | # If a policy does not include any conditions, operations on that policy may |
| 994 | # specify any valid version or leave the field unset. |
| 995 | # |
| 996 | # To learn which resources support conditions in their IAM policies, see the |
| 997 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 998 | }</pre> |
| 999 | </div> |
| 1000 | |
| 1001 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1002 | <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1003 | <pre>Returns permissions that a caller has on the specified resource. |
| 1004 | If the resource does not exist, this will return an empty set of |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1005 | permissions, not a `NOT_FOUND` error. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1006 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1007 | Note: This operation is designed to be used for building permission-aware |
| 1008 | UIs and command-line tools, not for authorization checking. This operation |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1009 | may "fail open" without warning. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1010 | |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1011 | Args: |
| 1012 | resource: string, REQUIRED: The resource for which the policy detail is being requested. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1013 | See the operation documentation for the appropriate value for this field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1014 | body: object, The request body. |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1015 | The object takes the form of: |
| 1016 | |
| 1017 | { # Request message for `TestIamPermissions` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1018 | "permissions": [ # The set of permissions to check for the `resource`. Permissions with |
| 1019 | # wildcards (such as '*' or 'storage.*') are not allowed. For more |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1020 | # information see |
| 1021 | # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1022 | "A String", |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1023 | ], |
| 1024 | } |
| 1025 | |
| 1026 | x__xgafv: string, V1 error format. |
| 1027 | Allowed values |
| 1028 | 1 - v1 error format |
| 1029 | 2 - v2 error format |
| 1030 | |
| 1031 | Returns: |
| 1032 | An object of the form: |
| 1033 | |
| 1034 | { # Response message for `TestIamPermissions` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1035 | "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1036 | # allowed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1037 | "A String", |
Jon Wayne Parrott | 692617a | 2017-01-06 09:58:29 -0800 | [diff] [blame] | 1038 | ], |
| 1039 | }</pre> |
| 1040 | </div> |
| 1041 | |
| 1042 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1043 | <code class="details" id="update">update(name, body=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1044 | <pre>Updates a RuntimeConfig resource. The configuration must exist beforehand. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1045 | |
| 1046 | Args: |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1047 | name: string, The name of the RuntimeConfig resource to update, in the format: |
| 1048 | |
| 1049 | `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1050 | body: object, The request body. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1051 | The object takes the form of: |
| 1052 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1053 | { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1054 | # service. A RuntimeConfig resource consists of metadata and a hierarchy of |
| 1055 | # variables. |
| 1056 | "name": "A String", # The resource name of a runtime config. The name must have the format: |
| 1057 | # |
| 1058 | # projects/[PROJECT_ID]/configs/[CONFIG_NAME] |
| 1059 | # |
| 1060 | # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an |
| 1061 | # arbitrary name that matches the |
| 1062 | # `[0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])?` regular expression. |
| 1063 | # The length of `[CONFIG_NAME]` must be less than 64 characters. |
| 1064 | # |
| 1065 | # You pick the RuntimeConfig resource name, but the server will validate that |
| 1066 | # the name adheres to this format. After you create the resource, you cannot |
| 1067 | # change the resource's name. |
| 1068 | "description": "A String", # An optional description of the RuntimeConfig object. |
| 1069 | } |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1070 | |
| 1071 | x__xgafv: string, V1 error format. |
| 1072 | Allowed values |
| 1073 | 1 - v1 error format |
| 1074 | 2 - v2 error format |
| 1075 | |
| 1076 | Returns: |
| 1077 | An object of the form: |
| 1078 | |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 1079 | { # A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1080 | # service. A RuntimeConfig resource consists of metadata and a hierarchy of |
| 1081 | # variables. |
| 1082 | "name": "A String", # The resource name of a runtime config. The name must have the format: |
| 1083 | # |
| 1084 | # projects/[PROJECT_ID]/configs/[CONFIG_NAME] |
| 1085 | # |
| 1086 | # The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an |
| 1087 | # arbitrary name that matches the |
| 1088 | # `[0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])?` regular expression. |
| 1089 | # The length of `[CONFIG_NAME]` must be less than 64 characters. |
| 1090 | # |
| 1091 | # You pick the RuntimeConfig resource name, but the server will validate that |
| 1092 | # the name adheres to this format. After you create the resource, you cannot |
| 1093 | # change the resource's name. |
| 1094 | "description": "A String", # An optional description of the RuntimeConfig object. |
| 1095 | }</pre> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1096 | </div> |
| 1097 | |
| 1098 | </body></html> |