google-cloud-app_engine-v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/appengine/v1/app_yaml_pb.rb +25 -103
  4. data/lib/google/appengine/v1/appengine_pb.rb +33 -186
  5. data/lib/google/appengine/v1/application_pb.rb +25 -45
  6. data/lib/google/appengine/v1/audit_data_pb.rb +25 -13
  7. data/lib/google/appengine/v1/certificate_pb.rb +25 -29
  8. data/lib/google/appengine/v1/deploy_pb.rb +25 -23
  9. data/lib/google/appengine/v1/deployed_files_pb.rb +25 -2
  10. data/lib/google/appengine/v1/domain_mapping_pb.rb +24 -28
  11. data/lib/google/appengine/v1/domain_pb.rb +24 -5
  12. data/lib/google/appengine/v1/firewall_pb.rb +24 -12
  13. data/lib/google/appengine/v1/instance_pb.rb +25 -35
  14. data/lib/google/appengine/v1/location_pb.rb +24 -6
  15. data/lib/google/appengine/v1/network_settings_pb.rb +24 -10
  16. data/lib/google/appengine/v1/operation_pb.rb +25 -16
  17. data/lib/google/appengine/v1/service_pb.rb +25 -18
  18. data/lib/google/appengine/v1/version_pb.rb +28 -153
  19. data/lib/google/cloud/app_engine/v1/applications/client.rb +6 -4
  20. data/lib/google/cloud/app_engine/v1/applications/operations.rb +5 -3
  21. data/lib/google/cloud/app_engine/v1/applications/rest/client.rb +6 -4
  22. data/lib/google/cloud/app_engine/v1/applications/rest/operations.rb +9 -7
  23. data/lib/google/cloud/app_engine/v1/applications/rest/service_stub.rb +4 -4
  24. data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +6 -4
  25. data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/client.rb +6 -4
  26. data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/service_stub.rb +5 -5
  27. data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +6 -4
  28. data/lib/google/cloud/app_engine/v1/authorized_domains/rest/client.rb +6 -4
  29. data/lib/google/cloud/app_engine/v1/authorized_domains/rest/service_stub.rb +1 -1
  30. data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +6 -4
  31. data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +5 -3
  32. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/client.rb +6 -4
  33. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/operations.rb +9 -7
  34. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/service_stub.rb +5 -5
  35. data/lib/google/cloud/app_engine/v1/firewall/client.rb +6 -4
  36. data/lib/google/cloud/app_engine/v1/firewall/rest/client.rb +6 -4
  37. data/lib/google/cloud/app_engine/v1/firewall/rest/service_stub.rb +6 -6
  38. data/lib/google/cloud/app_engine/v1/instances/client.rb +6 -4
  39. data/lib/google/cloud/app_engine/v1/instances/operations.rb +5 -3
  40. data/lib/google/cloud/app_engine/v1/instances/rest/client.rb +6 -4
  41. data/lib/google/cloud/app_engine/v1/instances/rest/operations.rb +9 -7
  42. data/lib/google/cloud/app_engine/v1/instances/rest/service_stub.rb +4 -4
  43. data/lib/google/cloud/app_engine/v1/services/client.rb +6 -4
  44. data/lib/google/cloud/app_engine/v1/services/operations.rb +5 -3
  45. data/lib/google/cloud/app_engine/v1/services/rest/client.rb +6 -4
  46. data/lib/google/cloud/app_engine/v1/services/rest/operations.rb +9 -7
  47. data/lib/google/cloud/app_engine/v1/services/rest/service_stub.rb +4 -4
  48. data/lib/google/cloud/app_engine/v1/version.rb +1 -1
  49. data/lib/google/cloud/app_engine/v1/versions/client.rb +6 -4
  50. data/lib/google/cloud/app_engine/v1/versions/operations.rb +5 -3
  51. data/lib/google/cloud/app_engine/v1/versions/rest/client.rb +6 -4
  52. data/lib/google/cloud/app_engine/v1/versions/rest/operations.rb +9 -7
  53. data/lib/google/cloud/app_engine/v1/versions/rest/service_stub.rb +5 -5
  54. data/proto_docs/google/api/client.rb +67 -4
  55. data/proto_docs/google/appengine/v1/domain.rb +1 -1
  56. data/proto_docs/google/protobuf/any.rb +7 -4
  57. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  58. metadata +4 -4
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "appengine.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -117,7 +117,7 @@ module Google
117
117
  credentials = @config.credentials
118
118
  # Use self-signed JWT if the endpoint is unchanged from default,
119
119
  # but only if the default endpoint does not have a region prefix.
120
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
120
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
121
121
  !@config.endpoint.split(".").first.include?("-")
122
122
  credentials ||= Credentials.default scope: @config.scope,
123
123
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -522,9 +522,9 @@ module Google
522
522
  # * (`String`) The path to a service account key file in JSON format
523
523
  # * (`Hash`) A service account key as a Hash
524
524
  # * (`Google::Auth::Credentials`) A googleauth credentials object
525
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
525
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
526
526
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
527
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
527
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
528
528
  # * (`nil`) indicating no credentials
529
529
  # @return [::Object]
530
530
  # @!attribute [rw] scope
@@ -557,7 +557,9 @@ module Google
557
557
  class Configuration
558
558
  extend ::Gapic::Config
559
559
 
560
- config_attr :endpoint, "appengine.googleapis.com", ::String
560
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
561
+
562
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
561
563
  config_attr :credentials, nil do |value|
562
564
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
563
565
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "appengine.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_domain_mappings_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_domain_mapping_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_domain_mapping_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_domain_mapping_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_domain_mapping_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -130,7 +130,7 @@ module Google
130
130
  credentials = @config.credentials
131
131
  # Use self-signed JWT if the endpoint is unchanged from default,
132
132
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
134
134
  !@config.endpoint.split(".").first.include?("-")
135
135
  credentials ||= Credentials.default scope: @config.scope,
136
136
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -739,9 +739,9 @@ module Google
739
739
  # * (`String`) The path to a service account key file in JSON format
740
740
  # * (`Hash`) A service account key as a Hash
741
741
  # * (`Google::Auth::Credentials`) A googleauth credentials object
742
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
742
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
743
743
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
744
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
744
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
745
745
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
746
746
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
747
747
  # * (`nil`) indicating no credentials
@@ -783,7 +783,9 @@ module Google
783
783
  class Configuration
784
784
  extend ::Gapic::Config
785
785
 
786
- config_attr :endpoint, "appengine.googleapis.com", ::String
786
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
787
+
788
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
787
789
  config_attr :credentials, nil do |value|
788
790
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
789
791
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -126,7 +126,7 @@ module Google
126
126
  credentials = @config.credentials
127
127
  # Use self-signed JWT if the endpoint is unchanged from default,
128
128
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
130
  !@config.endpoint.split(".").first.include?("-")
131
131
  credentials ||= Credentials.default scope: @config.scope,
132
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -588,9 +588,9 @@ module Google
588
588
  # * (`String`) The path to a service account key file in JSON format
589
589
  # * (`Hash`) A service account key as a Hash
590
590
  # * (`Google::Auth::Credentials`) A googleauth credentials object
591
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
591
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
592
592
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
593
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
593
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
594
594
  # * (`nil`) indicating no credentials
595
595
  # @return [::Object]
596
596
  # @!attribute [rw] scope
@@ -623,7 +623,9 @@ module Google
623
623
  class Configuration
624
624
  extend ::Gapic::Config
625
625
 
626
- config_attr :endpoint, "appengine.googleapis.com", ::String
626
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
627
+
628
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
627
629
  config_attr :credentials, nil do |value|
628
630
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
629
631
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_ingress_rules_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_ingress_rules_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_ingress_rule_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_get_ingress_rule_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_update_ingress_rule_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_ingress_rule_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -591,9 +591,9 @@ module Google
591
591
  # * (`String`) The path to a service account key file in JSON format
592
592
  # * (`Hash`) A service account key as a Hash
593
593
  # * (`Google::Auth::Credentials`) A googleauth credentials object
594
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
594
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
595
595
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
596
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
596
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
597
597
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
598
598
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
599
599
  # * (`nil`) indicating no credentials
@@ -635,7 +635,9 @@ module Google
635
635
  class Configuration
636
636
  extend ::Gapic::Config
637
637
 
638
- config_attr :endpoint, "appengine.googleapis.com", ::String
638
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
639
+
640
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
639
641
  config_attr :credentials, nil do |value|
640
642
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
641
643
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "appengine.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -117,7 +117,7 @@ module Google
117
117
  credentials = @config.credentials
118
118
  # Use self-signed JWT if the endpoint is unchanged from default,
119
119
  # but only if the default endpoint does not have a region prefix.
120
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
120
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
121
121
  !@config.endpoint.split(".").first.include?("-")
122
122
  credentials ||= Credentials.default scope: @config.scope,
123
123
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -472,9 +472,9 @@ module Google
472
472
  # * (`String`) The path to a service account key file in JSON format
473
473
  # * (`Hash`) A service account key as a Hash
474
474
  # * (`Google::Auth::Credentials`) A googleauth credentials object
475
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
475
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
476
476
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
477
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
477
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
478
478
  # * (`nil`) indicating no credentials
479
479
  # @return [::Object]
480
480
  # @!attribute [rw] scope
@@ -507,7 +507,9 @@ module Google
507
507
  class Configuration
508
508
  extend ::Gapic::Config
509
509
 
510
- config_attr :endpoint, "appengine.googleapis.com", ::String
510
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
511
+
512
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
511
513
  config_attr :credentials, nil do |value|
512
514
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
513
515
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "appengine.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_debug_instance_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -576,9 +576,9 @@ module Google
576
576
  # * (`String`) The path to a service account key file in JSON format
577
577
  # * (`Hash`) A service account key as a Hash
578
578
  # * (`Google::Auth::Credentials`) A googleauth credentials object
579
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
579
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
580
580
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
581
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
581
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
582
582
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
583
583
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
584
584
  # * (`nil`) indicating no credentials
@@ -620,7 +620,9 @@ module Google
620
620
  class Configuration
621
621
  extend ::Gapic::Config
622
622
 
623
- config_attr :endpoint, "appengine.googleapis.com", ::String
623
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
624
+
625
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
624
626
  config_attr :credentials, nil do |value|
625
627
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
626
628
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "appengine.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -117,7 +117,7 @@ module Google
117
117
  credentials = @config.credentials
118
118
  # Use self-signed JWT if the endpoint is unchanged from default,
119
119
  # but only if the default endpoint does not have a region prefix.
120
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
120
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
121
121
  !@config.endpoint.split(".").first.include?("-")
122
122
  credentials ||= Credentials.default scope: @config.scope,
123
123
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -457,9 +457,9 @@ module Google
457
457
  # * (`String`) The path to a service account key file in JSON format
458
458
  # * (`Hash`) A service account key as a Hash
459
459
  # * (`Google::Auth::Credentials`) A googleauth credentials object
460
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
460
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
461
461
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
462
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
462
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
463
463
  # * (`nil`) indicating no credentials
464
464
  # @return [::Object]
465
465
  # @!attribute [rw] scope
@@ -492,7 +492,9 @@ module Google
492
492
  class Configuration
493
493
  extend ::Gapic::Config
494
494
 
495
- config_attr :endpoint, "appengine.googleapis.com", ::String
495
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
496
+
497
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
496
498
  config_attr :credentials, nil do |value|
497
499
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
498
500
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "appengine.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "appengine.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end