google-cloud-gaming-v1 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -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.proto
|
3
4
|
|
@@ -8,51 +9,33 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/cloud/gaming/v1/common_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
optional :name, :string, 1
|
35
|
-
end
|
36
|
-
add_message "google.cloud.gaming.v1.ScalingConfig" do
|
37
|
-
optional :name, :string, 1
|
38
|
-
optional :fleet_autoscaler_spec, :string, 2
|
39
|
-
repeated :selectors, :message, 4, "google.cloud.gaming.v1.LabelSelector"
|
40
|
-
repeated :schedules, :message, 5, "google.cloud.gaming.v1.Schedule"
|
41
|
-
end
|
42
|
-
add_message "google.cloud.gaming.v1.FleetConfig" do
|
43
|
-
optional :fleet_spec, :string, 1
|
44
|
-
optional :name, :string, 2
|
45
|
-
end
|
46
|
-
add_message "google.cloud.gaming.v1.GameServerConfig" do
|
47
|
-
optional :name, :string, 1
|
48
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
49
|
-
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
50
|
-
map :labels, :string, :string, 4
|
51
|
-
repeated :fleet_configs, :message, 5, "google.cloud.gaming.v1.FleetConfig"
|
52
|
-
repeated :scaling_configs, :message, 6, "google.cloud.gaming.v1.ScalingConfig"
|
53
|
-
optional :description, :string, 7
|
12
|
+
|
13
|
+
descriptor_data = "\n0google/cloud/gaming/v1/game_server_configs.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\x1fgoogle/protobuf/timestamp.proto\"\xc1\x01\n\x1cListGameServerConfigsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,gameservices.googleapis.com/GameServerConfig\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\"\x94\x01\n\x1dListGameServerConfigsResponse\x12\x45\n\x13game_server_configs\x18\x01 \x03(\x0b\x32(.google.cloud.gaming.v1.GameServerConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x04 \x03(\t\"`\n\x1aGetGameServerConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,gameservices.googleapis.com/GameServerConfig\"\xc8\x01\n\x1d\x43reateGameServerConfigRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,gameservices.googleapis.com/GameServerConfig\x12\x16\n\tconfig_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\x12game_server_config\x18\x03 \x01(\x0b\x32(.google.cloud.gaming.v1.GameServerConfigB\x03\xe0\x41\x02\"c\n\x1d\x44\x65leteGameServerConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,gameservices.googleapis.com/GameServerConfig\"\xb5\x01\n\rScalingConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\"\n\x15\x66leet_autoscaler_spec\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\tselectors\x18\x04 \x03(\x0b\x32%.google.cloud.gaming.v1.LabelSelector\x12\x33\n\tschedules\x18\x05 \x03(\x0b\x32 .google.cloud.gaming.v1.Schedule\"/\n\x0b\x46leetConfig\x12\x12\n\nfleet_spec\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xa4\x04\n\x10GameServerConfig\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\x44\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.gaming.v1.GameServerConfig.LabelsEntry\x12:\n\rfleet_configs\x18\x05 \x03(\x0b\x32#.google.cloud.gaming.v1.FleetConfig\x12>\n\x0fscaling_configs\x18\x06 \x03(\x0b\x32%.google.cloud.gaming.v1.ScalingConfig\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x8f\x01\xea\x41\x8b\x01\n,gameservices.googleapis.com/GameServerConfig\x12[projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}BR\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
|
+
["google.cloud.gaming.v1.LabelSelector", "google/cloud/gaming/v1/common.proto"],
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
54
35
|
end
|
55
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
56
39
|
end
|
57
40
|
|
58
41
|
module Google
|
@@ -137,7 +137,7 @@ module Google
|
|
137
137
|
credentials = @config.credentials
|
138
138
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
139
139
|
# but only if the default endpoint does not have a region prefix.
|
140
|
-
enable_self_signed_jwt = @config.endpoint ==
|
140
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
141
141
|
!@config.endpoint.split(".").first.include?("-")
|
142
142
|
credentials ||= Credentials.default scope: @config.scope,
|
143
143
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -227,13 +227,11 @@ module Google
|
|
227
227
|
# # Call the list_game_server_configs method.
|
228
228
|
# result = client.list_game_server_configs request
|
229
229
|
#
|
230
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
231
|
-
# #
|
232
|
-
#
|
233
|
-
# # methods are also available for managing paging directly.
|
234
|
-
# result.each do |response|
|
230
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
231
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
232
|
+
# result.each do |item|
|
235
233
|
# # Each element is of type ::Google::Cloud::Gaming::V1::GameServerConfig.
|
236
|
-
# p
|
234
|
+
# p item
|
237
235
|
# end
|
238
236
|
#
|
239
237
|
def list_game_server_configs request, options = nil
|
@@ -412,14 +410,14 @@ module Google
|
|
412
410
|
# # Call the create_game_server_config method.
|
413
411
|
# result = client.create_game_server_config request
|
414
412
|
#
|
415
|
-
# # The returned object is of type Gapic::Operation. You can use
|
416
|
-
# #
|
417
|
-
# #
|
413
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
414
|
+
# # check the status of an operation, cancel it, or wait for results.
|
415
|
+
# # Here is how to wait for a response.
|
418
416
|
# result.wait_until_done! timeout: 60
|
419
417
|
# if result.response?
|
420
418
|
# p result.response
|
421
419
|
# else
|
422
|
-
# puts "
|
420
|
+
# puts "No response received."
|
423
421
|
# end
|
424
422
|
#
|
425
423
|
def create_game_server_config request, options = nil
|
@@ -507,14 +505,14 @@ module Google
|
|
507
505
|
# # Call the delete_game_server_config method.
|
508
506
|
# result = client.delete_game_server_config request
|
509
507
|
#
|
510
|
-
# # The returned object is of type Gapic::Operation. You can use
|
511
|
-
# #
|
512
|
-
# #
|
508
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
509
|
+
# # check the status of an operation, cancel it, or wait for results.
|
510
|
+
# # Here is how to wait for a response.
|
513
511
|
# result.wait_until_done! timeout: 60
|
514
512
|
# if result.response?
|
515
513
|
# p result.response
|
516
514
|
# else
|
517
|
-
# puts "
|
515
|
+
# puts "No response received."
|
518
516
|
# end
|
519
517
|
#
|
520
518
|
def delete_game_server_config request, options = nil
|
@@ -597,9 +595,9 @@ module Google
|
|
597
595
|
# * (`String`) The path to a service account key file in JSON format
|
598
596
|
# * (`Hash`) A service account key as a Hash
|
599
597
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
600
|
-
# (see the [googleauth docs](https://
|
598
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
601
599
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
602
|
-
# (see the [signet docs](https://
|
600
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
603
601
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
604
602
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
605
603
|
# * (`nil`) indicating no credentials
|
@@ -641,7 +639,9 @@ module Google
|
|
641
639
|
class Configuration
|
642
640
|
extend ::Gapic::Config
|
643
641
|
|
644
|
-
|
642
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
643
|
+
|
644
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
645
645
|
config_attr :credentials, nil do |value|
|
646
646
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
647
647
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +664,9 @@ module Google
|
|
666
664
|
class Configuration
|
667
665
|
extend ::Gapic::Config
|
668
666
|
|
669
|
-
|
667
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
670
|
config_attr :credentials, nil do |value|
|
671
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|