google-cloud-os_config-v1alpha 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c95fc1a54458bf0266685c362ed0a9374073d4807c92880170bf0dd2ed7041
4
- data.tar.gz: e283e62cb4b00f4a186686e389dc60d84bd76c5a5280a6d81f8e7be17af0d24d
3
+ metadata.gz: de7976e9c733f675064af2746870a649f6d9f48cd87b76a54b83e51cae2edaa0
4
+ data.tar.gz: 93ed91e61d5c3e1eafbaff29ab6d646edb39416de94cf6148866e5203ed52b21
5
5
  SHA512:
6
- metadata.gz: 161d2e0760399789104708df244609dc9c5f12a53bd5eb9f749174cb747a3bb4e5cd5444029ed06945db66d2a06650ed685ceeee8aaa63e6d1f2caeba69ab57a
7
- data.tar.gz: c588603d93ff23248fdb41f83a76e78c5b3e70095b03d2cfc06329958d9643b75df284c095c8366616a4e3e292cf1895408de1e533f2d29ff60c1083cc799b0d
6
+ metadata.gz: a325ca5c8f2cadd5ad3732584138709b225c818a6f418e5211235e7aea8de3bd113086a3780e36b10e77ff2191ce73558fbd61da2f7e677a26f57bacb9c4d774
7
+ data.tar.gz: a4237bc64673240c8135eb1eea69c614402aaed12ad57d552eed77e7cb2a0d5f70675981d2f0542d7315cb3414c5f45788643ae625428d94e823009be35443d7
@@ -44,13 +44,12 @@ module Google
44
44
  # See {::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::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 OsConfigZonalService clients:
50
- #
51
- # ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.configure do |config|
52
- # config.timeout = 10.0
53
- # end
49
+ # # Modify the configuration for all OsConfigZonalService clients
50
+ # ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::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 OsConfigZonalService client object.
104
103
  #
105
- # ## Examples
106
- #
107
- # To create a new OsConfigZonalService client with the default
108
- # configuration:
109
- #
110
- # client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
104
+ # @example
111
105
  #
112
- # To create a new OsConfigZonalService client with a custom
113
- # configuration:
106
+ # # Create a client using the default configuration
107
+ # client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
114
108
  #
115
- # client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new do |config|
116
- # config.timeout = 10.0
117
- # end
109
+ # # Create a client using a custom configuration
110
+ # client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new do |config|
111
+ # config.timeout = 10.0
112
+ # end
118
113
  #
119
114
  # @yield [config] Configure the OsConfigZonalService 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
@@ -245,7 +239,9 @@ module Google
245
239
  options.apply_defaults timeout: @config.rpcs.create_os_policy_assignment.timeout,
246
240
  metadata: metadata,
247
241
  retry_policy: @config.rpcs.create_os_policy_assignment.retry_policy
248
- options.apply_defaults metadata: @config.metadata,
242
+
243
+ options.apply_defaults timeout: @config.timeout,
244
+ metadata: @config.metadata,
249
245
  retry_policy: @config.retry_policy
250
246
 
251
247
  @os_config_zonal_service_stub.call_rpc :create_os_policy_assignment, request, options: options do |response, operation|
@@ -322,7 +318,9 @@ module Google
322
318
  options.apply_defaults timeout: @config.rpcs.update_os_policy_assignment.timeout,
323
319
  metadata: metadata,
324
320
  retry_policy: @config.rpcs.update_os_policy_assignment.retry_policy
325
- options.apply_defaults metadata: @config.metadata,
321
+
322
+ options.apply_defaults timeout: @config.timeout,
323
+ metadata: @config.metadata,
326
324
  retry_policy: @config.retry_policy
327
325
 
328
326
  @os_config_zonal_service_stub.call_rpc :update_os_policy_assignment, request, options: options do |response, operation|
@@ -396,7 +394,9 @@ module Google
396
394
  options.apply_defaults timeout: @config.rpcs.get_os_policy_assignment.timeout,
397
395
  metadata: metadata,
398
396
  retry_policy: @config.rpcs.get_os_policy_assignment.retry_policy
399
- options.apply_defaults metadata: @config.metadata,
397
+
398
+ options.apply_defaults timeout: @config.timeout,
399
+ metadata: @config.metadata,
400
400
  retry_policy: @config.retry_policy
401
401
 
402
402
  @os_config_zonal_service_stub.call_rpc :get_os_policy_assignment, request, options: options do |response, operation|
@@ -470,7 +470,9 @@ module Google
470
470
  options.apply_defaults timeout: @config.rpcs.list_os_policy_assignments.timeout,
471
471
  metadata: metadata,
472
472
  retry_policy: @config.rpcs.list_os_policy_assignments.retry_policy
473
- options.apply_defaults metadata: @config.metadata,
473
+
474
+ options.apply_defaults timeout: @config.timeout,
475
+ metadata: @config.metadata,
474
476
  retry_policy: @config.retry_policy
475
477
 
476
478
  @os_config_zonal_service_stub.call_rpc :list_os_policy_assignments, request, options: options do |response, operation|
@@ -543,7 +545,9 @@ module Google
543
545
  options.apply_defaults timeout: @config.rpcs.list_os_policy_assignment_revisions.timeout,
544
546
  metadata: metadata,
545
547
  retry_policy: @config.rpcs.list_os_policy_assignment_revisions.retry_policy
546
- options.apply_defaults metadata: @config.metadata,
548
+
549
+ options.apply_defaults timeout: @config.timeout,
550
+ metadata: @config.metadata,
547
551
  retry_policy: @config.retry_policy
548
552
 
549
553
  @os_config_zonal_service_stub.call_rpc :list_os_policy_assignment_revisions, request, options: options do |response, operation|
@@ -621,7 +625,9 @@ module Google
621
625
  options.apply_defaults timeout: @config.rpcs.delete_os_policy_assignment.timeout,
622
626
  metadata: metadata,
623
627
  retry_policy: @config.rpcs.delete_os_policy_assignment.retry_policy
624
- options.apply_defaults metadata: @config.metadata,
628
+
629
+ options.apply_defaults timeout: @config.timeout,
630
+ metadata: @config.metadata,
625
631
  retry_policy: @config.retry_policy
626
632
 
627
633
  @os_config_zonal_service_stub.call_rpc :delete_os_policy_assignment, request, options: options do |response, operation|
@@ -697,7 +703,9 @@ module Google
697
703
  options.apply_defaults timeout: @config.rpcs.get_instance_os_policies_compliance.timeout,
698
704
  metadata: metadata,
699
705
  retry_policy: @config.rpcs.get_instance_os_policies_compliance.retry_policy
700
- options.apply_defaults metadata: @config.metadata,
706
+
707
+ options.apply_defaults timeout: @config.timeout,
708
+ metadata: @config.metadata,
701
709
  retry_policy: @config.retry_policy
702
710
 
703
711
  @os_config_zonal_service_stub.call_rpc :get_instance_os_policies_compliance, request, options: options do |response, operation|
@@ -778,7 +786,9 @@ module Google
778
786
  options.apply_defaults timeout: @config.rpcs.list_instance_os_policies_compliances.timeout,
779
787
  metadata: metadata,
780
788
  retry_policy: @config.rpcs.list_instance_os_policies_compliances.retry_policy
781
- options.apply_defaults metadata: @config.metadata,
789
+
790
+ options.apply_defaults timeout: @config.timeout,
791
+ metadata: @config.metadata,
782
792
  retry_policy: @config.retry_policy
783
793
 
784
794
  @os_config_zonal_service_stub.call_rpc :list_instance_os_policies_compliances, request, options: options do |response, operation|
@@ -856,7 +866,9 @@ module Google
856
866
  options.apply_defaults timeout: @config.rpcs.get_inventory.timeout,
857
867
  metadata: metadata,
858
868
  retry_policy: @config.rpcs.get_inventory.retry_policy
859
- options.apply_defaults metadata: @config.metadata,
869
+
870
+ options.apply_defaults timeout: @config.timeout,
871
+ metadata: @config.metadata,
860
872
  retry_policy: @config.retry_policy
861
873
 
862
874
  @os_config_zonal_service_stub.call_rpc :get_inventory, request, options: options do |response, operation|
@@ -940,7 +952,9 @@ module Google
940
952
  options.apply_defaults timeout: @config.rpcs.list_inventories.timeout,
941
953
  metadata: metadata,
942
954
  retry_policy: @config.rpcs.list_inventories.retry_policy
943
- options.apply_defaults metadata: @config.metadata,
955
+
956
+ options.apply_defaults timeout: @config.timeout,
957
+ metadata: @config.metadata,
944
958
  retry_policy: @config.retry_policy
945
959
 
946
960
  @os_config_zonal_service_stub.call_rpc :list_inventories, request, options: options do |response, operation|
@@ -1015,7 +1029,9 @@ module Google
1015
1029
  options.apply_defaults timeout: @config.rpcs.get_vulnerability_report.timeout,
1016
1030
  metadata: metadata,
1017
1031
  retry_policy: @config.rpcs.get_vulnerability_report.retry_policy
1018
- options.apply_defaults metadata: @config.metadata,
1032
+
1033
+ options.apply_defaults timeout: @config.timeout,
1034
+ metadata: @config.metadata,
1019
1035
  retry_policy: @config.retry_policy
1020
1036
 
1021
1037
  @os_config_zonal_service_stub.call_rpc :get_vulnerability_report, request, options: options do |response, operation|
@@ -1096,7 +1112,9 @@ module Google
1096
1112
  options.apply_defaults timeout: @config.rpcs.list_vulnerability_reports.timeout,
1097
1113
  metadata: metadata,
1098
1114
  retry_policy: @config.rpcs.list_vulnerability_reports.retry_policy
1099
- options.apply_defaults metadata: @config.metadata,
1115
+
1116
+ options.apply_defaults timeout: @config.timeout,
1117
+ metadata: @config.metadata,
1100
1118
  retry_policy: @config.retry_policy
1101
1119
 
1102
1120
  @os_config_zonal_service_stub.call_rpc :list_vulnerability_reports, request, options: options do |response, operation|
@@ -1121,22 +1139,21 @@ module Google
1121
1139
  # Configuration can be applied globally to all clients, or to a single client
1122
1140
  # on construction.
1123
1141
  #
1124
- # # Examples
1125
- #
1126
- # To modify the global config, setting the timeout for create_os_policy_assignment
1127
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1128
- #
1129
- # ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.configure do |config|
1130
- # config.timeout = 10.0
1131
- # config.rpcs.create_os_policy_assignment.timeout = 20.0
1132
- # end
1133
- #
1134
- # To apply the above configuration only to a new client:
1135
- #
1136
- # client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new do |config|
1137
- # config.timeout = 10.0
1138
- # config.rpcs.create_os_policy_assignment.timeout = 20.0
1139
- # end
1142
+ # @example
1143
+ #
1144
+ # # Modify the global config, setting the timeout for
1145
+ # # create_os_policy_assignment to 20 seconds,
1146
+ # # and all remaining timeouts to 10 seconds.
1147
+ # ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.configure do |config|
1148
+ # config.timeout = 10.0
1149
+ # config.rpcs.create_os_policy_assignment.timeout = 20.0
1150
+ # end
1151
+ #
1152
+ # # Apply the above configuration only to a new client.
1153
+ # client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new do |config|
1154
+ # config.timeout = 10.0
1155
+ # config.rpcs.create_os_policy_assignment.timeout = 20.0
1156
+ # end
1140
1157
  #
1141
1158
  # @!attribute [rw] endpoint
1142
1159
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # 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 V1alpha
24
- VERSION = "0.1.1"
24
+ VERSION = "0.1.2"
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-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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