google-cloud-os_config-v1 0.12.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/os_config/v1/os_config_service/client.rb +16 -5
  4. data/lib/google/cloud/os_config/v1/os_config_service/rest/client.rb +210 -4
  5. data/lib/google/cloud/os_config/v1/os_config_service/rest/service_stub.rb +12 -12
  6. data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +16 -5
  7. data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +15 -4
  8. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/client.rb +239 -4
  9. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/operations.rb +84 -7
  10. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/service_stub.rb +12 -12
  11. data/lib/google/cloud/os_config/v1/version.rb +1 -1
  12. data/lib/google/cloud/osconfig/v1/inventory_pb.rb +26 -109
  13. data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +25 -61
  14. data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +29 -93
  15. data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +24 -158
  16. data/lib/google/cloud/osconfig/v1/osconfig_common_pb.rb +24 -7
  17. data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +25 -2
  18. data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -2
  19. data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +30 -88
  20. data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +27 -209
  21. data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +25 -92
  22. data/proto_docs/google/api/client.rb +67 -4
  23. data/proto_docs/google/api/field_behavior.rb +14 -0
  24. data/proto_docs/google/protobuf/any.rb +7 -4
  25. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  26. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9afe499fe8391116d334232b83af7b982c695f0875c49402b604907a6a5f01f2
4
- data.tar.gz: 647d10b6a59fb778e9bb060b19e148aa64716108123bb18ebce4015cb035cc23
3
+ metadata.gz: f1f1f02b02c25d64cdfef40d4e92f0edbf6c96c7e753614e5ca500a87df8893b
4
+ data.tar.gz: fb45e2677f6522572cebe77f3348ed92a1c94733a3fc5316fdf8ad166d82df30
5
5
  SHA512:
6
- metadata.gz: 1c9e1181ed87020efd253d2eadeca515847f24fc05d989407b2a61d5adc0f3586b2fd4124044ed75a097038c7772c691413fa95cf76cd95753bc944c3752e40c
7
- data.tar.gz: 30c44abc16663db2da447deb8d92078817ff6fc4fd38602ece15580e661d6e8e94b891861ee65e8f2c8c4104b471e07bbb8e27fded78bca0ecfd5dad7b098eda
6
+ metadata.gz: df4026979cfa477cda500603dd160d804233aa393923b427ab3aa36f8363d3160635dc4bb1a9995486c7acc8578967330acc1b96671bfd9e74bc44f4f643a99f
7
+ data.tar.gz: fbe2d97742b141d0b252ce77c50ea213ca86af0c4c00f93cf22b37fb1bfff13aafd96e22b1826762d4e90510c23f68ad378f567cf8f987456bf46cf77fea24dc
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
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
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://googleapis.dev/ruby/google-cloud-logging/latest)
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
 
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -146,7 +146,8 @@ module Google
146
146
  credentials: credentials,
147
147
  endpoint: @config.endpoint,
148
148
  channel_args: @config.channel_args,
149
- interceptors: @config.interceptors
149
+ interceptors: @config.interceptors,
150
+ channel_pool_config: @config.channel_pool
150
151
  )
151
152
  end
152
153
 
@@ -1292,9 +1293,9 @@ module Google
1292
1293
  # * (`String`) The path to a service account key file in JSON format
1293
1294
  # * (`Hash`) A service account key as a Hash
1294
1295
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1295
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1296
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1296
1297
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1297
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1298
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1298
1299
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1299
1300
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1300
1301
  # * (`nil`) indicating no credentials
@@ -1336,7 +1337,9 @@ module Google
1336
1337
  class Configuration
1337
1338
  extend ::Gapic::Config
1338
1339
 
1339
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1340
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1341
+
1342
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1340
1343
  config_attr :credentials, nil do |value|
1341
1344
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1342
1345
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1371,6 +1374,14 @@ module Google
1371
1374
  end
1372
1375
  end
1373
1376
 
1377
+ ##
1378
+ # Configuration for the channel pool
1379
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1380
+ #
1381
+ def channel_pool
1382
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1383
+ end
1384
+
1374
1385
  ##
1375
1386
  # Configuration RPC class for the OsConfigService API.
1376
1387
  #
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -189,6 +189,22 @@ module Google
189
189
  # @return [::Google::Cloud::OsConfig::V1::PatchJob]
190
190
  #
191
191
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
192
+ #
193
+ # @example Basic example
194
+ # require "google/cloud/os_config/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::OsConfig::V1::ExecutePatchJobRequest.new
201
+ #
202
+ # # Call the execute_patch_job method.
203
+ # result = client.execute_patch_job request
204
+ #
205
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
206
+ # p result
207
+ #
192
208
  def execute_patch_job request, options = nil
193
209
  raise ::ArgumentError, "request must be provided" if request.nil?
194
210
 
@@ -252,6 +268,22 @@ module Google
252
268
  # @return [::Google::Cloud::OsConfig::V1::PatchJob]
253
269
  #
254
270
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
271
+ #
272
+ # @example Basic example
273
+ # require "google/cloud/os_config/v1"
274
+ #
275
+ # # Create a client object. The client can be reused for multiple calls.
276
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
277
+ #
278
+ # # Create a request. To set request fields, pass in keyword arguments.
279
+ # request = Google::Cloud::OsConfig::V1::GetPatchJobRequest.new
280
+ #
281
+ # # Call the get_patch_job method.
282
+ # result = client.get_patch_job request
283
+ #
284
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
285
+ # p result
286
+ #
255
287
  def get_patch_job request, options = nil
256
288
  raise ::ArgumentError, "request must be provided" if request.nil?
257
289
 
@@ -315,6 +347,22 @@ module Google
315
347
  # @return [::Google::Cloud::OsConfig::V1::PatchJob]
316
348
  #
317
349
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
350
+ #
351
+ # @example Basic example
352
+ # require "google/cloud/os_config/v1"
353
+ #
354
+ # # Create a client object. The client can be reused for multiple calls.
355
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
356
+ #
357
+ # # Create a request. To set request fields, pass in keyword arguments.
358
+ # request = Google::Cloud::OsConfig::V1::CancelPatchJobRequest.new
359
+ #
360
+ # # Call the cancel_patch_job method.
361
+ # result = client.cancel_patch_job request
362
+ #
363
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
364
+ # p result
365
+ #
318
366
  def cancel_patch_job request, options = nil
319
367
  raise ::ArgumentError, "request must be provided" if request.nil?
320
368
 
@@ -386,6 +434,26 @@ module Google
386
434
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::PatchJob>]
387
435
  #
388
436
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
437
+ #
438
+ # @example Basic example
439
+ # require "google/cloud/os_config/v1"
440
+ #
441
+ # # Create a client object. The client can be reused for multiple calls.
442
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
443
+ #
444
+ # # Create a request. To set request fields, pass in keyword arguments.
445
+ # request = Google::Cloud::OsConfig::V1::ListPatchJobsRequest.new
446
+ #
447
+ # # Call the list_patch_jobs method.
448
+ # result = client.list_patch_jobs request
449
+ #
450
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
451
+ # # over elements, and API calls will be issued to fetch pages as needed.
452
+ # result.each do |item|
453
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJob.
454
+ # p item
455
+ # end
456
+ #
389
457
  def list_patch_jobs request, options = nil
390
458
  raise ::ArgumentError, "request must be provided" if request.nil?
391
459
 
@@ -459,6 +527,26 @@ module Google
459
527
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::PatchJobInstanceDetails>]
460
528
  #
461
529
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
530
+ #
531
+ # @example Basic example
532
+ # require "google/cloud/os_config/v1"
533
+ #
534
+ # # Create a client object. The client can be reused for multiple calls.
535
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
536
+ #
537
+ # # Create a request. To set request fields, pass in keyword arguments.
538
+ # request = Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsRequest.new
539
+ #
540
+ # # Call the list_patch_job_instance_details method.
541
+ # result = client.list_patch_job_instance_details request
542
+ #
543
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
544
+ # # over elements, and API calls will be issued to fetch pages as needed.
545
+ # result.each do |item|
546
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJobInstanceDetails.
547
+ # p item
548
+ # end
549
+ #
462
550
  def list_patch_job_instance_details request, options = nil
463
551
  raise ::ArgumentError, "request must be provided" if request.nil?
464
552
 
@@ -533,6 +621,22 @@ module Google
533
621
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
534
622
  #
535
623
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
624
+ #
625
+ # @example Basic example
626
+ # require "google/cloud/os_config/v1"
627
+ #
628
+ # # Create a client object. The client can be reused for multiple calls.
629
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
630
+ #
631
+ # # Create a request. To set request fields, pass in keyword arguments.
632
+ # request = Google::Cloud::OsConfig::V1::CreatePatchDeploymentRequest.new
633
+ #
634
+ # # Call the create_patch_deployment method.
635
+ # result = client.create_patch_deployment request
636
+ #
637
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
638
+ # p result
639
+ #
536
640
  def create_patch_deployment request, options = nil
537
641
  raise ::ArgumentError, "request must be provided" if request.nil?
538
642
 
@@ -596,6 +700,22 @@ module Google
596
700
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
597
701
  #
598
702
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
703
+ #
704
+ # @example Basic example
705
+ # require "google/cloud/os_config/v1"
706
+ #
707
+ # # Create a client object. The client can be reused for multiple calls.
708
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
709
+ #
710
+ # # Create a request. To set request fields, pass in keyword arguments.
711
+ # request = Google::Cloud::OsConfig::V1::GetPatchDeploymentRequest.new
712
+ #
713
+ # # Call the get_patch_deployment method.
714
+ # result = client.get_patch_deployment request
715
+ #
716
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
717
+ # p result
718
+ #
599
719
  def get_patch_deployment request, options = nil
600
720
  raise ::ArgumentError, "request must be provided" if request.nil?
601
721
 
@@ -665,6 +785,26 @@ module Google
665
785
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::PatchDeployment>]
666
786
  #
667
787
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
788
+ #
789
+ # @example Basic example
790
+ # require "google/cloud/os_config/v1"
791
+ #
792
+ # # Create a client object. The client can be reused for multiple calls.
793
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
794
+ #
795
+ # # Create a request. To set request fields, pass in keyword arguments.
796
+ # request = Google::Cloud::OsConfig::V1::ListPatchDeploymentsRequest.new
797
+ #
798
+ # # Call the list_patch_deployments method.
799
+ # result = client.list_patch_deployments request
800
+ #
801
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
802
+ # # over elements, and API calls will be issued to fetch pages as needed.
803
+ # result.each do |item|
804
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchDeployment.
805
+ # p item
806
+ # end
807
+ #
668
808
  def list_patch_deployments request, options = nil
669
809
  raise ::ArgumentError, "request must be provided" if request.nil?
670
810
 
@@ -729,6 +869,22 @@ module Google
729
869
  # @return [::Google::Protobuf::Empty]
730
870
  #
731
871
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
872
+ #
873
+ # @example Basic example
874
+ # require "google/cloud/os_config/v1"
875
+ #
876
+ # # Create a client object. The client can be reused for multiple calls.
877
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
878
+ #
879
+ # # Create a request. To set request fields, pass in keyword arguments.
880
+ # request = Google::Cloud::OsConfig::V1::DeletePatchDeploymentRequest.new
881
+ #
882
+ # # Call the delete_patch_deployment method.
883
+ # result = client.delete_patch_deployment request
884
+ #
885
+ # # The returned object is of type Google::Protobuf::Empty.
886
+ # p result
887
+ #
732
888
  def delete_patch_deployment request, options = nil
733
889
  raise ::ArgumentError, "request must be provided" if request.nil?
734
890
 
@@ -794,6 +950,22 @@ module Google
794
950
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
795
951
  #
796
952
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
953
+ #
954
+ # @example Basic example
955
+ # require "google/cloud/os_config/v1"
956
+ #
957
+ # # Create a client object. The client can be reused for multiple calls.
958
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
959
+ #
960
+ # # Create a request. To set request fields, pass in keyword arguments.
961
+ # request = Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest.new
962
+ #
963
+ # # Call the update_patch_deployment method.
964
+ # result = client.update_patch_deployment request
965
+ #
966
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
967
+ # p result
968
+ #
797
969
  def update_patch_deployment request, options = nil
798
970
  raise ::ArgumentError, "request must be provided" if request.nil?
799
971
 
@@ -858,6 +1030,22 @@ module Google
858
1030
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
859
1031
  #
860
1032
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1033
+ #
1034
+ # @example Basic example
1035
+ # require "google/cloud/os_config/v1"
1036
+ #
1037
+ # # Create a client object. The client can be reused for multiple calls.
1038
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
1039
+ #
1040
+ # # Create a request. To set request fields, pass in keyword arguments.
1041
+ # request = Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest.new
1042
+ #
1043
+ # # Call the pause_patch_deployment method.
1044
+ # result = client.pause_patch_deployment request
1045
+ #
1046
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
1047
+ # p result
1048
+ #
861
1049
  def pause_patch_deployment request, options = nil
862
1050
  raise ::ArgumentError, "request must be provided" if request.nil?
863
1051
 
@@ -922,6 +1110,22 @@ module Google
922
1110
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
923
1111
  #
924
1112
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1113
+ #
1114
+ # @example Basic example
1115
+ # require "google/cloud/os_config/v1"
1116
+ #
1117
+ # # Create a client object. The client can be reused for multiple calls.
1118
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
1119
+ #
1120
+ # # Create a request. To set request fields, pass in keyword arguments.
1121
+ # request = Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest.new
1122
+ #
1123
+ # # Call the resume_patch_deployment method.
1124
+ # result = client.resume_patch_deployment request
1125
+ #
1126
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
1127
+ # p result
1128
+ #
925
1129
  def resume_patch_deployment request, options = nil
926
1130
  raise ::ArgumentError, "request must be provided" if request.nil?
927
1131
 
@@ -995,9 +1199,9 @@ module Google
995
1199
  # * (`String`) The path to a service account key file in JSON format
996
1200
  # * (`Hash`) A service account key as a Hash
997
1201
  # * (`Google::Auth::Credentials`) A googleauth credentials object
998
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1202
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
999
1203
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1000
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1204
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1001
1205
  # * (`nil`) indicating no credentials
1002
1206
  # @return [::Object]
1003
1207
  # @!attribute [rw] scope
@@ -1030,7 +1234,9 @@ module Google
1030
1234
  class Configuration
1031
1235
  extend ::Gapic::Config
1032
1236
 
1033
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1237
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1238
+
1239
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1034
1240
  config_attr :credentials, nil do |value|
1035
1241
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1036
1242
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_execute_patch_job_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_patch_job_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_cancel_patch_job_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_list_patch_jobs_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_list_patch_job_instance_details_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_create_patch_deployment_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
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_get_patch_deployment_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_list_patch_deployments_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_patch_deployment_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_update_patch_deployment_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_pause_patch_deployment_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_resume_patch_deployment_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -152,7 +152,8 @@ module Google
152
152
  credentials: credentials,
153
153
  endpoint: @config.endpoint,
154
154
  channel_args: @config.channel_args,
155
- interceptors: @config.interceptors
155
+ interceptors: @config.interceptors,
156
+ channel_pool_config: @config.channel_pool
156
157
  )
157
158
  end
158
159
 
@@ -1422,9 +1423,9 @@ module Google
1422
1423
  # * (`String`) The path to a service account key file in JSON format
1423
1424
  # * (`Hash`) A service account key as a Hash
1424
1425
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1425
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1426
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1426
1427
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1427
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1428
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1428
1429
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1429
1430
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1430
1431
  # * (`nil`) indicating no credentials
@@ -1466,7 +1467,9 @@ module Google
1466
1467
  class Configuration
1467
1468
  extend ::Gapic::Config
1468
1469
 
1469
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1470
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1471
+
1472
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1470
1473
  config_attr :credentials, nil do |value|
1471
1474
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1472
1475
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1501,6 +1504,14 @@ module Google
1501
1504
  end
1502
1505
  end
1503
1506
 
1507
+ ##
1508
+ # Configuration for the channel pool
1509
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1510
+ #
1511
+ def channel_pool
1512
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1513
+ end
1514
+
1504
1515
  ##
1505
1516
  # Configuration RPC class for the OsConfigZonalService API.
1506
1517
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -620,9 +621,9 @@ module Google
620
621
  # * (`String`) The path to a service account key file in JSON format
621
622
  # * (`Hash`) A service account key as a Hash
622
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
624
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
626
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
629
  # * (`nil`) indicating no credentials
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "osconfig.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #