blob: fe87f87cfc474eb3f2c50ce7b36d7fefd2d2ddf3 [file] [log] [blame]
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="gameservices_v1.html">Game Services API</a> . <a href="gameservices_v1.projects.html">projects</a> . <a href="gameservices_v1.projects.locations.html">locations</a> . <a href="gameservices_v1.projects.locations.realms.html">realms</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="gameservices_v1.projects.locations.realms.gameServerClusters.html">gameServerClusters()</a></code>
79</p>
80<p class="firstline">Returns the gameServerClusters Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#create">create(parent, body=None, realmId=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Creates a new realm in a given project and location.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes a single realm.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets details of a single realm.</p>
91<p class="toc_element">
92 <code><a href="#list">list(parent, pageToken=None, filter=None, pageSize=None, orderBy=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Lists realms in a given project and location.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
98 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
99<p class="firstline">Patches a single realm.</p>
100<p class="toc_element">
101 <code><a href="#previewUpdate">previewUpdate(name, body=None, previewTime=None, updateMask=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Previews patches to a single realm.</p>
103<h3>Method Details</h3>
104<div class="method">
105 <code class="details" id="create">create(parent, body=None, realmId=None, x__xgafv=None)</code>
106 <pre>Creates a new realm in a given project and location.
107
108Args:
109 parent: string, Required. The parent resource name. Uses the form:
110`projects/{project}/locations/{location}`. (required)
111 body: object, The request body.
112 The object takes the form of:
113
114{ # A realm resource.
115 &quot;name&quot;: &quot;A String&quot;, # The resource name of the realm. Uses the form:
116 # `projects/{project}/locations/{location}/realms/{realm}`. For
117 # example, `projects/my-project/locations/{location}/realms/my-realm`.
118 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
119 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time.
120 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Time zone where all policies targeting this realm are evaluated. The value
121 # of this field must be from the IANA time zone database:
122 # https://www.iana.org/time-zones.
123 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last-modified time.
124 &quot;description&quot;: &quot;A String&quot;, # Human readable description of the realm.
125 &quot;labels&quot;: { # The labels associated with this realm. Each label is a key-value pair.
126 &quot;a_key&quot;: &quot;A String&quot;,
127 },
128 }
129
130 realmId: string, Required. The ID of the realm resource to be created.
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136Returns:
137 An object of the form:
138
139 { # This resource represents a long-running operation that is the result of a
140 # network API call.
141 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
142 # originally returns it. If you use the default HTTP mapping, the
143 # `name` should be a resource name ending with `operations/{unique_id}`.
144 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
145 # contains progress information and common metadata such as create time.
146 # Some services might not provide such metadata. Any method that returns a
147 # long-running operation should document the metadata type, if any.
148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
149 },
150 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
151 # different programming environments, including REST APIs and RPC APIs. It is
152 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
153 # three pieces of data: error code, error message, and error details.
154 #
155 # You can find out more about this error model and how to work with it in the
156 # [API Design Guide](https://cloud.google.com/apis/design/errors).
157 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
158 # user-facing error message should be localized and sent in the
159 # google.rpc.Status.details field, or localized by the client.
160 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
161 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
162 # message types for APIs to use.
163 {
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
165 },
166 ],
167 },
168 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
169 # If `true`, the operation is completed, and either `error` or `response` is
170 # available.
171 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
172 # method returns no data on success, such as `Delete`, the response is
173 # `google.protobuf.Empty`. If the original method is standard
174 # `Get`/`Create`/`Update`, the response should be the resource. For other
175 # methods, the response should have the type `XxxResponse`, where `Xxx`
176 # is the original method name. For example, if the original method name
177 # is `TakeSnapshot()`, the inferred response type is
178 # `TakeSnapshotResponse`.
179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
180 },
181 }</pre>
182</div>
183
184<div class="method">
185 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
186 <pre>Deletes a single realm.
187
188Args:
189 name: string, Required. The name of the realm to delete. Uses the form:
190`projects/{project}/locations/{location}/realms/{realm}`. (required)
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196Returns:
197 An object of the form:
198
199 { # This resource represents a long-running operation that is the result of a
200 # network API call.
201 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
202 # originally returns it. If you use the default HTTP mapping, the
203 # `name` should be a resource name ending with `operations/{unique_id}`.
204 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
205 # contains progress information and common metadata such as create time.
206 # Some services might not provide such metadata. Any method that returns a
207 # long-running operation should document the metadata type, if any.
208 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
209 },
210 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
211 # different programming environments, including REST APIs and RPC APIs. It is
212 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
213 # three pieces of data: error code, error message, and error details.
214 #
215 # You can find out more about this error model and how to work with it in the
216 # [API Design Guide](https://cloud.google.com/apis/design/errors).
217 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
218 # user-facing error message should be localized and sent in the
219 # google.rpc.Status.details field, or localized by the client.
220 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
221 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
222 # message types for APIs to use.
223 {
224 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
225 },
226 ],
227 },
228 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
229 # If `true`, the operation is completed, and either `error` or `response` is
230 # available.
231 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
232 # method returns no data on success, such as `Delete`, the response is
233 # `google.protobuf.Empty`. If the original method is standard
234 # `Get`/`Create`/`Update`, the response should be the resource. For other
235 # methods, the response should have the type `XxxResponse`, where `Xxx`
236 # is the original method name. For example, if the original method name
237 # is `TakeSnapshot()`, the inferred response type is
238 # `TakeSnapshotResponse`.
239 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
240 },
241 }</pre>
242</div>
243
244<div class="method">
245 <code class="details" id="get">get(name, x__xgafv=None)</code>
246 <pre>Gets details of a single realm.
247
248Args:
249 name: string, Required. The name of the realm to retrieve. Uses the form:
250`projects/{project}/locations/{location}/realms/{realm}`. (required)
251 x__xgafv: string, V1 error format.
252 Allowed values
253 1 - v1 error format
254 2 - v2 error format
255
256Returns:
257 An object of the form:
258
259 { # A realm resource.
260 &quot;name&quot;: &quot;A String&quot;, # The resource name of the realm. Uses the form:
261 # `projects/{project}/locations/{location}/realms/{realm}`. For
262 # example, `projects/my-project/locations/{location}/realms/my-realm`.
263 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
264 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time.
265 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Time zone where all policies targeting this realm are evaluated. The value
266 # of this field must be from the IANA time zone database:
267 # https://www.iana.org/time-zones.
268 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last-modified time.
269 &quot;description&quot;: &quot;A String&quot;, # Human readable description of the realm.
270 &quot;labels&quot;: { # The labels associated with this realm. Each label is a key-value pair.
271 &quot;a_key&quot;: &quot;A String&quot;,
272 },
273 }</pre>
274</div>
275
276<div class="method">
277 <code class="details" id="list">list(parent, pageToken=None, filter=None, pageSize=None, orderBy=None, x__xgafv=None)</code>
278 <pre>Lists realms in a given project and location.
279
280Args:
281 parent: string, Required. The parent resource name. Uses the form:
282`projects/{project}/locations/{location}`. (required)
283 pageToken: string, Optional. The next_page_token value returned from a previous List request,
284if any.
285 filter: string, Optional. The filter to apply to list results.
286 pageSize: integer, Optional. The maximum number of items to return. If unspecified, server
287will pick an appropriate default. Server may return fewer items than
288requested. A caller should only rely on response&#x27;s
289next_page_token to
290determine if there are more realms left to be queried.
291 orderBy: string, Optional. Specifies the ordering of results following syntax at
292https://cloud.google.com/apis/design/design_patterns#sorting_order.
293 x__xgafv: string, V1 error format.
294 Allowed values
295 1 - v1 error format
296 2 - v2 error format
297
298Returns:
299 An object of the form:
300
301 { # Response message for RealmsService.ListRealms.
302 &quot;realms&quot;: [ # The list of realms.
303 { # A realm resource.
304 &quot;name&quot;: &quot;A String&quot;, # The resource name of the realm. Uses the form:
305 # `projects/{project}/locations/{location}/realms/{realm}`. For
306 # example, `projects/my-project/locations/{location}/realms/my-realm`.
307 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
308 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time.
309 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Time zone where all policies targeting this realm are evaluated. The value
310 # of this field must be from the IANA time zone database:
311 # https://www.iana.org/time-zones.
312 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last-modified time.
313 &quot;description&quot;: &quot;A String&quot;, # Human readable description of the realm.
314 &quot;labels&quot;: { # The labels associated with this realm. Each label is a key-value pair.
315 &quot;a_key&quot;: &quot;A String&quot;,
316 },
317 },
318 ],
319 &quot;unreachable&quot;: [ # List of locations that could not be reached.
320 &quot;A String&quot;,
321 ],
322 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more
323 # results in the list.
324 }</pre>
325</div>
326
327<div class="method">
328 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
329 <pre>Retrieves the next page of results.
330
331Args:
332 previous_request: The request for the previous page. (required)
333 previous_response: The response from the request for the previous page. (required)
334
335Returns:
336 A request object that you can call &#x27;execute()&#x27; on to request the next
337 page. Returns None if there are no more items in the collection.
338 </pre>
339</div>
340
341<div class="method">
342 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
343 <pre>Patches a single realm.
344
345Args:
346 name: string, The resource name of the realm. Uses the form:
347`projects/{project}/locations/{location}/realms/{realm}`. For
348example, `projects/my-project/locations/{location}/realms/my-realm`. (required)
349 body: object, The request body.
350 The object takes the form of:
351
352{ # A realm resource.
353 &quot;name&quot;: &quot;A String&quot;, # The resource name of the realm. Uses the form:
354 # `projects/{project}/locations/{location}/realms/{realm}`. For
355 # example, `projects/my-project/locations/{location}/realms/my-realm`.
356 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
357 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time.
358 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Time zone where all policies targeting this realm are evaluated. The value
359 # of this field must be from the IANA time zone database:
360 # https://www.iana.org/time-zones.
361 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last-modified time.
362 &quot;description&quot;: &quot;A String&quot;, # Human readable description of the realm.
363 &quot;labels&quot;: { # The labels associated with this realm. Each label is a key-value pair.
364 &quot;a_key&quot;: &quot;A String&quot;,
365 },
366 }
367
368 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask`
369definition, see
370
371https:
372//developers.google.com/protocol-buffers
373// /docs/reference/google.protobuf#fieldmask
374 x__xgafv: string, V1 error format.
375 Allowed values
376 1 - v1 error format
377 2 - v2 error format
378
379Returns:
380 An object of the form:
381
382 { # This resource represents a long-running operation that is the result of a
383 # network API call.
384 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
385 # originally returns it. If you use the default HTTP mapping, the
386 # `name` should be a resource name ending with `operations/{unique_id}`.
387 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
388 # contains progress information and common metadata such as create time.
389 # Some services might not provide such metadata. Any method that returns a
390 # long-running operation should document the metadata type, if any.
391 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
392 },
393 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
394 # different programming environments, including REST APIs and RPC APIs. It is
395 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
396 # three pieces of data: error code, error message, and error details.
397 #
398 # You can find out more about this error model and how to work with it in the
399 # [API Design Guide](https://cloud.google.com/apis/design/errors).
400 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
401 # user-facing error message should be localized and sent in the
402 # google.rpc.Status.details field, or localized by the client.
403 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
404 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
405 # message types for APIs to use.
406 {
407 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
408 },
409 ],
410 },
411 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
412 # If `true`, the operation is completed, and either `error` or `response` is
413 # available.
414 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
415 # method returns no data on success, such as `Delete`, the response is
416 # `google.protobuf.Empty`. If the original method is standard
417 # `Get`/`Create`/`Update`, the response should be the resource. For other
418 # methods, the response should have the type `XxxResponse`, where `Xxx`
419 # is the original method name. For example, if the original method name
420 # is `TakeSnapshot()`, the inferred response type is
421 # `TakeSnapshotResponse`.
422 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
423 },
424 }</pre>
425</div>
426
427<div class="method">
428 <code class="details" id="previewUpdate">previewUpdate(name, body=None, previewTime=None, updateMask=None, x__xgafv=None)</code>
429 <pre>Previews patches to a single realm.
430
431Args:
432 name: string, The resource name of the realm. Uses the form:
433`projects/{project}/locations/{location}/realms/{realm}`. For
434example, `projects/my-project/locations/{location}/realms/my-realm`. (required)
435 body: object, The request body.
436 The object takes the form of:
437
438{ # A realm resource.
439 &quot;name&quot;: &quot;A String&quot;, # The resource name of the realm. Uses the form:
440 # `projects/{project}/locations/{location}/realms/{realm}`. For
441 # example, `projects/my-project/locations/{location}/realms/my-realm`.
442 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
443 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time.
444 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Time zone where all policies targeting this realm are evaluated. The value
445 # of this field must be from the IANA time zone database:
446 # https://www.iana.org/time-zones.
447 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last-modified time.
448 &quot;description&quot;: &quot;A String&quot;, # Human readable description of the realm.
449 &quot;labels&quot;: { # The labels associated with this realm. Each label is a key-value pair.
450 &quot;a_key&quot;: &quot;A String&quot;,
451 },
452 }
453
454 previewTime: string, Optional. The target timestamp to compute the preview.
455 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask`
456definition, see
457
458https:
459//developers.google.com/protocol-buffers
460// /docs/reference/google.protobuf#fieldmask
461 x__xgafv: string, V1 error format.
462 Allowed values
463 1 - v1 error format
464 2 - v2 error format
465
466Returns:
467 An object of the form:
468
469 { # Response message for RealmsService.PreviewRealmUpdate.
470 &quot;targetState&quot;: { # Encapsulates the Target state. # The target state.
471 &quot;details&quot;: [ # Details about Agones fleets.
472 { # Details about the Agones resources.
473 &quot;gameServerDeploymentName&quot;: &quot;A String&quot;, # The game server deployment name. Uses the form:
474 #
475 # `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.
476 &quot;gameServerClusterName&quot;: &quot;A String&quot;, # The game server cluster name. Uses the form:
477 #
478 # `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
479 &quot;fleetDetails&quot;: [ # Agones fleet details for game server clusters and game server deployments.
480 { # Details of the target Agones fleet.
481 &quot;autoscaler&quot;: { # Target Agones autoscaler policy reference. # Reference to target Agones fleet autoscaling policy.
482 &quot;specSource&quot;: { # Encapsulates Agones fleet spec and Agones autoscaler spec sources. # Encapsulates the source of the Agones fleet spec.
483 # Details about the Agones autoscaler spec.
484 &quot;gameServerConfigName&quot;: &quot;A String&quot;, # The game server config resource. Uses the form:
485 #
486 # `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`.
487 &quot;name&quot;: &quot;A String&quot;, # The name of the Agones leet config or Agones scaling config used to derive
488 # the Agones fleet or Agones autoscaler spec.
489 },
490 &quot;name&quot;: &quot;A String&quot;, # The name of the Agones autoscaler.
491 },
492 &quot;fleet&quot;: { # Target Agones fleet specification. # Reference to target Agones fleet.
493 &quot;name&quot;: &quot;A String&quot;, # The name of the Agones fleet.
494 &quot;specSource&quot;: { # Encapsulates Agones fleet spec and Agones autoscaler spec sources. # Encapsulates the source of the Agones fleet spec.
495 # The Agones fleet spec source.
496 &quot;gameServerConfigName&quot;: &quot;A String&quot;, # The game server config resource. Uses the form:
497 #
498 # `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`.
499 &quot;name&quot;: &quot;A String&quot;, # The name of the Agones leet config or Agones scaling config used to derive
500 # the Agones fleet or Agones autoscaler spec.
501 },
502 },
503 },
504 ],
505 },
506 ],
507 },
508 &quot;etag&quot;: &quot;A String&quot;, # ETag of the realm.
509 }</pre>
510</div>
511
512</body></html>