google-cloud-gaming-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-gaming-v1.rb +21 -0
  7. data/lib/google/cloud/gaming/v1.rb +38 -0
  8. data/lib/google/cloud/gaming/v1/common_pb.rb +117 -0
  9. data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +111 -0
  10. data/lib/google/cloud/gaming/v1/game_server_clusters_service.rb +51 -0
  11. data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +994 -0
  12. data/lib/google/cloud/gaming/v1/game_server_clusters_service/credentials.rb +51 -0
  13. data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +570 -0
  14. data/lib/google/cloud/gaming/v1/game_server_clusters_service/paths.rb +73 -0
  15. data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +22 -0
  16. data/lib/google/cloud/gaming/v1/game_server_clusters_service_services_pb.rb +61 -0
  17. data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +73 -0
  18. data/lib/google/cloud/gaming/v1/game_server_configs_service.rb +50 -0
  19. data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +652 -0
  20. data/lib/google/cloud/gaming/v1/game_server_configs_service/credentials.rb +51 -0
  21. data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +570 -0
  22. data/lib/google/cloud/gaming/v1/game_server_configs_service/paths.rb +73 -0
  23. data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +22 -0
  24. data/lib/google/cloud/gaming/v1/game_server_configs_service_services_pb.rb +55 -0
  25. data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +119 -0
  26. data/lib/google/cloud/gaming/v1/game_server_deployments_service.rb +51 -0
  27. data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +1082 -0
  28. data/lib/google/cloud/gaming/v1/game_server_deployments_service/credentials.rb +51 -0
  29. data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +570 -0
  30. data/lib/google/cloud/gaming/v1/game_server_deployments_service/paths.rb +88 -0
  31. data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +22 -0
  32. data/lib/google/cloud/gaming/v1/game_server_deployments_service_services_pb.rb +70 -0
  33. data/lib/google/cloud/gaming/v1/realms_pb.rb +78 -0
  34. data/lib/google/cloud/gaming/v1/realms_service.rb +51 -0
  35. data/lib/google/cloud/gaming/v1/realms_service/client.rb +821 -0
  36. data/lib/google/cloud/gaming/v1/realms_service/credentials.rb +51 -0
  37. data/lib/google/cloud/gaming/v1/realms_service/operations.rb +570 -0
  38. data/lib/google/cloud/gaming/v1/realms_service/paths.rb +69 -0
  39. data/lib/google/cloud/gaming/v1/realms_service_pb.rb +22 -0
  40. data/lib/google/cloud/gaming/v1/realms_service_services_pb.rb +56 -0
  41. data/lib/google/cloud/gaming/v1/version.rb +28 -0
  42. data/proto_docs/README.md +4 -0
  43. data/proto_docs/google/api/field_behavior.rb +59 -0
  44. data/proto_docs/google/api/resource.rb +247 -0
  45. data/proto_docs/google/cloud/gaming/v1/common.rb +303 -0
  46. data/proto_docs/google/cloud/gaming/v1/game_server_clusters.rb +288 -0
  47. data/proto_docs/google/cloud/gaming/v1/game_server_configs.rb +186 -0
  48. data/proto_docs/google/cloud/gaming/v1/game_server_deployments.rb +317 -0
  49. data/proto_docs/google/cloud/gaming/v1/realms.rb +197 -0
  50. data/proto_docs/google/longrunning/operations.rb +150 -0
  51. data/proto_docs/google/protobuf/any.rb +138 -0
  52. data/proto_docs/google/protobuf/duration.rb +98 -0
  53. data/proto_docs/google/protobuf/empty.rb +36 -0
  54. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  55. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  56. data/proto_docs/google/rpc/status.rb +46 -0
  57. metadata +239 -0
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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
+
20
+ module Google
21
+ module Cloud
22
+ module Gaming
23
+ module V1
24
+ module GameServerClustersService
25
+ # Path helper methods for the GameServerClustersService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified GameServerCluster resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param realm [String]
37
+ # @param cluster [String]
38
+ #
39
+ # @return [::String]
40
+ def game_server_cluster_path project:, location:, realm:, cluster:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ::ArgumentError, "realm cannot contain /" if realm.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/realms/#{realm}/gameServerClusters/#{cluster}"
46
+ end
47
+
48
+ ##
49
+ # Create a fully-qualified Realm resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/realms/{realm}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param realm [String]
58
+ #
59
+ # @return [::String]
60
+ def realm_path project:, location:, realm:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/realms/#{realm}"
65
+ end
66
+
67
+ extend self
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/gaming/v1/game_server_clusters_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/cloud/gaming/v1/game_server_clusters_pb'
9
+ require 'google/longrunning/operations_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/gaming/v1/game_server_clusters_service.proto", :syntax => :proto3) do
12
+ end
13
+ end
14
+
15
+ module Google
16
+ module Cloud
17
+ module Gaming
18
+ module V1
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,61 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/gaming/v1/game_server_clusters_service.proto for package 'google.cloud.gaming.v1'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/gaming/v1/game_server_clusters_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Gaming
25
+ module V1
26
+ module GameServerClustersService
27
+ # The game server cluster maps to Kubernetes clusters running Agones and is
28
+ # used to manage fleets within clusters.
29
+ class Service
30
+
31
+ include GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.gaming.v1.GameServerClustersService'
36
+
37
+ # Lists game server clusters in a given project and location.
38
+ rpc :ListGameServerClusters, Google::Cloud::Gaming::V1::ListGameServerClustersRequest, Google::Cloud::Gaming::V1::ListGameServerClustersResponse
39
+ # Gets details of a single game server cluster.
40
+ rpc :GetGameServerCluster, Google::Cloud::Gaming::V1::GetGameServerClusterRequest, Google::Cloud::Gaming::V1::GameServerCluster
41
+ # Creates a new game server cluster in a given project and location.
42
+ rpc :CreateGameServerCluster, Google::Cloud::Gaming::V1::CreateGameServerClusterRequest, Google::Longrunning::Operation
43
+ # Previews creation of a new game server cluster in a given project and
44
+ # location.
45
+ rpc :PreviewCreateGameServerCluster, Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterRequest, Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterResponse
46
+ # Deletes a single game server cluster.
47
+ rpc :DeleteGameServerCluster, Google::Cloud::Gaming::V1::DeleteGameServerClusterRequest, Google::Longrunning::Operation
48
+ # Previews deletion of a single game server cluster.
49
+ rpc :PreviewDeleteGameServerCluster, Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterRequest, Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterResponse
50
+ # Patches a single game server cluster.
51
+ rpc :UpdateGameServerCluster, Google::Cloud::Gaming::V1::UpdateGameServerClusterRequest, Google::Longrunning::Operation
52
+ # Previews updating a GameServerCluster.
53
+ rpc :PreviewUpdateGameServerCluster, Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterRequest, Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterResponse
54
+ end
55
+
56
+ Stub = Service.rpc_stub_class
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,73 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/gaming/v1/game_server_configs.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/gaming/v1/common_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/api/annotations_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/cloud/gaming/v1/game_server_configs.proto", :syntax => :proto3) do
13
+ add_message "google.cloud.gaming.v1.ListGameServerConfigsRequest" do
14
+ optional :parent, :string, 1
15
+ optional :page_size, :int32, 2
16
+ optional :page_token, :string, 3
17
+ optional :filter, :string, 4
18
+ optional :order_by, :string, 5
19
+ end
20
+ add_message "google.cloud.gaming.v1.ListGameServerConfigsResponse" do
21
+ repeated :game_server_configs, :message, 1, "google.cloud.gaming.v1.GameServerConfig"
22
+ optional :next_page_token, :string, 2
23
+ repeated :unreachable, :string, 4
24
+ end
25
+ add_message "google.cloud.gaming.v1.GetGameServerConfigRequest" do
26
+ optional :name, :string, 1
27
+ end
28
+ add_message "google.cloud.gaming.v1.CreateGameServerConfigRequest" do
29
+ optional :parent, :string, 1
30
+ optional :config_id, :string, 2
31
+ optional :game_server_config, :message, 3, "google.cloud.gaming.v1.GameServerConfig"
32
+ end
33
+ add_message "google.cloud.gaming.v1.DeleteGameServerConfigRequest" do
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
54
+ end
55
+ end
56
+ end
57
+
58
+ module Google
59
+ module Cloud
60
+ module Gaming
61
+ module V1
62
+ ListGameServerConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.ListGameServerConfigsRequest").msgclass
63
+ ListGameServerConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.ListGameServerConfigsResponse").msgclass
64
+ GetGameServerConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GetGameServerConfigRequest").msgclass
65
+ CreateGameServerConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.CreateGameServerConfigRequest").msgclass
66
+ DeleteGameServerConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.DeleteGameServerConfigRequest").msgclass
67
+ ScalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.ScalingConfig").msgclass
68
+ FleetConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.FleetConfig").msgclass
69
+ GameServerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GameServerConfig").msgclass
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/common"
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/operations"
28
+ require "google/cloud/gaming/v1/game_server_configs_service/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 client:
38
+ #
39
+ # require "google/cloud/gaming/v1/game_server_configs_service"
40
+ # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
41
+ #
42
+ module GameServerConfigsService
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "game_server_configs_service", "helpers.rb"
50
+ require "google/cloud/gaming/v1/game_server_configs_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,652 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/errors"
20
+ require "google/cloud/gaming/v1/game_server_configs_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Gaming
25
+ module V1
26
+ module GameServerConfigsService
27
+ ##
28
+ # Client for the GameServerConfigsService service.
29
+ #
30
+ # The game server config configures the game servers in an Agones fleet.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :game_server_configs_service_stub
37
+
38
+ ##
39
+ # Configure the GameServerConfigsService Client class.
40
+ #
41
+ # See {::Google::Cloud::Gaming::V1::GameServerConfigsService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # ## Example
45
+ #
46
+ # To modify the configuration for all GameServerConfigsService clients:
47
+ #
48
+ # ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
51
+ #
52
+ # @yield [config] Configure the Client client.
53
+ # @yieldparam config [Client::Configuration]
54
+ #
55
+ # @return [Client::Configuration]
56
+ #
57
+ def self.configure
58
+ @configure ||= begin
59
+ namespace = ["Google", "Cloud", "Gaming", "V1"]
60
+ parent_config = while namespace.any?
61
+ parent_name = namespace.join "::"
62
+ parent_const = const_get parent_name
63
+ break parent_const.configure if parent_const&.respond_to? :configure
64
+ namespace.pop
65
+ end
66
+ default_config = Client::Configuration.new parent_config
67
+
68
+ default_config.rpcs.list_game_server_configs.timeout = 60.0
69
+ default_config.rpcs.list_game_server_configs.retry_policy = {
70
+ initial_delay: 1.0,
71
+ max_delay: 10.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
+ }
75
+
76
+ default_config.rpcs.get_game_server_config.timeout = 60.0
77
+ default_config.rpcs.get_game_server_config.retry_policy = {
78
+ initial_delay: 1.0,
79
+ max_delay: 10.0,
80
+ multiplier: 1.3,
81
+ retry_codes: [14]
82
+ }
83
+
84
+ default_config.rpcs.create_game_server_config.timeout = 60.0
85
+
86
+ default_config.rpcs.delete_game_server_config.timeout = 60.0
87
+
88
+ default_config
89
+ end
90
+ yield @configure if block_given?
91
+ @configure
92
+ end
93
+
94
+ ##
95
+ # Configure the GameServerConfigsService Client instance.
96
+ #
97
+ # The configuration is set to the derived mode, meaning that values can be changed,
98
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
99
+ # should be made on {Client.configure}.
100
+ #
101
+ # See {::Google::Cloud::Gaming::V1::GameServerConfigsService::Client::Configuration}
102
+ # for a description of the configuration fields.
103
+ #
104
+ # @yield [config] Configure the Client client.
105
+ # @yieldparam config [Client::Configuration]
106
+ #
107
+ # @return [Client::Configuration]
108
+ #
109
+ def configure
110
+ yield @config if block_given?
111
+ @config
112
+ end
113
+
114
+ ##
115
+ # Create a new GameServerConfigsService client object.
116
+ #
117
+ # ## Examples
118
+ #
119
+ # To create a new GameServerConfigsService client with the default
120
+ # configuration:
121
+ #
122
+ # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
123
+ #
124
+ # To create a new GameServerConfigsService client with a custom
125
+ # configuration:
126
+ #
127
+ # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new do |config|
128
+ # config.timeout = 10.0
129
+ # end
130
+ #
131
+ # @yield [config] Configure the GameServerConfigsService client.
132
+ # @yieldparam config [Client::Configuration]
133
+ #
134
+ def initialize
135
+ # These require statements are intentionally placed here to initialize
136
+ # the gRPC module only when it's required.
137
+ # See https://github.com/googleapis/toolkit/issues/446
138
+ require "gapic/grpc"
139
+ require "google/cloud/gaming/v1/game_server_configs_service_services_pb"
140
+
141
+ # Create the configuration object
142
+ @config = Configuration.new Client.configure
143
+
144
+ # Yield the configuration if needed
145
+ yield @config if block_given?
146
+
147
+ # Create credentials
148
+ credentials = @config.credentials
149
+ credentials ||= Credentials.default scope: @config.scope
150
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
151
+ credentials = Credentials.new credentials, scope: @config.scope
152
+ end
153
+ @quota_project_id = @config.quota_project
154
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
+
156
+ @operations_client = Operations.new do |config|
157
+ config.credentials = credentials
158
+ config.endpoint = @config.endpoint
159
+ end
160
+
161
+ @game_server_configs_service_stub = ::Gapic::ServiceStub.new(
162
+ ::Google::Cloud::Gaming::V1::GameServerConfigsService::Stub,
163
+ credentials: credentials,
164
+ endpoint: @config.endpoint,
165
+ channel_args: @config.channel_args,
166
+ interceptors: @config.interceptors
167
+ )
168
+ end
169
+
170
+ ##
171
+ # Get the associated client for long-running operations.
172
+ #
173
+ # @return [::Google::Cloud::Gaming::V1::GameServerConfigsService::Operations]
174
+ #
175
+ attr_reader :operations_client
176
+
177
+ # Service calls
178
+
179
+ ##
180
+ # Lists game server configs in a given project, location, and game server
181
+ # deployment.
182
+ #
183
+ # @overload list_game_server_configs(request, options = nil)
184
+ # Pass arguments to `list_game_server_configs` via a request object, either of type
185
+ # {::Google::Cloud::Gaming::V1::ListGameServerConfigsRequest} or an equivalent Hash.
186
+ #
187
+ # @param request [::Google::Cloud::Gaming::V1::ListGameServerConfigsRequest, ::Hash]
188
+ # A request object representing the call parameters. Required. To specify no
189
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
190
+ # @param options [::Gapic::CallOptions, ::Hash]
191
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
192
+ #
193
+ # @overload list_game_server_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
194
+ # Pass arguments to `list_game_server_configs` via keyword arguments. Note that at
195
+ # least one keyword argument is required. To specify no parameters, or to keep all
196
+ # the default parameter values, pass an empty Hash as a request object (see above).
197
+ #
198
+ # @param parent [::String]
199
+ # Required. The parent resource name. Uses the form:
200
+ #
201
+ # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
202
+ # @param page_size [::Integer]
203
+ # Optional. The maximum number of items to return. If unspecified, server
204
+ # will pick an appropriate default. Server may return fewer items than
205
+ # requested. A caller should only rely on response's
206
+ # {::Google::Cloud::Gaming::V1::ListGameServerConfigsResponse#next_page_token next_page_token} to
207
+ # determine if there are more GameServerConfigs left to be queried.
208
+ # @param page_token [::String]
209
+ # Optional. The next_page_token value returned from a previous list request, if any.
210
+ # @param filter [::String]
211
+ # Optional. The filter to apply to list results.
212
+ # @param order_by [::String]
213
+ # Optional. Specifies the ordering of results following syntax at
214
+ # https://cloud.google.com/apis/design/design_patterns#sorting_order.
215
+ #
216
+ # @yield [response, operation] Access the result along with the RPC operation
217
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Gaming::V1::GameServerConfig>]
218
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
219
+ #
220
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Gaming::V1::GameServerConfig>]
221
+ #
222
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
223
+ #
224
+ def list_game_server_configs request, options = nil
225
+ raise ::ArgumentError, "request must be provided" if request.nil?
226
+
227
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::ListGameServerConfigsRequest
228
+
229
+ # Converts hash and nil to an options object
230
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
231
+
232
+ # Customize the options with defaults
233
+ metadata = @config.rpcs.list_game_server_configs.metadata.to_h
234
+
235
+ # Set x-goog-api-client and x-goog-user-project headers
236
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
237
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
238
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
239
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
240
+
241
+ header_params = {
242
+ "parent" => request.parent
243
+ }
244
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
245
+ metadata[:"x-goog-request-params"] ||= request_params_header
246
+
247
+ options.apply_defaults timeout: @config.rpcs.list_game_server_configs.timeout,
248
+ metadata: metadata,
249
+ retry_policy: @config.rpcs.list_game_server_configs.retry_policy
250
+ options.apply_defaults metadata: @config.metadata,
251
+ retry_policy: @config.retry_policy
252
+
253
+ @game_server_configs_service_stub.call_rpc :list_game_server_configs, request, options: options do |response, operation|
254
+ response = ::Gapic::PagedEnumerable.new @game_server_configs_service_stub, :list_game_server_configs, request, response, operation, options
255
+ yield response, operation if block_given?
256
+ return response
257
+ end
258
+ rescue ::GRPC::BadStatus => e
259
+ raise ::Google::Cloud::Error.from_error(e)
260
+ end
261
+
262
+ ##
263
+ # Gets details of a single game server config.
264
+ #
265
+ # @overload get_game_server_config(request, options = nil)
266
+ # Pass arguments to `get_game_server_config` via a request object, either of type
267
+ # {::Google::Cloud::Gaming::V1::GetGameServerConfigRequest} or an equivalent Hash.
268
+ #
269
+ # @param request [::Google::Cloud::Gaming::V1::GetGameServerConfigRequest, ::Hash]
270
+ # A request object representing the call parameters. Required. To specify no
271
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
272
+ # @param options [::Gapic::CallOptions, ::Hash]
273
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
274
+ #
275
+ # @overload get_game_server_config(name: nil)
276
+ # Pass arguments to `get_game_server_config` via keyword arguments. Note that at
277
+ # least one keyword argument is required. To specify no parameters, or to keep all
278
+ # the default parameter values, pass an empty Hash as a request object (see above).
279
+ #
280
+ # @param name [::String]
281
+ # Required. The name of the game server config to retrieve. Uses the form:
282
+ #
283
+ # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
284
+ #
285
+ # @yield [response, operation] Access the result along with the RPC operation
286
+ # @yieldparam response [::Google::Cloud::Gaming::V1::GameServerConfig]
287
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
288
+ #
289
+ # @return [::Google::Cloud::Gaming::V1::GameServerConfig]
290
+ #
291
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
292
+ #
293
+ def get_game_server_config request, options = nil
294
+ raise ::ArgumentError, "request must be provided" if request.nil?
295
+
296
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::GetGameServerConfigRequest
297
+
298
+ # Converts hash and nil to an options object
299
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
300
+
301
+ # Customize the options with defaults
302
+ metadata = @config.rpcs.get_game_server_config.metadata.to_h
303
+
304
+ # Set x-goog-api-client and x-goog-user-project headers
305
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
306
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
307
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
308
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
309
+
310
+ header_params = {
311
+ "name" => request.name
312
+ }
313
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
314
+ metadata[:"x-goog-request-params"] ||= request_params_header
315
+
316
+ options.apply_defaults timeout: @config.rpcs.get_game_server_config.timeout,
317
+ metadata: metadata,
318
+ retry_policy: @config.rpcs.get_game_server_config.retry_policy
319
+ options.apply_defaults metadata: @config.metadata,
320
+ retry_policy: @config.retry_policy
321
+
322
+ @game_server_configs_service_stub.call_rpc :get_game_server_config, request, options: options do |response, operation|
323
+ yield response, operation if block_given?
324
+ return response
325
+ end
326
+ rescue ::GRPC::BadStatus => e
327
+ raise ::Google::Cloud::Error.from_error(e)
328
+ end
329
+
330
+ ##
331
+ # Creates a new game server config in a given project, location, and game
332
+ # server deployment. Game server configs are immutable, and are not applied
333
+ # until referenced in the game server deployment rollout resource.
334
+ #
335
+ # @overload create_game_server_config(request, options = nil)
336
+ # Pass arguments to `create_game_server_config` via a request object, either of type
337
+ # {::Google::Cloud::Gaming::V1::CreateGameServerConfigRequest} or an equivalent Hash.
338
+ #
339
+ # @param request [::Google::Cloud::Gaming::V1::CreateGameServerConfigRequest, ::Hash]
340
+ # A request object representing the call parameters. Required. To specify no
341
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
342
+ # @param options [::Gapic::CallOptions, ::Hash]
343
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
344
+ #
345
+ # @overload create_game_server_config(parent: nil, config_id: nil, game_server_config: nil)
346
+ # Pass arguments to `create_game_server_config` via keyword arguments. Note that at
347
+ # least one keyword argument is required. To specify no parameters, or to keep all
348
+ # the default parameter values, pass an empty Hash as a request object (see above).
349
+ #
350
+ # @param parent [::String]
351
+ # Required. The parent resource name. Uses the form:
352
+ #
353
+ # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
354
+ # @param config_id [::String]
355
+ # Required. The ID of the game server config resource to be created.
356
+ # @param game_server_config [::Google::Cloud::Gaming::V1::GameServerConfig, ::Hash]
357
+ # Required. The game server config resource to be created.
358
+ #
359
+ # @yield [response, operation] Access the result along with the RPC operation
360
+ # @yieldparam response [::Gapic::Operation]
361
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
362
+ #
363
+ # @return [::Gapic::Operation]
364
+ #
365
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
+ #
367
+ def create_game_server_config request, options = nil
368
+ raise ::ArgumentError, "request must be provided" if request.nil?
369
+
370
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::CreateGameServerConfigRequest
371
+
372
+ # Converts hash and nil to an options object
373
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
374
+
375
+ # Customize the options with defaults
376
+ metadata = @config.rpcs.create_game_server_config.metadata.to_h
377
+
378
+ # Set x-goog-api-client and x-goog-user-project headers
379
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
380
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
381
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
382
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
+
384
+ header_params = {
385
+ "parent" => request.parent
386
+ }
387
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
+ metadata[:"x-goog-request-params"] ||= request_params_header
389
+
390
+ options.apply_defaults timeout: @config.rpcs.create_game_server_config.timeout,
391
+ metadata: metadata,
392
+ retry_policy: @config.rpcs.create_game_server_config.retry_policy
393
+ options.apply_defaults metadata: @config.metadata,
394
+ retry_policy: @config.retry_policy
395
+
396
+ @game_server_configs_service_stub.call_rpc :create_game_server_config, request, options: options do |response, operation|
397
+ response = ::Gapic::Operation.new response, @operations_client, options: options
398
+ yield response, operation if block_given?
399
+ return response
400
+ end
401
+ rescue ::GRPC::BadStatus => e
402
+ raise ::Google::Cloud::Error.from_error(e)
403
+ end
404
+
405
+ ##
406
+ # Deletes a single game server config. The deletion will fail if the game
407
+ # server config is referenced in a game server deployment rollout.
408
+ #
409
+ # @overload delete_game_server_config(request, options = nil)
410
+ # Pass arguments to `delete_game_server_config` via a request object, either of type
411
+ # {::Google::Cloud::Gaming::V1::DeleteGameServerConfigRequest} or an equivalent Hash.
412
+ #
413
+ # @param request [::Google::Cloud::Gaming::V1::DeleteGameServerConfigRequest, ::Hash]
414
+ # A request object representing the call parameters. Required. To specify no
415
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
416
+ # @param options [::Gapic::CallOptions, ::Hash]
417
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
418
+ #
419
+ # @overload delete_game_server_config(name: nil)
420
+ # Pass arguments to `delete_game_server_config` via keyword arguments. Note that at
421
+ # least one keyword argument is required. To specify no parameters, or to keep all
422
+ # the default parameter values, pass an empty Hash as a request object (see above).
423
+ #
424
+ # @param name [::String]
425
+ # Required. The name of the game server config to delete. Uses the form:
426
+ #
427
+ # `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
428
+ #
429
+ # @yield [response, operation] Access the result along with the RPC operation
430
+ # @yieldparam response [::Gapic::Operation]
431
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
432
+ #
433
+ # @return [::Gapic::Operation]
434
+ #
435
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
436
+ #
437
+ def delete_game_server_config request, options = nil
438
+ raise ::ArgumentError, "request must be provided" if request.nil?
439
+
440
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::DeleteGameServerConfigRequest
441
+
442
+ # Converts hash and nil to an options object
443
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
444
+
445
+ # Customize the options with defaults
446
+ metadata = @config.rpcs.delete_game_server_config.metadata.to_h
447
+
448
+ # Set x-goog-api-client and x-goog-user-project headers
449
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
450
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
451
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
452
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
+
454
+ header_params = {
455
+ "name" => request.name
456
+ }
457
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
458
+ metadata[:"x-goog-request-params"] ||= request_params_header
459
+
460
+ options.apply_defaults timeout: @config.rpcs.delete_game_server_config.timeout,
461
+ metadata: metadata,
462
+ retry_policy: @config.rpcs.delete_game_server_config.retry_policy
463
+ options.apply_defaults metadata: @config.metadata,
464
+ retry_policy: @config.retry_policy
465
+
466
+ @game_server_configs_service_stub.call_rpc :delete_game_server_config, request, options: options do |response, operation|
467
+ response = ::Gapic::Operation.new response, @operations_client, options: options
468
+ yield response, operation if block_given?
469
+ return response
470
+ end
471
+ rescue ::GRPC::BadStatus => e
472
+ raise ::Google::Cloud::Error.from_error(e)
473
+ end
474
+
475
+ ##
476
+ # Configuration class for the GameServerConfigsService API.
477
+ #
478
+ # This class represents the configuration for GameServerConfigsService,
479
+ # providing control over timeouts, retry behavior, logging, transport
480
+ # parameters, and other low-level controls. Certain parameters can also be
481
+ # applied individually to specific RPCs. See
482
+ # {::Google::Cloud::Gaming::V1::GameServerConfigsService::Client::Configuration::Rpcs}
483
+ # for a list of RPCs that can be configured independently.
484
+ #
485
+ # Configuration can be applied globally to all clients, or to a single client
486
+ # on construction.
487
+ #
488
+ # # Examples
489
+ #
490
+ # To modify the global config, setting the timeout for list_game_server_configs
491
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
492
+ #
493
+ # ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.configure do |config|
494
+ # config.timeout = 10.0
495
+ # config.rpcs.list_game_server_configs.timeout = 20.0
496
+ # end
497
+ #
498
+ # To apply the above configuration only to a new client:
499
+ #
500
+ # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new do |config|
501
+ # config.timeout = 10.0
502
+ # config.rpcs.list_game_server_configs.timeout = 20.0
503
+ # end
504
+ #
505
+ # @!attribute [rw] endpoint
506
+ # The hostname or hostname:port of the service endpoint.
507
+ # Defaults to `"gameservices.googleapis.com"`.
508
+ # @return [::String]
509
+ # @!attribute [rw] credentials
510
+ # Credentials to send with calls. You may provide any of the following types:
511
+ # * (`String`) The path to a service account key file in JSON format
512
+ # * (`Hash`) A service account key as a Hash
513
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
514
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
515
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
516
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
517
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
518
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
519
+ # * (`nil`) indicating no credentials
520
+ # @return [::Object]
521
+ # @!attribute [rw] scope
522
+ # The OAuth scopes
523
+ # @return [::Array<::String>]
524
+ # @!attribute [rw] lib_name
525
+ # The library name as recorded in instrumentation and logging
526
+ # @return [::String]
527
+ # @!attribute [rw] lib_version
528
+ # The library version as recorded in instrumentation and logging
529
+ # @return [::String]
530
+ # @!attribute [rw] channel_args
531
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
532
+ # `GRPC::Core::Channel` object is provided as the credential.
533
+ # @return [::Hash]
534
+ # @!attribute [rw] interceptors
535
+ # An array of interceptors that are run before calls are executed.
536
+ # @return [::Array<::GRPC::ClientInterceptor>]
537
+ # @!attribute [rw] timeout
538
+ # The call timeout in seconds.
539
+ # @return [::Numeric]
540
+ # @!attribute [rw] metadata
541
+ # Additional gRPC headers to be sent with the call.
542
+ # @return [::Hash{::Symbol=>::String}]
543
+ # @!attribute [rw] retry_policy
544
+ # The retry policy. The value is a hash with the following keys:
545
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
546
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
547
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
548
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
549
+ # trigger a retry.
550
+ # @return [::Hash]
551
+ # @!attribute [rw] quota_project
552
+ # A separate project against which to charge quota.
553
+ # @return [::String]
554
+ #
555
+ class Configuration
556
+ extend ::Gapic::Config
557
+
558
+ config_attr :endpoint, "gameservices.googleapis.com", ::String
559
+ config_attr :credentials, nil do |value|
560
+ allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
561
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
562
+ allowed.any? { |klass| klass === value }
563
+ end
564
+ config_attr :scope, nil, ::String, ::Array, nil
565
+ config_attr :lib_name, nil, ::String, nil
566
+ config_attr :lib_version, nil, ::String, nil
567
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
568
+ config_attr :interceptors, nil, ::Array, nil
569
+ config_attr :timeout, nil, ::Numeric, nil
570
+ config_attr :metadata, nil, ::Hash, nil
571
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
572
+ config_attr :quota_project, nil, ::String, nil
573
+
574
+ # @private
575
+ def initialize parent_config = nil
576
+ @parent_config = parent_config unless parent_config.nil?
577
+
578
+ yield self if block_given?
579
+ end
580
+
581
+ ##
582
+ # Configurations for individual RPCs
583
+ # @return [Rpcs]
584
+ #
585
+ def rpcs
586
+ @rpcs ||= begin
587
+ parent_rpcs = nil
588
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
589
+ Rpcs.new parent_rpcs
590
+ end
591
+ end
592
+
593
+ ##
594
+ # Configuration RPC class for the GameServerConfigsService API.
595
+ #
596
+ # Includes fields providing the configuration for each RPC in this service.
597
+ # Each configuration object is of type `Gapic::Config::Method` and includes
598
+ # the following configuration fields:
599
+ #
600
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
601
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
602
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
603
+ # include the following keys:
604
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
605
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
606
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
607
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
608
+ # trigger a retry.
609
+ #
610
+ class Rpcs
611
+ ##
612
+ # RPC-specific configuration for `list_game_server_configs`
613
+ # @return [::Gapic::Config::Method]
614
+ #
615
+ attr_reader :list_game_server_configs
616
+ ##
617
+ # RPC-specific configuration for `get_game_server_config`
618
+ # @return [::Gapic::Config::Method]
619
+ #
620
+ attr_reader :get_game_server_config
621
+ ##
622
+ # RPC-specific configuration for `create_game_server_config`
623
+ # @return [::Gapic::Config::Method]
624
+ #
625
+ attr_reader :create_game_server_config
626
+ ##
627
+ # RPC-specific configuration for `delete_game_server_config`
628
+ # @return [::Gapic::Config::Method]
629
+ #
630
+ attr_reader :delete_game_server_config
631
+
632
+ # @private
633
+ def initialize parent_rpcs = nil
634
+ list_game_server_configs_config = parent_rpcs&.list_game_server_configs if parent_rpcs&.respond_to? :list_game_server_configs
635
+ @list_game_server_configs = ::Gapic::Config::Method.new list_game_server_configs_config
636
+ get_game_server_config_config = parent_rpcs&.get_game_server_config if parent_rpcs&.respond_to? :get_game_server_config
637
+ @get_game_server_config = ::Gapic::Config::Method.new get_game_server_config_config
638
+ create_game_server_config_config = parent_rpcs&.create_game_server_config if parent_rpcs&.respond_to? :create_game_server_config
639
+ @create_game_server_config = ::Gapic::Config::Method.new create_game_server_config_config
640
+ delete_game_server_config_config = parent_rpcs&.delete_game_server_config if parent_rpcs&.respond_to? :delete_game_server_config
641
+ @delete_game_server_config = ::Gapic::Config::Method.new delete_game_server_config_config
642
+
643
+ yield self if block_given?
644
+ end
645
+ end
646
+ end
647
+ end
648
+ end
649
+ end
650
+ end
651
+ end
652
+ end