google-cloud-gaming-v1 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/gaming/v1/common_pb.rb +26 -80
  5. data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +27 -101
  6. data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +22 -22
  7. data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +17 -17
  8. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +938 -0
  9. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +795 -0
  10. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/service_stub.rb +524 -0
  11. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest.rb +54 -0
  12. data/lib/google/cloud/gaming/v1/game_server_clusters_service.rb +7 -1
  13. data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +25 -2
  14. data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +26 -43
  15. data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +18 -18
  16. data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +17 -17
  17. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +607 -0
  18. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +795 -0
  19. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/service_stub.rb +285 -0
  20. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest.rb +53 -0
  21. data/lib/google/cloud/gaming/v1/game_server_configs_service.rb +7 -1
  22. data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +25 -2
  23. data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +27 -80
  24. data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +26 -26
  25. data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +17 -17
  26. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +999 -0
  27. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +795 -0
  28. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/service_stub.rb +584 -0
  29. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest.rb +54 -0
  30. data/lib/google/cloud/gaming/v1/game_server_deployments_service.rb +7 -1
  31. data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +25 -2
  32. data/lib/google/cloud/gaming/v1/realms_pb.rb +27 -46
  33. data/lib/google/cloud/gaming/v1/realms_service/client.rb +22 -22
  34. data/lib/google/cloud/gaming/v1/realms_service/operations.rb +17 -17
  35. data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +763 -0
  36. data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +795 -0
  37. data/lib/google/cloud/gaming/v1/realms_service/rest/service_stub.rb +405 -0
  38. data/lib/google/cloud/gaming/v1/realms_service/rest.rb +54 -0
  39. data/lib/google/cloud/gaming/v1/realms_service.rb +7 -1
  40. data/lib/google/cloud/gaming/v1/realms_service_pb.rb +25 -2
  41. data/lib/google/cloud/gaming/v1/rest.rb +40 -0
  42. data/lib/google/cloud/gaming/v1/version.rb +1 -1
  43. data/lib/google/cloud/gaming/v1.rb +7 -2
  44. data/proto_docs/google/api/client.rb +381 -0
  45. data/proto_docs/google/api/launch_stage.rb +71 -0
  46. data/proto_docs/google/protobuf/any.rb +7 -4
  47. data/proto_docs/google/protobuf/empty.rb +0 -2
  48. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  49. data/proto_docs/google/rpc/status.rb +4 -2
  50. metadata +27 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4a3281ca7c4eeefe9cb0d17dfd9ec56c3c1e82ffc0c84b370d484fbeae1026c
4
- data.tar.gz: dd36a9dbab765ff15fc20ec6889865d92b7f99372fd54817ab94354154566b63
3
+ metadata.gz: 20717f7d8b7382a79abc4afcc5ce05381737ad1f942d5897fc5054ac447b5fa4
4
+ data.tar.gz: 655fb08201d34e224a5dc1f3cc2a9cba171f787cff22ecfb44e4c2cb53f3817d
5
5
  SHA512:
6
- metadata.gz: 4d9f1607929cb5d06b71e28440cdeb804a74664ad20e672e85ae75bf8355592a623a3fe8b65b78a36bb9dc3d6b21c308f299af495d39f8a246e23a841aa3bf91
7
- data.tar.gz: 915e325b1b30c81a5c2e8cedb4f7295924064ec08c917cd021037e1c19957b3c4bed36faa228a01ad77af25d89689a70349e43a00d02fd81e4bd499a378d22ff
6
+ metadata.gz: 97f0fc136d50210db67109f97c74f1698c4ca6faa9cab327d6e1cc6c5bcbb8b06eca8ecc125f1be7f3a4a7387109823b3be11a18d7335c444eb565120eab5caa
7
+ data.tar.gz: 8a4c2a037edf6551d11756a331c8572c4ad1062df57a44659266453d00e5d69cca79e4c6f7feedbfd37fe5a78b8e2b5012659fa6a9cbd01538a0204d49453995
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Gaming V1 API
2
2
 
3
- API Client library for the Cloud Gaming V1 API
3
+ Deploy and manage infrastructure for global multiplayer gaming experiences.
4
4
 
5
5
  With Game Servers, studios and publishers can deploy and manage their game server infrastructure hosted on multiple Agones clusters around the world through a single interface.
6
6
 
@@ -46,8 +46,8 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/gaming/v1/common.proto
3
4
 
@@ -7,88 +8,33 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/duration_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
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
11
+
12
+ descriptor_data = "\n#google/cloud/gaming/v1/common.proto\x12\x16google.cloud.gaming.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x03\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bunreachable\x18\x08 \x03(\tB\x03\xe0\x41\x03\x12]\n\x10operation_status\x18\t \x03(\x0b\x32>.google.cloud.gaming.v1.OperationMetadata.OperationStatusEntryB\x03\xe0\x41\x03\x1a_\n\x14OperationStatusEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.gaming.v1.OperationStatus:\x02\x38\x01\"\xee\x01\n\x0fOperationStatus\x12\x11\n\x04\x64one\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x12\x45\n\nerror_code\x18\x02 \x01(\x0e\x32\x31.google.cloud.gaming.v1.OperationStatus.ErrorCode\x12\x15\n\rerror_message\x18\x03 \x01(\t\"j\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x15\n\x11PERMISSION_DENIED\x10\x02\x12\x16\n\x12\x43LUSTER_CONNECTION\x10\x03\"\x81\x01\n\rLabelSelector\x12\x41\n\x06labels\x18\x01 \x03(\x0b\x32\x31.google.cloud.gaming.v1.LabelSelector.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1f\n\rRealmSelector\x12\x0e\n\x06realms\x18\x01 \x03(\t\"\xb1\x01\n\x08Schedule\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x11\x63ron_job_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x11\n\tcron_spec\x18\x04 \x01(\t\";\n\nSpecSource\x12\x1f\n\x17game_server_config_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xad\x04\n\rTargetDetails\x12 \n\x18game_server_cluster_name\x18\x01 \x01(\t\x12#\n\x1bgame_server_deployment_name\x18\x02 \x01(\t\x12O\n\rfleet_details\x18\x03 \x03(\x0b\x32\x38.google.cloud.gaming.v1.TargetDetails.TargetFleetDetails\x1a\x83\x03\n\x12TargetFleetDetails\x12S\n\x05\x66leet\x18\x01 \x01(\x0b\x32\x44.google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet\x12\x62\n\nautoscaler\x18\x02 \x01(\x0b\x32N.google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler\x1aT\n\x0bTargetFleet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x37\n\x0bspec_source\x18\x02 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\x1a^\n\x15TargetFleetAutoscaler\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x37\n\x0bspec_source\x18\x02 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\"E\n\x0bTargetState\x12\x36\n\x07\x64\x65tails\x18\x01 \x03(\x0b\x32%.google.cloud.gaming.v1.TargetDetails\"\x9b\x05\n\x14\x44\x65ployedFleetDetails\x12R\n\x0e\x64\x65ployed_fleet\x18\x01 \x01(\x0b\x32:.google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet\x12\x61\n\x13\x64\x65ployed_autoscaler\x18\x02 \x01(\x0b\x32\x44.google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler\x1a\xc3\x02\n\rDeployedFleet\x12\r\n\x05\x66leet\x18\x01 \x01(\t\x12\x12\n\nfleet_spec\x18\x02 \x01(\t\x12\x37\n\x0bspec_source\x18\x03 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\x12^\n\x06status\x18\x05 \x01(\x0b\x32N.google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus\x1av\n\x13\x44\x65ployedFleetStatus\x12\x16\n\x0eready_replicas\x18\x01 \x01(\x03\x12\x1a\n\x12\x61llocated_replicas\x18\x02 \x01(\x03\x12\x19\n\x11reserved_replicas\x18\x03 \x01(\x03\x12\x10\n\x08replicas\x18\x04 \x01(\x03\x1a\x85\x01\n\x17\x44\x65ployedFleetAutoscaler\x12\x12\n\nautoscaler\x18\x01 \x01(\t\x12\x37\n\x0bspec_source\x18\x04 \x01(\x0b\x32\".google.cloud.gaming.v1.SpecSource\x12\x1d\n\x15\x66leet_autoscaler_spec\x18\x03 \x01(\tBR\n\x1a\x63om.google.cloud.gaming.v1P\x01Z2cloud.google.com/go/gaming/apiv1/gamingpb;gamingpbb\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
90
34
  end
91
35
  end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
92
38
  end
93
39
 
94
40
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/gaming/v1/game_server_clusters.proto
3
4
 
@@ -9,109 +10,34 @@ require 'google/cloud/gaming/v1/common_pb'
9
10
  require 'google/protobuf/field_mask_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
- 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
- optional :view, :enum, 6, "google.cloud.gaming.v1.GameServerClusterView"
21
- end
22
- add_message "google.cloud.gaming.v1.ListGameServerClustersResponse" do
23
- repeated :game_server_clusters, :message, 1, "google.cloud.gaming.v1.GameServerCluster"
24
- optional :next_page_token, :string, 2
25
- repeated :unreachable, :string, 4
26
- end
27
- add_message "google.cloud.gaming.v1.GetGameServerClusterRequest" do
28
- optional :name, :string, 1
29
- optional :view, :enum, 6, "google.cloud.gaming.v1.GameServerClusterView"
30
- end
31
- add_message "google.cloud.gaming.v1.CreateGameServerClusterRequest" do
32
- optional :parent, :string, 1
33
- optional :game_server_cluster_id, :string, 2
34
- optional :game_server_cluster, :message, 3, "google.cloud.gaming.v1.GameServerCluster"
35
- end
36
- add_message "google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest" do
37
- optional :parent, :string, 1
38
- optional :game_server_cluster_id, :string, 2
39
- optional :game_server_cluster, :message, 3, "google.cloud.gaming.v1.GameServerCluster"
40
- optional :preview_time, :message, 4, "google.protobuf.Timestamp"
41
- optional :view, :enum, 6, "google.cloud.gaming.v1.GameServerClusterView"
42
- end
43
- add_message "google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse" do
44
- optional :etag, :string, 2
45
- optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
46
- optional :cluster_state, :message, 4, "google.cloud.gaming.v1.KubernetesClusterState"
47
- end
48
- add_message "google.cloud.gaming.v1.DeleteGameServerClusterRequest" do
49
- optional :name, :string, 1
50
- end
51
- add_message "google.cloud.gaming.v1.PreviewDeleteGameServerClusterRequest" do
52
- optional :name, :string, 1
53
- optional :preview_time, :message, 2, "google.protobuf.Timestamp"
54
- end
55
- add_message "google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse" do
56
- optional :etag, :string, 2
57
- optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
58
- end
59
- add_message "google.cloud.gaming.v1.UpdateGameServerClusterRequest" do
60
- optional :game_server_cluster, :message, 1, "google.cloud.gaming.v1.GameServerCluster"
61
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
62
- end
63
- add_message "google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest" do
64
- optional :game_server_cluster, :message, 1, "google.cloud.gaming.v1.GameServerCluster"
65
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
66
- optional :preview_time, :message, 3, "google.protobuf.Timestamp"
67
- end
68
- add_message "google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse" do
69
- optional :etag, :string, 2
70
- optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
71
- end
72
- add_message "google.cloud.gaming.v1.GameServerClusterConnectionInfo" do
73
- optional :namespace, :string, 5
74
- oneof :cluster_reference do
75
- optional :gke_cluster_reference, :message, 7, "google.cloud.gaming.v1.GkeClusterReference"
76
- end
77
- end
78
- add_message "google.cloud.gaming.v1.GkeClusterReference" do
79
- optional :cluster, :string, 1
80
- end
81
- add_message "google.cloud.gaming.v1.GameServerCluster" do
82
- optional :name, :string, 1
83
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
84
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
85
- map :labels, :string, :string, 4
86
- optional :connection_info, :message, 5, "google.cloud.gaming.v1.GameServerClusterConnectionInfo"
87
- optional :etag, :string, 6
88
- optional :description, :string, 7
89
- optional :cluster_state, :message, 11, "google.cloud.gaming.v1.KubernetesClusterState"
90
- end
91
- add_message "google.cloud.gaming.v1.KubernetesClusterState" do
92
- optional :agones_version_installed, :string, 1
93
- optional :kubernetes_version_installed, :string, 2
94
- optional :installation_state, :enum, 3, "google.cloud.gaming.v1.KubernetesClusterState.InstallationState"
95
- optional :version_installed_error_message, :string, 4
96
- optional :provider, :string, 5
97
- optional :agones_version_targeted, :string, 6
98
- end
99
- add_enum "google.cloud.gaming.v1.KubernetesClusterState.InstallationState" do
100
- value :INSTALLATION_STATE_UNSPECIFIED, 0
101
- value :AGONES_KUBERNETES_VERSION_SUPPORTED, 1
102
- value :AGONES_VERSION_UNSUPPORTED, 2
103
- value :AGONES_KUBERNETES_VERSION_UNSUPPORTED, 3
104
- value :AGONES_VERSION_UNRECOGNIZED, 4
105
- value :KUBERNETES_VERSION_UNRECOGNIZED, 5
106
- value :VERSION_VERIFICATION_FAILED, 6
107
- value :AGONES_NOT_INSTALLED, 7
108
- end
109
- add_enum "google.cloud.gaming.v1.GameServerClusterView" do
110
- value :GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, 0
111
- value :BASIC, 1
112
- value :FULL, 2
13
+
14
+ descriptor_data = "\n1google/cloud/gaming/v1/game_server_clusters.proto\x12\x16google.cloud.gaming.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/gaming/v1/common.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x85\x02\n\x1dListGameServerClustersRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-gameservices.googleapis.com/GameServerCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12@\n\x04view\x18\x06 \x01(\x0e\x32-.google.cloud.gaming.v1.GameServerClusterViewB\x03\xe0\x41\x01\"\x97\x01\n\x1eListGameServerClustersResponse\x12G\n\x14game_server_clusters\x18\x01 \x03(\x0b\x32).google.cloud.gaming.v1.GameServerCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x04 \x03(\t\"\xa4\x01\n\x1bGetGameServerClusterRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-gameservices.googleapis.com/GameServerCluster\x12@\n\x04view\x18\x06 \x01(\x0e\x32-.google.cloud.gaming.v1.GameServerClusterViewB\x03\xe0\x41\x01\"\xd9\x01\n\x1e\x43reateGameServerClusterRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-gameservices.googleapis.com/GameServerCluster\x12#\n\x16game_server_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12K\n\x13game_server_cluster\x18\x03 \x01(\x0b\x32).google.cloud.gaming.v1.GameServerClusterB\x03\xe0\x41\x02\"\xdb\x02\n%PreviewCreateGameServerClusterRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-gameservices.googleapis.com/GameServerCluster\x12#\n\x16game_server_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12K\n\x13game_server_cluster\x18\x03 \x01(\x0b\x32).google.cloud.gaming.v1.GameServerClusterB\x03\xe0\x41\x02\x12\x35\n\x0cpreview_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x06 \x01(\x0e\x32-.google.cloud.gaming.v1.GameServerClusterViewB\x05\x18\x01\xe0\x41\x01\"\xbd\x01\n&PreviewCreateGameServerClusterResponse\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x39\n\x0ctarget_state\x18\x03 \x01(\x0b\x32#.google.cloud.gaming.v1.TargetState\x12J\n\rcluster_state\x18\x04 \x01(\x0b\x32..google.cloud.gaming.v1.KubernetesClusterStateB\x03\xe0\x41\x03\"e\n\x1e\x44\x65leteGameServerClusterRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-gameservices.googleapis.com/GameServerCluster\"\xa3\x01\n%PreviewDeleteGameServerClusterRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-gameservices.googleapis.com/GameServerCluster\x12\x35\n\x0cpreview_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"q\n&PreviewDeleteGameServerClusterResponse\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x39\n\x0ctarget_state\x18\x03 \x01(\x0b\x32#.google.cloud.gaming.v1.TargetState\"\xa3\x01\n\x1eUpdateGameServerClusterRequest\x12K\n\x13game_server_cluster\x18\x01 \x01(\x0b\x32).google.cloud.gaming.v1.GameServerClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xe1\x01\n%PreviewUpdateGameServerClusterRequest\x12K\n\x13game_server_cluster\x18\x01 \x01(\x0b\x32).google.cloud.gaming.v1.GameServerClusterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x35\n\x0cpreview_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"q\n&PreviewUpdateGameServerClusterResponse\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x39\n\x0ctarget_state\x18\x03 \x01(\x0b\x32#.google.cloud.gaming.v1.TargetState\"\x97\x01\n\x1fGameServerClusterConnectionInfo\x12L\n\x15gke_cluster_reference\x18\x07 \x01(\x0b\x32+.google.cloud.gaming.v1.GkeClusterReferenceH\x00\x12\x11\n\tnamespace\x18\x05 \x01(\tB\x13\n\x11\x63luster_reference\"&\n\x13GkeClusterReference\x12\x0f\n\x07\x63luster\x18\x01 \x01(\t\"\xd4\x04\n\x11GameServerCluster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x06labels\x18\x04 \x03(\x0b\x32\x35.google.cloud.gaming.v1.GameServerCluster.LabelsEntry\x12P\n\x0f\x63onnection_info\x18\x05 \x01(\x0b\x32\x37.google.cloud.gaming.v1.GameServerClusterConnectionInfo\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12J\n\rcluster_state\x18\x0b \x01(\x0b\x32..google.cloud.gaming.v1.KubernetesClusterStateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x88\x01\xea\x41\x84\x01\n-gameservices.googleapis.com/GameServerCluster\x12Sprojects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}\"\xe7\x04\n\x16KubernetesClusterState\x12%\n\x18\x61gones_version_installed\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12)\n\x1ckubernetes_version_installed\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x61\n\x12installation_state\x18\x03 \x01(\x0e\x32@.google.cloud.gaming.v1.KubernetesClusterState.InstallationStateB\x03\xe0\x41\x03\x12,\n\x1fversion_installed_error_message\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08provider\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x61gones_version_targeted\x18\x06 \x01(\tB\x03\xe0\x41\x03\"\xac\x02\n\x11InstallationState\x12\"\n\x1eINSTALLATION_STATE_UNSPECIFIED\x10\x00\x12\'\n#AGONES_KUBERNETES_VERSION_SUPPORTED\x10\x01\x12\x1e\n\x1a\x41GONES_VERSION_UNSUPPORTED\x10\x02\x12)\n%AGONES_KUBERNETES_VERSION_UNSUPPORTED\x10\x03\x12\x1f\n\x1b\x41GONES_VERSION_UNRECOGNIZED\x10\x04\x12#\n\x1fKUBERNETES_VERSION_UNRECOGNIZED\x10\x05\x12\x1f\n\x1bVERSION_VERIFICATION_FAILED\x10\x06\x12\x18\n\x14\x41GONES_NOT_INSTALLED\x10\x07*V\n\x15GameServerClusterView\x12(\n$GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42R\n\x1a\x63om.google.cloud.gaming.v1P\x01Z2cloud.google.com/go/gaming/apiv1/gamingpb;gamingpbb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ["google.cloud.gaming.v1.TargetState", "google/cloud/gaming/v1/common.proto"],
31
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
113
37
  end
114
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
115
41
  end
116
42
 
117
43
  module Google
@@ -155,7 +155,7 @@ module Google
155
155
  credentials = @config.credentials
156
156
  # Use self-signed JWT if the endpoint is unchanged from default,
157
157
  # but only if the default endpoint does not have a region prefix.
158
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
158
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
159
159
  !@config.endpoint.split(".").first.include?("-")
160
160
  credentials ||= Credentials.default scope: @config.scope,
161
161
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -251,13 +251,11 @@ module Google
251
251
  # # Call the list_game_server_clusters method.
252
252
  # result = client.list_game_server_clusters request
253
253
  #
254
- # # The returned object is of type Gapic::PagedEnumerable. You can
255
- # # iterate over all elements by calling #each, and the enumerable
256
- # # will lazily make API calls to fetch subsequent pages. Other
257
- # # methods are also available for managing paging directly.
258
- # result.each do |response|
254
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
255
+ # # over elements, and API calls will be issued to fetch pages as needed.
256
+ # result.each do |item|
259
257
  # # Each element is of type ::Google::Cloud::Gaming::V1::GameServerCluster.
260
- # p response
258
+ # p item
261
259
  # end
262
260
  #
263
261
  def list_game_server_clusters request, options = nil
@@ -441,14 +439,14 @@ module Google
441
439
  # # Call the create_game_server_cluster method.
442
440
  # result = client.create_game_server_cluster request
443
441
  #
444
- # # The returned object is of type Gapic::Operation. You can use this
445
- # # object to check the status of an operation, cancel it, or wait
446
- # # for results. Here is how to block until completion:
442
+ # # The returned object is of type Gapic::Operation. You can use it to
443
+ # # check the status of an operation, cancel it, or wait for results.
444
+ # # Here is how to wait for a response.
447
445
  # result.wait_until_done! timeout: 60
448
446
  # if result.response?
449
447
  # p result.response
450
448
  # else
451
- # puts "Error!"
449
+ # puts "No response received."
452
450
  # end
453
451
  #
454
452
  def create_game_server_cluster request, options = nil
@@ -631,14 +629,14 @@ module Google
631
629
  # # Call the delete_game_server_cluster method.
632
630
  # result = client.delete_game_server_cluster request
633
631
  #
634
- # # The returned object is of type Gapic::Operation. You can use this
635
- # # object to check the status of an operation, cancel it, or wait
636
- # # for results. Here is how to block until completion:
632
+ # # The returned object is of type Gapic::Operation. You can use it to
633
+ # # check the status of an operation, cancel it, or wait for results.
634
+ # # Here is how to wait for a response.
637
635
  # result.wait_until_done! timeout: 60
638
636
  # if result.response?
639
637
  # p result.response
640
638
  # else
641
- # puts "Error!"
639
+ # puts "No response received."
642
640
  # end
643
641
  #
644
642
  def delete_game_server_cluster request, options = nil
@@ -817,14 +815,14 @@ module Google
817
815
  # # Call the update_game_server_cluster method.
818
816
  # result = client.update_game_server_cluster request
819
817
  #
820
- # # The returned object is of type Gapic::Operation. You can use this
821
- # # object to check the status of an operation, cancel it, or wait
822
- # # for results. Here is how to block until completion:
818
+ # # The returned object is of type Gapic::Operation. You can use it to
819
+ # # check the status of an operation, cancel it, or wait for results.
820
+ # # Here is how to wait for a response.
823
821
  # result.wait_until_done! timeout: 60
824
822
  # if result.response?
825
823
  # p result.response
826
824
  # else
827
- # puts "Error!"
825
+ # puts "No response received."
828
826
  # end
829
827
  #
830
828
  def update_game_server_cluster request, options = nil
@@ -999,9 +997,9 @@ module Google
999
997
  # * (`String`) The path to a service account key file in JSON format
1000
998
  # * (`Hash`) A service account key as a Hash
1001
999
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1002
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1000
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1003
1001
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1004
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1002
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1005
1003
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1006
1004
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1007
1005
  # * (`nil`) indicating no credentials
@@ -1043,7 +1041,9 @@ module Google
1043
1041
  class Configuration
1044
1042
  extend ::Gapic::Config
1045
1043
 
1046
- config_attr :endpoint, "gameservices.googleapis.com", ::String
1044
+ DEFAULT_ENDPOINT = "gameservices.googleapis.com"
1045
+
1046
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1047
1047
  config_attr :credentials, nil do |value|
1048
1048
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1049
1049
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials
@@ -666,7 +664,9 @@ module Google
666
664
  class Configuration
667
665
  extend ::Gapic::Config
668
666
 
669
- config_attr :endpoint, "gameservices.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "gameservices.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
670
670
  config_attr :credentials, nil do |value|
671
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC