google-cloud-gaming-v1 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/gaming/v1/game_server_deployments_service.proto
3
4
 
@@ -8,9 +9,31 @@ require 'google/api/client_pb'
8
9
  require 'google/cloud/gaming/v1/game_server_deployments_pb'
9
10
  require 'google/longrunning/operations_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/gaming/v1/game_server_deployments_service.proto", :syntax => :proto3) do
12
+
13
+ descriptor_data = "\n<google/cloud/gaming/v1/game_server_deployments_service.proto\x12\x16google.cloud.gaming.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x34google/cloud/gaming/v1/game_server_deployments.proto\x1a#google/longrunning/operations.proto2\xe8\x12\n\x1cGameServerDeploymentsService\x12\xdc\x01\n\x19ListGameServerDeployments\x12\x38.google.cloud.gaming.v1.ListGameServerDeploymentsRequest\x1a\x39.google.cloud.gaming.v1.ListGameServerDeploymentsResponse\"J\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/gameServerDeployments\xda\x41\x06parent\x12\xc9\x01\n\x17GetGameServerDeployment\x12\x36.google.cloud.gaming.v1.GetGameServerDeploymentRequest\x1a,.google.cloud.gaming.v1.GameServerDeployment\"H\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/gameServerDeployments/*}\xda\x41\x04name\x12\x9e\x02\n\x1a\x43reateGameServerDeployment\x12\x39.google.cloud.gaming.v1.CreateGameServerDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\x82\xd3\xe4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/gameServerDeployments:\x16game_server_deployment\xda\x41\x1dparent,game_server_deployment\xca\x41)\n\x14GameServerDeployment\x12\x11OperationMetadata\x12\xed\x01\n\x1a\x44\x65leteGameServerDeployment\x12\x39.google.cloud.gaming.v1.DeleteGameServerDeploymentRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/gameServerDeployments/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xba\x02\n\x1aUpdateGameServerDeployment\x12\x39.google.cloud.gaming.v1.UpdateGameServerDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xc1\x01\x82\xd3\xe4\x93\x02j2P/v1/{game_server_deployment.name=projects/*/locations/*/gameServerDeployments/*}:\x16game_server_deployment\xda\x41\"game_server_deployment,update_mask\xca\x41)\n\x14GameServerDeployment\x12\x11OperationMetadata\x12\xe6\x01\n\x1eGetGameServerDeploymentRollout\x12=.google.cloud.gaming.v1.GetGameServerDeploymentRolloutRequest\x1a\x33.google.cloud.gaming.v1.GameServerDeploymentRollout\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/gameServerDeployments/*}/rollout\xda\x41\x04name\x12\xa3\x02\n!UpdateGameServerDeploymentRollout\x12@.google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest\x1a\x1d.google.longrunning.Operation\"\x9c\x01\x82\xd3\xe4\x93\x02T2I/v1/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout:\x07rollout\xda\x41\x13rollout,update_mask\xca\x41)\n\x14GameServerDeployment\x12\x11OperationMetadata\x12\x8f\x02\n\"PreviewGameServerDeploymentRollout\x12\x41.google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest\x1a\x42.google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse\"b\x82\xd3\xe4\x93\x02\\2Q/v1/{rollout.name=projects/*/locations/*/gameServerDeployments/*}/rollout:preview:\x07rollout\x12\xdc\x01\n\x14\x46\x65tchDeploymentState\x12\x33.google.cloud.gaming.v1.FetchDeploymentStateRequest\x1a\x34.google.cloud.gaming.v1.FetchDeploymentStateResponse\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{name=projects/*/locations/*/gameServerDeployments/*}:fetchDeploymentState:\x01*\x1aO\xca\x41\x1bgameservices.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBR\n\x1a\x63om.google.cloud.gaming.v1P\x01Z2cloud.google.com/go/gaming/apiv1/gamingpb;gamingpbb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
13
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
14
37
  end
15
38
 
16
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/gaming/v1/realms.proto
3
4
 
@@ -9,54 +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/realms.proto", :syntax => :proto3) do
14
- add_message "google.cloud.gaming.v1.ListRealmsRequest" 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.ListRealmsResponse" do
22
- repeated :realms, :message, 1, "google.cloud.gaming.v1.Realm"
23
- optional :next_page_token, :string, 2
24
- repeated :unreachable, :string, 3
25
- end
26
- add_message "google.cloud.gaming.v1.GetRealmRequest" do
27
- optional :name, :string, 1
28
- end
29
- add_message "google.cloud.gaming.v1.CreateRealmRequest" do
30
- optional :parent, :string, 1
31
- optional :realm_id, :string, 2
32
- optional :realm, :message, 3, "google.cloud.gaming.v1.Realm"
33
- end
34
- add_message "google.cloud.gaming.v1.DeleteRealmRequest" do
35
- optional :name, :string, 1
36
- end
37
- add_message "google.cloud.gaming.v1.UpdateRealmRequest" do
38
- optional :realm, :message, 1, "google.cloud.gaming.v1.Realm"
39
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
40
- end
41
- add_message "google.cloud.gaming.v1.PreviewRealmUpdateRequest" do
42
- optional :realm, :message, 1, "google.cloud.gaming.v1.Realm"
43
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
44
- optional :preview_time, :message, 3, "google.protobuf.Timestamp"
45
- end
46
- add_message "google.cloud.gaming.v1.PreviewRealmUpdateResponse" do
47
- optional :etag, :string, 2
48
- optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
49
- end
50
- add_message "google.cloud.gaming.v1.Realm" do
51
- optional :name, :string, 1
52
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
53
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
54
- map :labels, :string, :string, 4
55
- optional :time_zone, :string, 6
56
- optional :etag, :string, 7
57
- optional :description, :string, 8
13
+
14
+ descriptor_data = "\n#google/cloud/gaming/v1/realms.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\"\xab\x01\n\x11ListRealmsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!gameservices.googleapis.com/Realm\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\"q\n\x12ListRealmsResponse\x12-\n\x06realms\x18\x01 \x03(\x0b\x32\x1d.google.cloud.gaming.v1.Realm\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"J\n\x0fGetRealmRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!gameservices.googleapis.com/Realm\"\x99\x01\n\x12\x43reateRealmRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!gameservices.googleapis.com/Realm\x12\x15\n\x08realm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05realm\x18\x03 \x01(\x0b\x32\x1d.google.cloud.gaming.v1.RealmB\x03\xe0\x41\x02\"M\n\x12\x44\x65leteRealmRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!gameservices.googleapis.com/Realm\"}\n\x12UpdateRealmRequest\x12\x31\n\x05realm\x18\x01 \x01(\x0b\x32\x1d.google.cloud.gaming.v1.RealmB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xbb\x01\n\x19PreviewRealmUpdateRequest\x12\x31\n\x05realm\x18\x01 \x01(\x0b\x32\x1d.google.cloud.gaming.v1.RealmB\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\"e\n\x1aPreviewRealmUpdateResponse\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x39\n\x0ctarget_state\x18\x03 \x01(\x0b\x32#.google.cloud.gaming.v1.TargetState\"\x86\x03\n\x05Realm\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x06labels\x18\x04 \x03(\x0b\x32).google.cloud.gaming.v1.Realm.LabelsEntry\x12\x16\n\ttime_zone\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04\x65tag\x18\x07 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:^\xea\x41[\n!gameservices.googleapis.com/Realm\x12\x36projects/{project}/locations/{location}/realms/{realm}BR\n\x1a\x63om.google.cloud.gaming.v1P\x01Z2cloud.google.com/go/gaming/apiv1/gamingpb;gamingpbb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ["google.cloud.gaming.v1.TargetState", "google/cloud/gaming/v1/common.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}"
58
37
  end
59
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."
60
41
  end
61
42
 
62
43
  module Google
@@ -145,7 +145,7 @@ module Google
145
145
  credentials = @config.credentials
146
146
  # Use self-signed JWT if the endpoint is unchanged from default,
147
147
  # but only if the default endpoint does not have a region prefix.
148
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
148
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
149
149
  !@config.endpoint.split(".").first.include?("-")
150
150
  credentials ||= Credentials.default scope: @config.scope,
151
151
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -235,13 +235,11 @@ module Google
235
235
  # # Call the list_realms method.
236
236
  # result = client.list_realms request
237
237
  #
238
- # # The returned object is of type Gapic::PagedEnumerable. You can
239
- # # iterate over all elements by calling #each, and the enumerable
240
- # # will lazily make API calls to fetch subsequent pages. Other
241
- # # methods are also available for managing paging directly.
242
- # result.each do |response|
238
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
239
+ # # over elements, and API calls will be issued to fetch pages as needed.
240
+ # result.each do |item|
243
241
  # # Each element is of type ::Google::Cloud::Gaming::V1::Realm.
244
- # p response
242
+ # p item
245
243
  # end
246
244
  #
247
245
  def list_realms request, options = nil
@@ -418,14 +416,14 @@ module Google
418
416
  # # Call the create_realm method.
419
417
  # result = client.create_realm request
420
418
  #
421
- # # The returned object is of type Gapic::Operation. You can use this
422
- # # object to check the status of an operation, cancel it, or wait
423
- # # for results. Here is how to block until completion:
419
+ # # The returned object is of type Gapic::Operation. You can use it to
420
+ # # check the status of an operation, cancel it, or wait for results.
421
+ # # Here is how to wait for a response.
424
422
  # result.wait_until_done! timeout: 60
425
423
  # if result.response?
426
424
  # p result.response
427
425
  # else
428
- # puts "Error!"
426
+ # puts "No response received."
429
427
  # end
430
428
  #
431
429
  def create_realm request, options = nil
@@ -512,14 +510,14 @@ module Google
512
510
  # # Call the delete_realm method.
513
511
  # result = client.delete_realm request
514
512
  #
515
- # # The returned object is of type Gapic::Operation. You can use this
516
- # # object to check the status of an operation, cancel it, or wait
517
- # # for results. Here is how to block until completion:
513
+ # # The returned object is of type Gapic::Operation. You can use it to
514
+ # # check the status of an operation, cancel it, or wait for results.
515
+ # # Here is how to wait for a response.
518
516
  # result.wait_until_done! timeout: 60
519
517
  # if result.response?
520
518
  # p result.response
521
519
  # else
522
- # puts "Error!"
520
+ # puts "No response received."
523
521
  # end
524
522
  #
525
523
  def delete_realm request, options = nil
@@ -610,14 +608,14 @@ module Google
610
608
  # # Call the update_realm method.
611
609
  # result = client.update_realm request
612
610
  #
613
- # # The returned object is of type Gapic::Operation. You can use this
614
- # # object to check the status of an operation, cancel it, or wait
615
- # # for results. Here is how to block until completion:
611
+ # # The returned object is of type Gapic::Operation. You can use it to
612
+ # # check the status of an operation, cancel it, or wait for results.
613
+ # # Here is how to wait for a response.
616
614
  # result.wait_until_done! timeout: 60
617
615
  # if result.response?
618
616
  # p result.response
619
617
  # else
620
- # puts "Error!"
618
+ # puts "No response received."
621
619
  # end
622
620
  #
623
621
  def update_realm request, options = nil
@@ -792,9 +790,9 @@ module Google
792
790
  # * (`String`) The path to a service account key file in JSON format
793
791
  # * (`Hash`) A service account key as a Hash
794
792
  # * (`Google::Auth::Credentials`) A googleauth credentials object
795
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
793
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
796
794
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
797
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
795
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
798
796
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
799
797
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
800
798
  # * (`nil`) indicating no credentials
@@ -836,7 +834,9 @@ module Google
836
834
  class Configuration
837
835
  extend ::Gapic::Config
838
836
 
839
- config_attr :endpoint, "gameservices.googleapis.com", ::String
837
+ DEFAULT_ENDPOINT = "gameservices.googleapis.com"
838
+
839
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
840
840
  config_attr :credentials, nil do |value|
841
841
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
842
842
  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