google-cloud-web_security_scanner-v1 0.3.2 → 0.3.3

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: 3a57ad2d35247ed15b709cda9168037814e87e3aae01bb227ca5e21b4b0d20b9
4
- data.tar.gz: b59aa4e519a711522c331c450334139b3161628cb2254065c15d73736424712d
3
+ metadata.gz: 17c92db59c0446cb2f68a1bbad844aad6dbb3b3253c67a5e90517648b87921c7
4
+ data.tar.gz: b80382e822afb1d1889229b85ea8ca09ebdf77816fb571c767d61d3786ee0e52
5
5
  SHA512:
6
- metadata.gz: fb92ed9b37ea90a32c3cf69b139f48ad2d3c6b1e97cfbb668f00a5523b52c5650154f54de5352f0a15f6c2d690b0532462d92ffe516462adeb615f2f9851e2df
7
- data.tar.gz: 676e60f78b6f811dff98775fc093e07d67017add4fc0237f5ab3357d6401f7c94077a8ea9f7694003b9caff720b6f21d010477149a7aec04285762991c79f05b
6
+ metadata.gz: a008b1ebcf9168e7e90ba59718731a6070cf90d6da42dc1d4c80d9025dad4cc7c6fded09d40f31485905569cf11a03c46fce40197f830cee58b8ed1929f23829
7
+ data.tar.gz: bfb8084b8cfd0bed05b669fb8e42f49494a4b1e7db9e3ea67dbd582f8f652144a0bcf8e3ab3aad5e805b5623a320f97f97302e22cff95031abc1d42d7c0e4040
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all WebSecurityScanner clients:
47
- #
48
- # ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all WebSecurityScanner clients
47
+ # ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -147,19 +146,15 @@ module Google
147
146
  ##
148
147
  # Create a new WebSecurityScanner client object.
149
148
  #
150
- # ## Examples
151
- #
152
- # To create a new WebSecurityScanner client with the default
153
- # configuration:
154
- #
155
- # client = ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
149
+ # @example
156
150
  #
157
- # To create a new WebSecurityScanner client with a custom
158
- # configuration:
151
+ # # Create a client using the default configuration
152
+ # client = ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new
159
153
  #
160
- # client = ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new do |config|
161
- # config.timeout = 10.0
162
- # end
154
+ # # Create a client using a custom configuration
155
+ # client = ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new do |config|
156
+ # config.timeout = 10.0
157
+ # end
163
158
  #
164
159
  # @yield [config] Configure the WebSecurityScanner client.
165
160
  # @yieldparam config [Client::Configuration]
@@ -179,10 +174,9 @@ module Google
179
174
 
180
175
  # Create credentials
181
176
  credentials = @config.credentials
182
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
177
+ # Use self-signed JWT if the endpoint is unchanged from default,
183
178
  # but only if the default endpoint does not have a region prefix.
184
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
185
- @config.endpoint == Client.configure.endpoint &&
179
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
186
180
  !@config.endpoint.split(".").first.include?("-")
187
181
  credentials ||= Credentials.default scope: @config.scope,
188
182
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -261,7 +255,9 @@ module Google
261
255
  options.apply_defaults timeout: @config.rpcs.create_scan_config.timeout,
262
256
  metadata: metadata,
263
257
  retry_policy: @config.rpcs.create_scan_config.retry_policy
264
- options.apply_defaults metadata: @config.metadata,
258
+
259
+ options.apply_defaults timeout: @config.timeout,
260
+ metadata: @config.metadata,
265
261
  retry_policy: @config.retry_policy
266
262
 
267
263
  @web_security_scanner_stub.call_rpc :create_scan_config, request, options: options do |response, operation|
@@ -328,7 +324,9 @@ module Google
328
324
  options.apply_defaults timeout: @config.rpcs.delete_scan_config.timeout,
329
325
  metadata: metadata,
330
326
  retry_policy: @config.rpcs.delete_scan_config.retry_policy
331
- options.apply_defaults metadata: @config.metadata,
327
+
328
+ options.apply_defaults timeout: @config.timeout,
329
+ metadata: @config.metadata,
332
330
  retry_policy: @config.retry_policy
333
331
 
334
332
  @web_security_scanner_stub.call_rpc :delete_scan_config, request, options: options do |response, operation|
@@ -395,7 +393,9 @@ module Google
395
393
  options.apply_defaults timeout: @config.rpcs.get_scan_config.timeout,
396
394
  metadata: metadata,
397
395
  retry_policy: @config.rpcs.get_scan_config.retry_policy
398
- options.apply_defaults metadata: @config.metadata,
396
+
397
+ options.apply_defaults timeout: @config.timeout,
398
+ metadata: @config.metadata,
399
399
  retry_policy: @config.retry_policy
400
400
 
401
401
  @web_security_scanner_stub.call_rpc :get_scan_config, request, options: options do |response, operation|
@@ -470,7 +470,9 @@ module Google
470
470
  options.apply_defaults timeout: @config.rpcs.list_scan_configs.timeout,
471
471
  metadata: metadata,
472
472
  retry_policy: @config.rpcs.list_scan_configs.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
  @web_security_scanner_stub.call_rpc :list_scan_configs, request, options: options do |response, operation|
@@ -543,7 +545,9 @@ module Google
543
545
  options.apply_defaults timeout: @config.rpcs.update_scan_config.timeout,
544
546
  metadata: metadata,
545
547
  retry_policy: @config.rpcs.update_scan_config.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
  @web_security_scanner_stub.call_rpc :update_scan_config, request, options: options do |response, operation|
@@ -610,7 +614,9 @@ module Google
610
614
  options.apply_defaults timeout: @config.rpcs.start_scan_run.timeout,
611
615
  metadata: metadata,
612
616
  retry_policy: @config.rpcs.start_scan_run.retry_policy
613
- options.apply_defaults metadata: @config.metadata,
617
+
618
+ options.apply_defaults timeout: @config.timeout,
619
+ metadata: @config.metadata,
614
620
  retry_policy: @config.retry_policy
615
621
 
616
622
  @web_security_scanner_stub.call_rpc :start_scan_run, request, options: options do |response, operation|
@@ -678,7 +684,9 @@ module Google
678
684
  options.apply_defaults timeout: @config.rpcs.get_scan_run.timeout,
679
685
  metadata: metadata,
680
686
  retry_policy: @config.rpcs.get_scan_run.retry_policy
681
- options.apply_defaults metadata: @config.metadata,
687
+
688
+ options.apply_defaults timeout: @config.timeout,
689
+ metadata: @config.metadata,
682
690
  retry_policy: @config.retry_policy
683
691
 
684
692
  @web_security_scanner_stub.call_rpc :get_scan_run, request, options: options do |response, operation|
@@ -754,7 +762,9 @@ module Google
754
762
  options.apply_defaults timeout: @config.rpcs.list_scan_runs.timeout,
755
763
  metadata: metadata,
756
764
  retry_policy: @config.rpcs.list_scan_runs.retry_policy
757
- options.apply_defaults metadata: @config.metadata,
765
+
766
+ options.apply_defaults timeout: @config.timeout,
767
+ metadata: @config.metadata,
758
768
  retry_policy: @config.retry_policy
759
769
 
760
770
  @web_security_scanner_stub.call_rpc :list_scan_runs, request, options: options do |response, operation|
@@ -823,7 +833,9 @@ module Google
823
833
  options.apply_defaults timeout: @config.rpcs.stop_scan_run.timeout,
824
834
  metadata: metadata,
825
835
  retry_policy: @config.rpcs.stop_scan_run.retry_policy
826
- options.apply_defaults metadata: @config.metadata,
836
+
837
+ options.apply_defaults timeout: @config.timeout,
838
+ metadata: @config.metadata,
827
839
  retry_policy: @config.retry_policy
828
840
 
829
841
  @web_security_scanner_stub.call_rpc :stop_scan_run, request, options: options do |response, operation|
@@ -899,7 +911,9 @@ module Google
899
911
  options.apply_defaults timeout: @config.rpcs.list_crawled_urls.timeout,
900
912
  metadata: metadata,
901
913
  retry_policy: @config.rpcs.list_crawled_urls.retry_policy
902
- options.apply_defaults metadata: @config.metadata,
914
+
915
+ options.apply_defaults timeout: @config.timeout,
916
+ metadata: @config.metadata,
903
917
  retry_policy: @config.retry_policy
904
918
 
905
919
  @web_security_scanner_stub.call_rpc :list_crawled_urls, request, options: options do |response, operation|
@@ -968,7 +982,9 @@ module Google
968
982
  options.apply_defaults timeout: @config.rpcs.get_finding.timeout,
969
983
  metadata: metadata,
970
984
  retry_policy: @config.rpcs.get_finding.retry_policy
971
- options.apply_defaults metadata: @config.metadata,
985
+
986
+ options.apply_defaults timeout: @config.timeout,
987
+ metadata: @config.metadata,
972
988
  retry_policy: @config.retry_policy
973
989
 
974
990
  @web_security_scanner_stub.call_rpc :get_finding, request, options: options do |response, operation|
@@ -1049,7 +1065,9 @@ module Google
1049
1065
  options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
1050
1066
  metadata: metadata,
1051
1067
  retry_policy: @config.rpcs.list_findings.retry_policy
1052
- options.apply_defaults metadata: @config.metadata,
1068
+
1069
+ options.apply_defaults timeout: @config.timeout,
1070
+ metadata: @config.metadata,
1053
1071
  retry_policy: @config.retry_policy
1054
1072
 
1055
1073
  @web_security_scanner_stub.call_rpc :list_findings, request, options: options do |response, operation|
@@ -1118,7 +1136,9 @@ module Google
1118
1136
  options.apply_defaults timeout: @config.rpcs.list_finding_type_stats.timeout,
1119
1137
  metadata: metadata,
1120
1138
  retry_policy: @config.rpcs.list_finding_type_stats.retry_policy
1121
- options.apply_defaults metadata: @config.metadata,
1139
+
1140
+ options.apply_defaults timeout: @config.timeout,
1141
+ metadata: @config.metadata,
1122
1142
  retry_policy: @config.retry_policy
1123
1143
 
1124
1144
  @web_security_scanner_stub.call_rpc :list_finding_type_stats, request, options: options do |response, operation|
@@ -1142,22 +1162,21 @@ module Google
1142
1162
  # Configuration can be applied globally to all clients, or to a single client
1143
1163
  # on construction.
1144
1164
  #
1145
- # # Examples
1146
- #
1147
- # To modify the global config, setting the timeout for create_scan_config
1148
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1149
- #
1150
- # ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.configure do |config|
1151
- # config.timeout = 10.0
1152
- # config.rpcs.create_scan_config.timeout = 20.0
1153
- # end
1154
- #
1155
- # To apply the above configuration only to a new client:
1156
- #
1157
- # client = ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new do |config|
1158
- # config.timeout = 10.0
1159
- # config.rpcs.create_scan_config.timeout = 20.0
1160
- # end
1165
+ # @example
1166
+ #
1167
+ # # Modify the global config, setting the timeout for
1168
+ # # create_scan_config to 20 seconds,
1169
+ # # and all remaining timeouts to 10 seconds.
1170
+ # ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.configure do |config|
1171
+ # config.timeout = 10.0
1172
+ # config.rpcs.create_scan_config.timeout = 20.0
1173
+ # end
1174
+ #
1175
+ # # Apply the above configuration only to a new client.
1176
+ # client = ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Client.new do |config|
1177
+ # config.timeout = 10.0
1178
+ # config.rpcs.create_scan_config.timeout = 20.0
1179
+ # end
1161
1180
  #
1162
1181
  # @!attribute [rw] endpoint
1163
1182
  # 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-v1
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