google-cloud-os_config-v1 0.4.2 → 0.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef4008c275fa80219d26e3871e4e780acf551365f250eae0504c1238ca25dd0a
4
- data.tar.gz: 1a57f3911db1948be4c8b9a75286dda9cb9144f48f4a4220d3ea82d57230af36
3
+ metadata.gz: e4284acf923425f615454a1530f3fe43e3e1562b668cb3d64493b1c298990706
4
+ data.tar.gz: 86f7de19237ba378c5ca748ec64ef76d28a5114bec86b73134cce3a13d07337b
5
5
  SHA512:
6
- metadata.gz: 9592264d6d741d06a06b11e3c87eb0fdbf055884b61a80a9aa1bfa0cd423c67d9d3580656a5fdaaa98b72db4e2bfe8c76c76ca8c054c463e2c6f7dd3cabe01b8
7
- data.tar.gz: d102cc49ff30bc034810ca5737abcd5e8f86389ae0f3e3799847899bc149b87adedd185db56f13ae32187413511c3b38688694ad44a37467fead305216d63d57
6
+ metadata.gz: bc3c3a3b5a19ad69d08b077e9efa075fff1504a126e21f957a9fd740cf9d191ac54bf2e36849ea39ba395735e4061c769cf6fb4cc136c4995c6450d1aa291ce2
7
+ data.tar.gz: b925c1ba6a1a2a307de6a72aade14edfb5af0b2388911f66c66f254e2debc681e902df6280cc3a21cdae6167a021a13333388a29ea1f0d34cb02453457b49d9e
@@ -44,13 +44,12 @@ module Google
44
44
  # See {::Google::Cloud::OsConfig::V1::OsConfigService::Client::Configuration}
45
45
  # for a description of the configuration fields.
46
46
  #
47
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all OsConfigService clients:
50
- #
51
- # ::Google::Cloud::OsConfig::V1::OsConfigService::Client.configure do |config|
52
- # config.timeout = 10.0
53
- # end
49
+ # # Modify the configuration for all OsConfigService clients
50
+ # ::Google::Cloud::OsConfig::V1::OsConfigService::Client.configure do |config|
51
+ # config.timeout = 10.0
52
+ # end
54
53
  #
55
54
  # @yield [config] Configure the Client client.
56
55
  # @yieldparam config [Client::Configuration]
@@ -102,19 +101,15 @@ module Google
102
101
  ##
103
102
  # Create a new OsConfigService client object.
104
103
  #
105
- # ## Examples
106
- #
107
- # To create a new OsConfigService client with the default
108
- # configuration:
104
+ # @example
109
105
  #
110
- # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new
106
+ # # Create a client using the default configuration
107
+ # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new
111
108
  #
112
- # To create a new OsConfigService client with a custom
113
- # configuration:
114
- #
115
- # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new do |config|
116
- # config.timeout = 10.0
117
- # end
109
+ # # Create a client using a custom configuration
110
+ # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new do |config|
111
+ # config.timeout = 10.0
112
+ # end
118
113
  #
119
114
  # @yield [config] Configure the OsConfigService client.
120
115
  # @yieldparam config [Client::Configuration]
@@ -134,10 +129,9 @@ module Google
134
129
 
135
130
  # Create credentials
136
131
  credentials = @config.credentials
137
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
132
+ # Use self-signed JWT if the endpoint is unchanged from default,
138
133
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
- @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
141
135
  !@config.endpoint.split(".").first.include?("-")
142
136
  credentials ||= Credentials.default scope: @config.scope,
143
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -232,7 +226,9 @@ module Google
232
226
  options.apply_defaults timeout: @config.rpcs.execute_patch_job.timeout,
233
227
  metadata: metadata,
234
228
  retry_policy: @config.rpcs.execute_patch_job.retry_policy
235
- options.apply_defaults metadata: @config.metadata,
229
+
230
+ options.apply_defaults timeout: @config.timeout,
231
+ metadata: @config.metadata,
236
232
  retry_policy: @config.retry_policy
237
233
 
238
234
  @os_config_service_stub.call_rpc :execute_patch_job, request, options: options do |response, operation|
@@ -299,7 +295,9 @@ module Google
299
295
  options.apply_defaults timeout: @config.rpcs.get_patch_job.timeout,
300
296
  metadata: metadata,
301
297
  retry_policy: @config.rpcs.get_patch_job.retry_policy
302
- options.apply_defaults metadata: @config.metadata,
298
+
299
+ options.apply_defaults timeout: @config.timeout,
300
+ metadata: @config.metadata,
303
301
  retry_policy: @config.retry_policy
304
302
 
305
303
  @os_config_service_stub.call_rpc :get_patch_job, request, options: options do |response, operation|
@@ -366,7 +364,9 @@ module Google
366
364
  options.apply_defaults timeout: @config.rpcs.cancel_patch_job.timeout,
367
365
  metadata: metadata,
368
366
  retry_policy: @config.rpcs.cancel_patch_job.retry_policy
369
- options.apply_defaults metadata: @config.metadata,
367
+
368
+ options.apply_defaults timeout: @config.timeout,
369
+ metadata: @config.metadata,
370
370
  retry_policy: @config.retry_policy
371
371
 
372
372
  @os_config_service_stub.call_rpc :cancel_patch_job, request, options: options do |response, operation|
@@ -441,7 +441,9 @@ module Google
441
441
  options.apply_defaults timeout: @config.rpcs.list_patch_jobs.timeout,
442
442
  metadata: metadata,
443
443
  retry_policy: @config.rpcs.list_patch_jobs.retry_policy
444
- options.apply_defaults metadata: @config.metadata,
444
+
445
+ options.apply_defaults timeout: @config.timeout,
446
+ metadata: @config.metadata,
445
447
  retry_policy: @config.retry_policy
446
448
 
447
449
  @os_config_service_stub.call_rpc :list_patch_jobs, request, options: options do |response, operation|
@@ -518,7 +520,9 @@ module Google
518
520
  options.apply_defaults timeout: @config.rpcs.list_patch_job_instance_details.timeout,
519
521
  metadata: metadata,
520
522
  retry_policy: @config.rpcs.list_patch_job_instance_details.retry_policy
521
- options.apply_defaults metadata: @config.metadata,
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
522
526
  retry_policy: @config.retry_policy
523
527
 
524
528
  @os_config_service_stub.call_rpc :list_patch_job_instance_details, request, options: options do |response, operation|
@@ -596,7 +600,9 @@ module Google
596
600
  options.apply_defaults timeout: @config.rpcs.create_patch_deployment.timeout,
597
601
  metadata: metadata,
598
602
  retry_policy: @config.rpcs.create_patch_deployment.retry_policy
599
- options.apply_defaults metadata: @config.metadata,
603
+
604
+ options.apply_defaults timeout: @config.timeout,
605
+ metadata: @config.metadata,
600
606
  retry_policy: @config.retry_policy
601
607
 
602
608
  @os_config_service_stub.call_rpc :create_patch_deployment, request, options: options do |response, operation|
@@ -663,7 +669,9 @@ module Google
663
669
  options.apply_defaults timeout: @config.rpcs.get_patch_deployment.timeout,
664
670
  metadata: metadata,
665
671
  retry_policy: @config.rpcs.get_patch_deployment.retry_policy
666
- options.apply_defaults metadata: @config.metadata,
672
+
673
+ options.apply_defaults timeout: @config.timeout,
674
+ metadata: @config.metadata,
667
675
  retry_policy: @config.retry_policy
668
676
 
669
677
  @os_config_service_stub.call_rpc :get_patch_deployment, request, options: options do |response, operation|
@@ -736,7 +744,9 @@ module Google
736
744
  options.apply_defaults timeout: @config.rpcs.list_patch_deployments.timeout,
737
745
  metadata: metadata,
738
746
  retry_policy: @config.rpcs.list_patch_deployments.retry_policy
739
- options.apply_defaults metadata: @config.metadata,
747
+
748
+ options.apply_defaults timeout: @config.timeout,
749
+ metadata: @config.metadata,
740
750
  retry_policy: @config.retry_policy
741
751
 
742
752
  @os_config_service_stub.call_rpc :list_patch_deployments, request, options: options do |response, operation|
@@ -804,7 +814,9 @@ module Google
804
814
  options.apply_defaults timeout: @config.rpcs.delete_patch_deployment.timeout,
805
815
  metadata: metadata,
806
816
  retry_policy: @config.rpcs.delete_patch_deployment.retry_policy
807
- options.apply_defaults metadata: @config.metadata,
817
+
818
+ options.apply_defaults timeout: @config.timeout,
819
+ metadata: @config.metadata,
808
820
  retry_policy: @config.retry_policy
809
821
 
810
822
  @os_config_service_stub.call_rpc :delete_patch_deployment, request, options: options do |response, operation|
@@ -828,22 +840,21 @@ module Google
828
840
  # Configuration can be applied globally to all clients, or to a single client
829
841
  # on construction.
830
842
  #
831
- # # Examples
832
- #
833
- # To modify the global config, setting the timeout for execute_patch_job
834
- # to 20 seconds, and all remaining timeouts to 10 seconds:
835
- #
836
- # ::Google::Cloud::OsConfig::V1::OsConfigService::Client.configure do |config|
837
- # config.timeout = 10.0
838
- # config.rpcs.execute_patch_job.timeout = 20.0
839
- # end
840
- #
841
- # To apply the above configuration only to a new client:
842
- #
843
- # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new do |config|
844
- # config.timeout = 10.0
845
- # config.rpcs.execute_patch_job.timeout = 20.0
846
- # end
843
+ # @example
844
+ #
845
+ # # Modify the global config, setting the timeout for
846
+ # # execute_patch_job to 20 seconds,
847
+ # # and all remaining timeouts to 10 seconds.
848
+ # ::Google::Cloud::OsConfig::V1::OsConfigService::Client.configure do |config|
849
+ # config.timeout = 10.0
850
+ # config.rpcs.execute_patch_job.timeout = 20.0
851
+ # end
852
+ #
853
+ # # Apply the above configuration only to a new client.
854
+ # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new do |config|
855
+ # config.timeout = 10.0
856
+ # config.rpcs.execute_patch_job.timeout = 20.0
857
+ # end
847
858
  #
848
859
  # @!attribute [rw] endpoint
849
860
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-os_config-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a