Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -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 | |
| 75 | <h1><a href="secretmanager_v1.html">Secret Manager API</a> . <a href="secretmanager_v1.projects.html">projects</a> . <a href="secretmanager_v1.projects.secrets.html">secrets</a> . <a href="secretmanager_v1.projects.secrets.versions.html">versions</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#access">access(name, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Accesses a SecretVersion. This call returns the secret data.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#destroy">destroy(name, body=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Destroys a SecretVersion.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Disables a SecretVersion.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#enable">enable(name, body=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Enables a SecretVersion.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Gets metadata for a SecretVersion.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
| 94 | <p class="firstline">Lists SecretVersions. This call does not return secret</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 97 | <p class="firstline">Retrieves the next page of results.</p> |
| 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
| 100 | <code class="details" id="access">access(name, x__xgafv=None)</code> |
| 101 | <pre>Accesses a SecretVersion. This call returns the secret data. |
| 102 | |
| 103 | `projects/*/secrets/*/versions/latest` is an alias to the `latest` |
| 104 | SecretVersion. |
| 105 | |
| 106 | Args: |
| 107 | name: string, Required. The resource name of the SecretVersion in the format |
| 108 | `projects/*/secrets/*/versions/*`. (required) |
| 109 | x__xgafv: string, V1 error format. |
| 110 | Allowed values |
| 111 | 1 - v1 error format |
| 112 | 2 - v2 error format |
| 113 | |
| 114 | Returns: |
| 115 | An object of the form: |
| 116 | |
| 117 | { # Response message for SecretManagerService.AccessSecretVersion. |
| 118 | "name": "A String", # The resource name of the SecretVersion in the format |
| 119 | # `projects/*/secrets/*/versions/*`. |
| 120 | "payload": { # A secret payload resource in the Secret Manager API. This contains the # Secret payload |
| 121 | # sensitive secret payload that is associated with a SecretVersion. |
| 122 | "data": "A String", # The secret data. Must be no larger than 64KiB. |
| 123 | }, |
| 124 | }</pre> |
| 125 | </div> |
| 126 | |
| 127 | <div class="method"> |
| 128 | <code class="details" id="destroy">destroy(name, body=None, x__xgafv=None)</code> |
| 129 | <pre>Destroys a SecretVersion. |
| 130 | |
| 131 | Sets the state of the SecretVersion to |
| 132 | DESTROYED and irrevocably destroys the |
| 133 | secret data. |
| 134 | |
| 135 | Args: |
| 136 | name: string, Required. The resource name of the SecretVersion to destroy in the format |
| 137 | `projects/*/secrets/*/versions/*`. (required) |
| 138 | body: object, The request body. |
| 139 | The object takes the form of: |
| 140 | |
| 141 | { # Request message for SecretManagerService.DestroySecretVersion. |
| 142 | } |
| 143 | |
| 144 | x__xgafv: string, V1 error format. |
| 145 | Allowed values |
| 146 | 1 - v1 error format |
| 147 | 2 - v2 error format |
| 148 | |
| 149 | Returns: |
| 150 | An object of the form: |
| 151 | |
| 152 | { # A secret version resource in the Secret Manager API. |
| 153 | "destroyTime": "A String", # Output only. The time this SecretVersion was destroyed. |
| 154 | # Only present if state is |
| 155 | # DESTROYED. |
| 156 | "createTime": "A String", # Output only. The time at which the SecretVersion was created. |
| 157 | "state": "A String", # Output only. The current state of the SecretVersion. |
| 158 | "name": "A String", # Output only. The resource name of the SecretVersion in the |
| 159 | # format `projects/*/secrets/*/versions/*`. |
| 160 | # |
| 161 | # SecretVersion IDs in a Secret start at 1 and |
| 162 | # are incremented for each subsequent version of the secret. |
| 163 | }</pre> |
| 164 | </div> |
| 165 | |
| 166 | <div class="method"> |
| 167 | <code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code> |
| 168 | <pre>Disables a SecretVersion. |
| 169 | |
| 170 | Sets the state of the SecretVersion to |
| 171 | DISABLED. |
| 172 | |
| 173 | Args: |
| 174 | name: string, Required. The resource name of the SecretVersion to disable in the format |
| 175 | `projects/*/secrets/*/versions/*`. (required) |
| 176 | body: object, The request body. |
| 177 | The object takes the form of: |
| 178 | |
| 179 | { # Request message for SecretManagerService.DisableSecretVersion. |
| 180 | } |
| 181 | |
| 182 | x__xgafv: string, V1 error format. |
| 183 | Allowed values |
| 184 | 1 - v1 error format |
| 185 | 2 - v2 error format |
| 186 | |
| 187 | Returns: |
| 188 | An object of the form: |
| 189 | |
| 190 | { # A secret version resource in the Secret Manager API. |
| 191 | "destroyTime": "A String", # Output only. The time this SecretVersion was destroyed. |
| 192 | # Only present if state is |
| 193 | # DESTROYED. |
| 194 | "createTime": "A String", # Output only. The time at which the SecretVersion was created. |
| 195 | "state": "A String", # Output only. The current state of the SecretVersion. |
| 196 | "name": "A String", # Output only. The resource name of the SecretVersion in the |
| 197 | # format `projects/*/secrets/*/versions/*`. |
| 198 | # |
| 199 | # SecretVersion IDs in a Secret start at 1 and |
| 200 | # are incremented for each subsequent version of the secret. |
| 201 | }</pre> |
| 202 | </div> |
| 203 | |
| 204 | <div class="method"> |
| 205 | <code class="details" id="enable">enable(name, body=None, x__xgafv=None)</code> |
| 206 | <pre>Enables a SecretVersion. |
| 207 | |
| 208 | Sets the state of the SecretVersion to |
| 209 | ENABLED. |
| 210 | |
| 211 | Args: |
| 212 | name: string, Required. The resource name of the SecretVersion to enable in the format |
| 213 | `projects/*/secrets/*/versions/*`. (required) |
| 214 | body: object, The request body. |
| 215 | The object takes the form of: |
| 216 | |
| 217 | { # Request message for SecretManagerService.EnableSecretVersion. |
| 218 | } |
| 219 | |
| 220 | x__xgafv: string, V1 error format. |
| 221 | Allowed values |
| 222 | 1 - v1 error format |
| 223 | 2 - v2 error format |
| 224 | |
| 225 | Returns: |
| 226 | An object of the form: |
| 227 | |
| 228 | { # A secret version resource in the Secret Manager API. |
| 229 | "destroyTime": "A String", # Output only. The time this SecretVersion was destroyed. |
| 230 | # Only present if state is |
| 231 | # DESTROYED. |
| 232 | "createTime": "A String", # Output only. The time at which the SecretVersion was created. |
| 233 | "state": "A String", # Output only. The current state of the SecretVersion. |
| 234 | "name": "A String", # Output only. The resource name of the SecretVersion in the |
| 235 | # format `projects/*/secrets/*/versions/*`. |
| 236 | # |
| 237 | # SecretVersion IDs in a Secret start at 1 and |
| 238 | # are incremented for each subsequent version of the secret. |
| 239 | }</pre> |
| 240 | </div> |
| 241 | |
| 242 | <div class="method"> |
| 243 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 244 | <pre>Gets metadata for a SecretVersion. |
| 245 | |
| 246 | `projects/*/secrets/*/versions/latest` is an alias to the `latest` |
| 247 | SecretVersion. |
| 248 | |
| 249 | Args: |
| 250 | name: string, Required. The resource name of the SecretVersion in the format |
| 251 | `projects/*/secrets/*/versions/*`. |
| 252 | `projects/*/secrets/*/versions/latest` is an alias to the `latest` |
| 253 | SecretVersion. (required) |
| 254 | x__xgafv: string, V1 error format. |
| 255 | Allowed values |
| 256 | 1 - v1 error format |
| 257 | 2 - v2 error format |
| 258 | |
| 259 | Returns: |
| 260 | An object of the form: |
| 261 | |
| 262 | { # A secret version resource in the Secret Manager API. |
| 263 | "destroyTime": "A String", # Output only. The time this SecretVersion was destroyed. |
| 264 | # Only present if state is |
| 265 | # DESTROYED. |
| 266 | "createTime": "A String", # Output only. The time at which the SecretVersion was created. |
| 267 | "state": "A String", # Output only. The current state of the SecretVersion. |
| 268 | "name": "A String", # Output only. The resource name of the SecretVersion in the |
| 269 | # format `projects/*/secrets/*/versions/*`. |
| 270 | # |
| 271 | # SecretVersion IDs in a Secret start at 1 and |
| 272 | # are incremented for each subsequent version of the secret. |
| 273 | }</pre> |
| 274 | </div> |
| 275 | |
| 276 | <div class="method"> |
| 277 | <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code> |
| 278 | <pre>Lists SecretVersions. This call does not return secret |
| 279 | data. |
| 280 | |
| 281 | Args: |
| 282 | parent: string, Required. The resource name of the Secret associated with the |
| 283 | SecretVersions to list, in the format |
| 284 | `projects/*/secrets/*`. (required) |
| 285 | pageToken: string, Optional. Pagination token, returned earlier via |
| 286 | ListSecretVersionsResponse.next_page_token][]. |
| 287 | pageSize: integer, Optional. The maximum number of results to be returned in a single page. If |
| 288 | set to 0, the server decides the number of results to return. If the |
| 289 | number is greater than 25000, it is capped at 25000. |
| 290 | x__xgafv: string, V1 error format. |
| 291 | Allowed values |
| 292 | 1 - v1 error format |
| 293 | 2 - v2 error format |
| 294 | |
| 295 | Returns: |
| 296 | An object of the form: |
| 297 | |
| 298 | { # Response message for SecretManagerService.ListSecretVersions. |
| 299 | "versions": [ # The list of SecretVersions sorted in reverse by |
| 300 | # create_time (newest first). |
| 301 | { # A secret version resource in the Secret Manager API. |
| 302 | "destroyTime": "A String", # Output only. The time this SecretVersion was destroyed. |
| 303 | # Only present if state is |
| 304 | # DESTROYED. |
| 305 | "createTime": "A String", # Output only. The time at which the SecretVersion was created. |
| 306 | "state": "A String", # Output only. The current state of the SecretVersion. |
| 307 | "name": "A String", # Output only. The resource name of the SecretVersion in the |
| 308 | # format `projects/*/secrets/*/versions/*`. |
| 309 | # |
| 310 | # SecretVersion IDs in a Secret start at 1 and |
| 311 | # are incremented for each subsequent version of the secret. |
| 312 | }, |
| 313 | ], |
| 314 | "nextPageToken": "A String", # A token to retrieve the next page of results. Pass this value in |
| 315 | # ListSecretVersionsRequest.page_token to retrieve the next page. |
| 316 | "totalSize": 42, # The total number of SecretVersions. |
| 317 | }</pre> |
| 318 | </div> |
| 319 | |
| 320 | <div class="method"> |
| 321 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 322 | <pre>Retrieves the next page of results. |
| 323 | |
| 324 | Args: |
| 325 | previous_request: The request for the previous page. (required) |
| 326 | previous_response: The response from the request for the previous page. (required) |
| 327 | |
| 328 | Returns: |
| 329 | A request object that you can call 'execute()' on to request the next |
| 330 | page. Returns None if there are no more items in the collection. |
| 331 | </pre> |
| 332 | </div> |
| 333 | |
| 334 | </body></html> |