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,21 @@
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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/gaming/v1"
@@ -0,0 +1,38 @@
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/gaming/v1/game_server_clusters_service"
20
+ require "google/cloud/gaming/v1/game_server_configs_service"
21
+ require "google/cloud/gaming/v1/game_server_deployments_service"
22
+ require "google/cloud/gaming/v1/realms_service"
23
+ require "google/cloud/gaming/v1/version"
24
+
25
+ module Google
26
+ module Cloud
27
+ module Gaming
28
+ ##
29
+ # To load this package, including all its services, and instantiate a client:
30
+ #
31
+ # require "google/cloud/gaming/v1"
32
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,117 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/gaming/v1/common.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/protobuf/duration_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ require 'google/api/annotations_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/gaming/v1/common.proto", :syntax => :proto3) do
12
+ add_message "google.cloud.gaming.v1.OperationMetadata" do
13
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
14
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
15
+ optional :target, :string, 3
16
+ optional :verb, :string, 4
17
+ optional :status_message, :string, 5
18
+ optional :requested_cancellation, :bool, 6
19
+ optional :api_version, :string, 7
20
+ repeated :unreachable, :string, 8
21
+ map :operation_status, :string, :message, 9, "google.cloud.gaming.v1.OperationStatus"
22
+ end
23
+ add_message "google.cloud.gaming.v1.OperationStatus" do
24
+ optional :done, :bool, 1
25
+ optional :error_code, :enum, 2, "google.cloud.gaming.v1.OperationStatus.ErrorCode"
26
+ optional :error_message, :string, 3
27
+ end
28
+ add_enum "google.cloud.gaming.v1.OperationStatus.ErrorCode" do
29
+ value :ERROR_CODE_UNSPECIFIED, 0
30
+ value :INTERNAL_ERROR, 1
31
+ value :PERMISSION_DENIED, 2
32
+ value :CLUSTER_CONNECTION, 3
33
+ end
34
+ add_message "google.cloud.gaming.v1.LabelSelector" do
35
+ map :labels, :string, :string, 1
36
+ end
37
+ add_message "google.cloud.gaming.v1.RealmSelector" do
38
+ repeated :realms, :string, 1
39
+ end
40
+ add_message "google.cloud.gaming.v1.Schedule" do
41
+ optional :start_time, :message, 1, "google.protobuf.Timestamp"
42
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
43
+ optional :cron_job_duration, :message, 3, "google.protobuf.Duration"
44
+ optional :cron_spec, :string, 4
45
+ end
46
+ add_message "google.cloud.gaming.v1.SpecSource" do
47
+ optional :game_server_config_name, :string, 1
48
+ optional :name, :string, 2
49
+ end
50
+ add_message "google.cloud.gaming.v1.TargetDetails" do
51
+ optional :game_server_cluster_name, :string, 1
52
+ optional :game_server_deployment_name, :string, 2
53
+ repeated :fleet_details, :message, 3, "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails"
54
+ end
55
+ add_message "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails" do
56
+ optional :fleet, :message, 1, "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet"
57
+ optional :autoscaler, :message, 2, "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler"
58
+ end
59
+ add_message "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet" do
60
+ optional :name, :string, 1
61
+ optional :spec_source, :message, 2, "google.cloud.gaming.v1.SpecSource"
62
+ end
63
+ add_message "google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler" do
64
+ optional :name, :string, 1
65
+ optional :spec_source, :message, 2, "google.cloud.gaming.v1.SpecSource"
66
+ end
67
+ add_message "google.cloud.gaming.v1.TargetState" do
68
+ repeated :details, :message, 1, "google.cloud.gaming.v1.TargetDetails"
69
+ end
70
+ add_message "google.cloud.gaming.v1.DeployedFleetDetails" do
71
+ optional :deployed_fleet, :message, 1, "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet"
72
+ optional :deployed_autoscaler, :message, 2, "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler"
73
+ end
74
+ add_message "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet" do
75
+ optional :fleet, :string, 1
76
+ optional :fleet_spec, :string, 2
77
+ optional :spec_source, :message, 3, "google.cloud.gaming.v1.SpecSource"
78
+ optional :status, :message, 5, "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus"
79
+ end
80
+ add_message "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus" do
81
+ optional :ready_replicas, :int64, 1
82
+ optional :allocated_replicas, :int64, 2
83
+ optional :reserved_replicas, :int64, 3
84
+ optional :replicas, :int64, 4
85
+ end
86
+ add_message "google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler" do
87
+ optional :autoscaler, :string, 1
88
+ optional :spec_source, :message, 4, "google.cloud.gaming.v1.SpecSource"
89
+ optional :fleet_autoscaler_spec, :string, 3
90
+ end
91
+ end
92
+ end
93
+
94
+ module Google
95
+ module Cloud
96
+ module Gaming
97
+ module V1
98
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.OperationMetadata").msgclass
99
+ OperationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.OperationStatus").msgclass
100
+ OperationStatus::ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.OperationStatus.ErrorCode").enummodule
101
+ LabelSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.LabelSelector").msgclass
102
+ RealmSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.RealmSelector").msgclass
103
+ Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.Schedule").msgclass
104
+ SpecSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.SpecSource").msgclass
105
+ TargetDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.TargetDetails").msgclass
106
+ TargetDetails::TargetFleetDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.TargetDetails.TargetFleetDetails").msgclass
107
+ TargetDetails::TargetFleetDetails::TargetFleet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet").msgclass
108
+ TargetDetails::TargetFleetDetails::TargetFleetAutoscaler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler").msgclass
109
+ TargetState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.TargetState").msgclass
110
+ DeployedFleetDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.DeployedFleetDetails").msgclass
111
+ DeployedFleetDetails::DeployedFleet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet").msgclass
112
+ DeployedFleetDetails::DeployedFleet::DeployedFleetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus").msgclass
113
+ DeployedFleetDetails::DeployedFleetAutoscaler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler").msgclass
114
+ end
115
+ end
116
+ end
117
+ end
@@ -0,0 +1,111 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/gaming/v1/game_server_clusters.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/field_mask_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/api/annotations_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/cloud/gaming/v1/game_server_clusters.proto", :syntax => :proto3) do
14
+ add_message "google.cloud.gaming.v1.ListGameServerClustersRequest" do
15
+ optional :parent, :string, 1
16
+ optional :page_size, :int32, 2
17
+ optional :page_token, :string, 3
18
+ optional :filter, :string, 4
19
+ optional :order_by, :string, 5
20
+ end
21
+ add_message "google.cloud.gaming.v1.ListGameServerClustersResponse" do
22
+ repeated :game_server_clusters, :message, 1, "google.cloud.gaming.v1.GameServerCluster"
23
+ optional :next_page_token, :string, 2
24
+ repeated :unreachable, :string, 4
25
+ end
26
+ add_message "google.cloud.gaming.v1.GetGameServerClusterRequest" do
27
+ optional :name, :string, 1
28
+ end
29
+ add_message "google.cloud.gaming.v1.CreateGameServerClusterRequest" do
30
+ optional :parent, :string, 1
31
+ optional :game_server_cluster_id, :string, 2
32
+ optional :game_server_cluster, :message, 3, "google.cloud.gaming.v1.GameServerCluster"
33
+ end
34
+ add_message "google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest" do
35
+ optional :parent, :string, 1
36
+ optional :game_server_cluster_id, :string, 2
37
+ optional :game_server_cluster, :message, 3, "google.cloud.gaming.v1.GameServerCluster"
38
+ optional :preview_time, :message, 4, "google.protobuf.Timestamp"
39
+ end
40
+ add_message "google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse" do
41
+ optional :etag, :string, 2
42
+ optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
43
+ end
44
+ add_message "google.cloud.gaming.v1.DeleteGameServerClusterRequest" do
45
+ optional :name, :string, 1
46
+ end
47
+ add_message "google.cloud.gaming.v1.PreviewDeleteGameServerClusterRequest" do
48
+ optional :name, :string, 1
49
+ optional :preview_time, :message, 2, "google.protobuf.Timestamp"
50
+ end
51
+ add_message "google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse" do
52
+ optional :etag, :string, 2
53
+ optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
54
+ end
55
+ add_message "google.cloud.gaming.v1.UpdateGameServerClusterRequest" do
56
+ optional :game_server_cluster, :message, 1, "google.cloud.gaming.v1.GameServerCluster"
57
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
58
+ end
59
+ add_message "google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest" do
60
+ optional :game_server_cluster, :message, 1, "google.cloud.gaming.v1.GameServerCluster"
61
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
62
+ optional :preview_time, :message, 3, "google.protobuf.Timestamp"
63
+ end
64
+ add_message "google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse" do
65
+ optional :etag, :string, 2
66
+ optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
67
+ end
68
+ add_message "google.cloud.gaming.v1.GameServerClusterConnectionInfo" do
69
+ optional :namespace, :string, 5
70
+ oneof :cluster_reference do
71
+ optional :gke_cluster_reference, :message, 7, "google.cloud.gaming.v1.GkeClusterReference"
72
+ end
73
+ end
74
+ add_message "google.cloud.gaming.v1.GkeClusterReference" do
75
+ optional :cluster, :string, 1
76
+ end
77
+ add_message "google.cloud.gaming.v1.GameServerCluster" do
78
+ optional :name, :string, 1
79
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
80
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
81
+ map :labels, :string, :string, 4
82
+ optional :connection_info, :message, 5, "google.cloud.gaming.v1.GameServerClusterConnectionInfo"
83
+ optional :etag, :string, 6
84
+ optional :description, :string, 7
85
+ end
86
+ end
87
+ end
88
+
89
+ module Google
90
+ module Cloud
91
+ module Gaming
92
+ module V1
93
+ ListGameServerClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.ListGameServerClustersRequest").msgclass
94
+ ListGameServerClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.ListGameServerClustersResponse").msgclass
95
+ GetGameServerClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GetGameServerClusterRequest").msgclass
96
+ CreateGameServerClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.CreateGameServerClusterRequest").msgclass
97
+ PreviewCreateGameServerClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest").msgclass
98
+ PreviewCreateGameServerClusterResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse").msgclass
99
+ DeleteGameServerClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.DeleteGameServerClusterRequest").msgclass
100
+ PreviewDeleteGameServerClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.PreviewDeleteGameServerClusterRequest").msgclass
101
+ PreviewDeleteGameServerClusterResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse").msgclass
102
+ UpdateGameServerClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.UpdateGameServerClusterRequest").msgclass
103
+ PreviewUpdateGameServerClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest").msgclass
104
+ PreviewUpdateGameServerClusterResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse").msgclass
105
+ GameServerClusterConnectionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GameServerClusterConnectionInfo").msgclass
106
+ GkeClusterReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GkeClusterReference").msgclass
107
+ GameServerCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GameServerCluster").msgclass
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,51 @@
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_clusters_service/credentials"
26
+ require "google/cloud/gaming/v1/game_server_clusters_service/paths"
27
+ require "google/cloud/gaming/v1/game_server_clusters_service/operations"
28
+ require "google/cloud/gaming/v1/game_server_clusters_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Gaming
33
+ module V1
34
+ ##
35
+ # The game server cluster maps to Kubernetes clusters running Agones and is
36
+ # used to manage fleets within clusters.
37
+ #
38
+ # To load this service and instantiate a client:
39
+ #
40
+ # require "google/cloud/gaming/v1/game_server_clusters_service"
41
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
42
+ #
43
+ module GameServerClustersService
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "game_server_clusters_service", "helpers.rb"
51
+ require "google/cloud/gaming/v1/game_server_clusters_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,994 @@
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_clusters_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Gaming
25
+ module V1
26
+ module GameServerClustersService
27
+ ##
28
+ # Client for the GameServerClustersService service.
29
+ #
30
+ # The game server cluster maps to Kubernetes clusters running Agones and is
31
+ # used to manage fleets within clusters.
32
+ #
33
+ class Client
34
+ include Paths
35
+
36
+ # @private
37
+ attr_reader :game_server_clusters_service_stub
38
+
39
+ ##
40
+ # Configure the GameServerClustersService Client class.
41
+ #
42
+ # See {::Google::Cloud::Gaming::V1::GameServerClustersService::Client::Configuration}
43
+ # for a description of the configuration fields.
44
+ #
45
+ # ## Example
46
+ #
47
+ # To modify the configuration for all GameServerClustersService clients:
48
+ #
49
+ # ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
52
+ #
53
+ # @yield [config] Configure the Client client.
54
+ # @yieldparam config [Client::Configuration]
55
+ #
56
+ # @return [Client::Configuration]
57
+ #
58
+ def self.configure
59
+ @configure ||= begin
60
+ namespace = ["Google", "Cloud", "Gaming", "V1"]
61
+ parent_config = while namespace.any?
62
+ parent_name = namespace.join "::"
63
+ parent_const = const_get parent_name
64
+ break parent_const.configure if parent_const&.respond_to? :configure
65
+ namespace.pop
66
+ end
67
+ default_config = Client::Configuration.new parent_config
68
+
69
+ default_config.rpcs.list_game_server_clusters.timeout = 60.0
70
+ default_config.rpcs.list_game_server_clusters.retry_policy = {
71
+ initial_delay: 1.0,
72
+ max_delay: 10.0,
73
+ multiplier: 1.3,
74
+ retry_codes: [14]
75
+ }
76
+
77
+ default_config.rpcs.get_game_server_cluster.timeout = 60.0
78
+ default_config.rpcs.get_game_server_cluster.retry_policy = {
79
+ initial_delay: 1.0,
80
+ max_delay: 10.0,
81
+ multiplier: 1.3,
82
+ retry_codes: [14]
83
+ }
84
+
85
+ default_config.rpcs.create_game_server_cluster.timeout = 120.0
86
+
87
+ default_config.rpcs.preview_create_game_server_cluster.timeout = 60.0
88
+ default_config.rpcs.preview_create_game_server_cluster.retry_policy = {
89
+ initial_delay: 1.0,
90
+ max_delay: 10.0,
91
+ multiplier: 1.3,
92
+ retry_codes: [14]
93
+ }
94
+
95
+ default_config.rpcs.delete_game_server_cluster.timeout = 60.0
96
+
97
+ default_config.rpcs.preview_delete_game_server_cluster.timeout = 60.0
98
+ default_config.rpcs.preview_delete_game_server_cluster.retry_policy = {
99
+ initial_delay: 1.0,
100
+ max_delay: 10.0,
101
+ multiplier: 1.3,
102
+ retry_codes: [14]
103
+ }
104
+
105
+ default_config.rpcs.update_game_server_cluster.timeout = 60.0
106
+
107
+ default_config.rpcs.preview_update_game_server_cluster.timeout = 60.0
108
+ default_config.rpcs.preview_update_game_server_cluster.retry_policy = {
109
+ initial_delay: 1.0,
110
+ max_delay: 10.0,
111
+ multiplier: 1.3,
112
+ retry_codes: [14]
113
+ }
114
+
115
+ default_config
116
+ end
117
+ yield @configure if block_given?
118
+ @configure
119
+ end
120
+
121
+ ##
122
+ # Configure the GameServerClustersService Client instance.
123
+ #
124
+ # The configuration is set to the derived mode, meaning that values can be changed,
125
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
126
+ # should be made on {Client.configure}.
127
+ #
128
+ # See {::Google::Cloud::Gaming::V1::GameServerClustersService::Client::Configuration}
129
+ # for a description of the configuration fields.
130
+ #
131
+ # @yield [config] Configure the Client client.
132
+ # @yieldparam config [Client::Configuration]
133
+ #
134
+ # @return [Client::Configuration]
135
+ #
136
+ def configure
137
+ yield @config if block_given?
138
+ @config
139
+ end
140
+
141
+ ##
142
+ # Create a new GameServerClustersService client object.
143
+ #
144
+ # ## Examples
145
+ #
146
+ # To create a new GameServerClustersService client with the default
147
+ # configuration:
148
+ #
149
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
150
+ #
151
+ # To create a new GameServerClustersService client with a custom
152
+ # configuration:
153
+ #
154
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
155
+ # config.timeout = 10.0
156
+ # end
157
+ #
158
+ # @yield [config] Configure the GameServerClustersService client.
159
+ # @yieldparam config [Client::Configuration]
160
+ #
161
+ def initialize
162
+ # These require statements are intentionally placed here to initialize
163
+ # the gRPC module only when it's required.
164
+ # See https://github.com/googleapis/toolkit/issues/446
165
+ require "gapic/grpc"
166
+ require "google/cloud/gaming/v1/game_server_clusters_service_services_pb"
167
+
168
+ # Create the configuration object
169
+ @config = Configuration.new Client.configure
170
+
171
+ # Yield the configuration if needed
172
+ yield @config if block_given?
173
+
174
+ # Create credentials
175
+ credentials = @config.credentials
176
+ credentials ||= Credentials.default scope: @config.scope
177
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
178
+ credentials = Credentials.new credentials, scope: @config.scope
179
+ end
180
+ @quota_project_id = @config.quota_project
181
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
182
+
183
+ @operations_client = Operations.new do |config|
184
+ config.credentials = credentials
185
+ config.endpoint = @config.endpoint
186
+ end
187
+
188
+ @game_server_clusters_service_stub = ::Gapic::ServiceStub.new(
189
+ ::Google::Cloud::Gaming::V1::GameServerClustersService::Stub,
190
+ credentials: credentials,
191
+ endpoint: @config.endpoint,
192
+ channel_args: @config.channel_args,
193
+ interceptors: @config.interceptors
194
+ )
195
+ end
196
+
197
+ ##
198
+ # Get the associated client for long-running operations.
199
+ #
200
+ # @return [::Google::Cloud::Gaming::V1::GameServerClustersService::Operations]
201
+ #
202
+ attr_reader :operations_client
203
+
204
+ # Service calls
205
+
206
+ ##
207
+ # Lists game server clusters in a given project and location.
208
+ #
209
+ # @overload list_game_server_clusters(request, options = nil)
210
+ # Pass arguments to `list_game_server_clusters` via a request object, either of type
211
+ # {::Google::Cloud::Gaming::V1::ListGameServerClustersRequest} or an equivalent Hash.
212
+ #
213
+ # @param request [::Google::Cloud::Gaming::V1::ListGameServerClustersRequest, ::Hash]
214
+ # A request object representing the call parameters. Required. To specify no
215
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
216
+ # @param options [::Gapic::CallOptions, ::Hash]
217
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
218
+ #
219
+ # @overload list_game_server_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
220
+ # Pass arguments to `list_game_server_clusters` via keyword arguments. Note that at
221
+ # least one keyword argument is required. To specify no parameters, or to keep all
222
+ # the default parameter values, pass an empty Hash as a request object (see above).
223
+ #
224
+ # @param parent [::String]
225
+ # Required. The parent resource name. Uses the form:
226
+ # "projects/\\{project}/locations/\\{location}/realms/\\{realm}".
227
+ # @param page_size [::Integer]
228
+ # Optional. The maximum number of items to return. If unspecified, the server
229
+ # will pick an appropriate default. The server may return fewer items than
230
+ # requested. A caller should only rely on response's
231
+ # {::Google::Cloud::Gaming::V1::ListGameServerClustersResponse#next_page_token next_page_token} to
232
+ # determine if there are more GameServerClusters left to be queried.
233
+ # @param page_token [::String]
234
+ # Optional. The next_page_token value returned from a previous List request, if any.
235
+ # @param filter [::String]
236
+ # Optional. The filter to apply to list results.
237
+ # @param order_by [::String]
238
+ # Optional. Specifies the ordering of results following syntax at
239
+ # https://cloud.google.com/apis/design/design_patterns#sorting_order.
240
+ #
241
+ # @yield [response, operation] Access the result along with the RPC operation
242
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Gaming::V1::GameServerCluster>]
243
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
244
+ #
245
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Gaming::V1::GameServerCluster>]
246
+ #
247
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
248
+ #
249
+ def list_game_server_clusters request, options = nil
250
+ raise ::ArgumentError, "request must be provided" if request.nil?
251
+
252
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::ListGameServerClustersRequest
253
+
254
+ # Converts hash and nil to an options object
255
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
256
+
257
+ # Customize the options with defaults
258
+ metadata = @config.rpcs.list_game_server_clusters.metadata.to_h
259
+
260
+ # Set x-goog-api-client and x-goog-user-project headers
261
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
262
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
263
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
264
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
265
+
266
+ header_params = {
267
+ "parent" => request.parent
268
+ }
269
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
270
+ metadata[:"x-goog-request-params"] ||= request_params_header
271
+
272
+ options.apply_defaults timeout: @config.rpcs.list_game_server_clusters.timeout,
273
+ metadata: metadata,
274
+ retry_policy: @config.rpcs.list_game_server_clusters.retry_policy
275
+ options.apply_defaults metadata: @config.metadata,
276
+ retry_policy: @config.retry_policy
277
+
278
+ @game_server_clusters_service_stub.call_rpc :list_game_server_clusters, request, options: options do |response, operation|
279
+ response = ::Gapic::PagedEnumerable.new @game_server_clusters_service_stub, :list_game_server_clusters, request, response, operation, options
280
+ yield response, operation if block_given?
281
+ return response
282
+ end
283
+ rescue ::GRPC::BadStatus => e
284
+ raise ::Google::Cloud::Error.from_error(e)
285
+ end
286
+
287
+ ##
288
+ # Gets details of a single game server cluster.
289
+ #
290
+ # @overload get_game_server_cluster(request, options = nil)
291
+ # Pass arguments to `get_game_server_cluster` via a request object, either of type
292
+ # {::Google::Cloud::Gaming::V1::GetGameServerClusterRequest} or an equivalent Hash.
293
+ #
294
+ # @param request [::Google::Cloud::Gaming::V1::GetGameServerClusterRequest, ::Hash]
295
+ # A request object representing the call parameters. Required. To specify no
296
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
297
+ # @param options [::Gapic::CallOptions, ::Hash]
298
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
299
+ #
300
+ # @overload get_game_server_cluster(name: nil)
301
+ # Pass arguments to `get_game_server_cluster` via keyword arguments. Note that at
302
+ # least one keyword argument is required. To specify no parameters, or to keep all
303
+ # the default parameter values, pass an empty Hash as a request object (see above).
304
+ #
305
+ # @param name [::String]
306
+ # Required. The name of the game server cluster to retrieve. Uses the form:
307
+ #
308
+ # `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
309
+ #
310
+ # @yield [response, operation] Access the result along with the RPC operation
311
+ # @yieldparam response [::Google::Cloud::Gaming::V1::GameServerCluster]
312
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
313
+ #
314
+ # @return [::Google::Cloud::Gaming::V1::GameServerCluster]
315
+ #
316
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
317
+ #
318
+ def get_game_server_cluster request, options = nil
319
+ raise ::ArgumentError, "request must be provided" if request.nil?
320
+
321
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::GetGameServerClusterRequest
322
+
323
+ # Converts hash and nil to an options object
324
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
325
+
326
+ # Customize the options with defaults
327
+ metadata = @config.rpcs.get_game_server_cluster.metadata.to_h
328
+
329
+ # Set x-goog-api-client and x-goog-user-project headers
330
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
331
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
332
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
333
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
334
+
335
+ header_params = {
336
+ "name" => request.name
337
+ }
338
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
339
+ metadata[:"x-goog-request-params"] ||= request_params_header
340
+
341
+ options.apply_defaults timeout: @config.rpcs.get_game_server_cluster.timeout,
342
+ metadata: metadata,
343
+ retry_policy: @config.rpcs.get_game_server_cluster.retry_policy
344
+ options.apply_defaults metadata: @config.metadata,
345
+ retry_policy: @config.retry_policy
346
+
347
+ @game_server_clusters_service_stub.call_rpc :get_game_server_cluster, request, options: options do |response, operation|
348
+ yield response, operation if block_given?
349
+ return response
350
+ end
351
+ rescue ::GRPC::BadStatus => e
352
+ raise ::Google::Cloud::Error.from_error(e)
353
+ end
354
+
355
+ ##
356
+ # Creates a new game server cluster in a given project and location.
357
+ #
358
+ # @overload create_game_server_cluster(request, options = nil)
359
+ # Pass arguments to `create_game_server_cluster` via a request object, either of type
360
+ # {::Google::Cloud::Gaming::V1::CreateGameServerClusterRequest} or an equivalent Hash.
361
+ #
362
+ # @param request [::Google::Cloud::Gaming::V1::CreateGameServerClusterRequest, ::Hash]
363
+ # A request object representing the call parameters. Required. To specify no
364
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
365
+ # @param options [::Gapic::CallOptions, ::Hash]
366
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
367
+ #
368
+ # @overload create_game_server_cluster(parent: nil, game_server_cluster_id: nil, game_server_cluster: nil)
369
+ # Pass arguments to `create_game_server_cluster` via keyword arguments. Note that at
370
+ # least one keyword argument is required. To specify no parameters, or to keep all
371
+ # the default parameter values, pass an empty Hash as a request object (see above).
372
+ #
373
+ # @param parent [::String]
374
+ # Required. The parent resource name. Uses the form:
375
+ # `projects/{project}/locations/{location}/realms/{realm-id}`.
376
+ # @param game_server_cluster_id [::String]
377
+ # Required. The ID of the game server cluster resource to be created.
378
+ # @param game_server_cluster [::Google::Cloud::Gaming::V1::GameServerCluster, ::Hash]
379
+ # Required. The game server cluster resource to be created.
380
+ #
381
+ # @yield [response, operation] Access the result along with the RPC operation
382
+ # @yieldparam response [::Gapic::Operation]
383
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
384
+ #
385
+ # @return [::Gapic::Operation]
386
+ #
387
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
388
+ #
389
+ def create_game_server_cluster request, options = nil
390
+ raise ::ArgumentError, "request must be provided" if request.nil?
391
+
392
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::CreateGameServerClusterRequest
393
+
394
+ # Converts hash and nil to an options object
395
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
396
+
397
+ # Customize the options with defaults
398
+ metadata = @config.rpcs.create_game_server_cluster.metadata.to_h
399
+
400
+ # Set x-goog-api-client and x-goog-user-project headers
401
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
402
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
403
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
404
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
+
406
+ header_params = {
407
+ "parent" => request.parent
408
+ }
409
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
410
+ metadata[:"x-goog-request-params"] ||= request_params_header
411
+
412
+ options.apply_defaults timeout: @config.rpcs.create_game_server_cluster.timeout,
413
+ metadata: metadata,
414
+ retry_policy: @config.rpcs.create_game_server_cluster.retry_policy
415
+ options.apply_defaults metadata: @config.metadata,
416
+ retry_policy: @config.retry_policy
417
+
418
+ @game_server_clusters_service_stub.call_rpc :create_game_server_cluster, request, options: options do |response, operation|
419
+ response = ::Gapic::Operation.new response, @operations_client, options: options
420
+ yield response, operation if block_given?
421
+ return response
422
+ end
423
+ rescue ::GRPC::BadStatus => e
424
+ raise ::Google::Cloud::Error.from_error(e)
425
+ end
426
+
427
+ ##
428
+ # Previews creation of a new game server cluster in a given project and
429
+ # location.
430
+ #
431
+ # @overload preview_create_game_server_cluster(request, options = nil)
432
+ # Pass arguments to `preview_create_game_server_cluster` via a request object, either of type
433
+ # {::Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterRequest} or an equivalent Hash.
434
+ #
435
+ # @param request [::Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterRequest, ::Hash]
436
+ # A request object representing the call parameters. Required. To specify no
437
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
438
+ # @param options [::Gapic::CallOptions, ::Hash]
439
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
440
+ #
441
+ # @overload preview_create_game_server_cluster(parent: nil, game_server_cluster_id: nil, game_server_cluster: nil, preview_time: nil)
442
+ # Pass arguments to `preview_create_game_server_cluster` via keyword arguments. Note that at
443
+ # least one keyword argument is required. To specify no parameters, or to keep all
444
+ # the default parameter values, pass an empty Hash as a request object (see above).
445
+ #
446
+ # @param parent [::String]
447
+ # Required. The parent resource name. Uses the form:
448
+ # `projects/{project}/locations/{location}/realms/{realm}`.
449
+ # @param game_server_cluster_id [::String]
450
+ # Required. The ID of the game server cluster resource to be created.
451
+ # @param game_server_cluster [::Google::Cloud::Gaming::V1::GameServerCluster, ::Hash]
452
+ # Required. The game server cluster resource to be created.
453
+ # @param preview_time [::Google::Protobuf::Timestamp, ::Hash]
454
+ # Optional. The target timestamp to compute the preview.
455
+ #
456
+ # @yield [response, operation] Access the result along with the RPC operation
457
+ # @yieldparam response [::Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterResponse]
458
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
459
+ #
460
+ # @return [::Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterResponse]
461
+ #
462
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
463
+ #
464
+ def preview_create_game_server_cluster request, options = nil
465
+ raise ::ArgumentError, "request must be provided" if request.nil?
466
+
467
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterRequest
468
+
469
+ # Converts hash and nil to an options object
470
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
471
+
472
+ # Customize the options with defaults
473
+ metadata = @config.rpcs.preview_create_game_server_cluster.metadata.to_h
474
+
475
+ # Set x-goog-api-client and x-goog-user-project headers
476
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
477
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
478
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
479
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
480
+
481
+ header_params = {
482
+ "parent" => request.parent
483
+ }
484
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
485
+ metadata[:"x-goog-request-params"] ||= request_params_header
486
+
487
+ options.apply_defaults timeout: @config.rpcs.preview_create_game_server_cluster.timeout,
488
+ metadata: metadata,
489
+ retry_policy: @config.rpcs.preview_create_game_server_cluster.retry_policy
490
+ options.apply_defaults metadata: @config.metadata,
491
+ retry_policy: @config.retry_policy
492
+
493
+ @game_server_clusters_service_stub.call_rpc :preview_create_game_server_cluster, request, options: options do |response, operation|
494
+ yield response, operation if block_given?
495
+ return response
496
+ end
497
+ rescue ::GRPC::BadStatus => e
498
+ raise ::Google::Cloud::Error.from_error(e)
499
+ end
500
+
501
+ ##
502
+ # Deletes a single game server cluster.
503
+ #
504
+ # @overload delete_game_server_cluster(request, options = nil)
505
+ # Pass arguments to `delete_game_server_cluster` via a request object, either of type
506
+ # {::Google::Cloud::Gaming::V1::DeleteGameServerClusterRequest} or an equivalent Hash.
507
+ #
508
+ # @param request [::Google::Cloud::Gaming::V1::DeleteGameServerClusterRequest, ::Hash]
509
+ # A request object representing the call parameters. Required. To specify no
510
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
511
+ # @param options [::Gapic::CallOptions, ::Hash]
512
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
513
+ #
514
+ # @overload delete_game_server_cluster(name: nil)
515
+ # Pass arguments to `delete_game_server_cluster` via keyword arguments. Note that at
516
+ # least one keyword argument is required. To specify no parameters, or to keep all
517
+ # the default parameter values, pass an empty Hash as a request object (see above).
518
+ #
519
+ # @param name [::String]
520
+ # Required. The name of the game server cluster to delete. Uses the form:
521
+ # `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
522
+ #
523
+ # @yield [response, operation] Access the result along with the RPC operation
524
+ # @yieldparam response [::Gapic::Operation]
525
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
526
+ #
527
+ # @return [::Gapic::Operation]
528
+ #
529
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
530
+ #
531
+ def delete_game_server_cluster request, options = nil
532
+ raise ::ArgumentError, "request must be provided" if request.nil?
533
+
534
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::DeleteGameServerClusterRequest
535
+
536
+ # Converts hash and nil to an options object
537
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
538
+
539
+ # Customize the options with defaults
540
+ metadata = @config.rpcs.delete_game_server_cluster.metadata.to_h
541
+
542
+ # Set x-goog-api-client and x-goog-user-project headers
543
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
544
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
545
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
546
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
547
+
548
+ header_params = {
549
+ "name" => request.name
550
+ }
551
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
552
+ metadata[:"x-goog-request-params"] ||= request_params_header
553
+
554
+ options.apply_defaults timeout: @config.rpcs.delete_game_server_cluster.timeout,
555
+ metadata: metadata,
556
+ retry_policy: @config.rpcs.delete_game_server_cluster.retry_policy
557
+ options.apply_defaults metadata: @config.metadata,
558
+ retry_policy: @config.retry_policy
559
+
560
+ @game_server_clusters_service_stub.call_rpc :delete_game_server_cluster, request, options: options do |response, operation|
561
+ response = ::Gapic::Operation.new response, @operations_client, options: options
562
+ yield response, operation if block_given?
563
+ return response
564
+ end
565
+ rescue ::GRPC::BadStatus => e
566
+ raise ::Google::Cloud::Error.from_error(e)
567
+ end
568
+
569
+ ##
570
+ # Previews deletion of a single game server cluster.
571
+ #
572
+ # @overload preview_delete_game_server_cluster(request, options = nil)
573
+ # Pass arguments to `preview_delete_game_server_cluster` via a request object, either of type
574
+ # {::Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterRequest} or an equivalent Hash.
575
+ #
576
+ # @param request [::Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterRequest, ::Hash]
577
+ # A request object representing the call parameters. Required. To specify no
578
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
579
+ # @param options [::Gapic::CallOptions, ::Hash]
580
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
581
+ #
582
+ # @overload preview_delete_game_server_cluster(name: nil, preview_time: nil)
583
+ # Pass arguments to `preview_delete_game_server_cluster` via keyword arguments. Note that at
584
+ # least one keyword argument is required. To specify no parameters, or to keep all
585
+ # the default parameter values, pass an empty Hash as a request object (see above).
586
+ #
587
+ # @param name [::String]
588
+ # Required. The name of the game server cluster to delete. Uses the form:
589
+ # `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
590
+ # @param preview_time [::Google::Protobuf::Timestamp, ::Hash]
591
+ # Optional. The target timestamp to compute the preview.
592
+ #
593
+ # @yield [response, operation] Access the result along with the RPC operation
594
+ # @yieldparam response [::Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterResponse]
595
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
596
+ #
597
+ # @return [::Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterResponse]
598
+ #
599
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
600
+ #
601
+ def preview_delete_game_server_cluster request, options = nil
602
+ raise ::ArgumentError, "request must be provided" if request.nil?
603
+
604
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterRequest
605
+
606
+ # Converts hash and nil to an options object
607
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
608
+
609
+ # Customize the options with defaults
610
+ metadata = @config.rpcs.preview_delete_game_server_cluster.metadata.to_h
611
+
612
+ # Set x-goog-api-client and x-goog-user-project headers
613
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
614
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
615
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
616
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
617
+
618
+ header_params = {
619
+ "name" => request.name
620
+ }
621
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
622
+ metadata[:"x-goog-request-params"] ||= request_params_header
623
+
624
+ options.apply_defaults timeout: @config.rpcs.preview_delete_game_server_cluster.timeout,
625
+ metadata: metadata,
626
+ retry_policy: @config.rpcs.preview_delete_game_server_cluster.retry_policy
627
+ options.apply_defaults metadata: @config.metadata,
628
+ retry_policy: @config.retry_policy
629
+
630
+ @game_server_clusters_service_stub.call_rpc :preview_delete_game_server_cluster, request, options: options do |response, operation|
631
+ yield response, operation if block_given?
632
+ return response
633
+ end
634
+ rescue ::GRPC::BadStatus => e
635
+ raise ::Google::Cloud::Error.from_error(e)
636
+ end
637
+
638
+ ##
639
+ # Patches a single game server cluster.
640
+ #
641
+ # @overload update_game_server_cluster(request, options = nil)
642
+ # Pass arguments to `update_game_server_cluster` via a request object, either of type
643
+ # {::Google::Cloud::Gaming::V1::UpdateGameServerClusterRequest} or an equivalent Hash.
644
+ #
645
+ # @param request [::Google::Cloud::Gaming::V1::UpdateGameServerClusterRequest, ::Hash]
646
+ # A request object representing the call parameters. Required. To specify no
647
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
648
+ # @param options [::Gapic::CallOptions, ::Hash]
649
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
650
+ #
651
+ # @overload update_game_server_cluster(game_server_cluster: nil, update_mask: nil)
652
+ # Pass arguments to `update_game_server_cluster` via keyword arguments. Note that at
653
+ # least one keyword argument is required. To specify no parameters, or to keep all
654
+ # the default parameter values, pass an empty Hash as a request object (see above).
655
+ #
656
+ # @param game_server_cluster [::Google::Cloud::Gaming::V1::GameServerCluster, ::Hash]
657
+ # Required. The game server cluster to be updated.
658
+ # Only fields specified in update_mask are updated.
659
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
660
+ # Required. Mask of fields to update. At least one path must be supplied in
661
+ # this field. For the `FieldMask` definition, see
662
+ #
663
+ # https:
664
+ # //developers.google.com/protocol-buffers
665
+ # // /docs/reference/google.protobuf#fieldmask
666
+ #
667
+ # @yield [response, operation] Access the result along with the RPC operation
668
+ # @yieldparam response [::Gapic::Operation]
669
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
670
+ #
671
+ # @return [::Gapic::Operation]
672
+ #
673
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
674
+ #
675
+ def update_game_server_cluster request, options = nil
676
+ raise ::ArgumentError, "request must be provided" if request.nil?
677
+
678
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::UpdateGameServerClusterRequest
679
+
680
+ # Converts hash and nil to an options object
681
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
682
+
683
+ # Customize the options with defaults
684
+ metadata = @config.rpcs.update_game_server_cluster.metadata.to_h
685
+
686
+ # Set x-goog-api-client and x-goog-user-project headers
687
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
688
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
689
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
690
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
691
+
692
+ header_params = {
693
+ "game_server_cluster.name" => request.game_server_cluster.name
694
+ }
695
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
696
+ metadata[:"x-goog-request-params"] ||= request_params_header
697
+
698
+ options.apply_defaults timeout: @config.rpcs.update_game_server_cluster.timeout,
699
+ metadata: metadata,
700
+ retry_policy: @config.rpcs.update_game_server_cluster.retry_policy
701
+ options.apply_defaults metadata: @config.metadata,
702
+ retry_policy: @config.retry_policy
703
+
704
+ @game_server_clusters_service_stub.call_rpc :update_game_server_cluster, request, options: options do |response, operation|
705
+ response = ::Gapic::Operation.new response, @operations_client, options: options
706
+ yield response, operation if block_given?
707
+ return response
708
+ end
709
+ rescue ::GRPC::BadStatus => e
710
+ raise ::Google::Cloud::Error.from_error(e)
711
+ end
712
+
713
+ ##
714
+ # Previews updating a GameServerCluster.
715
+ #
716
+ # @overload preview_update_game_server_cluster(request, options = nil)
717
+ # Pass arguments to `preview_update_game_server_cluster` via a request object, either of type
718
+ # {::Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterRequest} or an equivalent Hash.
719
+ #
720
+ # @param request [::Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterRequest, ::Hash]
721
+ # A request object representing the call parameters. Required. To specify no
722
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
723
+ # @param options [::Gapic::CallOptions, ::Hash]
724
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
725
+ #
726
+ # @overload preview_update_game_server_cluster(game_server_cluster: nil, update_mask: nil, preview_time: nil)
727
+ # Pass arguments to `preview_update_game_server_cluster` via keyword arguments. Note that at
728
+ # least one keyword argument is required. To specify no parameters, or to keep all
729
+ # the default parameter values, pass an empty Hash as a request object (see above).
730
+ #
731
+ # @param game_server_cluster [::Google::Cloud::Gaming::V1::GameServerCluster, ::Hash]
732
+ # Required. The game server cluster to be updated.
733
+ # Only fields specified in update_mask are updated.
734
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
735
+ # Required. Mask of fields to update. At least one path must be supplied in
736
+ # this field. For the `FieldMask` definition, see
737
+ #
738
+ # https:
739
+ # //developers.google.com/protocol-buffers
740
+ # // /docs/reference/google.protobuf#fieldmask
741
+ # @param preview_time [::Google::Protobuf::Timestamp, ::Hash]
742
+ # Optional. The target timestamp to compute the preview.
743
+ #
744
+ # @yield [response, operation] Access the result along with the RPC operation
745
+ # @yieldparam response [::Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterResponse]
746
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
747
+ #
748
+ # @return [::Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterResponse]
749
+ #
750
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
751
+ #
752
+ def preview_update_game_server_cluster request, options = nil
753
+ raise ::ArgumentError, "request must be provided" if request.nil?
754
+
755
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterRequest
756
+
757
+ # Converts hash and nil to an options object
758
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
759
+
760
+ # Customize the options with defaults
761
+ metadata = @config.rpcs.preview_update_game_server_cluster.metadata.to_h
762
+
763
+ # Set x-goog-api-client and x-goog-user-project headers
764
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
765
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
766
+ gapic_version: ::Google::Cloud::Gaming::V1::VERSION
767
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
768
+
769
+ header_params = {
770
+ "game_server_cluster.name" => request.game_server_cluster.name
771
+ }
772
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
773
+ metadata[:"x-goog-request-params"] ||= request_params_header
774
+
775
+ options.apply_defaults timeout: @config.rpcs.preview_update_game_server_cluster.timeout,
776
+ metadata: metadata,
777
+ retry_policy: @config.rpcs.preview_update_game_server_cluster.retry_policy
778
+ options.apply_defaults metadata: @config.metadata,
779
+ retry_policy: @config.retry_policy
780
+
781
+ @game_server_clusters_service_stub.call_rpc :preview_update_game_server_cluster, request, options: options do |response, operation|
782
+ yield response, operation if block_given?
783
+ return response
784
+ end
785
+ rescue ::GRPC::BadStatus => e
786
+ raise ::Google::Cloud::Error.from_error(e)
787
+ end
788
+
789
+ ##
790
+ # Configuration class for the GameServerClustersService API.
791
+ #
792
+ # This class represents the configuration for GameServerClustersService,
793
+ # providing control over timeouts, retry behavior, logging, transport
794
+ # parameters, and other low-level controls. Certain parameters can also be
795
+ # applied individually to specific RPCs. See
796
+ # {::Google::Cloud::Gaming::V1::GameServerClustersService::Client::Configuration::Rpcs}
797
+ # for a list of RPCs that can be configured independently.
798
+ #
799
+ # Configuration can be applied globally to all clients, or to a single client
800
+ # on construction.
801
+ #
802
+ # # Examples
803
+ #
804
+ # To modify the global config, setting the timeout for list_game_server_clusters
805
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
806
+ #
807
+ # ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
808
+ # config.timeout = 10.0
809
+ # config.rpcs.list_game_server_clusters.timeout = 20.0
810
+ # end
811
+ #
812
+ # To apply the above configuration only to a new client:
813
+ #
814
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
815
+ # config.timeout = 10.0
816
+ # config.rpcs.list_game_server_clusters.timeout = 20.0
817
+ # end
818
+ #
819
+ # @!attribute [rw] endpoint
820
+ # The hostname or hostname:port of the service endpoint.
821
+ # Defaults to `"gameservices.googleapis.com"`.
822
+ # @return [::String]
823
+ # @!attribute [rw] credentials
824
+ # Credentials to send with calls. You may provide any of the following types:
825
+ # * (`String`) The path to a service account key file in JSON format
826
+ # * (`Hash`) A service account key as a Hash
827
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
828
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
829
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
830
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
831
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
832
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
833
+ # * (`nil`) indicating no credentials
834
+ # @return [::Object]
835
+ # @!attribute [rw] scope
836
+ # The OAuth scopes
837
+ # @return [::Array<::String>]
838
+ # @!attribute [rw] lib_name
839
+ # The library name as recorded in instrumentation and logging
840
+ # @return [::String]
841
+ # @!attribute [rw] lib_version
842
+ # The library version as recorded in instrumentation and logging
843
+ # @return [::String]
844
+ # @!attribute [rw] channel_args
845
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
846
+ # `GRPC::Core::Channel` object is provided as the credential.
847
+ # @return [::Hash]
848
+ # @!attribute [rw] interceptors
849
+ # An array of interceptors that are run before calls are executed.
850
+ # @return [::Array<::GRPC::ClientInterceptor>]
851
+ # @!attribute [rw] timeout
852
+ # The call timeout in seconds.
853
+ # @return [::Numeric]
854
+ # @!attribute [rw] metadata
855
+ # Additional gRPC headers to be sent with the call.
856
+ # @return [::Hash{::Symbol=>::String}]
857
+ # @!attribute [rw] retry_policy
858
+ # The retry policy. The value is a hash with the following keys:
859
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
860
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
861
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
862
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
863
+ # trigger a retry.
864
+ # @return [::Hash]
865
+ # @!attribute [rw] quota_project
866
+ # A separate project against which to charge quota.
867
+ # @return [::String]
868
+ #
869
+ class Configuration
870
+ extend ::Gapic::Config
871
+
872
+ config_attr :endpoint, "gameservices.googleapis.com", ::String
873
+ config_attr :credentials, nil do |value|
874
+ allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
875
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
876
+ allowed.any? { |klass| klass === value }
877
+ end
878
+ config_attr :scope, nil, ::String, ::Array, nil
879
+ config_attr :lib_name, nil, ::String, nil
880
+ config_attr :lib_version, nil, ::String, nil
881
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
882
+ config_attr :interceptors, nil, ::Array, nil
883
+ config_attr :timeout, nil, ::Numeric, nil
884
+ config_attr :metadata, nil, ::Hash, nil
885
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
886
+ config_attr :quota_project, nil, ::String, nil
887
+
888
+ # @private
889
+ def initialize parent_config = nil
890
+ @parent_config = parent_config unless parent_config.nil?
891
+
892
+ yield self if block_given?
893
+ end
894
+
895
+ ##
896
+ # Configurations for individual RPCs
897
+ # @return [Rpcs]
898
+ #
899
+ def rpcs
900
+ @rpcs ||= begin
901
+ parent_rpcs = nil
902
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
903
+ Rpcs.new parent_rpcs
904
+ end
905
+ end
906
+
907
+ ##
908
+ # Configuration RPC class for the GameServerClustersService API.
909
+ #
910
+ # Includes fields providing the configuration for each RPC in this service.
911
+ # Each configuration object is of type `Gapic::Config::Method` and includes
912
+ # the following configuration fields:
913
+ #
914
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
915
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
916
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
917
+ # include the following keys:
918
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
919
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
920
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
921
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
922
+ # trigger a retry.
923
+ #
924
+ class Rpcs
925
+ ##
926
+ # RPC-specific configuration for `list_game_server_clusters`
927
+ # @return [::Gapic::Config::Method]
928
+ #
929
+ attr_reader :list_game_server_clusters
930
+ ##
931
+ # RPC-specific configuration for `get_game_server_cluster`
932
+ # @return [::Gapic::Config::Method]
933
+ #
934
+ attr_reader :get_game_server_cluster
935
+ ##
936
+ # RPC-specific configuration for `create_game_server_cluster`
937
+ # @return [::Gapic::Config::Method]
938
+ #
939
+ attr_reader :create_game_server_cluster
940
+ ##
941
+ # RPC-specific configuration for `preview_create_game_server_cluster`
942
+ # @return [::Gapic::Config::Method]
943
+ #
944
+ attr_reader :preview_create_game_server_cluster
945
+ ##
946
+ # RPC-specific configuration for `delete_game_server_cluster`
947
+ # @return [::Gapic::Config::Method]
948
+ #
949
+ attr_reader :delete_game_server_cluster
950
+ ##
951
+ # RPC-specific configuration for `preview_delete_game_server_cluster`
952
+ # @return [::Gapic::Config::Method]
953
+ #
954
+ attr_reader :preview_delete_game_server_cluster
955
+ ##
956
+ # RPC-specific configuration for `update_game_server_cluster`
957
+ # @return [::Gapic::Config::Method]
958
+ #
959
+ attr_reader :update_game_server_cluster
960
+ ##
961
+ # RPC-specific configuration for `preview_update_game_server_cluster`
962
+ # @return [::Gapic::Config::Method]
963
+ #
964
+ attr_reader :preview_update_game_server_cluster
965
+
966
+ # @private
967
+ def initialize parent_rpcs = nil
968
+ list_game_server_clusters_config = parent_rpcs&.list_game_server_clusters if parent_rpcs&.respond_to? :list_game_server_clusters
969
+ @list_game_server_clusters = ::Gapic::Config::Method.new list_game_server_clusters_config
970
+ get_game_server_cluster_config = parent_rpcs&.get_game_server_cluster if parent_rpcs&.respond_to? :get_game_server_cluster
971
+ @get_game_server_cluster = ::Gapic::Config::Method.new get_game_server_cluster_config
972
+ create_game_server_cluster_config = parent_rpcs&.create_game_server_cluster if parent_rpcs&.respond_to? :create_game_server_cluster
973
+ @create_game_server_cluster = ::Gapic::Config::Method.new create_game_server_cluster_config
974
+ preview_create_game_server_cluster_config = parent_rpcs&.preview_create_game_server_cluster if parent_rpcs&.respond_to? :preview_create_game_server_cluster
975
+ @preview_create_game_server_cluster = ::Gapic::Config::Method.new preview_create_game_server_cluster_config
976
+ delete_game_server_cluster_config = parent_rpcs&.delete_game_server_cluster if parent_rpcs&.respond_to? :delete_game_server_cluster
977
+ @delete_game_server_cluster = ::Gapic::Config::Method.new delete_game_server_cluster_config
978
+ preview_delete_game_server_cluster_config = parent_rpcs&.preview_delete_game_server_cluster if parent_rpcs&.respond_to? :preview_delete_game_server_cluster
979
+ @preview_delete_game_server_cluster = ::Gapic::Config::Method.new preview_delete_game_server_cluster_config
980
+ update_game_server_cluster_config = parent_rpcs&.update_game_server_cluster if parent_rpcs&.respond_to? :update_game_server_cluster
981
+ @update_game_server_cluster = ::Gapic::Config::Method.new update_game_server_cluster_config
982
+ preview_update_game_server_cluster_config = parent_rpcs&.preview_update_game_server_cluster if parent_rpcs&.respond_to? :preview_update_game_server_cluster
983
+ @preview_update_game_server_cluster = ::Gapic::Config::Method.new preview_update_game_server_cluster_config
984
+
985
+ yield self if block_given?
986
+ end
987
+ end
988
+ end
989
+ end
990
+ end
991
+ end
992
+ end
993
+ end
994
+ end