blob: 14b6207ac3d4fc76fb5d780b9a27ec3ad37a3ffe [file] [log] [blame]
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="runtimeconfig_v1beta1.html">Cloud Runtime Configuration API</a> . <a href="runtimeconfig_v1beta1.projects.html">projects</a> . <a href="runtimeconfig_v1beta1.projects.configs.html">configs</a> . <a href="runtimeconfig_v1beta1.projects.configs.variables.html">variables</a></h1>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, requestId=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070079<p class="firstline">Creates a variable within the given configuration. You cannot create</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070080<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#delete">delete(name, recursive=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070082<p class="firstline">Deletes a variable or multiple variables.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070083<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070084 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070085<p class="firstline">Gets information about a single variable.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070086<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070087 <code><a href="#list">list(parent, pageToken=None, returnValues=None, pageSize=None, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists variables within given a configuration, matching any provided</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080094<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070097<p class="firstline">Updates an existing variable with a new value.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#watch">watch(name, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700100<p class="firstline">Watches a specific variable and waits for a change in the variable's value.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="create">create(parent, body=None, requestId=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700104 <pre>Creates a variable within the given configuration. You cannot create
105a variable with a name that is a prefix of an existing variable name, or a
106name that has an existing variable name as a prefix.
107
108To learn more about creating a variable, read the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109[Setting and Getting
110Data](/deployment-manager/runtime-configurator/set-and-get-variables)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700111documentation.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700112
113Args:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700114 parent: string, The path to the RutimeConfig resource that this variable should belong to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115The configuration must exist beforehand; the path must be in the format:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700116
117`projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700119 The object takes the form of:
120
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700121{ # Describes a single variable within a RuntimeConfig resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700122 # The name denotes the hierarchical variable name. For example,
123 # `ports/serving_port` is a valid variable name. The variable value is an
124 # opaque string and only leaf variables can have values (that is, variables
125 # that do not have any child variables).
126 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time of the last variable update.
127 # Timestamp will be UTC timestamp.
128 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the variable. The variable state
129 # indicates the outcome of the `variables().watch` call and is visible
130 # through the `get` and `list` calls.
131 &quot;name&quot;: &quot;A String&quot;, # The name of the variable resource, in the format:
132 #
133 # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
134 #
135 # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
136 # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system
137 # file path naming.
138 #
139 # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
140 # dashes. Slashes are used as path element separators and are not part of the
141 # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
142 # non-slash character. Multiple slashes are coalesced into single slash
143 # character. Each path segment should match
144 # [0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])? regular expression.
145 # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
146 #
147 # Once you create a variable, you cannot change the variable name.
148 &quot;text&quot;: &quot;A String&quot;, # The string value of the variable. The length of the value must be less
149 # than 4096 bytes. Empty values are also accepted. For example,
150 # `text: &quot;my text value&quot;`. The string must be valid UTF-8.
151 &quot;value&quot;: &quot;A String&quot;, # The binary value of the variable. The length of the value must be less
152 # than 4096 bytes. Empty values are also accepted. The value must be
153 # base64 encoded, and must comply with IETF RFC4648
154 # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
155 # can be set.
156}
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700157
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400158 requestId: string, An optional but recommended unique `request_id`. If the server
159receives two `create()` requests with the same
160`request_id`, then the second request will be ignored and the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800161first resource created and stored in the backend is returned.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400162Empty `request_id` fields are ignored.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800163
164It is responsibility of the client to ensure uniqueness of the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400165`request_id` strings.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800166
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400167`request_id` strings are limited to 64 characters.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700168 x__xgafv: string, V1 error format.
169 Allowed values
170 1 - v1 error format
171 2 - v2 error format
172
173Returns:
174 An object of the form:
175
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700176 { # Describes a single variable within a RuntimeConfig resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700177 # The name denotes the hierarchical variable name. For example,
178 # `ports/serving_port` is a valid variable name. The variable value is an
179 # opaque string and only leaf variables can have values (that is, variables
180 # that do not have any child variables).
181 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time of the last variable update.
182 # Timestamp will be UTC timestamp.
183 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the variable. The variable state
184 # indicates the outcome of the `variables().watch` call and is visible
185 # through the `get` and `list` calls.
186 &quot;name&quot;: &quot;A String&quot;, # The name of the variable resource, in the format:
187 #
188 # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
189 #
190 # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
191 # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system
192 # file path naming.
193 #
194 # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
195 # dashes. Slashes are used as path element separators and are not part of the
196 # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
197 # non-slash character. Multiple slashes are coalesced into single slash
198 # character. Each path segment should match
199 # [0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])? regular expression.
200 # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
201 #
202 # Once you create a variable, you cannot change the variable name.
203 &quot;text&quot;: &quot;A String&quot;, # The string value of the variable. The length of the value must be less
204 # than 4096 bytes. Empty values are also accepted. For example,
205 # `text: &quot;my text value&quot;`. The string must be valid UTF-8.
206 &quot;value&quot;: &quot;A String&quot;, # The binary value of the variable. The length of the value must be less
207 # than 4096 bytes. Empty values are also accepted. The value must be
208 # base64 encoded, and must comply with IETF RFC4648
209 # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
210 # can be set.
211 }</pre>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700212</div>
213
214<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 <code class="details" id="delete">delete(name, recursive=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700216 <pre>Deletes a variable or multiple variables.
217
218If you specify a variable name, then that variable is deleted. If you
219specify a prefix and `recursive` is true, then all variables with that
220prefix are deleted. You must set a `recursive` to true if you delete
221variables by prefix.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700222
223Args:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700224 name: string, The name of the variable to delete, in the format:
225
226`projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 recursive: boolean, Set to `true` to recursively delete multiple variables with the same
228prefix.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700229 x__xgafv: string, V1 error format.
230 Allowed values
231 1 - v1 error format
232 2 - v2 error format
233
234Returns:
235 An object of the form:
236
237 { # A generic empty message that you can re-use to avoid defining duplicated
238 # empty messages in your APIs. A typical example is to use it as the request
239 # or the response type of an API method. For instance:
240 #
241 # service Foo {
242 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
243 # }
244 #
245 # The JSON representation for `Empty` is empty JSON object `{}`.
246 }</pre>
247</div>
248
249<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700250 <code class="details" id="get">get(name, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700251 <pre>Gets information about a single variable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700252
253Args:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700254 name: string, The name of the variable to return, in the format:
255
256`projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` (required)
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700257 x__xgafv: string, V1 error format.
258 Allowed values
259 1 - v1 error format
260 2 - v2 error format
261
262Returns:
263 An object of the form:
264
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700265 { # Describes a single variable within a RuntimeConfig resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700266 # The name denotes the hierarchical variable name. For example,
267 # `ports/serving_port` is a valid variable name. The variable value is an
268 # opaque string and only leaf variables can have values (that is, variables
269 # that do not have any child variables).
270 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time of the last variable update.
271 # Timestamp will be UTC timestamp.
272 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the variable. The variable state
273 # indicates the outcome of the `variables().watch` call and is visible
274 # through the `get` and `list` calls.
275 &quot;name&quot;: &quot;A String&quot;, # The name of the variable resource, in the format:
276 #
277 # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
278 #
279 # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
280 # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system
281 # file path naming.
282 #
283 # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
284 # dashes. Slashes are used as path element separators and are not part of the
285 # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
286 # non-slash character. Multiple slashes are coalesced into single slash
287 # character. Each path segment should match
288 # [0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])? regular expression.
289 # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
290 #
291 # Once you create a variable, you cannot change the variable name.
292 &quot;text&quot;: &quot;A String&quot;, # The string value of the variable. The length of the value must be less
293 # than 4096 bytes. Empty values are also accepted. For example,
294 # `text: &quot;my text value&quot;`. The string must be valid UTF-8.
295 &quot;value&quot;: &quot;A String&quot;, # The binary value of the variable. The length of the value must be less
296 # than 4096 bytes. Empty values are also accepted. The value must be
297 # base64 encoded, and must comply with IETF RFC4648
298 # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
299 # can be set.
300 }</pre>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700301</div>
302
303<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700304 <code class="details" id="list">list(parent, pageToken=None, returnValues=None, pageSize=None, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305 <pre>Lists variables within given a configuration, matching any provided
306filters. This only lists variable names, not the values, unless
307`return_values` is true, in which case only variables that user has IAM
308permission to GetVariable will be returned.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700309
310Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700311 parent: string, The path to the RuntimeConfig resource for which you want to list
312variables. The configuration must exist beforehand; the path must be in the
313format:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700314
315`projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 pageToken: string, Specifies a page token to use. Set `pageToken` to a `nextPageToken`
317returned by a previous list request to get the next page of results.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400318 returnValues: boolean, The flag indicates whether the user wants to return values of variables.
319If true, then only those variables that user has IAM GetVariable permission
320will be returned along with their values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 pageSize: integer, Specifies the number of results to return per page. If there are fewer
322elements than the specified number, returns all elements.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700323 filter: string, Filters variables by matching the specified filter. For example:
324
325`projects/example-project/config/[CONFIG_NAME]/variables/example-variable`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700326 x__xgafv: string, V1 error format.
327 Allowed values
328 1 - v1 error format
329 2 - v2 error format
330
331Returns:
332 An object of the form:
333
334 { # Response for the `ListVariables()` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 &quot;variables&quot;: [ # A list of variables and their values. The order of returned variable
336 # objects is arbitrary.
337 { # Describes a single variable within a RuntimeConfig resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700338 # The name denotes the hierarchical variable name. For example,
339 # `ports/serving_port` is a valid variable name. The variable value is an
340 # opaque string and only leaf variables can have values (that is, variables
341 # that do not have any child variables).
342 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time of the last variable update.
343 # Timestamp will be UTC timestamp.
344 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the variable. The variable state
345 # indicates the outcome of the `variables().watch` call and is visible
346 # through the `get` and `list` calls.
347 &quot;name&quot;: &quot;A String&quot;, # The name of the variable resource, in the format:
348 #
349 # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
350 #
351 # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
352 # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system
353 # file path naming.
354 #
355 # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
356 # dashes. Slashes are used as path element separators and are not part of the
357 # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
358 # non-slash character. Multiple slashes are coalesced into single slash
359 # character. Each path segment should match
360 # [0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])? regular expression.
361 # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
362 #
363 # Once you create a variable, you cannot change the variable name.
364 &quot;text&quot;: &quot;A String&quot;, # The string value of the variable. The length of the value must be less
365 # than 4096 bytes. Empty values are also accepted. For example,
366 # `text: &quot;my text value&quot;`. The string must be valid UTF-8.
367 &quot;value&quot;: &quot;A String&quot;, # The binary value of the variable. The length of the value must be less
368 # than 4096 bytes. Empty values are also accepted. The value must be
369 # base64 encoded, and must comply with IETF RFC4648
370 # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
371 # can be set.
372 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 ],
374 &quot;nextPageToken&quot;: &quot;A String&quot;, # This token allows you to get the next page of results for list requests.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700375 # If the number of results is larger than `pageSize`, use the `nextPageToken`
376 # as a value for the query parameter `pageToken` in the next list request.
377 # Subsequent list requests will have their own `nextPageToken` to continue
378 # paging through the results
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700379 }</pre>
380</div>
381
382<div class="method">
383 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
384 <pre>Retrieves the next page of results.
385
386Args:
387 previous_request: The request for the previous page. (required)
388 previous_response: The response from the request for the previous page. (required)
389
390Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700392 page. Returns None if there are no more items in the collection.
393 </pre>
394</div>
395
396<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700397 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800398 <pre>Returns permissions that a caller has on the specified resource.
399If the resource does not exist, this will return an empty set of
Dan O'Mearadd494642020-05-01 07:42:23 -0700400permissions, not a `NOT_FOUND` error.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800401
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400402Note: This operation is designed to be used for building permission-aware
403UIs and command-line tools, not for authorization checking. This operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700404may &quot;fail open&quot; without warning.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400405
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800406Args:
407 resource: string, REQUIRED: The resource for which the policy detail is being requested.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400408See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400410 The object takes the form of:
411
412{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
414 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400415 # information see
416 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400418 ],
419 }
420
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800421 x__xgafv: string, V1 error format.
422 Allowed values
423 1 - v1 error format
424 2 - v2 error format
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800425
426Returns:
427 An object of the form:
428
429 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800431 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800433 ],
434 }</pre>
435</div>
436
437<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700438 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700439 <pre>Updates an existing variable with a new value.
440
441Args:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700442 name: string, The name of the variable to update, in the format:
443
444`projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700445 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700446 The object takes the form of:
447
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700448{ # Describes a single variable within a RuntimeConfig resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700449 # The name denotes the hierarchical variable name. For example,
450 # `ports/serving_port` is a valid variable name. The variable value is an
451 # opaque string and only leaf variables can have values (that is, variables
452 # that do not have any child variables).
453 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time of the last variable update.
454 # Timestamp will be UTC timestamp.
455 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the variable. The variable state
456 # indicates the outcome of the `variables().watch` call and is visible
457 # through the `get` and `list` calls.
458 &quot;name&quot;: &quot;A String&quot;, # The name of the variable resource, in the format:
459 #
460 # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
461 #
462 # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
463 # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system
464 # file path naming.
465 #
466 # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
467 # dashes. Slashes are used as path element separators and are not part of the
468 # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
469 # non-slash character. Multiple slashes are coalesced into single slash
470 # character. Each path segment should match
471 # [0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])? regular expression.
472 # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
473 #
474 # Once you create a variable, you cannot change the variable name.
475 &quot;text&quot;: &quot;A String&quot;, # The string value of the variable. The length of the value must be less
476 # than 4096 bytes. Empty values are also accepted. For example,
477 # `text: &quot;my text value&quot;`. The string must be valid UTF-8.
478 &quot;value&quot;: &quot;A String&quot;, # The binary value of the variable. The length of the value must be less
479 # than 4096 bytes. Empty values are also accepted. The value must be
480 # base64 encoded, and must comply with IETF RFC4648
481 # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
482 # can be set.
483}
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700484
485 x__xgafv: string, V1 error format.
486 Allowed values
487 1 - v1 error format
488 2 - v2 error format
489
490Returns:
491 An object of the form:
492
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700493 { # Describes a single variable within a RuntimeConfig resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700494 # The name denotes the hierarchical variable name. For example,
495 # `ports/serving_port` is a valid variable name. The variable value is an
496 # opaque string and only leaf variables can have values (that is, variables
497 # that do not have any child variables).
498 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time of the last variable update.
499 # Timestamp will be UTC timestamp.
500 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the variable. The variable state
501 # indicates the outcome of the `variables().watch` call and is visible
502 # through the `get` and `list` calls.
503 &quot;name&quot;: &quot;A String&quot;, # The name of the variable resource, in the format:
504 #
505 # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
506 #
507 # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
508 # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system
509 # file path naming.
510 #
511 # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
512 # dashes. Slashes are used as path element separators and are not part of the
513 # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
514 # non-slash character. Multiple slashes are coalesced into single slash
515 # character. Each path segment should match
516 # [0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])? regular expression.
517 # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
518 #
519 # Once you create a variable, you cannot change the variable name.
520 &quot;text&quot;: &quot;A String&quot;, # The string value of the variable. The length of the value must be less
521 # than 4096 bytes. Empty values are also accepted. For example,
522 # `text: &quot;my text value&quot;`. The string must be valid UTF-8.
523 &quot;value&quot;: &quot;A String&quot;, # The binary value of the variable. The length of the value must be less
524 # than 4096 bytes. Empty values are also accepted. The value must be
525 # base64 encoded, and must comply with IETF RFC4648
526 # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
527 # can be set.
528 }</pre>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700529</div>
530
531<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700532 <code class="details" id="watch">watch(name, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 <pre>Watches a specific variable and waits for a change in the variable&#x27;s value.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700534When there is a change, this method returns the new value or times out.
535
536If a variable is deleted while being watched, the `variableState` state is
537set to `DELETED` and the method returns the last known variable `value`.
538
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700539If you set the deadline for watching to a larger value than internal
540timeout (60 seconds), the current variable value is returned and the
541`variableState` will be `VARIABLE_STATE_UNSPECIFIED`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700542
543To learn more about creating a watcher, read the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544[Watching a Variable for
545Changes](/deployment-manager/runtime-configurator/watching-a-variable)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700546documentation.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700547
548Args:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700549 name: string, The name of the variable to watch, in the format:
550
551`projects/[PROJECT_ID]/configs/[CONFIG_NAME]` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700552 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700553 The object takes the form of:
554
555{ # Request for the `WatchVariable()` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 &quot;newerThan&quot;: &quot;A String&quot;, # If specified, checks the current timestamp of the variable and if the
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700557 # current timestamp is newer than `newerThan` timestamp, the method returns
558 # immediately.
559 #
560 # If not specified or the variable has an older timestamp, the watcher waits
561 # for a the value to change before returning.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700562 }
563
564 x__xgafv: string, V1 error format.
565 Allowed values
566 1 - v1 error format
567 2 - v2 error format
568
569Returns:
570 An object of the form:
571
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700572 { # Describes a single variable within a RuntimeConfig resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700573 # The name denotes the hierarchical variable name. For example,
574 # `ports/serving_port` is a valid variable name. The variable value is an
575 # opaque string and only leaf variables can have values (that is, variables
576 # that do not have any child variables).
577 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time of the last variable update.
578 # Timestamp will be UTC timestamp.
579 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the variable. The variable state
580 # indicates the outcome of the `variables().watch` call and is visible
581 # through the `get` and `list` calls.
582 &quot;name&quot;: &quot;A String&quot;, # The name of the variable resource, in the format:
583 #
584 # projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
585 #
586 # The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
587 # valid RuntimeConfig resource and `[VARIABLE_NAME]` follows Unix file system
588 # file path naming.
589 #
590 # The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
591 # dashes. Slashes are used as path element separators and are not part of the
592 # `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
593 # non-slash character. Multiple slashes are coalesced into single slash
594 # character. Each path segment should match
595 # [0-9A-Za-z](?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9])? regular expression.
596 # The length of a `[VARIABLE_NAME]` must be less than 256 characters.
597 #
598 # Once you create a variable, you cannot change the variable name.
599 &quot;text&quot;: &quot;A String&quot;, # The string value of the variable. The length of the value must be less
600 # than 4096 bytes. Empty values are also accepted. For example,
601 # `text: &quot;my text value&quot;`. The string must be valid UTF-8.
602 &quot;value&quot;: &quot;A String&quot;, # The binary value of the variable. The length of the value must be less
603 # than 4096 bytes. Empty values are also accepted. The value must be
604 # base64 encoded, and must comply with IETF RFC4648
605 # (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
606 # can be set.
607 }</pre>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700608</div>
609
610</body></html>