google-cloud-gaming-v1 0.6.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/README.md +1 -1
- 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 +6 -4
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +5 -3
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +6 -4
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +9 -7
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/service_stub.rb +8 -8
- 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 +6 -4
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +5 -3
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +6 -4
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +9 -7
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/service_stub.rb +4 -4
- 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 +6 -4
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +5 -3
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +6 -4
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +9 -7
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/service_stub.rb +9 -9
- 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 +6 -4
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +5 -3
- data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +6 -4
- data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +9 -7
- data/lib/google/cloud/gaming/v1/realms_service/rest/service_stub.rb +6 -6
- data/lib/google/cloud/gaming/v1/realms_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -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
|
@@ -595,9 +595,9 @@ module Google
|
|
595
595
|
# * (`String`) The path to a service account key file in JSON format
|
596
596
|
# * (`Hash`) A service account key as a Hash
|
597
597
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
598
|
-
# (see the [googleauth docs](https://
|
598
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
599
599
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
600
|
-
# (see the [signet docs](https://
|
600
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
601
601
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
602
602
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
603
603
|
# * (`nil`) indicating no credentials
|
@@ -639,7 +639,9 @@ module Google
|
|
639
639
|
class Configuration
|
640
640
|
extend ::Gapic::Config
|
641
641
|
|
642
|
-
|
642
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
643
|
+
|
644
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
643
645
|
config_attr :credentials, nil do |value|
|
644
646
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
645
647
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -133,7 +133,7 @@ module Google
|
|
133
133
|
credentials = @config.credentials
|
134
134
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
135
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.endpoint ==
|
136
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
137
137
|
!@config.endpoint.split(".").first.include?("-")
|
138
138
|
credentials ||= Credentials.default scope: @config.scope,
|
139
139
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -475,9 +475,9 @@ module Google
|
|
475
475
|
# * (`String`) The path to a service account key file in JSON format
|
476
476
|
# * (`Hash`) A service account key as a Hash
|
477
477
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
478
|
-
# (see the [googleauth docs](https://
|
478
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
479
479
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
480
|
-
# (see the [signet docs](https://
|
480
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
481
481
|
# * (`nil`) indicating no credentials
|
482
482
|
# @return [::Object]
|
483
483
|
# @!attribute [rw] scope
|
@@ -510,7 +510,9 @@ module Google
|
|
510
510
|
class Configuration
|
511
511
|
extend ::Gapic::Config
|
512
512
|
|
513
|
-
|
513
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
514
|
+
|
515
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
514
516
|
config_attr :credentials, nil do |value|
|
515
517
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
516
518
|
allowed.any? { |klass| klass === value }
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_game_server_configs_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_game_server_config_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_game_server_config_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_game_server_config_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
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
|
@@ -157,7 +157,7 @@ module Google
|
|
157
157
|
credentials = @config.credentials
|
158
158
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
159
159
|
# but only if the default endpoint does not have a region prefix.
|
160
|
-
enable_self_signed_jwt = @config.endpoint ==
|
160
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
161
161
|
!@config.endpoint.split(".").first.include?("-")
|
162
162
|
credentials ||= Credentials.default scope: @config.scope,
|
163
163
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1081,9 +1081,9 @@ module Google
|
|
1081
1081
|
# * (`String`) The path to a service account key file in JSON format
|
1082
1082
|
# * (`Hash`) A service account key as a Hash
|
1083
1083
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1084
|
-
# (see the [googleauth docs](https://
|
1084
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1085
1085
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1086
|
-
# (see the [signet docs](https://
|
1086
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1087
1087
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1088
1088
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1089
1089
|
# * (`nil`) indicating no credentials
|
@@ -1125,7 +1125,9 @@ module Google
|
|
1125
1125
|
class Configuration
|
1126
1126
|
extend ::Gapic::Config
|
1127
1127
|
|
1128
|
-
|
1128
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
1129
|
+
|
1130
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1129
1131
|
config_attr :credentials, nil do |value|
|
1130
1132
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1131
1133
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -153,7 +153,7 @@ module Google
|
|
153
153
|
credentials = @config.credentials
|
154
154
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
155
155
|
# but only if the default endpoint does not have a region prefix.
|
156
|
-
enable_self_signed_jwt = @config.endpoint ==
|
156
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
157
157
|
!@config.endpoint.split(".").first.include?("-")
|
158
158
|
credentials ||= Credentials.default scope: @config.scope,
|
159
159
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -832,9 +832,9 @@ module Google
|
|
832
832
|
# * (`String`) The path to a service account key file in JSON format
|
833
833
|
# * (`Hash`) A service account key as a Hash
|
834
834
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
835
|
-
# (see the [googleauth docs](https://
|
835
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
836
836
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
837
|
-
# (see the [signet docs](https://
|
837
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
838
838
|
# * (`nil`) indicating no credentials
|
839
839
|
# @return [::Object]
|
840
840
|
# @!attribute [rw] scope
|
@@ -867,7 +867,9 @@ module Google
|
|
867
867
|
class Configuration
|
868
868
|
extend ::Gapic::Config
|
869
869
|
|
870
|
-
|
870
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
871
|
+
|
872
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
871
873
|
config_attr :credentials, nil do |value|
|
872
874
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
873
875
|
allowed.any? { |klass| klass === value }
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|