google-api-client 0.41.1 → 0.41.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/bin/generate-api +1 -3
  4. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  5. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +32 -26
  6. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  7. data/generated/google/apis/androidpublisher_v3/classes.rb +78 -0
  8. data/generated/google/apis/androidpublisher_v3/representations.rb +44 -0
  9. data/generated/google/apis/androidpublisher_v3/service.rb +149 -1
  10. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  11. data/generated/google/apis/bigquery_v2.rb +1 -1
  12. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  13. data/generated/google/apis/bigtableadmin_v2/classes.rb +6 -6
  14. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  15. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +271 -11
  18. data/generated/google/apis/cloudbuild_v1/representations.rb +130 -4
  19. data/generated/google/apis/cloudbuild_v1/service.rb +0 -94
  20. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  21. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +284 -24
  22. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +135 -9
  23. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
  24. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  25. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +284 -24
  26. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +135 -9
  27. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
  28. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  29. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +7 -1
  30. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  31. data/generated/google/apis/compute_alpha.rb +1 -1
  32. data/generated/google/apis/compute_alpha/classes.rb +54 -30
  33. data/generated/google/apis/compute_alpha/representations.rb +3 -0
  34. data/generated/google/apis/compute_alpha/service.rb +23 -29
  35. data/generated/google/apis/compute_beta.rb +1 -1
  36. data/generated/google/apis/compute_beta/classes.rb +55 -29
  37. data/generated/google/apis/compute_beta/representations.rb +2 -0
  38. data/generated/google/apis/compute_beta/service.rb +75 -29
  39. data/generated/google/apis/compute_v1.rb +1 -1
  40. data/generated/google/apis/compute_v1/classes.rb +84 -29
  41. data/generated/google/apis/compute_v1/representations.rb +17 -0
  42. data/generated/google/apis/compute_v1/service.rb +21 -29
  43. data/generated/google/apis/container_v1.rb +1 -1
  44. data/generated/google/apis/container_v1/classes.rb +94 -2
  45. data/generated/google/apis/container_v1/representations.rb +35 -0
  46. data/generated/google/apis/container_v1beta1.rb +1 -1
  47. data/generated/google/apis/container_v1beta1/classes.rb +121 -17
  48. data/generated/google/apis/container_v1beta1/representations.rb +37 -0
  49. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  50. data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
  51. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  52. data/generated/google/apis/dataproc_v1.rb +1 -1
  53. data/generated/google/apis/dataproc_v1/classes.rb +6 -5
  54. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  55. data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -5
  56. data/generated/google/apis/dataproc_v1beta2/representations.rb +4 -0
  57. data/generated/google/apis/dialogflow_v2.rb +1 -1
  58. data/generated/google/apis/dialogflow_v2/classes.rb +74 -8
  59. data/generated/google/apis/dialogflow_v2/representations.rb +16 -0
  60. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  61. data/generated/google/apis/dialogflow_v2beta1/classes.rb +74 -8
  62. data/generated/google/apis/dialogflow_v2beta1/representations.rb +16 -0
  63. data/generated/google/apis/dialogflow_v2beta1/service.rb +42 -42
  64. data/generated/google/apis/displayvideo_v1.rb +1 -1
  65. data/generated/google/apis/displayvideo_v1/classes.rb +3 -6
  66. data/generated/google/apis/displayvideo_v1/service.rb +0 -4
  67. data/generated/google/apis/dns_v1beta2.rb +4 -4
  68. data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
  69. data/generated/google/apis/dns_v1beta2/service.rb +247 -180
  70. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  71. data/generated/google/apis/drive_v2.rb +1 -1
  72. data/generated/google/apis/drive_v2/classes.rb +9 -0
  73. data/generated/google/apis/drive_v2/representations.rb +1 -0
  74. data/generated/google/apis/drive_v3.rb +1 -1
  75. data/generated/google/apis/drive_v3/classes.rb +9 -0
  76. data/generated/google/apis/drive_v3/representations.rb +1 -0
  77. data/generated/google/apis/games_v1.rb +1 -1
  78. data/generated/google/apis/gameservices_v1.rb +34 -0
  79. data/generated/google/apis/gameservices_v1/classes.rb +2354 -0
  80. data/generated/google/apis/gameservices_v1/representations.rb +971 -0
  81. data/generated/google/apis/gameservices_v1/service.rb +1472 -0
  82. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +33 -0
  83. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +306 -0
  84. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
  85. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +236 -0
  86. data/generated/google/apis/managedidentities_v1.rb +1 -1
  87. data/generated/google/apis/managedidentities_v1/classes.rb +54 -10
  88. data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
  89. data/generated/google/apis/managedidentities_v1/service.rb +3 -0
  90. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  91. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -10
  92. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
  93. data/generated/google/apis/managedidentities_v1alpha1/service.rb +3 -0
  94. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  95. data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -10
  96. data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
  97. data/generated/google/apis/managedidentities_v1beta1/service.rb +3 -0
  98. data/generated/google/apis/ml_v1.rb +1 -1
  99. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  100. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +73 -0
  101. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +32 -0
  102. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +477 -0
  103. data/generated/google/apis/run_v1.rb +1 -1
  104. data/generated/google/apis/run_v1/classes.rb +1 -6
  105. data/generated/google/apis/run_v1/service.rb +1 -1
  106. data/generated/google/apis/run_v1alpha1.rb +1 -1
  107. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  108. data/generated/google/apis/run_v1beta1.rb +1 -1
  109. data/generated/google/apis/run_v1beta1/service.rb +1 -1
  110. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  111. data/generated/google/apis/sasportal_v1alpha1/classes.rb +73 -0
  112. data/generated/google/apis/sasportal_v1alpha1/representations.rb +32 -0
  113. data/generated/google/apis/sasportal_v1alpha1/service.rb +477 -0
  114. data/generated/google/apis/spanner_v1.rb +1 -1
  115. data/generated/google/apis/spanner_v1/service.rb +5 -0
  116. data/lib/google/apis/version.rb +1 -1
  117. metadata +11 -3
@@ -0,0 +1,1472 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module GameservicesV1
23
+ # Game Services API
24
+ #
25
+ # Deploy and manage infrastructure for global multiplayer gaming experiences.
26
+ #
27
+ # @example
28
+ # require 'google/apis/gameservices_v1'
29
+ #
30
+ # Gameservices = Google::Apis::GameservicesV1 # Alias the module
31
+ # service = Gameservices::GameServicesService.new
32
+ #
33
+ # @see https://cloud.google.com/solutions/gaming/
34
+ class GameServicesService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://gameservices.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets information about a location.
51
+ # @param [String] name
52
+ # Resource name for the location.
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
55
+ # @param [String] quota_user
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::GameservicesV1::Location] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::GameservicesV1::Location]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1/{+name}', options)
72
+ command.response_representation = Google::Apis::GameservicesV1::Location::Representation
73
+ command.response_class = Google::Apis::GameservicesV1::Location
74
+ command.params['name'] = name unless name.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
80
+ # Lists information about the supported locations for this service.
81
+ # @param [String] name
82
+ # The resource that owns the locations collection, if applicable.
83
+ # @param [String] filter
84
+ # The standard list filter.
85
+ # @param [Boolean] include_unrevealed_locations
86
+ # If true, the returned list will include locations which are not yet
87
+ # revealed.
88
+ # @param [Fixnum] page_size
89
+ # The standard list page size.
90
+ # @param [String] page_token
91
+ # The standard list page token.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [String] quota_user
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [Google::Apis::RequestOptions] options
98
+ # Request-specific options
99
+ #
100
+ # @yield [result, err] Result & error if block supplied
101
+ # @yieldparam result [Google::Apis::GameservicesV1::ListLocationsResponse] parsed result object
102
+ # @yieldparam err [StandardError] error object if request failed
103
+ #
104
+ # @return [Google::Apis::GameservicesV1::ListLocationsResponse]
105
+ #
106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
109
+ def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
111
+ command.response_representation = Google::Apis::GameservicesV1::ListLocationsResponse::Representation
112
+ command.response_class = Google::Apis::GameservicesV1::ListLocationsResponse
113
+ command.params['name'] = name unless name.nil?
114
+ command.query['filter'] = filter unless filter.nil?
115
+ command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
116
+ command.query['pageSize'] = page_size unless page_size.nil?
117
+ command.query['pageToken'] = page_token unless page_token.nil?
118
+ command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
123
+ # Creates a new game server deployment in a given project and location.
124
+ # @param [String] parent
125
+ # Required. The parent resource name. Uses the form:
126
+ # `projects/`project`/locations/`location``.
127
+ # @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object
128
+ # @param [String] deployment_id
129
+ # Required. The ID of the game server delpoyment resource to be created.
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::GameservicesV1::Operation]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def create_project_location_game_server_deployment(parent, game_server_deployment_object = nil, deployment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:post, 'v1/{+parent}/gameServerDeployments', options)
149
+ command.request_representation = Google::Apis::GameservicesV1::GameServerDeployment::Representation
150
+ command.request_object = game_server_deployment_object
151
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
152
+ command.response_class = Google::Apis::GameservicesV1::Operation
153
+ command.params['parent'] = parent unless parent.nil?
154
+ command.query['deploymentId'] = deployment_id unless deployment_id.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ execute_or_queue_command(command, &block)
158
+ end
159
+
160
+ # Deletes a single game server deployment.
161
+ # @param [String] name
162
+ # Required. The name of the game server delpoyment to delete. Uses the form:
163
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::GameservicesV1::Operation]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def delete_project_location_game_server_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:delete, 'v1/{+name}', options)
183
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
184
+ command.response_class = Google::Apis::GameservicesV1::Operation
185
+ command.params['name'] = name unless name.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
191
+ # Retrieves information about the current state of the game server
192
+ # deployment. Gathers all the Agones fleets and Agones autoscalers,
193
+ # including fleets running an older version of the game server deployment.
194
+ # @param [String] name
195
+ # Required. The name of the game server delpoyment. Uses the form:
196
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
197
+ # @param [Google::Apis::GameservicesV1::FetchDeploymentStateRequest] fetch_deployment_state_request_object
198
+ # @param [String] fields
199
+ # Selector specifying which fields to include in a partial response.
200
+ # @param [String] quota_user
201
+ # Available to use for quota purposes for server-side applications. Can be any
202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
203
+ # @param [Google::Apis::RequestOptions] options
204
+ # Request-specific options
205
+ #
206
+ # @yield [result, err] Result & error if block supplied
207
+ # @yieldparam result [Google::Apis::GameservicesV1::FetchDeploymentStateResponse] parsed result object
208
+ # @yieldparam err [StandardError] error object if request failed
209
+ #
210
+ # @return [Google::Apis::GameservicesV1::FetchDeploymentStateResponse]
211
+ #
212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
215
+ def fetch_game_server_deployment_deployment_state(name, fetch_deployment_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
216
+ command = make_simple_command(:post, 'v1/{+name}:fetchDeploymentState', options)
217
+ command.request_representation = Google::Apis::GameservicesV1::FetchDeploymentStateRequest::Representation
218
+ command.request_object = fetch_deployment_state_request_object
219
+ command.response_representation = Google::Apis::GameservicesV1::FetchDeploymentStateResponse::Representation
220
+ command.response_class = Google::Apis::GameservicesV1::FetchDeploymentStateResponse
221
+ command.params['name'] = name unless name.nil?
222
+ command.query['fields'] = fields unless fields.nil?
223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
224
+ execute_or_queue_command(command, &block)
225
+ end
226
+
227
+ # Gets details of a single game server deployment.
228
+ # @param [String] name
229
+ # Required. The name of the game server delpoyment to retrieve. Uses the form:
230
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
231
+ # @param [String] fields
232
+ # Selector specifying which fields to include in a partial response.
233
+ # @param [String] quota_user
234
+ # Available to use for quota purposes for server-side applications. Can be any
235
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
236
+ # @param [Google::Apis::RequestOptions] options
237
+ # Request-specific options
238
+ #
239
+ # @yield [result, err] Result & error if block supplied
240
+ # @yieldparam result [Google::Apis::GameservicesV1::GameServerDeployment] parsed result object
241
+ # @yieldparam err [StandardError] error object if request failed
242
+ #
243
+ # @return [Google::Apis::GameservicesV1::GameServerDeployment]
244
+ #
245
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
246
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
247
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
248
+ def get_project_location_game_server_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
249
+ command = make_simple_command(:get, 'v1/{+name}', options)
250
+ command.response_representation = Google::Apis::GameservicesV1::GameServerDeployment::Representation
251
+ command.response_class = Google::Apis::GameservicesV1::GameServerDeployment
252
+ command.params['name'] = name unless name.nil?
253
+ command.query['fields'] = fields unless fields.nil?
254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
255
+ execute_or_queue_command(command, &block)
256
+ end
257
+
258
+ # Gets the access control policy for a resource.
259
+ # Returns an empty policy if the resource exists and does not have a policy
260
+ # set.
261
+ # @param [String] resource
262
+ # REQUIRED: The resource for which the policy is being requested.
263
+ # See the operation documentation for the appropriate value for this field.
264
+ # @param [Fixnum] options_requested_policy_version
265
+ # Optional. The policy format version to be returned.
266
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
267
+ # rejected.
268
+ # Requests for policies with any conditional bindings must specify version 3.
269
+ # Policies without any conditional bindings may specify any valid value or
270
+ # leave the field unset.
271
+ # To learn which resources support conditions in their IAM policies, see the
272
+ # [IAM
273
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
274
+ # @param [String] fields
275
+ # Selector specifying which fields to include in a partial response.
276
+ # @param [String] quota_user
277
+ # Available to use for quota purposes for server-side applications. Can be any
278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
279
+ # @param [Google::Apis::RequestOptions] options
280
+ # Request-specific options
281
+ #
282
+ # @yield [result, err] Result & error if block supplied
283
+ # @yieldparam result [Google::Apis::GameservicesV1::Policy] parsed result object
284
+ # @yieldparam err [StandardError] error object if request failed
285
+ #
286
+ # @return [Google::Apis::GameservicesV1::Policy]
287
+ #
288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
291
+ def get_project_location_game_server_deployment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
292
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
293
+ command.response_representation = Google::Apis::GameservicesV1::Policy::Representation
294
+ command.response_class = Google::Apis::GameservicesV1::Policy
295
+ command.params['resource'] = resource unless resource.nil?
296
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
297
+ command.query['fields'] = fields unless fields.nil?
298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
299
+ execute_or_queue_command(command, &block)
300
+ end
301
+
302
+ # Gets details a single game server deployment rollout.
303
+ # @param [String] name
304
+ # Required. The name of the game server delpoyment to retrieve. Uses the form:
305
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
306
+ # rollout`.
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
309
+ # @param [String] quota_user
310
+ # Available to use for quota purposes for server-side applications. Can be any
311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
312
+ # @param [Google::Apis::RequestOptions] options
313
+ # Request-specific options
314
+ #
315
+ # @yield [result, err] Result & error if block supplied
316
+ # @yieldparam result [Google::Apis::GameservicesV1::GameServerDeploymentRollout] parsed result object
317
+ # @yieldparam err [StandardError] error object if request failed
318
+ #
319
+ # @return [Google::Apis::GameservicesV1::GameServerDeploymentRollout]
320
+ #
321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
324
+ def get_project_location_game_server_deployment_rollout(name, fields: nil, quota_user: nil, options: nil, &block)
325
+ command = make_simple_command(:get, 'v1/{+name}/rollout', options)
326
+ command.response_representation = Google::Apis::GameservicesV1::GameServerDeploymentRollout::Representation
327
+ command.response_class = Google::Apis::GameservicesV1::GameServerDeploymentRollout
328
+ command.params['name'] = name unless name.nil?
329
+ command.query['fields'] = fields unless fields.nil?
330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
331
+ execute_or_queue_command(command, &block)
332
+ end
333
+
334
+ # Lists game server deployments in a given project and location.
335
+ # @param [String] parent
336
+ # Required. The parent resource name. Uses the form:
337
+ # `projects/`project`/locations/`location``.
338
+ # @param [String] filter
339
+ # Optional. The filter to apply to list results.
340
+ # @param [String] order_by
341
+ # Optional. Specifies the ordering of results following syntax at
342
+ # https://cloud.google.com/apis/design/design_patterns#sorting_order.
343
+ # @param [Fixnum] page_size
344
+ # Optional. The maximum number of items to return. If unspecified, the server
345
+ # will pick an appropriate default. The server may return fewer items than
346
+ # requested. A caller should only rely on response's
347
+ # next_page_token to
348
+ # determine if there are more GameServerDeployments left to be queried.
349
+ # @param [String] page_token
350
+ # Optional. The next_page_token value returned from a previous List request,
351
+ # if any.
352
+ # @param [String] fields
353
+ # Selector specifying which fields to include in a partial response.
354
+ # @param [String] quota_user
355
+ # Available to use for quota purposes for server-side applications. Can be any
356
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
357
+ # @param [Google::Apis::RequestOptions] options
358
+ # Request-specific options
359
+ #
360
+ # @yield [result, err] Result & error if block supplied
361
+ # @yieldparam result [Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse] parsed result object
362
+ # @yieldparam err [StandardError] error object if request failed
363
+ #
364
+ # @return [Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse]
365
+ #
366
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
367
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
368
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
369
+ def list_project_location_game_server_deployments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
370
+ command = make_simple_command(:get, 'v1/{+parent}/gameServerDeployments', options)
371
+ command.response_representation = Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse::Representation
372
+ command.response_class = Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse
373
+ command.params['parent'] = parent unless parent.nil?
374
+ command.query['filter'] = filter unless filter.nil?
375
+ command.query['orderBy'] = order_by unless order_by.nil?
376
+ command.query['pageSize'] = page_size unless page_size.nil?
377
+ command.query['pageToken'] = page_token unless page_token.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ execute_or_queue_command(command, &block)
381
+ end
382
+
383
+ # Patches a game server deployment.
384
+ # @param [String] name
385
+ # The resource name of the game server deployment. Uses the form:
386
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
387
+ # For example,
388
+ # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment`.
389
+ # @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object
390
+ # @param [String] update_mask
391
+ # Required. Mask of fields to update. At least one path must be supplied in
392
+ # this field. For the `FieldMask` definition, see
393
+ # https:
394
+ # //developers.google.com/protocol-buffers
395
+ # // /docs/reference/google.protobuf#fieldmask
396
+ # @param [String] fields
397
+ # Selector specifying which fields to include in a partial response.
398
+ # @param [String] quota_user
399
+ # Available to use for quota purposes for server-side applications. Can be any
400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
401
+ # @param [Google::Apis::RequestOptions] options
402
+ # Request-specific options
403
+ #
404
+ # @yield [result, err] Result & error if block supplied
405
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
406
+ # @yieldparam err [StandardError] error object if request failed
407
+ #
408
+ # @return [Google::Apis::GameservicesV1::Operation]
409
+ #
410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
413
+ def patch_project_location_game_server_deployment(name, game_server_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
414
+ command = make_simple_command(:patch, 'v1/{+name}', options)
415
+ command.request_representation = Google::Apis::GameservicesV1::GameServerDeployment::Representation
416
+ command.request_object = game_server_deployment_object
417
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
418
+ command.response_class = Google::Apis::GameservicesV1::Operation
419
+ command.params['name'] = name unless name.nil?
420
+ command.query['updateMask'] = update_mask unless update_mask.nil?
421
+ command.query['fields'] = fields unless fields.nil?
422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
423
+ execute_or_queue_command(command, &block)
424
+ end
425
+
426
+ # Previews the game server deployment rollout. This API does not mutate the
427
+ # rollout resource.
428
+ # @param [String] name
429
+ # The resource name of the game server deployment rollout. Uses the form:
430
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
431
+ # rollout`.
432
+ # For example,
433
+ # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/
434
+ # rollout`.
435
+ # @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object
436
+ # @param [String] preview_time
437
+ # Optional. The target timestamp to compute the preview. Defaults to the
438
+ # immediately
439
+ # after the proposed rollout completes.
440
+ # @param [String] update_mask
441
+ # Optional. Mask of fields to update. At least one path must be supplied in
442
+ # this field. For the `FieldMask` definition, see
443
+ # https:
444
+ # //developers.google.com/protocol-buffers
445
+ # // /docs/reference/google.protobuf#fieldmask
446
+ # @param [String] fields
447
+ # Selector specifying which fields to include in a partial response.
448
+ # @param [String] quota_user
449
+ # Available to use for quota purposes for server-side applications. Can be any
450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
451
+ # @param [Google::Apis::RequestOptions] options
452
+ # Request-specific options
453
+ #
454
+ # @yield [result, err] Result & error if block supplied
455
+ # @yieldparam result [Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse] parsed result object
456
+ # @yieldparam err [StandardError] error object if request failed
457
+ #
458
+ # @return [Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse]
459
+ #
460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
463
+ def preview_project_location_game_server_deployment_rollout(name, game_server_deployment_rollout_object = nil, preview_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
464
+ command = make_simple_command(:patch, 'v1/{+name}/rollout:preview', options)
465
+ command.request_representation = Google::Apis::GameservicesV1::GameServerDeploymentRollout::Representation
466
+ command.request_object = game_server_deployment_rollout_object
467
+ command.response_representation = Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse::Representation
468
+ command.response_class = Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse
469
+ command.params['name'] = name unless name.nil?
470
+ command.query['previewTime'] = preview_time unless preview_time.nil?
471
+ command.query['updateMask'] = update_mask unless update_mask.nil?
472
+ command.query['fields'] = fields unless fields.nil?
473
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
474
+ execute_or_queue_command(command, &block)
475
+ end
476
+
477
+ # Sets the access control policy on the specified resource. Replaces any
478
+ # existing policy.
479
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
480
+ # @param [String] resource
481
+ # REQUIRED: The resource for which the policy is being specified.
482
+ # See the operation documentation for the appropriate value for this field.
483
+ # @param [Google::Apis::GameservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
484
+ # @param [String] fields
485
+ # Selector specifying which fields to include in a partial response.
486
+ # @param [String] quota_user
487
+ # Available to use for quota purposes for server-side applications. Can be any
488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
489
+ # @param [Google::Apis::RequestOptions] options
490
+ # Request-specific options
491
+ #
492
+ # @yield [result, err] Result & error if block supplied
493
+ # @yieldparam result [Google::Apis::GameservicesV1::Policy] parsed result object
494
+ # @yieldparam err [StandardError] error object if request failed
495
+ #
496
+ # @return [Google::Apis::GameservicesV1::Policy]
497
+ #
498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
501
+ def set_game_server_deployment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
502
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
503
+ command.request_representation = Google::Apis::GameservicesV1::SetIamPolicyRequest::Representation
504
+ command.request_object = set_iam_policy_request_object
505
+ command.response_representation = Google::Apis::GameservicesV1::Policy::Representation
506
+ command.response_class = Google::Apis::GameservicesV1::Policy
507
+ command.params['resource'] = resource unless resource.nil?
508
+ command.query['fields'] = fields unless fields.nil?
509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
+ execute_or_queue_command(command, &block)
511
+ end
512
+
513
+ # Returns permissions that a caller has on the specified resource.
514
+ # If the resource does not exist, this will return an empty set of
515
+ # permissions, not a `NOT_FOUND` error.
516
+ # Note: This operation is designed to be used for building permission-aware
517
+ # UIs and command-line tools, not for authorization checking. This operation
518
+ # may "fail open" without warning.
519
+ # @param [String] resource
520
+ # REQUIRED: The resource for which the policy detail is being requested.
521
+ # See the operation documentation for the appropriate value for this field.
522
+ # @param [Google::Apis::GameservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
523
+ # @param [String] fields
524
+ # Selector specifying which fields to include in a partial response.
525
+ # @param [String] quota_user
526
+ # Available to use for quota purposes for server-side applications. Can be any
527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
528
+ # @param [Google::Apis::RequestOptions] options
529
+ # Request-specific options
530
+ #
531
+ # @yield [result, err] Result & error if block supplied
532
+ # @yieldparam result [Google::Apis::GameservicesV1::TestIamPermissionsResponse] parsed result object
533
+ # @yieldparam err [StandardError] error object if request failed
534
+ #
535
+ # @return [Google::Apis::GameservicesV1::TestIamPermissionsResponse]
536
+ #
537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
540
+ def test_game_server_deployment_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
541
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
542
+ command.request_representation = Google::Apis::GameservicesV1::TestIamPermissionsRequest::Representation
543
+ command.request_object = test_iam_permissions_request_object
544
+ command.response_representation = Google::Apis::GameservicesV1::TestIamPermissionsResponse::Representation
545
+ command.response_class = Google::Apis::GameservicesV1::TestIamPermissionsResponse
546
+ command.params['resource'] = resource unless resource.nil?
547
+ command.query['fields'] = fields unless fields.nil?
548
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
549
+ execute_or_queue_command(command, &block)
550
+ end
551
+
552
+ # Patches a single game server deployment rollout.
553
+ # The method will not return an error if the update does not affect any
554
+ # existing realms. For example - if the default_game_server_config is changed
555
+ # but all existing realms use the override, that is valid. Similarly, if a
556
+ # non existing realm is explicitly called out in game_server_config_overrides
557
+ # field, that will also not result in an error.
558
+ # @param [String] name
559
+ # The resource name of the game server deployment rollout. Uses the form:
560
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
561
+ # rollout`.
562
+ # For example,
563
+ # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/
564
+ # rollout`.
565
+ # @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object
566
+ # @param [String] update_mask
567
+ # Required. Mask of fields to update. At least one path must be supplied in
568
+ # this field. For the `FieldMask` definition, see
569
+ # https:
570
+ # //developers.google.com/protocol-buffers
571
+ # // /docs/reference/google.protobuf#fieldmask
572
+ # @param [String] fields
573
+ # Selector specifying which fields to include in a partial response.
574
+ # @param [String] quota_user
575
+ # Available to use for quota purposes for server-side applications. Can be any
576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
577
+ # @param [Google::Apis::RequestOptions] options
578
+ # Request-specific options
579
+ #
580
+ # @yield [result, err] Result & error if block supplied
581
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
582
+ # @yieldparam err [StandardError] error object if request failed
583
+ #
584
+ # @return [Google::Apis::GameservicesV1::Operation]
585
+ #
586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
589
+ def update_project_location_game_server_deployment_rollout(name, game_server_deployment_rollout_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
590
+ command = make_simple_command(:patch, 'v1/{+name}/rollout', options)
591
+ command.request_representation = Google::Apis::GameservicesV1::GameServerDeploymentRollout::Representation
592
+ command.request_object = game_server_deployment_rollout_object
593
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
594
+ command.response_class = Google::Apis::GameservicesV1::Operation
595
+ command.params['name'] = name unless name.nil?
596
+ command.query['updateMask'] = update_mask unless update_mask.nil?
597
+ command.query['fields'] = fields unless fields.nil?
598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
599
+ execute_or_queue_command(command, &block)
600
+ end
601
+
602
+ # Creates a new game server config in a given project, location, and game
603
+ # server deployment. Game server configs are immutable, and are not applied
604
+ # until referenced in the game server deployment rollout resource.
605
+ # @param [String] parent
606
+ # Required. The parent resource name. Uses the form:
607
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/`.
608
+ # @param [Google::Apis::GameservicesV1::GameServerConfig] game_server_config_object
609
+ # @param [String] config_id
610
+ # Required. The ID of the game server config resource to be created.
611
+ # @param [String] fields
612
+ # Selector specifying which fields to include in a partial response.
613
+ # @param [String] quota_user
614
+ # Available to use for quota purposes for server-side applications. Can be any
615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
616
+ # @param [Google::Apis::RequestOptions] options
617
+ # Request-specific options
618
+ #
619
+ # @yield [result, err] Result & error if block supplied
620
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
621
+ # @yieldparam err [StandardError] error object if request failed
622
+ #
623
+ # @return [Google::Apis::GameservicesV1::Operation]
624
+ #
625
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
628
+ def create_project_location_game_server_deployment_config(parent, game_server_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
629
+ command = make_simple_command(:post, 'v1/{+parent}/configs', options)
630
+ command.request_representation = Google::Apis::GameservicesV1::GameServerConfig::Representation
631
+ command.request_object = game_server_config_object
632
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
633
+ command.response_class = Google::Apis::GameservicesV1::Operation
634
+ command.params['parent'] = parent unless parent.nil?
635
+ command.query['configId'] = config_id unless config_id.nil?
636
+ command.query['fields'] = fields unless fields.nil?
637
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
638
+ execute_or_queue_command(command, &block)
639
+ end
640
+
641
+ # Deletes a single game server config. The deletion will fail if the game
642
+ # server config is referenced in a game server deployment rollout.
643
+ # @param [String] name
644
+ # Required. The name of the game server config to delete. Uses the form:
645
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
646
+ # configs/`config``.
647
+ # @param [String] fields
648
+ # Selector specifying which fields to include in a partial response.
649
+ # @param [String] quota_user
650
+ # Available to use for quota purposes for server-side applications. Can be any
651
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
652
+ # @param [Google::Apis::RequestOptions] options
653
+ # Request-specific options
654
+ #
655
+ # @yield [result, err] Result & error if block supplied
656
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
657
+ # @yieldparam err [StandardError] error object if request failed
658
+ #
659
+ # @return [Google::Apis::GameservicesV1::Operation]
660
+ #
661
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
662
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
663
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
664
+ def delete_project_location_game_server_deployment_config(name, fields: nil, quota_user: nil, options: nil, &block)
665
+ command = make_simple_command(:delete, 'v1/{+name}', options)
666
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
667
+ command.response_class = Google::Apis::GameservicesV1::Operation
668
+ command.params['name'] = name unless name.nil?
669
+ command.query['fields'] = fields unless fields.nil?
670
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
671
+ execute_or_queue_command(command, &block)
672
+ end
673
+
674
+ # Gets details of a single game server config.
675
+ # @param [String] name
676
+ # Required. The name of the game server config to retrieve. Uses the form:
677
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
678
+ # configs/`config``.
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::GameservicesV1::GameServerConfig] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::GameservicesV1::GameServerConfig]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def get_project_location_game_server_deployment_config(name, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:get, 'v1/{+name}', options)
698
+ command.response_representation = Google::Apis::GameservicesV1::GameServerConfig::Representation
699
+ command.response_class = Google::Apis::GameservicesV1::GameServerConfig
700
+ command.params['name'] = name unless name.nil?
701
+ command.query['fields'] = fields unless fields.nil?
702
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
703
+ execute_or_queue_command(command, &block)
704
+ end
705
+
706
+ # Lists game server configs in a given project, location, and game server
707
+ # deployment.
708
+ # @param [String] parent
709
+ # Required. The parent resource name. Uses the form:
710
+ # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
711
+ # configs/*`.
712
+ # @param [String] filter
713
+ # Optional. The filter to apply to list results.
714
+ # @param [String] order_by
715
+ # Optional. Specifies the ordering of results following syntax at
716
+ # https://cloud.google.com/apis/design/design_patterns#sorting_order.
717
+ # @param [Fixnum] page_size
718
+ # Optional. The maximum number of items to return. If unspecified, server
719
+ # will pick an appropriate default. Server may return fewer items than
720
+ # requested. A caller should only rely on response's
721
+ # next_page_token to
722
+ # determine if there are more GameServerConfigs left to be queried.
723
+ # @param [String] page_token
724
+ # Optional. The next_page_token value returned from a previous list request, if
725
+ # any.
726
+ # @param [String] fields
727
+ # Selector specifying which fields to include in a partial response.
728
+ # @param [String] quota_user
729
+ # Available to use for quota purposes for server-side applications. Can be any
730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
731
+ # @param [Google::Apis::RequestOptions] options
732
+ # Request-specific options
733
+ #
734
+ # @yield [result, err] Result & error if block supplied
735
+ # @yieldparam result [Google::Apis::GameservicesV1::ListGameServerConfigsResponse] parsed result object
736
+ # @yieldparam err [StandardError] error object if request failed
737
+ #
738
+ # @return [Google::Apis::GameservicesV1::ListGameServerConfigsResponse]
739
+ #
740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
743
+ def list_project_location_game_server_deployment_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
744
+ command = make_simple_command(:get, 'v1/{+parent}/configs', options)
745
+ command.response_representation = Google::Apis::GameservicesV1::ListGameServerConfigsResponse::Representation
746
+ command.response_class = Google::Apis::GameservicesV1::ListGameServerConfigsResponse
747
+ command.params['parent'] = parent unless parent.nil?
748
+ command.query['filter'] = filter unless filter.nil?
749
+ command.query['orderBy'] = order_by unless order_by.nil?
750
+ command.query['pageSize'] = page_size unless page_size.nil?
751
+ command.query['pageToken'] = page_token unless page_token.nil?
752
+ command.query['fields'] = fields unless fields.nil?
753
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
754
+ execute_or_queue_command(command, &block)
755
+ end
756
+
757
+ # Starts asynchronous cancellation on a long-running operation. The server
758
+ # makes a best effort to cancel the operation, but success is not
759
+ # guaranteed. If the server doesn't support this method, it returns
760
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
761
+ # Operations.GetOperation or
762
+ # other methods to check whether the cancellation succeeded or whether the
763
+ # operation completed despite cancellation. On successful cancellation,
764
+ # the operation is not deleted; instead, it becomes an operation with
765
+ # an Operation.error value with a google.rpc.Status.code of 1,
766
+ # corresponding to `Code.CANCELLED`.
767
+ # @param [String] name
768
+ # The name of the operation resource to be cancelled.
769
+ # @param [Google::Apis::GameservicesV1::CancelOperationRequest] cancel_operation_request_object
770
+ # @param [String] fields
771
+ # Selector specifying which fields to include in a partial response.
772
+ # @param [String] quota_user
773
+ # Available to use for quota purposes for server-side applications. Can be any
774
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
775
+ # @param [Google::Apis::RequestOptions] options
776
+ # Request-specific options
777
+ #
778
+ # @yield [result, err] Result & error if block supplied
779
+ # @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
780
+ # @yieldparam err [StandardError] error object if request failed
781
+ #
782
+ # @return [Google::Apis::GameservicesV1::Empty]
783
+ #
784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
787
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
788
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
789
+ command.request_representation = Google::Apis::GameservicesV1::CancelOperationRequest::Representation
790
+ command.request_object = cancel_operation_request_object
791
+ command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
792
+ command.response_class = Google::Apis::GameservicesV1::Empty
793
+ command.params['name'] = name unless name.nil?
794
+ command.query['fields'] = fields unless fields.nil?
795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
796
+ execute_or_queue_command(command, &block)
797
+ end
798
+
799
+ # Deletes a long-running operation. This method indicates that the client is
800
+ # no longer interested in the operation result. It does not cancel the
801
+ # operation. If the server doesn't support this method, it returns
802
+ # `google.rpc.Code.UNIMPLEMENTED`.
803
+ # @param [String] name
804
+ # The name of the operation resource to be deleted.
805
+ # @param [String] fields
806
+ # Selector specifying which fields to include in a partial response.
807
+ # @param [String] quota_user
808
+ # Available to use for quota purposes for server-side applications. Can be any
809
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
810
+ # @param [Google::Apis::RequestOptions] options
811
+ # Request-specific options
812
+ #
813
+ # @yield [result, err] Result & error if block supplied
814
+ # @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
815
+ # @yieldparam err [StandardError] error object if request failed
816
+ #
817
+ # @return [Google::Apis::GameservicesV1::Empty]
818
+ #
819
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
820
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
821
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
822
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
823
+ command = make_simple_command(:delete, 'v1/{+name}', options)
824
+ command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
825
+ command.response_class = Google::Apis::GameservicesV1::Empty
826
+ command.params['name'] = name unless name.nil?
827
+ command.query['fields'] = fields unless fields.nil?
828
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
829
+ execute_or_queue_command(command, &block)
830
+ end
831
+
832
+ # Gets the latest state of a long-running operation. Clients can use this
833
+ # method to poll the operation result at intervals as recommended by the API
834
+ # service.
835
+ # @param [String] name
836
+ # The name of the operation resource.
837
+ # @param [String] fields
838
+ # Selector specifying which fields to include in a partial response.
839
+ # @param [String] quota_user
840
+ # Available to use for quota purposes for server-side applications. Can be any
841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
842
+ # @param [Google::Apis::RequestOptions] options
843
+ # Request-specific options
844
+ #
845
+ # @yield [result, err] Result & error if block supplied
846
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
847
+ # @yieldparam err [StandardError] error object if request failed
848
+ #
849
+ # @return [Google::Apis::GameservicesV1::Operation]
850
+ #
851
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
852
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
853
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
854
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
855
+ command = make_simple_command(:get, 'v1/{+name}', options)
856
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
857
+ command.response_class = Google::Apis::GameservicesV1::Operation
858
+ command.params['name'] = name unless name.nil?
859
+ command.query['fields'] = fields unless fields.nil?
860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
861
+ execute_or_queue_command(command, &block)
862
+ end
863
+
864
+ # Lists operations that match the specified filter in the request. If the
865
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
866
+ # NOTE: the `name` binding allows API services to override the binding
867
+ # to use different resource name schemes, such as `users/*/operations`. To
868
+ # override the binding, API services can add a binding such as
869
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
870
+ # For backwards compatibility, the default name includes the operations
871
+ # collection id, however overriding users must ensure the name binding
872
+ # is the parent resource, without the operations collection id.
873
+ # @param [String] name
874
+ # The name of the operation's parent resource.
875
+ # @param [String] filter
876
+ # The standard list filter.
877
+ # @param [Fixnum] page_size
878
+ # The standard list page size.
879
+ # @param [String] page_token
880
+ # The standard list page token.
881
+ # @param [String] fields
882
+ # Selector specifying which fields to include in a partial response.
883
+ # @param [String] quota_user
884
+ # Available to use for quota purposes for server-side applications. Can be any
885
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
886
+ # @param [Google::Apis::RequestOptions] options
887
+ # Request-specific options
888
+ #
889
+ # @yield [result, err] Result & error if block supplied
890
+ # @yieldparam result [Google::Apis::GameservicesV1::ListOperationsResponse] parsed result object
891
+ # @yieldparam err [StandardError] error object if request failed
892
+ #
893
+ # @return [Google::Apis::GameservicesV1::ListOperationsResponse]
894
+ #
895
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
896
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
897
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
898
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
899
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
900
+ command.response_representation = Google::Apis::GameservicesV1::ListOperationsResponse::Representation
901
+ command.response_class = Google::Apis::GameservicesV1::ListOperationsResponse
902
+ command.params['name'] = name unless name.nil?
903
+ command.query['filter'] = filter unless filter.nil?
904
+ command.query['pageSize'] = page_size unless page_size.nil?
905
+ command.query['pageToken'] = page_token unless page_token.nil?
906
+ command.query['fields'] = fields unless fields.nil?
907
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
908
+ execute_or_queue_command(command, &block)
909
+ end
910
+
911
+ # Creates a new realm in a given project and location.
912
+ # @param [String] parent
913
+ # Required. The parent resource name. Uses the form:
914
+ # `projects/`project`/locations/`location``.
915
+ # @param [Google::Apis::GameservicesV1::Realm] realm_object
916
+ # @param [String] realm_id
917
+ # Required. The ID of the realm resource to be created.
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # @param [Google::Apis::RequestOptions] options
924
+ # Request-specific options
925
+ #
926
+ # @yield [result, err] Result & error if block supplied
927
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
928
+ # @yieldparam err [StandardError] error object if request failed
929
+ #
930
+ # @return [Google::Apis::GameservicesV1::Operation]
931
+ #
932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
935
+ def create_project_location_realm(parent, realm_object = nil, realm_id: nil, fields: nil, quota_user: nil, options: nil, &block)
936
+ command = make_simple_command(:post, 'v1/{+parent}/realms', options)
937
+ command.request_representation = Google::Apis::GameservicesV1::Realm::Representation
938
+ command.request_object = realm_object
939
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
940
+ command.response_class = Google::Apis::GameservicesV1::Operation
941
+ command.params['parent'] = parent unless parent.nil?
942
+ command.query['realmId'] = realm_id unless realm_id.nil?
943
+ command.query['fields'] = fields unless fields.nil?
944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
945
+ execute_or_queue_command(command, &block)
946
+ end
947
+
948
+ # Deletes a single realm.
949
+ # @param [String] name
950
+ # Required. The name of the realm to delete. Uses the form:
951
+ # `projects/`project`/locations/`location`/realms/`realm``.
952
+ # @param [String] fields
953
+ # Selector specifying which fields to include in a partial response.
954
+ # @param [String] quota_user
955
+ # Available to use for quota purposes for server-side applications. Can be any
956
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
957
+ # @param [Google::Apis::RequestOptions] options
958
+ # Request-specific options
959
+ #
960
+ # @yield [result, err] Result & error if block supplied
961
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
962
+ # @yieldparam err [StandardError] error object if request failed
963
+ #
964
+ # @return [Google::Apis::GameservicesV1::Operation]
965
+ #
966
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
967
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
968
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
969
+ def delete_project_location_realm(name, fields: nil, quota_user: nil, options: nil, &block)
970
+ command = make_simple_command(:delete, 'v1/{+name}', options)
971
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
972
+ command.response_class = Google::Apis::GameservicesV1::Operation
973
+ command.params['name'] = name unless name.nil?
974
+ command.query['fields'] = fields unless fields.nil?
975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
976
+ execute_or_queue_command(command, &block)
977
+ end
978
+
979
+ # Gets details of a single realm.
980
+ # @param [String] name
981
+ # Required. The name of the realm to retrieve. Uses the form:
982
+ # `projects/`project`/locations/`location`/realms/`realm``.
983
+ # @param [String] fields
984
+ # Selector specifying which fields to include in a partial response.
985
+ # @param [String] quota_user
986
+ # Available to use for quota purposes for server-side applications. Can be any
987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
988
+ # @param [Google::Apis::RequestOptions] options
989
+ # Request-specific options
990
+ #
991
+ # @yield [result, err] Result & error if block supplied
992
+ # @yieldparam result [Google::Apis::GameservicesV1::Realm] parsed result object
993
+ # @yieldparam err [StandardError] error object if request failed
994
+ #
995
+ # @return [Google::Apis::GameservicesV1::Realm]
996
+ #
997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1000
+ def get_project_location_realm(name, fields: nil, quota_user: nil, options: nil, &block)
1001
+ command = make_simple_command(:get, 'v1/{+name}', options)
1002
+ command.response_representation = Google::Apis::GameservicesV1::Realm::Representation
1003
+ command.response_class = Google::Apis::GameservicesV1::Realm
1004
+ command.params['name'] = name unless name.nil?
1005
+ command.query['fields'] = fields unless fields.nil?
1006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1007
+ execute_or_queue_command(command, &block)
1008
+ end
1009
+
1010
+ # Lists realms in a given project and location.
1011
+ # @param [String] parent
1012
+ # Required. The parent resource name. Uses the form:
1013
+ # `projects/`project`/locations/`location``.
1014
+ # @param [String] filter
1015
+ # Optional. The filter to apply to list results.
1016
+ # @param [String] order_by
1017
+ # Optional. Specifies the ordering of results following syntax at
1018
+ # https://cloud.google.com/apis/design/design_patterns#sorting_order.
1019
+ # @param [Fixnum] page_size
1020
+ # Optional. The maximum number of items to return. If unspecified, server
1021
+ # will pick an appropriate default. Server may return fewer items than
1022
+ # requested. A caller should only rely on response's
1023
+ # next_page_token to
1024
+ # determine if there are more realms left to be queried.
1025
+ # @param [String] page_token
1026
+ # Optional. The next_page_token value returned from a previous List request,
1027
+ # if any.
1028
+ # @param [String] fields
1029
+ # Selector specifying which fields to include in a partial response.
1030
+ # @param [String] quota_user
1031
+ # Available to use for quota purposes for server-side applications. Can be any
1032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1033
+ # @param [Google::Apis::RequestOptions] options
1034
+ # Request-specific options
1035
+ #
1036
+ # @yield [result, err] Result & error if block supplied
1037
+ # @yieldparam result [Google::Apis::GameservicesV1::ListRealmsResponse] parsed result object
1038
+ # @yieldparam err [StandardError] error object if request failed
1039
+ #
1040
+ # @return [Google::Apis::GameservicesV1::ListRealmsResponse]
1041
+ #
1042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1045
+ def list_project_location_realms(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1046
+ command = make_simple_command(:get, 'v1/{+parent}/realms', options)
1047
+ command.response_representation = Google::Apis::GameservicesV1::ListRealmsResponse::Representation
1048
+ command.response_class = Google::Apis::GameservicesV1::ListRealmsResponse
1049
+ command.params['parent'] = parent unless parent.nil?
1050
+ command.query['filter'] = filter unless filter.nil?
1051
+ command.query['orderBy'] = order_by unless order_by.nil?
1052
+ command.query['pageSize'] = page_size unless page_size.nil?
1053
+ command.query['pageToken'] = page_token unless page_token.nil?
1054
+ command.query['fields'] = fields unless fields.nil?
1055
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1056
+ execute_or_queue_command(command, &block)
1057
+ end
1058
+
1059
+ # Patches a single realm.
1060
+ # @param [String] name
1061
+ # The resource name of the realm. Uses the form:
1062
+ # `projects/`project`/locations/`location`/realms/`realm``. For
1063
+ # example, `projects/my-project/locations/`location`/realms/my-realm`.
1064
+ # @param [Google::Apis::GameservicesV1::Realm] realm_object
1065
+ # @param [String] update_mask
1066
+ # Required. The update mask applies to the resource. For the `FieldMask`
1067
+ # definition, see
1068
+ # https:
1069
+ # //developers.google.com/protocol-buffers
1070
+ # // /docs/reference/google.protobuf#fieldmask
1071
+ # @param [String] fields
1072
+ # Selector specifying which fields to include in a partial response.
1073
+ # @param [String] quota_user
1074
+ # Available to use for quota purposes for server-side applications. Can be any
1075
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1076
+ # @param [Google::Apis::RequestOptions] options
1077
+ # Request-specific options
1078
+ #
1079
+ # @yield [result, err] Result & error if block supplied
1080
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
1081
+ # @yieldparam err [StandardError] error object if request failed
1082
+ #
1083
+ # @return [Google::Apis::GameservicesV1::Operation]
1084
+ #
1085
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1086
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1087
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1088
+ def patch_project_location_realm(name, realm_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1089
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1090
+ command.request_representation = Google::Apis::GameservicesV1::Realm::Representation
1091
+ command.request_object = realm_object
1092
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
1093
+ command.response_class = Google::Apis::GameservicesV1::Operation
1094
+ command.params['name'] = name unless name.nil?
1095
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1096
+ command.query['fields'] = fields unless fields.nil?
1097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1098
+ execute_or_queue_command(command, &block)
1099
+ end
1100
+
1101
+ # Previews patches to a single realm.
1102
+ # @param [String] name
1103
+ # The resource name of the realm. Uses the form:
1104
+ # `projects/`project`/locations/`location`/realms/`realm``. For
1105
+ # example, `projects/my-project/locations/`location`/realms/my-realm`.
1106
+ # @param [Google::Apis::GameservicesV1::Realm] realm_object
1107
+ # @param [String] preview_time
1108
+ # Optional. The target timestamp to compute the preview.
1109
+ # @param [String] update_mask
1110
+ # Required. The update mask applies to the resource. For the `FieldMask`
1111
+ # definition, see
1112
+ # https:
1113
+ # //developers.google.com/protocol-buffers
1114
+ # // /docs/reference/google.protobuf#fieldmask
1115
+ # @param [String] fields
1116
+ # Selector specifying which fields to include in a partial response.
1117
+ # @param [String] quota_user
1118
+ # Available to use for quota purposes for server-side applications. Can be any
1119
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1120
+ # @param [Google::Apis::RequestOptions] options
1121
+ # Request-specific options
1122
+ #
1123
+ # @yield [result, err] Result & error if block supplied
1124
+ # @yieldparam result [Google::Apis::GameservicesV1::PreviewRealmUpdateResponse] parsed result object
1125
+ # @yieldparam err [StandardError] error object if request failed
1126
+ #
1127
+ # @return [Google::Apis::GameservicesV1::PreviewRealmUpdateResponse]
1128
+ #
1129
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1130
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1131
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1132
+ def preview_project_location_realm_update(name, realm_object = nil, preview_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1133
+ command = make_simple_command(:patch, 'v1/{+name}:previewUpdate', options)
1134
+ command.request_representation = Google::Apis::GameservicesV1::Realm::Representation
1135
+ command.request_object = realm_object
1136
+ command.response_representation = Google::Apis::GameservicesV1::PreviewRealmUpdateResponse::Representation
1137
+ command.response_class = Google::Apis::GameservicesV1::PreviewRealmUpdateResponse
1138
+ command.params['name'] = name unless name.nil?
1139
+ command.query['previewTime'] = preview_time unless preview_time.nil?
1140
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1141
+ command.query['fields'] = fields unless fields.nil?
1142
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1143
+ execute_or_queue_command(command, &block)
1144
+ end
1145
+
1146
+ # Creates a new game server cluster in a given project and location.
1147
+ # @param [String] parent
1148
+ # Required. The parent resource name. Uses the form:
1149
+ # `projects/`project`/locations/`location`/realms/`realm-id``.
1150
+ # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
1151
+ # @param [String] game_server_cluster_id
1152
+ # Required. The ID of the game server cluster resource to be created.
1153
+ # @param [String] fields
1154
+ # Selector specifying which fields to include in a partial response.
1155
+ # @param [String] quota_user
1156
+ # Available to use for quota purposes for server-side applications. Can be any
1157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1158
+ # @param [Google::Apis::RequestOptions] options
1159
+ # Request-specific options
1160
+ #
1161
+ # @yield [result, err] Result & error if block supplied
1162
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
1163
+ # @yieldparam err [StandardError] error object if request failed
1164
+ #
1165
+ # @return [Google::Apis::GameservicesV1::Operation]
1166
+ #
1167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1170
+ def create_project_location_realm_game_server_cluster(parent, game_server_cluster_object = nil, game_server_cluster_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1171
+ command = make_simple_command(:post, 'v1/{+parent}/gameServerClusters', options)
1172
+ command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
1173
+ command.request_object = game_server_cluster_object
1174
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
1175
+ command.response_class = Google::Apis::GameservicesV1::Operation
1176
+ command.params['parent'] = parent unless parent.nil?
1177
+ command.query['gameServerClusterId'] = game_server_cluster_id unless game_server_cluster_id.nil?
1178
+ command.query['fields'] = fields unless fields.nil?
1179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1180
+ execute_or_queue_command(command, &block)
1181
+ end
1182
+
1183
+ # Deletes a single game server cluster.
1184
+ # @param [String] name
1185
+ # Required. The name of the game server cluster to delete. Uses the form:
1186
+ # `projects/`project`/locations/`location`/gameServerClusters/`cluster``.
1187
+ # @param [String] fields
1188
+ # Selector specifying which fields to include in a partial response.
1189
+ # @param [String] quota_user
1190
+ # Available to use for quota purposes for server-side applications. Can be any
1191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1192
+ # @param [Google::Apis::RequestOptions] options
1193
+ # Request-specific options
1194
+ #
1195
+ # @yield [result, err] Result & error if block supplied
1196
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
1197
+ # @yieldparam err [StandardError] error object if request failed
1198
+ #
1199
+ # @return [Google::Apis::GameservicesV1::Operation]
1200
+ #
1201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1204
+ def delete_project_location_realm_game_server_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
1205
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1206
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
1207
+ command.response_class = Google::Apis::GameservicesV1::Operation
1208
+ command.params['name'] = name unless name.nil?
1209
+ command.query['fields'] = fields unless fields.nil?
1210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1211
+ execute_or_queue_command(command, &block)
1212
+ end
1213
+
1214
+ # Gets details of a single game server cluster.
1215
+ # @param [String] name
1216
+ # Required. The name of the game server cluster to retrieve. Uses the form:
1217
+ # `projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/`
1218
+ # cluster``.
1219
+ # @param [String] fields
1220
+ # Selector specifying which fields to include in a partial response.
1221
+ # @param [String] quota_user
1222
+ # Available to use for quota purposes for server-side applications. Can be any
1223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1224
+ # @param [Google::Apis::RequestOptions] options
1225
+ # Request-specific options
1226
+ #
1227
+ # @yield [result, err] Result & error if block supplied
1228
+ # @yieldparam result [Google::Apis::GameservicesV1::GameServerCluster] parsed result object
1229
+ # @yieldparam err [StandardError] error object if request failed
1230
+ #
1231
+ # @return [Google::Apis::GameservicesV1::GameServerCluster]
1232
+ #
1233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1236
+ def get_project_location_realm_game_server_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
1237
+ command = make_simple_command(:get, 'v1/{+name}', options)
1238
+ command.response_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
1239
+ command.response_class = Google::Apis::GameservicesV1::GameServerCluster
1240
+ command.params['name'] = name unless name.nil?
1241
+ command.query['fields'] = fields unless fields.nil?
1242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1243
+ execute_or_queue_command(command, &block)
1244
+ end
1245
+
1246
+ # Lists game server clusters in a given project and location.
1247
+ # @param [String] parent
1248
+ # Required. The parent resource name. Uses the form:
1249
+ # "projects/`project`/locations/`location`/realms/`realm`".
1250
+ # @param [String] filter
1251
+ # Optional. The filter to apply to list results.
1252
+ # @param [String] order_by
1253
+ # Optional. Specifies the ordering of results following syntax at
1254
+ # https://cloud.google.com/apis/design/design_patterns#sorting_order.
1255
+ # @param [Fixnum] page_size
1256
+ # Optional. The maximum number of items to return. If unspecified, the server
1257
+ # will pick an appropriate default. The server may return fewer items than
1258
+ # requested. A caller should only rely on response's
1259
+ # next_page_token to
1260
+ # determine if there are more GameServerClusters left to be queried.
1261
+ # @param [String] page_token
1262
+ # Optional. The next_page_token value returned from a previous List request, if
1263
+ # any.
1264
+ # @param [String] fields
1265
+ # Selector specifying which fields to include in a partial response.
1266
+ # @param [String] quota_user
1267
+ # Available to use for quota purposes for server-side applications. Can be any
1268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1269
+ # @param [Google::Apis::RequestOptions] options
1270
+ # Request-specific options
1271
+ #
1272
+ # @yield [result, err] Result & error if block supplied
1273
+ # @yieldparam result [Google::Apis::GameservicesV1::ListGameServerClustersResponse] parsed result object
1274
+ # @yieldparam err [StandardError] error object if request failed
1275
+ #
1276
+ # @return [Google::Apis::GameservicesV1::ListGameServerClustersResponse]
1277
+ #
1278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1281
+ def list_project_location_realm_game_server_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1282
+ command = make_simple_command(:get, 'v1/{+parent}/gameServerClusters', options)
1283
+ command.response_representation = Google::Apis::GameservicesV1::ListGameServerClustersResponse::Representation
1284
+ command.response_class = Google::Apis::GameservicesV1::ListGameServerClustersResponse
1285
+ command.params['parent'] = parent unless parent.nil?
1286
+ command.query['filter'] = filter unless filter.nil?
1287
+ command.query['orderBy'] = order_by unless order_by.nil?
1288
+ command.query['pageSize'] = page_size unless page_size.nil?
1289
+ command.query['pageToken'] = page_token unless page_token.nil?
1290
+ command.query['fields'] = fields unless fields.nil?
1291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1292
+ execute_or_queue_command(command, &block)
1293
+ end
1294
+
1295
+ # Patches a single game server cluster.
1296
+ # @param [String] name
1297
+ # Required. The resource name of the game server cluster. Uses the form:
1298
+ # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/`
1299
+ # cluster``.
1300
+ # For example,
1301
+ # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/
1302
+ # my-onprem-cluster`.
1303
+ # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
1304
+ # @param [String] update_mask
1305
+ # Required. Mask of fields to update. At least one path must be supplied in
1306
+ # this field. For the `FieldMask` definition, see
1307
+ # https:
1308
+ # //developers.google.com/protocol-buffers
1309
+ # // /docs/reference/google.protobuf#fieldmask
1310
+ # @param [String] fields
1311
+ # Selector specifying which fields to include in a partial response.
1312
+ # @param [String] quota_user
1313
+ # Available to use for quota purposes for server-side applications. Can be any
1314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1315
+ # @param [Google::Apis::RequestOptions] options
1316
+ # Request-specific options
1317
+ #
1318
+ # @yield [result, err] Result & error if block supplied
1319
+ # @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
1320
+ # @yieldparam err [StandardError] error object if request failed
1321
+ #
1322
+ # @return [Google::Apis::GameservicesV1::Operation]
1323
+ #
1324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1327
+ def patch_project_location_realm_game_server_cluster(name, game_server_cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1328
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1329
+ command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
1330
+ command.request_object = game_server_cluster_object
1331
+ command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
1332
+ command.response_class = Google::Apis::GameservicesV1::Operation
1333
+ command.params['name'] = name unless name.nil?
1334
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1335
+ command.query['fields'] = fields unless fields.nil?
1336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1337
+ execute_or_queue_command(command, &block)
1338
+ end
1339
+
1340
+ # Previews creation of a new game server cluster in a given project and
1341
+ # location.
1342
+ # @param [String] parent
1343
+ # Required. The parent resource name. Uses the form:
1344
+ # `projects/`project`/locations/`location`/realms/`realm``.
1345
+ # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
1346
+ # @param [String] game_server_cluster_id
1347
+ # Required. The ID of the game server cluster resource to be created.
1348
+ # @param [String] preview_time
1349
+ # Optional. The target timestamp to compute the preview.
1350
+ # @param [String] fields
1351
+ # Selector specifying which fields to include in a partial response.
1352
+ # @param [String] quota_user
1353
+ # Available to use for quota purposes for server-side applications. Can be any
1354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1355
+ # @param [Google::Apis::RequestOptions] options
1356
+ # Request-specific options
1357
+ #
1358
+ # @yield [result, err] Result & error if block supplied
1359
+ # @yieldparam result [Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse] parsed result object
1360
+ # @yieldparam err [StandardError] error object if request failed
1361
+ #
1362
+ # @return [Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse]
1363
+ #
1364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1367
+ def preview_project_location_realm_game_server_cluster_create(parent, game_server_cluster_object = nil, game_server_cluster_id: nil, preview_time: nil, fields: nil, quota_user: nil, options: nil, &block)
1368
+ command = make_simple_command(:post, 'v1/{+parent}/gameServerClusters:previewCreate', options)
1369
+ command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
1370
+ command.request_object = game_server_cluster_object
1371
+ command.response_representation = Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse::Representation
1372
+ command.response_class = Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse
1373
+ command.params['parent'] = parent unless parent.nil?
1374
+ command.query['gameServerClusterId'] = game_server_cluster_id unless game_server_cluster_id.nil?
1375
+ command.query['previewTime'] = preview_time unless preview_time.nil?
1376
+ command.query['fields'] = fields unless fields.nil?
1377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1378
+ execute_or_queue_command(command, &block)
1379
+ end
1380
+
1381
+ # Previews deletion of a single game server cluster.
1382
+ # @param [String] name
1383
+ # Required. The name of the game server cluster to delete. Uses the form:
1384
+ # `projects/`project`/locations/`location`/gameServerClusters/`cluster``.
1385
+ # @param [String] preview_time
1386
+ # Optional. The target timestamp to compute the preview.
1387
+ # @param [String] fields
1388
+ # Selector specifying which fields to include in a partial response.
1389
+ # @param [String] quota_user
1390
+ # Available to use for quota purposes for server-side applications. Can be any
1391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1392
+ # @param [Google::Apis::RequestOptions] options
1393
+ # Request-specific options
1394
+ #
1395
+ # @yield [result, err] Result & error if block supplied
1396
+ # @yieldparam result [Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse] parsed result object
1397
+ # @yieldparam err [StandardError] error object if request failed
1398
+ #
1399
+ # @return [Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse]
1400
+ #
1401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1404
+ def preview_project_location_realm_game_server_cluster_delete(name, preview_time: nil, fields: nil, quota_user: nil, options: nil, &block)
1405
+ command = make_simple_command(:delete, 'v1/{+name}:previewDelete', options)
1406
+ command.response_representation = Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse::Representation
1407
+ command.response_class = Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse
1408
+ command.params['name'] = name unless name.nil?
1409
+ command.query['previewTime'] = preview_time unless preview_time.nil?
1410
+ command.query['fields'] = fields unless fields.nil?
1411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1412
+ execute_or_queue_command(command, &block)
1413
+ end
1414
+
1415
+ # Previews updating a GameServerCluster.
1416
+ # @param [String] name
1417
+ # Required. The resource name of the game server cluster. Uses the form:
1418
+ # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/`
1419
+ # cluster``.
1420
+ # For example,
1421
+ # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/
1422
+ # my-onprem-cluster`.
1423
+ # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
1424
+ # @param [String] preview_time
1425
+ # Optional. The target timestamp to compute the preview.
1426
+ # @param [String] update_mask
1427
+ # Required. Mask of fields to update. At least one path must be supplied in
1428
+ # this field. For the `FieldMask` definition, see
1429
+ # https:
1430
+ # //developers.google.com/protocol-buffers
1431
+ # // /docs/reference/google.protobuf#fieldmask
1432
+ # @param [String] fields
1433
+ # Selector specifying which fields to include in a partial response.
1434
+ # @param [String] quota_user
1435
+ # Available to use for quota purposes for server-side applications. Can be any
1436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1437
+ # @param [Google::Apis::RequestOptions] options
1438
+ # Request-specific options
1439
+ #
1440
+ # @yield [result, err] Result & error if block supplied
1441
+ # @yieldparam result [Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse] parsed result object
1442
+ # @yieldparam err [StandardError] error object if request failed
1443
+ #
1444
+ # @return [Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse]
1445
+ #
1446
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1447
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1448
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1449
+ def preview_project_location_realm_game_server_cluster_update(name, game_server_cluster_object = nil, preview_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1450
+ command = make_simple_command(:patch, 'v1/{+name}:previewUpdate', options)
1451
+ command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
1452
+ command.request_object = game_server_cluster_object
1453
+ command.response_representation = Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse::Representation
1454
+ command.response_class = Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse
1455
+ command.params['name'] = name unless name.nil?
1456
+ command.query['previewTime'] = preview_time unless preview_time.nil?
1457
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1458
+ command.query['fields'] = fields unless fields.nil?
1459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1460
+ execute_or_queue_command(command, &block)
1461
+ end
1462
+
1463
+ protected
1464
+
1465
+ def apply_command_defaults(command)
1466
+ command.query['key'] = key unless key.nil?
1467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1468
+ end
1469
+ end
1470
+ end
1471
+ end
1472
+ end