google-cloud-web_security_scanner-v1beta 0.3.2 → 0.3.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: 1c0c03f754a5a047dce865b1c803299e27fe057354c15ad0086e7d7152107072
4
- data.tar.gz: 425fbad304217a0475c2f72947e919b02043e5a20390ee08b81c9f4c6cac30d9
3
+ metadata.gz: cdcf0bbb6b7e5064bbe86afd2236b7367722e0e8e40c6467ee8517a2afa46ded
4
+ data.tar.gz: 6d89176e96f6ef5fcd3b978c44f29847b72f5bce69d2b8bcf713d26eb0a6cae2
5
5
  SHA512:
6
- metadata.gz: 5c3dc786996f5759d6827ba891babde9424f50d2ced3d26f7f77c04d39c58426f5343ade57c6014e95bec9c6a5e1744ca4032698e51b0fdc253d6ee66da6b189
7
- data.tar.gz: 311ea465a9132528860a61c085ed1f530527295e734547ca92876641e0949e2d94c28826ff0159dd36dc70b9ae2b3a42adc8096e79e0f916c914a9822afd061b
6
+ metadata.gz: 6eb2e8ca334670456d46d640d314b5e23df4c1d8212a4b7cf509a594893e2ff625a2acb0c74595b4ebeb13223884ce7fab76979954e74a95658074c0bac71347
7
+ data.tar.gz: e2be17a437dfef65cc0dea8b300b1169b0838f59db59b74631df1d092e1c6444ee19dcd38c718046c5addfac34c3b1e05c96e881317afe14292e2c090ccb5ec5
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1beta
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
@@ -43,13 +43,12 @@ module Google
43
43
  # See {::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client::Configuration}
44
44
  # for a description of the configuration fields.
45
45
  #
46
- # ## Example
46
+ # @example
47
47
  #
48
- # To modify the configuration for all WebSecurityScanner clients:
49
- #
50
- # ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.configure do |config|
51
- # config.timeout = 10.0
52
- # end
48
+ # # Modify the configuration for all WebSecurityScanner clients
49
+ # ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
53
52
  #
54
53
  # @yield [config] Configure the Client client.
55
54
  # @yieldparam config [Client::Configuration]
@@ -149,19 +148,15 @@ module Google
149
148
  ##
150
149
  # Create a new WebSecurityScanner client object.
151
150
  #
152
- # ## Examples
153
- #
154
- # To create a new WebSecurityScanner client with the default
155
- # configuration:
156
- #
157
- # client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
151
+ # @example
158
152
  #
159
- # To create a new WebSecurityScanner client with a custom
160
- # configuration:
153
+ # # Create a client using the default configuration
154
+ # client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
161
155
  #
162
- # client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new do |config|
163
- # config.timeout = 10.0
164
- # end
156
+ # # Create a client using a custom configuration
157
+ # client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new do |config|
158
+ # config.timeout = 10.0
159
+ # end
165
160
  #
166
161
  # @yield [config] Configure the WebSecurityScanner client.
167
162
  # @yieldparam config [Client::Configuration]
@@ -181,10 +176,9 @@ module Google
181
176
 
182
177
  # Create credentials
183
178
  credentials = @config.credentials
184
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
179
+ # Use self-signed JWT if the endpoint is unchanged from default,
185
180
  # but only if the default endpoint does not have a region prefix.
186
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
187
- @config.endpoint == Client.configure.endpoint &&
181
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
188
182
  !@config.endpoint.split(".").first.include?("-")
189
183
  credentials ||= Credentials.default scope: @config.scope,
190
184
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -263,7 +257,9 @@ module Google
263
257
  options.apply_defaults timeout: @config.rpcs.create_scan_config.timeout,
264
258
  metadata: metadata,
265
259
  retry_policy: @config.rpcs.create_scan_config.retry_policy
266
- options.apply_defaults metadata: @config.metadata,
260
+
261
+ options.apply_defaults timeout: @config.timeout,
262
+ metadata: @config.metadata,
267
263
  retry_policy: @config.retry_policy
268
264
 
269
265
  @web_security_scanner_stub.call_rpc :create_scan_config, request, options: options do |response, operation|
@@ -330,7 +326,9 @@ module Google
330
326
  options.apply_defaults timeout: @config.rpcs.delete_scan_config.timeout,
331
327
  metadata: metadata,
332
328
  retry_policy: @config.rpcs.delete_scan_config.retry_policy
333
- options.apply_defaults metadata: @config.metadata,
329
+
330
+ options.apply_defaults timeout: @config.timeout,
331
+ metadata: @config.metadata,
334
332
  retry_policy: @config.retry_policy
335
333
 
336
334
  @web_security_scanner_stub.call_rpc :delete_scan_config, request, options: options do |response, operation|
@@ -397,7 +395,9 @@ module Google
397
395
  options.apply_defaults timeout: @config.rpcs.get_scan_config.timeout,
398
396
  metadata: metadata,
399
397
  retry_policy: @config.rpcs.get_scan_config.retry_policy
400
- options.apply_defaults metadata: @config.metadata,
398
+
399
+ options.apply_defaults timeout: @config.timeout,
400
+ metadata: @config.metadata,
401
401
  retry_policy: @config.retry_policy
402
402
 
403
403
  @web_security_scanner_stub.call_rpc :get_scan_config, request, options: options do |response, operation|
@@ -472,7 +472,9 @@ module Google
472
472
  options.apply_defaults timeout: @config.rpcs.list_scan_configs.timeout,
473
473
  metadata: metadata,
474
474
  retry_policy: @config.rpcs.list_scan_configs.retry_policy
475
- options.apply_defaults metadata: @config.metadata,
475
+
476
+ options.apply_defaults timeout: @config.timeout,
477
+ metadata: @config.metadata,
476
478
  retry_policy: @config.retry_policy
477
479
 
478
480
  @web_security_scanner_stub.call_rpc :list_scan_configs, request, options: options do |response, operation|
@@ -545,7 +547,9 @@ module Google
545
547
  options.apply_defaults timeout: @config.rpcs.update_scan_config.timeout,
546
548
  metadata: metadata,
547
549
  retry_policy: @config.rpcs.update_scan_config.retry_policy
548
- options.apply_defaults metadata: @config.metadata,
550
+
551
+ options.apply_defaults timeout: @config.timeout,
552
+ metadata: @config.metadata,
549
553
  retry_policy: @config.retry_policy
550
554
 
551
555
  @web_security_scanner_stub.call_rpc :update_scan_config, request, options: options do |response, operation|
@@ -612,7 +616,9 @@ module Google
612
616
  options.apply_defaults timeout: @config.rpcs.start_scan_run.timeout,
613
617
  metadata: metadata,
614
618
  retry_policy: @config.rpcs.start_scan_run.retry_policy
615
- options.apply_defaults metadata: @config.metadata,
619
+
620
+ options.apply_defaults timeout: @config.timeout,
621
+ metadata: @config.metadata,
616
622
  retry_policy: @config.retry_policy
617
623
 
618
624
  @web_security_scanner_stub.call_rpc :start_scan_run, request, options: options do |response, operation|
@@ -680,7 +686,9 @@ module Google
680
686
  options.apply_defaults timeout: @config.rpcs.get_scan_run.timeout,
681
687
  metadata: metadata,
682
688
  retry_policy: @config.rpcs.get_scan_run.retry_policy
683
- options.apply_defaults metadata: @config.metadata,
689
+
690
+ options.apply_defaults timeout: @config.timeout,
691
+ metadata: @config.metadata,
684
692
  retry_policy: @config.retry_policy
685
693
 
686
694
  @web_security_scanner_stub.call_rpc :get_scan_run, request, options: options do |response, operation|
@@ -756,7 +764,9 @@ module Google
756
764
  options.apply_defaults timeout: @config.rpcs.list_scan_runs.timeout,
757
765
  metadata: metadata,
758
766
  retry_policy: @config.rpcs.list_scan_runs.retry_policy
759
- options.apply_defaults metadata: @config.metadata,
767
+
768
+ options.apply_defaults timeout: @config.timeout,
769
+ metadata: @config.metadata,
760
770
  retry_policy: @config.retry_policy
761
771
 
762
772
  @web_security_scanner_stub.call_rpc :list_scan_runs, request, options: options do |response, operation|
@@ -825,7 +835,9 @@ module Google
825
835
  options.apply_defaults timeout: @config.rpcs.stop_scan_run.timeout,
826
836
  metadata: metadata,
827
837
  retry_policy: @config.rpcs.stop_scan_run.retry_policy
828
- options.apply_defaults metadata: @config.metadata,
838
+
839
+ options.apply_defaults timeout: @config.timeout,
840
+ metadata: @config.metadata,
829
841
  retry_policy: @config.retry_policy
830
842
 
831
843
  @web_security_scanner_stub.call_rpc :stop_scan_run, request, options: options do |response, operation|
@@ -901,7 +913,9 @@ module Google
901
913
  options.apply_defaults timeout: @config.rpcs.list_crawled_urls.timeout,
902
914
  metadata: metadata,
903
915
  retry_policy: @config.rpcs.list_crawled_urls.retry_policy
904
- options.apply_defaults metadata: @config.metadata,
916
+
917
+ options.apply_defaults timeout: @config.timeout,
918
+ metadata: @config.metadata,
905
919
  retry_policy: @config.retry_policy
906
920
 
907
921
  @web_security_scanner_stub.call_rpc :list_crawled_urls, request, options: options do |response, operation|
@@ -970,7 +984,9 @@ module Google
970
984
  options.apply_defaults timeout: @config.rpcs.get_finding.timeout,
971
985
  metadata: metadata,
972
986
  retry_policy: @config.rpcs.get_finding.retry_policy
973
- options.apply_defaults metadata: @config.metadata,
987
+
988
+ options.apply_defaults timeout: @config.timeout,
989
+ metadata: @config.metadata,
974
990
  retry_policy: @config.retry_policy
975
991
 
976
992
  @web_security_scanner_stub.call_rpc :get_finding, request, options: options do |response, operation|
@@ -1051,7 +1067,9 @@ module Google
1051
1067
  options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
1052
1068
  metadata: metadata,
1053
1069
  retry_policy: @config.rpcs.list_findings.retry_policy
1054
- options.apply_defaults metadata: @config.metadata,
1070
+
1071
+ options.apply_defaults timeout: @config.timeout,
1072
+ metadata: @config.metadata,
1055
1073
  retry_policy: @config.retry_policy
1056
1074
 
1057
1075
  @web_security_scanner_stub.call_rpc :list_findings, request, options: options do |response, operation|
@@ -1120,7 +1138,9 @@ module Google
1120
1138
  options.apply_defaults timeout: @config.rpcs.list_finding_type_stats.timeout,
1121
1139
  metadata: metadata,
1122
1140
  retry_policy: @config.rpcs.list_finding_type_stats.retry_policy
1123
- options.apply_defaults metadata: @config.metadata,
1141
+
1142
+ options.apply_defaults timeout: @config.timeout,
1143
+ metadata: @config.metadata,
1124
1144
  retry_policy: @config.retry_policy
1125
1145
 
1126
1146
  @web_security_scanner_stub.call_rpc :list_finding_type_stats, request, options: options do |response, operation|
@@ -1144,22 +1164,21 @@ module Google
1144
1164
  # Configuration can be applied globally to all clients, or to a single client
1145
1165
  # on construction.
1146
1166
  #
1147
- # # Examples
1148
- #
1149
- # To modify the global config, setting the timeout for create_scan_config
1150
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1151
- #
1152
- # ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.configure do |config|
1153
- # config.timeout = 10.0
1154
- # config.rpcs.create_scan_config.timeout = 20.0
1155
- # end
1156
- #
1157
- # To apply the above configuration only to a new client:
1158
- #
1159
- # client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new do |config|
1160
- # config.timeout = 10.0
1161
- # config.rpcs.create_scan_config.timeout = 20.0
1162
- # end
1167
+ # @example
1168
+ #
1169
+ # # Modify the global config, setting the timeout for
1170
+ # # create_scan_config to 20 seconds,
1171
+ # # and all remaining timeouts to 10 seconds.
1172
+ # ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.configure do |config|
1173
+ # config.timeout = 10.0
1174
+ # config.rpcs.create_scan_config.timeout = 20.0
1175
+ # end
1176
+ #
1177
+ # # Apply the above configuration only to a new client.
1178
+ # client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new do |config|
1179
+ # config.timeout = 10.0
1180
+ # config.rpcs.create_scan_config.timeout = 20.0
1181
+ # end
1163
1182
  #
1164
1183
  # @!attribute [rw] endpoint
1165
1184
  # 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-web_security_scanner-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.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