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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de7976e9c733f675064af2746870a649f6d9f48cd87b76a54b83e51cae2edaa0
|
4
|
+
data.tar.gz: 93ed91e61d5c3e1eafbaff29ab6d646edb39416de94cf6148866e5203ed52b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
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
|
-
#
|
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
|
-
#
|
113
|
-
#
|
106
|
+
# # Create a client using the default configuration
|
107
|
+
# client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
|
114
108
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
1125
|
-
#
|
1126
|
-
#
|
1127
|
-
# to 20 seconds,
|
1128
|
-
#
|
1129
|
-
#
|
1130
|
-
#
|
1131
|
-
#
|
1132
|
-
#
|
1133
|
-
#
|
1134
|
-
#
|
1135
|
-
#
|
1136
|
-
#
|
1137
|
-
#
|
1138
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|