google-cloud-gaming-v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Gaming
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -152,7 +152,6 @@ module Google
152
152
  # @!attribute [rw] game_server_config_name
153
153
  # @return [::String]
154
154
  # The game server config resource. Uses the form:
155
- #
156
155
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`.
157
156
  # @!attribute [rw] name
158
157
  # @return [::String]
@@ -167,12 +166,10 @@ module Google
167
166
  # @!attribute [rw] game_server_cluster_name
168
167
  # @return [::String]
169
168
  # The game server cluster name. Uses the form:
170
- #
171
169
  # `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
172
170
  # @!attribute [rw] game_server_deployment_name
173
171
  # @return [::String]
174
172
  # The game server deployment name. Uses the form:
175
- #
176
173
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.
177
174
  # @!attribute [rw] fleet_details
178
175
  # @return [::Array<::Google::Cloud::Gaming::V1::TargetDetails::TargetFleetDetails>]
@@ -24,11 +24,11 @@ module Google
24
24
  # Request message for GameServerClustersService.ListGameServerClusters.
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
- # Required. The parent resource name. Uses the form:
27
+ # Required. The parent resource name, in the following form:
28
28
  # "projects/\\{project}/locations/\\{location}/realms/\\{realm}".
29
29
  # @!attribute [rw] page_size
30
30
  # @return [::Integer]
31
- # Optional. The maximum number of items to return. If unspecified, the server
31
+ # Optional. The maximum number of items to return. If unspecified, the server
32
32
  # will pick an appropriate default. The server may return fewer items than
33
33
  # requested. A caller should only rely on response's
34
34
  # {::Google::Cloud::Gaming::V1::ListGameServerClustersResponse#next_page_token next_page_token} to
@@ -43,6 +43,14 @@ module Google
43
43
  # @return [::String]
44
44
  # Optional. Specifies the ordering of results following syntax at
45
45
  # https://cloud.google.com/apis/design/design_patterns#sorting_order.
46
+ # @!attribute [rw] view
47
+ # @return [::Google::Cloud::Gaming::V1::GameServerClusterView]
48
+ # Optional. View for the returned GameServerCluster objects. When `FULL` is
49
+ # specified, the `cluster_state` field is also returned in the
50
+ # GameServerCluster object, which includes the state of the referenced
51
+ # Kubernetes cluster such as versions and provider info. The default/unset
52
+ # value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does
53
+ # not return the `cluster_state` field.
46
54
  class ListGameServerClustersRequest
47
55
  include ::Google::Protobuf::MessageExts
48
56
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -67,9 +75,16 @@ module Google
67
75
  # Request message for GameServerClustersService.GetGameServerCluster.
68
76
  # @!attribute [rw] name
69
77
  # @return [::String]
70
- # Required. The name of the game server cluster to retrieve. Uses the form:
71
- #
78
+ # Required. The name of the game server cluster to retrieve, in the following form:
72
79
  # `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
80
+ # @!attribute [rw] view
81
+ # @return [::Google::Cloud::Gaming::V1::GameServerClusterView]
82
+ # Optional. View for the returned GameServerCluster objects. When `FULL` is
83
+ # specified, the `cluster_state` field is also returned in the
84
+ # GameServerCluster object, which includes the state of the referenced
85
+ # Kubernetes cluster such as versions and provider info. The default/unset
86
+ # value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does
87
+ # not return the `cluster_state` field.
73
88
  class GetGameServerClusterRequest
74
89
  include ::Google::Protobuf::MessageExts
75
90
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -78,7 +93,7 @@ module Google
78
93
  # Request message for GameServerClustersService.CreateGameServerCluster.
79
94
  # @!attribute [rw] parent
80
95
  # @return [::String]
81
- # Required. The parent resource name. Uses the form:
96
+ # Required. The parent resource name, in the following form:
82
97
  # `projects/{project}/locations/{location}/realms/{realm-id}`.
83
98
  # @!attribute [rw] game_server_cluster_id
84
99
  # @return [::String]
@@ -94,7 +109,7 @@ module Google
94
109
  # Request message for GameServerClustersService.PreviewCreateGameServerCluster.
95
110
  # @!attribute [rw] parent
96
111
  # @return [::String]
97
- # Required. The parent resource name. Uses the form:
112
+ # Required. The parent resource name, in the following form:
98
113
  # `projects/{project}/locations/{location}/realms/{realm}`.
99
114
  # @!attribute [rw] game_server_cluster_id
100
115
  # @return [::String]
@@ -105,6 +120,10 @@ module Google
105
120
  # @!attribute [rw] preview_time
106
121
  # @return [::Google::Protobuf::Timestamp]
107
122
  # Optional. The target timestamp to compute the preview.
123
+ # @!attribute [rw] view
124
+ # @return [::Google::Cloud::Gaming::V1::GameServerClusterView]
125
+ # Optional. This field is deprecated, preview will always return
126
+ # KubernetesClusterState.
108
127
  class PreviewCreateGameServerClusterRequest
109
128
  include ::Google::Protobuf::MessageExts
110
129
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -118,6 +137,10 @@ module Google
118
137
  # @!attribute [rw] target_state
119
138
  # @return [::Google::Cloud::Gaming::V1::TargetState]
120
139
  # The target state.
140
+ # @!attribute [r] cluster_state
141
+ # @return [::Google::Cloud::Gaming::V1::KubernetesClusterState]
142
+ # Output only. The state of the Kubernetes cluster in preview, this will be available if
143
+ # 'view' is set to `FULL` in the relevant List/Get/Preview request.
121
144
  class PreviewCreateGameServerClusterResponse
122
145
  include ::Google::Protobuf::MessageExts
123
146
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -126,7 +149,7 @@ module Google
126
149
  # Request message for GameServerClustersService.DeleteGameServerCluster.
127
150
  # @!attribute [rw] name
128
151
  # @return [::String]
129
- # Required. The name of the game server cluster to delete. Uses the form:
152
+ # Required. The name of the game server cluster to delete, in the following form:
130
153
  # `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
131
154
  class DeleteGameServerClusterRequest
132
155
  include ::Google::Protobuf::MessageExts
@@ -136,7 +159,7 @@ module Google
136
159
  # Request message for GameServerClustersService.PreviewDeleteGameServerCluster.
137
160
  # @!attribute [rw] name
138
161
  # @return [::String]
139
- # Required. The name of the game server cluster to delete. Uses the form:
162
+ # Required. The name of the game server cluster to delete, in the following form:
140
163
  # `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
141
164
  # @!attribute [rw] preview_time
142
165
  # @return [::Google::Protobuf::Timestamp]
@@ -168,10 +191,7 @@ module Google
168
191
  # @return [::Google::Protobuf::FieldMask]
169
192
  # Required. Mask of fields to update. At least one path must be supplied in
170
193
  # this field. For the `FieldMask` definition, see
171
- #
172
- # https:
173
- # //developers.google.com/protocol-buffers
174
- # // /docs/reference/google.protobuf#fieldmask
194
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
175
195
  class UpdateGameServerClusterRequest
176
196
  include ::Google::Protobuf::MessageExts
177
197
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -186,10 +206,7 @@ module Google
186
206
  # @return [::Google::Protobuf::FieldMask]
187
207
  # Required. Mask of fields to update. At least one path must be supplied in
188
208
  # this field. For the `FieldMask` definition, see
189
- #
190
- # https:
191
- # //developers.google.com/protocol-buffers
192
- # // /docs/reference/google.protobuf#fieldmask
209
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
193
210
  # @!attribute [rw] preview_time
194
211
  # @return [::Google::Protobuf::Timestamp]
195
212
  # Optional. The target timestamp to compute the preview.
@@ -243,11 +260,9 @@ module Google
243
260
  # A game server cluster resource.
244
261
  # @!attribute [rw] name
245
262
  # @return [::String]
246
- # Required. The resource name of the game server cluster. Uses the form:
247
- #
263
+ # Required. The resource name of the game server cluster, in the following form:
248
264
  # `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.
249
265
  # For example,
250
- #
251
266
  # `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`.
252
267
  # @!attribute [r] create_time
253
268
  # @return [::Google::Protobuf::Timestamp]
@@ -269,6 +284,10 @@ module Google
269
284
  # @!attribute [rw] description
270
285
  # @return [::String]
271
286
  # Human readable description of the cluster.
287
+ # @!attribute [r] cluster_state
288
+ # @return [::Google::Cloud::Gaming::V1::KubernetesClusterState]
289
+ # Output only. The state of the Kubernetes cluster, this will be available if
290
+ # 'view' is set to `FULL` in the relevant List/Get/Preview request.
272
291
  class GameServerCluster
273
292
  include ::Google::Protobuf::MessageExts
274
293
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -282,6 +301,85 @@ module Google
282
301
  extend ::Google::Protobuf::MessageExts::ClassMethods
283
302
  end
284
303
  end
304
+
305
+ # The state of the Kubernetes cluster.
306
+ # @!attribute [r] agones_version_installed
307
+ # @return [::String]
308
+ # Output only. The version of Agones currently installed in the registered Kubernetes
309
+ # cluster.
310
+ # @!attribute [r] kubernetes_version_installed
311
+ # @return [::String]
312
+ # Output only. The version of Kubernetes that is currently used in the registered
313
+ # Kubernetes cluster (as detected by the Cloud Game Servers service).
314
+ # @!attribute [r] installation_state
315
+ # @return [::Google::Cloud::Gaming::V1::KubernetesClusterState::InstallationState]
316
+ # Output only. The state for the installed versions of Agones/Kubernetes.
317
+ # @!attribute [r] version_installed_error_message
318
+ # @return [::String]
319
+ # Output only. The detailed error message for the installed versions of Agones/Kubernetes.
320
+ # @!attribute [r] provider
321
+ # @return [::String]
322
+ # Output only. The cloud provider type reported by the first node's providerID in the list
323
+ # of nodes on the Kubernetes endpoint. On Kubernetes platforms that support
324
+ # zero-node clusters (like GKE-on-GCP), the provider type will be empty.
325
+ # @!attribute [r] agones_version_targeted
326
+ # @return [::String]
327
+ # Output only. The version of Agones that is targeted to be installed in the cluster.
328
+ class KubernetesClusterState
329
+ include ::Google::Protobuf::MessageExts
330
+ extend ::Google::Protobuf::MessageExts::ClassMethods
331
+
332
+ # The state of the installed versions of Agones/Kubernetes. See also
333
+ # https://cloud.google.com/game-servers/docs/versions-and-upgrades.
334
+ module InstallationState
335
+ # The default value. This value is used if the state is omitted.
336
+ INSTALLATION_STATE_UNSPECIFIED = 0
337
+
338
+ # The combination of Agones and Kubernetes versions is supported by Google
339
+ # Cloud Game Servers.
340
+ AGONES_KUBERNETES_VERSION_SUPPORTED = 1
341
+
342
+ # The installed version of Agones is not supported by Google Cloud Game
343
+ # Servers.
344
+ AGONES_VERSION_UNSUPPORTED = 2
345
+
346
+ # The installed version of Agones is supported by Google Cloud Game
347
+ # Servers, but the installed version of Kubernetes is not recommended or
348
+ # supported by the version of Agones.
349
+ AGONES_KUBERNETES_VERSION_UNSUPPORTED = 3
350
+
351
+ # The installed version of Agones is not recognized because the Agones
352
+ # controller's image name does not have a version string reported as
353
+ # \\{major}.\\{minor}(.\\{patch}).
354
+ AGONES_VERSION_UNRECOGNIZED = 4
355
+
356
+ # The server version of Kubernetes cluster is not recognized because the
357
+ # API server didn't return parsable version info on path/version.
358
+ KUBERNETES_VERSION_UNRECOGNIZED = 5
359
+
360
+ # Failed to read or verify the version of Agones or Kubernetes. See
361
+ # version_installed_error_message for details.
362
+ VERSION_VERIFICATION_FAILED = 6
363
+
364
+ # Agones is not installed.
365
+ AGONES_NOT_INSTALLED = 7
366
+ end
367
+ end
368
+
369
+ # A view for GameServerCluster objects.
370
+ module GameServerClusterView
371
+ # The default / unset value.
372
+ # The API will default to the BASIC view.
373
+ GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED = 0
374
+
375
+ # Include basic information of a GameServerCluster resource and omit
376
+ # `cluster_state`. This is the default value (for ListGameServerClusters,
377
+ # GetGameServerCluster and PreviewCreateGameServerCluster).
378
+ BASIC = 1
379
+
380
+ # Include everything.
381
+ FULL = 2
382
+ end
285
383
  end
286
384
  end
287
385
  end
@@ -24,8 +24,7 @@ module Google
24
24
  # Request message for GameServerConfigsService.ListGameServerConfigs.
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
- # Required. The parent resource name. Uses the form:
28
- #
27
+ # Required. The parent resource name, in the following form:
29
28
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
30
29
  # @!attribute [rw] page_size
31
30
  # @return [::Integer]
@@ -68,8 +67,7 @@ module Google
68
67
  # Request message for GameServerConfigsService.GetGameServerConfig.
69
68
  # @!attribute [rw] name
70
69
  # @return [::String]
71
- # Required. The name of the game server config to retrieve. Uses the form:
72
- #
70
+ # Required. The name of the game server config to retrieve, in the following form:
73
71
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
74
72
  class GetGameServerConfigRequest
75
73
  include ::Google::Protobuf::MessageExts
@@ -79,8 +77,7 @@ module Google
79
77
  # Request message for GameServerConfigsService.CreateGameServerConfig.
80
78
  # @!attribute [rw] parent
81
79
  # @return [::String]
82
- # Required. The parent resource name. Uses the form:
83
- #
80
+ # Required. The parent resource name, in the following form:
84
81
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
85
82
  # @!attribute [rw] config_id
86
83
  # @return [::String]
@@ -96,8 +93,7 @@ module Google
96
93
  # Request message for GameServerConfigsService.DeleteGameServerConfig.
97
94
  # @!attribute [rw] name
98
95
  # @return [::String]
99
- # Required. The name of the game server config to delete. Uses the form:
100
- #
96
+ # Required. The name of the game server config to delete, in the following form:
101
97
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
102
98
  class DeleteGameServerConfigRequest
103
99
  include ::Google::Protobuf::MessageExts
@@ -141,11 +137,9 @@ module Google
141
137
  # A game server config resource.
142
138
  # @!attribute [rw] name
143
139
  # @return [::String]
144
- # The resource name of the game server config. Uses the form:
145
- #
140
+ # The resource name of the game server config, in the following form:
146
141
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
147
142
  # For example,
148
- #
149
143
  # `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
150
144
  # @!attribute [r] create_time
151
145
  # @return [::Google::Protobuf::Timestamp]
@@ -24,7 +24,7 @@ module Google
24
24
  # Request message for GameServerDeploymentsService.ListGameServerDeployments.
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
- # Required. The parent resource name. Uses the form:
27
+ # Required. The parent resource name, in the following form:
28
28
  # `projects/{project}/locations/{location}`.
29
29
  # @!attribute [rw] page_size
30
30
  # @return [::Integer]
@@ -68,8 +68,7 @@ module Google
68
68
  # Request message for GameServerDeploymentsService.GetGameServerDeployment.
69
69
  # @!attribute [rw] name
70
70
  # @return [::String]
71
- # Required. The name of the game server delpoyment to retrieve. Uses the form:
72
- #
71
+ # Required. The name of the game server delpoyment to retrieve, in the following form:
73
72
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
74
73
  class GetGameServerDeploymentRequest
75
74
  include ::Google::Protobuf::MessageExts
@@ -80,8 +79,7 @@ module Google
80
79
  # GameServerDeploymentsService.GetGameServerDeploymentRollout.
81
80
  # @!attribute [rw] name
82
81
  # @return [::String]
83
- # Required. The name of the game server delpoyment to retrieve. Uses the form:
84
- #
82
+ # Required. The name of the game server delpoyment to retrieve, in the following form:
85
83
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
86
84
  class GetGameServerDeploymentRolloutRequest
87
85
  include ::Google::Protobuf::MessageExts
@@ -91,7 +89,7 @@ module Google
91
89
  # Request message for GameServerDeploymentsService.CreateGameServerDeployment.
92
90
  # @!attribute [rw] parent
93
91
  # @return [::String]
94
- # Required. The parent resource name. Uses the form:
92
+ # Required. The parent resource name, in the following form:
95
93
  # `projects/{project}/locations/{location}`.
96
94
  # @!attribute [rw] deployment_id
97
95
  # @return [::String]
@@ -107,8 +105,7 @@ module Google
107
105
  # Request message for GameServerDeploymentsService.DeleteGameServerDeployment.
108
106
  # @!attribute [rw] name
109
107
  # @return [::String]
110
- # Required. The name of the game server delpoyment to delete. Uses the form:
111
- #
108
+ # Required. The name of the game server delpoyment to delete, in the following form:
112
109
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
113
110
  class DeleteGameServerDeploymentRequest
114
111
  include ::Google::Protobuf::MessageExts
@@ -125,10 +122,7 @@ module Google
125
122
  # @return [::Google::Protobuf::FieldMask]
126
123
  # Required. Mask of fields to update. At least one path must be supplied in
127
124
  # this field. For the `FieldMask` definition, see
128
- #
129
- # https:
130
- # //developers.google.com/protocol-buffers
131
- # // /docs/reference/google.protobuf#fieldmask
125
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
132
126
  class UpdateGameServerDeploymentRequest
133
127
  include ::Google::Protobuf::MessageExts
134
128
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -144,10 +138,7 @@ module Google
144
138
  # @return [::Google::Protobuf::FieldMask]
145
139
  # Required. Mask of fields to update. At least one path must be supplied in
146
140
  # this field. For the `FieldMask` definition, see
147
- #
148
- # https:
149
- # //developers.google.com/protocol-buffers
150
- # // /docs/reference/google.protobuf#fieldmask
141
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
151
142
  class UpdateGameServerDeploymentRolloutRequest
152
143
  include ::Google::Protobuf::MessageExts
153
144
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -156,8 +147,7 @@ module Google
156
147
  # Request message for GameServerDeploymentsService.FetchDeploymentState.
157
148
  # @!attribute [rw] name
158
149
  # @return [::String]
159
- # Required. The name of the game server delpoyment. Uses the form:
160
- #
150
+ # Required. The name of the game server delpoyment, in the following form:
161
151
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
162
152
  class FetchDeploymentStateRequest
163
153
  include ::Google::Protobuf::MessageExts
@@ -192,8 +182,7 @@ module Google
192
182
  # A game server deployment resource.
193
183
  # @!attribute [rw] name
194
184
  # @return [::String]
195
- # The resource name of the game server deployment. Uses the form:
196
- #
185
+ # The resource name of the game server deployment, in the following form:
197
186
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
198
187
  # For example,
199
188
  # `projects/my-project/locations/global/gameServerDeployments/my-deployment`.
@@ -243,11 +232,10 @@ module Google
243
232
  # state.
244
233
  # @!attribute [rw] name
245
234
  # @return [::String]
246
- # The resource name of the game server deployment rollout. Uses the form:
247
- #
235
+ # The resource name of the game server deployment rollout, in the following
236
+ # form:
248
237
  # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
249
238
  # For example,
250
- #
251
239
  # `projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout`.
252
240
  # @!attribute [r] create_time
253
241
  # @return [::Google::Protobuf::Timestamp]
@@ -259,7 +247,6 @@ module Google
259
247
  # @return [::String]
260
248
  # The default game server config is applied to all realms unless overridden
261
249
  # in the rollout. For example,
262
- #
263
250
  # `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
264
251
  # @!attribute [rw] game_server_config_overrides
265
252
  # @return [::Array<::Google::Cloud::Gaming::V1::GameServerConfigOverride>]
@@ -283,10 +270,7 @@ module Google
283
270
  # @return [::Google::Protobuf::FieldMask]
284
271
  # Optional. Mask of fields to update. At least one path must be supplied in
285
272
  # this field. For the `FieldMask` definition, see
286
- #
287
- # https:
288
- # //developers.google.com/protocol-buffers
289
- # // /docs/reference/google.protobuf#fieldmask
273
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
290
274
  # @!attribute [rw] preview_time
291
275
  # @return [::Google::Protobuf::Timestamp]
292
276
  # Optional. The target timestamp to compute the preview. Defaults to the immediately