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