google-cloud-gaming-v1 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/gaming/v1/common_pb.rb +26 -80
- data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +27 -101
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +22 -22
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +938 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/service_stub.rb +524 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest.rb +54 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +26 -43
- data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +18 -18
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +607 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/service_stub.rb +285 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest.rb +53 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +27 -80
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +26 -26
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +999 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/service_stub.rb +584 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest.rb +54 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/realms_pb.rb +27 -46
- data/lib/google/cloud/gaming/v1/realms_service/client.rb +22 -22
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +763 -0
- data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/realms_service/rest/service_stub.rb +405 -0
- data/lib/google/cloud/gaming/v1/realms_service/rest.rb +54 -0
- data/lib/google/cloud/gaming/v1/realms_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/realms_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/rest.rb +40 -0
- data/lib/google/cloud/gaming/v1/version.rb +1 -1
- data/lib/google/cloud/gaming/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +27 -8
@@ -0,0 +1,285 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/gaming/v1/game_server_configs_service_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Gaming
|
24
|
+
module V1
|
25
|
+
module GameServerConfigsService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the GameServerConfigsService service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
39
|
+
numeric_enums: true,
|
40
|
+
raise_faraday_errors: false
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# Baseline implementation for the list_game_server_configs REST call
|
45
|
+
#
|
46
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::ListGameServerConfigsRequest]
|
47
|
+
# A request object representing the call parameters. Required.
|
48
|
+
# @param options [::Gapic::CallOptions]
|
49
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
|
+
#
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
|
+
# @yieldparam result [::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse]
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
|
+
#
|
55
|
+
# @return [::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse]
|
56
|
+
# A result object deserialized from the server's reply
|
57
|
+
def list_game_server_configs request_pb, options = nil
|
58
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
59
|
+
|
60
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_game_server_configs_request request_pb
|
61
|
+
query_string_params = if query_string_params.any?
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
|
+
else
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
response = @client_stub.make_http_request(
|
68
|
+
verb,
|
69
|
+
uri: uri,
|
70
|
+
body: body || "",
|
71
|
+
params: query_string_params,
|
72
|
+
options: options
|
73
|
+
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
|
+
result = ::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
76
|
+
|
77
|
+
yield result, operation if block_given?
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Baseline implementation for the get_game_server_config REST call
|
83
|
+
#
|
84
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::GetGameServerConfigRequest]
|
85
|
+
# A request object representing the call parameters. Required.
|
86
|
+
# @param options [::Gapic::CallOptions]
|
87
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
88
|
+
#
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
90
|
+
# @yieldparam result [::Google::Cloud::Gaming::V1::GameServerConfig]
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
92
|
+
#
|
93
|
+
# @return [::Google::Cloud::Gaming::V1::GameServerConfig]
|
94
|
+
# A result object deserialized from the server's reply
|
95
|
+
def get_game_server_config request_pb, options = nil
|
96
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
97
|
+
|
98
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_game_server_config_request request_pb
|
99
|
+
query_string_params = if query_string_params.any?
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
|
+
else
|
102
|
+
{}
|
103
|
+
end
|
104
|
+
|
105
|
+
response = @client_stub.make_http_request(
|
106
|
+
verb,
|
107
|
+
uri: uri,
|
108
|
+
body: body || "",
|
109
|
+
params: query_string_params,
|
110
|
+
options: options
|
111
|
+
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
113
|
+
result = ::Google::Cloud::Gaming::V1::GameServerConfig.decode_json response.body, ignore_unknown_fields: true
|
114
|
+
|
115
|
+
yield result, operation if block_given?
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
##
|
120
|
+
# Baseline implementation for the create_game_server_config REST call
|
121
|
+
#
|
122
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::CreateGameServerConfigRequest]
|
123
|
+
# A request object representing the call parameters. Required.
|
124
|
+
# @param options [::Gapic::CallOptions]
|
125
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
126
|
+
#
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
128
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
130
|
+
#
|
131
|
+
# @return [::Google::Longrunning::Operation]
|
132
|
+
# A result object deserialized from the server's reply
|
133
|
+
def create_game_server_config request_pb, options = nil
|
134
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
135
|
+
|
136
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_game_server_config_request request_pb
|
137
|
+
query_string_params = if query_string_params.any?
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
|
+
else
|
140
|
+
{}
|
141
|
+
end
|
142
|
+
|
143
|
+
response = @client_stub.make_http_request(
|
144
|
+
verb,
|
145
|
+
uri: uri,
|
146
|
+
body: body || "",
|
147
|
+
params: query_string_params,
|
148
|
+
options: options
|
149
|
+
)
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
151
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
152
|
+
|
153
|
+
yield result, operation if block_given?
|
154
|
+
result
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Baseline implementation for the delete_game_server_config REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::DeleteGameServerConfigRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Longrunning::Operation]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def delete_game_server_config request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_game_server_config_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @private
|
197
|
+
#
|
198
|
+
# GRPC transcoding helper method for the list_game_server_configs REST call
|
199
|
+
#
|
200
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::ListGameServerConfigsRequest]
|
201
|
+
# A request object representing the call parameters. Required.
|
202
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
203
|
+
# Uri, Body, Query string parameters
|
204
|
+
def self.transcode_list_game_server_configs_request request_pb
|
205
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
206
|
+
.with_bindings(
|
207
|
+
uri_method: :get,
|
208
|
+
uri_template: "/v1/{parent}/configs",
|
209
|
+
matches: [
|
210
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+/?$}, false]
|
211
|
+
]
|
212
|
+
)
|
213
|
+
transcoder.transcode request_pb
|
214
|
+
end
|
215
|
+
|
216
|
+
##
|
217
|
+
# @private
|
218
|
+
#
|
219
|
+
# GRPC transcoding helper method for the get_game_server_config REST call
|
220
|
+
#
|
221
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::GetGameServerConfigRequest]
|
222
|
+
# A request object representing the call parameters. Required.
|
223
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
224
|
+
# Uri, Body, Query string parameters
|
225
|
+
def self.transcode_get_game_server_config_request request_pb
|
226
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
227
|
+
.with_bindings(
|
228
|
+
uri_method: :get,
|
229
|
+
uri_template: "/v1/{name}",
|
230
|
+
matches: [
|
231
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+/configs/[^/]+/?$}, false]
|
232
|
+
]
|
233
|
+
)
|
234
|
+
transcoder.transcode request_pb
|
235
|
+
end
|
236
|
+
|
237
|
+
##
|
238
|
+
# @private
|
239
|
+
#
|
240
|
+
# GRPC transcoding helper method for the create_game_server_config REST call
|
241
|
+
#
|
242
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::CreateGameServerConfigRequest]
|
243
|
+
# A request object representing the call parameters. Required.
|
244
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
245
|
+
# Uri, Body, Query string parameters
|
246
|
+
def self.transcode_create_game_server_config_request request_pb
|
247
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
248
|
+
.with_bindings(
|
249
|
+
uri_method: :post,
|
250
|
+
uri_template: "/v1/{parent}/configs",
|
251
|
+
body: "game_server_config",
|
252
|
+
matches: [
|
253
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+/?$}, false]
|
254
|
+
]
|
255
|
+
)
|
256
|
+
transcoder.transcode request_pb
|
257
|
+
end
|
258
|
+
|
259
|
+
##
|
260
|
+
# @private
|
261
|
+
#
|
262
|
+
# GRPC transcoding helper method for the delete_game_server_config REST call
|
263
|
+
#
|
264
|
+
# @param request_pb [::Google::Cloud::Gaming::V1::DeleteGameServerConfigRequest]
|
265
|
+
# A request object representing the call parameters. Required.
|
266
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
267
|
+
# Uri, Body, Query string parameters
|
268
|
+
def self.transcode_delete_game_server_config_request request_pb
|
269
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
270
|
+
.with_bindings(
|
271
|
+
uri_method: :delete,
|
272
|
+
uri_template: "/v1/{name}",
|
273
|
+
matches: [
|
274
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/gameServerDeployments/[^/]+/configs/[^/]+/?$}, false]
|
275
|
+
]
|
276
|
+
)
|
277
|
+
transcoder.transcode request_pb
|
278
|
+
end
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|
285
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/gaming/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/gaming/v1/game_server_configs_service/credentials"
|
26
|
+
require "google/cloud/gaming/v1/game_server_configs_service/paths"
|
27
|
+
require "google/cloud/gaming/v1/game_server_configs_service/rest/operations"
|
28
|
+
require "google/cloud/gaming/v1/game_server_configs_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Gaming
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# The game server config configures the game servers in an Agones fleet.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/gaming/v1/game_server_configs_service/rest"
|
40
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Rest::Client.new
|
41
|
+
#
|
42
|
+
module GameServerConfigsService
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/gaming/v1/game_server_configs_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/gaming/v1/game_server_configs_service/credentials"
|
|
26
26
|
require "google/cloud/gaming/v1/game_server_configs_service/paths"
|
27
27
|
require "google/cloud/gaming/v1/game_server_configs_service/operations"
|
28
28
|
require "google/cloud/gaming/v1/game_server_configs_service/client"
|
29
|
+
require "google/cloud/gaming/v1/game_server_configs_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
##
|
35
36
|
# The game server config configures the game servers in an Agones fleet.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/gaming/v1/game_server_configs_service"
|
40
41
|
# client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/gaming/v1/game_server_configs_service/rest"
|
46
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module GameServerConfigsService
|
43
49
|
end
|
44
50
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/gaming/v1/game_server_configs_service.proto
|
3
4
|
|
@@ -8,9 +9,31 @@ require 'google/api/client_pb'
|
|
8
9
|
require 'google/cloud/gaming/v1/game_server_configs_pb'
|
9
10
|
require 'google/longrunning/operations_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
|
13
|
+
descriptor_data = "\n8google/cloud/gaming/v1/game_server_configs_service.proto\x12\x16google.cloud.gaming.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x30google/cloud/gaming/v1/game_server_configs.proto\x1a#google/longrunning/operations.proto2\x9b\x08\n\x18GameServerConfigsService\x12\xda\x01\n\x15ListGameServerConfigs\x12\x34.google.cloud.gaming.v1.ListGameServerConfigsRequest\x1a\x35.google.cloud.gaming.v1.ListGameServerConfigsResponse\"T\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*/gameServerDeployments/*}/configs\xda\x41\x06parent\x12\xc7\x01\n\x13GetGameServerConfig\x12\x32.google.cloud.gaming.v1.GetGameServerConfigRequest\x1a(.google.cloud.gaming.v1.GameServerConfig\"R\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}\xda\x41\x04name\x12\x94\x02\n\x16\x43reateGameServerConfig\x12\x35.google.cloud.gaming.v1.CreateGameServerConfigRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02Y\"C/v1/{parent=projects/*/locations/*/gameServerDeployments/*}/configs:\x12game_server_config\xda\x41\x19parent,game_server_config\xca\x41%\n\x10GameServerConfig\x12\x11OperationMetadata\x12\xef\x01\n\x16\x44\x65leteGameServerConfig\x12\x35.google.cloud.gaming.v1.DeleteGameServerConfigRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x45*C/v1/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x1aO\xca\x41\x1bgameservices.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBR\n\x1a\x63om.google.cloud.gaming.v1P\x01Z2cloud.google.com/go/gaming/apiv1/gamingpb;gamingpbb\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
33
|
+
end
|
13
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
14
37
|
end
|
15
38
|
|
16
39
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/gaming/v1/game_server_deployments.proto
|
3
4
|
|
@@ -9,88 +10,34 @@ require 'google/cloud/gaming/v1/common_pb'
|
|
9
10
|
require 'google/protobuf/field_mask_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
end
|
37
|
-
add_message "google.cloud.gaming.v1.DeleteGameServerDeploymentRequest" do
|
38
|
-
optional :name, :string, 1
|
39
|
-
end
|
40
|
-
add_message "google.cloud.gaming.v1.UpdateGameServerDeploymentRequest" do
|
41
|
-
optional :game_server_deployment, :message, 1, "google.cloud.gaming.v1.GameServerDeployment"
|
42
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
43
|
-
end
|
44
|
-
add_message "google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest" do
|
45
|
-
optional :rollout, :message, 1, "google.cloud.gaming.v1.GameServerDeploymentRollout"
|
46
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
47
|
-
end
|
48
|
-
add_message "google.cloud.gaming.v1.FetchDeploymentStateRequest" do
|
49
|
-
optional :name, :string, 1
|
50
|
-
end
|
51
|
-
add_message "google.cloud.gaming.v1.FetchDeploymentStateResponse" do
|
52
|
-
repeated :cluster_state, :message, 1, "google.cloud.gaming.v1.FetchDeploymentStateResponse.DeployedClusterState"
|
53
|
-
repeated :unavailable, :string, 2
|
54
|
-
end
|
55
|
-
add_message "google.cloud.gaming.v1.FetchDeploymentStateResponse.DeployedClusterState" do
|
56
|
-
optional :cluster, :string, 1
|
57
|
-
repeated :fleet_details, :message, 2, "google.cloud.gaming.v1.DeployedFleetDetails"
|
58
|
-
end
|
59
|
-
add_message "google.cloud.gaming.v1.GameServerDeployment" do
|
60
|
-
optional :name, :string, 1
|
61
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
62
|
-
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
63
|
-
map :labels, :string, :string, 4
|
64
|
-
optional :etag, :string, 7
|
65
|
-
optional :description, :string, 8
|
66
|
-
end
|
67
|
-
add_message "google.cloud.gaming.v1.GameServerConfigOverride" do
|
68
|
-
oneof :selector do
|
69
|
-
optional :realms_selector, :message, 1, "google.cloud.gaming.v1.RealmSelector"
|
70
|
-
end
|
71
|
-
oneof :change do
|
72
|
-
optional :config_version, :string, 100
|
73
|
-
end
|
74
|
-
end
|
75
|
-
add_message "google.cloud.gaming.v1.GameServerDeploymentRollout" do
|
76
|
-
optional :name, :string, 1
|
77
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
78
|
-
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
79
|
-
optional :default_game_server_config, :string, 4
|
80
|
-
repeated :game_server_config_overrides, :message, 5, "google.cloud.gaming.v1.GameServerConfigOverride"
|
81
|
-
optional :etag, :string, 6
|
82
|
-
end
|
83
|
-
add_message "google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest" do
|
84
|
-
optional :rollout, :message, 1, "google.cloud.gaming.v1.GameServerDeploymentRollout"
|
85
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
86
|
-
optional :preview_time, :message, 3, "google.protobuf.Timestamp"
|
87
|
-
end
|
88
|
-
add_message "google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse" do
|
89
|
-
repeated :unavailable, :string, 2
|
90
|
-
optional :etag, :string, 3
|
91
|
-
optional :target_state, :message, 4, "google.cloud.gaming.v1.TargetState"
|
13
|
+
|
14
|
+
descriptor_data = "\n4google/cloud/gaming/v1/game_server_deployments.proto\x12\x16google.cloud.gaming.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/gaming/v1/common.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\x01\n ListGameServerDeploymentsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30gameservices.googleapis.com/GameServerDeployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n!ListGameServerDeploymentsResponse\x12M\n\x17game_server_deployments\x18\x01 \x03(\x0b\x32,.google.cloud.gaming.v1.GameServerDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x04 \x03(\t\"h\n\x1eGetGameServerDeploymentRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0gameservices.googleapis.com/GameServerDeployment\"o\n%GetGameServerDeploymentRolloutRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0gameservices.googleapis.com/GameServerDeployment\"\xdc\x01\n!CreateGameServerDeploymentRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30gameservices.googleapis.com/GameServerDeployment\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x16game_server_deployment\x18\x03 \x01(\x0b\x32,.google.cloud.gaming.v1.GameServerDeploymentB\x03\xe0\x41\x02\"k\n!DeleteGameServerDeploymentRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0gameservices.googleapis.com/GameServerDeployment\"\xac\x01\n!UpdateGameServerDeploymentRequest\x12Q\n\x16game_server_deployment\x18\x01 \x01(\x0b\x32,.google.cloud.gaming.v1.GameServerDeploymentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xab\x01\n(UpdateGameServerDeploymentRolloutRequest\x12I\n\x07rollout\x18\x01 \x01(\x0b\x32\x33.google.cloud.gaming.v1.GameServerDeploymentRolloutB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"0\n\x1b\x46\x65tchDeploymentStateRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x83\x02\n\x1c\x46\x65tchDeploymentStateResponse\x12`\n\rcluster_state\x18\x01 \x03(\x0b\x32I.google.cloud.gaming.v1.FetchDeploymentStateResponse.DeployedClusterState\x12\x13\n\x0bunavailable\x18\x02 \x03(\t\x1al\n\x14\x44\x65ployedClusterState\x12\x0f\n\x07\x63luster\x18\x01 \x01(\t\x12\x43\n\rfleet_details\x18\x02 \x03(\x0b\x32,.google.cloud.gaming.v1.DeployedFleetDetails\"\xb0\x03\n\x14GameServerDeployment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12H\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.cloud.gaming.v1.GameServerDeployment.LabelsEntry\x12\x0c\n\x04\x65tag\x18\x07 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x81\x01\xea\x41~\n0gameservices.googleapis.com/GameServerDeployment\x12Jprojects/{project}/locations/{location}/gameServerDeployments/{deployment}\"\x8c\x01\n\x18GameServerConfigOverride\x12@\n\x0frealms_selector\x18\x01 \x01(\x0b\x32%.google.cloud.gaming.v1.RealmSelectorH\x00\x12\x18\n\x0e\x63onfig_version\x18\x64 \x01(\tH\x01\x42\n\n\x08selectorB\x08\n\x06\x63hange\"\xb5\x03\n\x1bGameServerDeploymentRollout\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\"\n\x1a\x64\x65\x66\x61ult_game_server_config\x18\x04 \x01(\t\x12V\n\x1cgame_server_config_overrides\x18\x05 \x03(\x0b\x32\x30.google.cloud.gaming.v1.GameServerConfigOverride\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t:\x91\x01\xea\x41\x8d\x01\n7gameservices.googleapis.com/GameServerDeploymentRollout\x12Rprojects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout\"\xe3\x01\n)PreviewGameServerDeploymentRolloutRequest\x12I\n\x07rollout\x18\x01 \x01(\x0b\x32\x33.google.cloud.gaming.v1.GameServerDeploymentRolloutB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x0cpreview_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\x8a\x01\n*PreviewGameServerDeploymentRolloutResponse\x12\x13\n\x0bunavailable\x18\x02 \x03(\t\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x39\n\x0ctarget_state\x18\x04 \x01(\x0b\x32#.google.cloud.gaming.v1.TargetStateBR\n\x1a\x63om.google.cloud.gaming.v1P\x01Z2cloud.google.com/go/gaming/apiv1/gamingpb;gamingpbb\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
30
|
+
["google.cloud.gaming.v1.DeployedFleetDetails", "google/cloud/gaming/v1/common.proto"],
|
31
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
92
37
|
end
|
93
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
94
41
|
end
|
95
42
|
|
96
43
|
module Google
|