google-cloud-web_security_scanner-v1 0.10.0 → 1.0.1

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: ec7088f449eb62e147a2f58cb9c4312e32c8eb09ee6fe547c0ee7d1bcc97475e
4
- data.tar.gz: bb258ad314a3f6eb068c20b4f202a8e3e431fd852e1b06d03c6202129fa2124a
3
+ metadata.gz: 30d4d81f82ea3ad5a1298437d8e6413cf2bb586f716ef5f78c266de0dafe73e7
4
+ data.tar.gz: 91ab62b3eb9daf5f1df5e65d3cc448989c079365a142c98cb3a2e8fbb4dce834
5
5
  SHA512:
6
- metadata.gz: 04f3bbbae9887170a86172f326ac003757fd3e3b73f833becffc20cb921d956dab5964b12dde57213514f124cdd270e7d4b4fe59066956009c69c4fee401f72b
7
- data.tar.gz: e50e2a5579a234d126a63893dcf11891bbf6c4f2be4c2269805a243abeff55cf314426ae5fb46933fe0cb9cc3d9103622cea0fa0820752bea67d0eb6528a55d4
6
+ metadata.gz: a4cb0db068d678b58dd86a2a0dec5e92ba652c2b66cb30fe79547918856a455d0be8da5ede9456506630ca856699e620baaca2b02ef5f19a65634558231bb2a7
7
+ data.tar.gz: f143ebd804218e341eb7532801cd9dff45f063d94e3c80a37ef11d6ba51283a3df954c20837bfe790f6c4eab918dc339491d5f60eef68f72c0edaa00159a9658
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "1.0.1"
25
25
  end
26
26
  end
27
27
  end
@@ -32,6 +32,9 @@ module Google
32
32
  # attempts to exercise as many user inputs and event handlers as possible.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "websecurityscanner.$UNIVERSE_DOMAIN$"
37
40
 
@@ -271,10 +274,11 @@ module Google
271
274
  # Customize the options with defaults
272
275
  metadata = @config.rpcs.create_scan_config.metadata.to_h
273
276
 
274
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
280
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
283
 
280
284
  header_params = {}
@@ -357,10 +361,11 @@ module Google
357
361
  # Customize the options with defaults
358
362
  metadata = @config.rpcs.delete_scan_config.metadata.to_h
359
363
 
360
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
365
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
367
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
368
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
364
369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
365
370
 
366
371
  header_params = {}
@@ -443,10 +448,11 @@ module Google
443
448
  # Customize the options with defaults
444
449
  metadata = @config.rpcs.get_scan_config.metadata.to_h
445
450
 
446
- # Set x-goog-api-client and x-goog-user-project headers
451
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
447
452
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
449
454
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
455
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
456
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
457
 
452
458
  header_params = {}
@@ -541,10 +547,11 @@ module Google
541
547
  # Customize the options with defaults
542
548
  metadata = @config.rpcs.list_scan_configs.metadata.to_h
543
549
 
544
- # Set x-goog-api-client and x-goog-user-project headers
550
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
545
551
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
546
552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
547
553
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
554
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
548
555
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
549
556
 
550
557
  header_params = {}
@@ -633,10 +640,11 @@ module Google
633
640
  # Customize the options with defaults
634
641
  metadata = @config.rpcs.update_scan_config.metadata.to_h
635
642
 
636
- # Set x-goog-api-client and x-goog-user-project headers
643
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
637
644
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
638
645
  lib_name: @config.lib_name, lib_version: @config.lib_version,
639
646
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
647
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
640
648
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
641
649
 
642
650
  header_params = {}
@@ -719,10 +727,11 @@ module Google
719
727
  # Customize the options with defaults
720
728
  metadata = @config.rpcs.start_scan_run.metadata.to_h
721
729
 
722
- # Set x-goog-api-client and x-goog-user-project headers
730
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
723
731
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
724
732
  lib_name: @config.lib_name, lib_version: @config.lib_version,
725
733
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
734
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
726
735
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
736
 
728
737
  header_params = {}
@@ -806,10 +815,11 @@ module Google
806
815
  # Customize the options with defaults
807
816
  metadata = @config.rpcs.get_scan_run.metadata.to_h
808
817
 
809
- # Set x-goog-api-client and x-goog-user-project headers
818
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
810
819
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
811
820
  lib_name: @config.lib_name, lib_version: @config.lib_version,
812
821
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
822
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
813
823
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
814
824
 
815
825
  header_params = {}
@@ -905,10 +915,11 @@ module Google
905
915
  # Customize the options with defaults
906
916
  metadata = @config.rpcs.list_scan_runs.metadata.to_h
907
917
 
908
- # Set x-goog-api-client and x-goog-user-project headers
918
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
909
919
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
910
920
  lib_name: @config.lib_name, lib_version: @config.lib_version,
911
921
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
922
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
912
923
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
913
924
 
914
925
  header_params = {}
@@ -993,10 +1004,11 @@ module Google
993
1004
  # Customize the options with defaults
994
1005
  metadata = @config.rpcs.stop_scan_run.metadata.to_h
995
1006
 
996
- # Set x-goog-api-client and x-goog-user-project headers
1007
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
997
1008
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
998
1009
  lib_name: @config.lib_name, lib_version: @config.lib_version,
999
1010
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
1011
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1000
1012
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1001
1013
 
1002
1014
  header_params = {}
@@ -1092,10 +1104,11 @@ module Google
1092
1104
  # Customize the options with defaults
1093
1105
  metadata = @config.rpcs.list_crawled_urls.metadata.to_h
1094
1106
 
1095
- # Set x-goog-api-client and x-goog-user-project headers
1107
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1096
1108
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1097
1109
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1098
1110
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
1111
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1099
1112
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1100
1113
 
1101
1114
  header_params = {}
@@ -1180,10 +1193,11 @@ module Google
1180
1193
  # Customize the options with defaults
1181
1194
  metadata = @config.rpcs.get_finding.metadata.to_h
1182
1195
 
1183
- # Set x-goog-api-client and x-goog-user-project headers
1196
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1184
1197
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1185
1198
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1186
1199
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
1200
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1187
1201
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1188
1202
 
1189
1203
  header_params = {}
@@ -1284,10 +1298,11 @@ module Google
1284
1298
  # Customize the options with defaults
1285
1299
  metadata = @config.rpcs.list_findings.metadata.to_h
1286
1300
 
1287
- # Set x-goog-api-client and x-goog-user-project headers
1301
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1288
1302
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1289
1303
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1290
1304
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
1305
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1291
1306
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1292
1307
 
1293
1308
  header_params = {}
@@ -1372,10 +1387,11 @@ module Google
1372
1387
  # Customize the options with defaults
1373
1388
  metadata = @config.rpcs.list_finding_type_stats.metadata.to_h
1374
1389
 
1375
- # Set x-goog-api-client and x-goog-user-project headers
1390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1376
1391
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1377
1392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1378
1393
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION
1394
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1379
1395
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1380
1396
 
1381
1397
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # attempts to exercise as many user inputs and event handlers as possible.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "websecurityscanner.$UNIVERSE_DOMAIN$"
39
42
 
@@ -263,12 +266,13 @@ module Google
263
266
  # Customize the options with defaults
264
267
  call_metadata = @config.rpcs.create_scan_config.metadata.to_h
265
268
 
266
- # Set x-goog-api-client and x-goog-user-project headers
269
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
267
270
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
268
271
  lib_name: @config.lib_name, lib_version: @config.lib_version,
269
272
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
270
273
  transports_version_send: [:rest]
271
274
 
275
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
272
276
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
273
277
 
274
278
  options.apply_defaults timeout: @config.rpcs.create_scan_config.timeout,
@@ -342,12 +346,13 @@ module Google
342
346
  # Customize the options with defaults
343
347
  call_metadata = @config.rpcs.delete_scan_config.metadata.to_h
344
348
 
345
- # Set x-goog-api-client and x-goog-user-project headers
349
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
346
350
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
347
351
  lib_name: @config.lib_name, lib_version: @config.lib_version,
348
352
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
349
353
  transports_version_send: [:rest]
350
354
 
355
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
351
356
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
352
357
 
353
358
  options.apply_defaults timeout: @config.rpcs.delete_scan_config.timeout,
@@ -421,12 +426,13 @@ module Google
421
426
  # Customize the options with defaults
422
427
  call_metadata = @config.rpcs.get_scan_config.metadata.to_h
423
428
 
424
- # Set x-goog-api-client and x-goog-user-project headers
429
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
425
430
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
426
431
  lib_name: @config.lib_name, lib_version: @config.lib_version,
427
432
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
428
433
  transports_version_send: [:rest]
429
434
 
435
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
430
436
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
431
437
 
432
438
  options.apply_defaults timeout: @config.rpcs.get_scan_config.timeout,
@@ -512,12 +518,13 @@ module Google
512
518
  # Customize the options with defaults
513
519
  call_metadata = @config.rpcs.list_scan_configs.metadata.to_h
514
520
 
515
- # Set x-goog-api-client and x-goog-user-project headers
521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
516
522
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
517
523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
518
524
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
519
525
  transports_version_send: [:rest]
520
526
 
527
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
521
528
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
522
529
 
523
530
  options.apply_defaults timeout: @config.rpcs.list_scan_configs.timeout,
@@ -597,12 +604,13 @@ module Google
597
604
  # Customize the options with defaults
598
605
  call_metadata = @config.rpcs.update_scan_config.metadata.to_h
599
606
 
600
- # Set x-goog-api-client and x-goog-user-project headers
607
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
601
608
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
602
609
  lib_name: @config.lib_name, lib_version: @config.lib_version,
603
610
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
604
611
  transports_version_send: [:rest]
605
612
 
613
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
606
614
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
615
 
608
616
  options.apply_defaults timeout: @config.rpcs.update_scan_config.timeout,
@@ -676,12 +684,13 @@ module Google
676
684
  # Customize the options with defaults
677
685
  call_metadata = @config.rpcs.start_scan_run.metadata.to_h
678
686
 
679
- # Set x-goog-api-client and x-goog-user-project headers
687
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
680
688
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
681
689
  lib_name: @config.lib_name, lib_version: @config.lib_version,
682
690
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
683
691
  transports_version_send: [:rest]
684
692
 
693
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
685
694
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
686
695
 
687
696
  options.apply_defaults timeout: @config.rpcs.start_scan_run.timeout,
@@ -756,12 +765,13 @@ module Google
756
765
  # Customize the options with defaults
757
766
  call_metadata = @config.rpcs.get_scan_run.metadata.to_h
758
767
 
759
- # Set x-goog-api-client and x-goog-user-project headers
768
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
760
769
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
761
770
  lib_name: @config.lib_name, lib_version: @config.lib_version,
762
771
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
763
772
  transports_version_send: [:rest]
764
773
 
774
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
765
775
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
766
776
 
767
777
  options.apply_defaults timeout: @config.rpcs.get_scan_run.timeout,
@@ -848,12 +858,13 @@ module Google
848
858
  # Customize the options with defaults
849
859
  call_metadata = @config.rpcs.list_scan_runs.metadata.to_h
850
860
 
851
- # Set x-goog-api-client and x-goog-user-project headers
861
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
852
862
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
853
863
  lib_name: @config.lib_name, lib_version: @config.lib_version,
854
864
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
855
865
  transports_version_send: [:rest]
856
866
 
867
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
857
868
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
858
869
 
859
870
  options.apply_defaults timeout: @config.rpcs.list_scan_runs.timeout,
@@ -929,12 +940,13 @@ module Google
929
940
  # Customize the options with defaults
930
941
  call_metadata = @config.rpcs.stop_scan_run.metadata.to_h
931
942
 
932
- # Set x-goog-api-client and x-goog-user-project headers
943
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
933
944
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
934
945
  lib_name: @config.lib_name, lib_version: @config.lib_version,
935
946
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
936
947
  transports_version_send: [:rest]
937
948
 
949
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
938
950
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
939
951
 
940
952
  options.apply_defaults timeout: @config.rpcs.stop_scan_run.timeout,
@@ -1021,12 +1033,13 @@ module Google
1021
1033
  # Customize the options with defaults
1022
1034
  call_metadata = @config.rpcs.list_crawled_urls.metadata.to_h
1023
1035
 
1024
- # Set x-goog-api-client and x-goog-user-project headers
1036
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1025
1037
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1026
1038
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1027
1039
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
1028
1040
  transports_version_send: [:rest]
1029
1041
 
1042
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1030
1043
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1031
1044
 
1032
1045
  options.apply_defaults timeout: @config.rpcs.list_crawled_urls.timeout,
@@ -1102,12 +1115,13 @@ module Google
1102
1115
  # Customize the options with defaults
1103
1116
  call_metadata = @config.rpcs.get_finding.metadata.to_h
1104
1117
 
1105
- # Set x-goog-api-client and x-goog-user-project headers
1118
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1106
1119
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1107
1120
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1108
1121
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
1109
1122
  transports_version_send: [:rest]
1110
1123
 
1124
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1111
1125
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1112
1126
 
1113
1127
  options.apply_defaults timeout: @config.rpcs.get_finding.timeout,
@@ -1199,12 +1213,13 @@ module Google
1199
1213
  # Customize the options with defaults
1200
1214
  call_metadata = @config.rpcs.list_findings.metadata.to_h
1201
1215
 
1202
- # Set x-goog-api-client and x-goog-user-project headers
1216
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1203
1217
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1204
1218
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1205
1219
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
1206
1220
  transports_version_send: [:rest]
1207
1221
 
1222
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1208
1223
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1209
1224
 
1210
1225
  options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
@@ -1280,12 +1295,13 @@ module Google
1280
1295
  # Customize the options with defaults
1281
1296
  call_metadata = @config.rpcs.list_finding_type_stats.metadata.to_h
1282
1297
 
1283
- # Set x-goog-api-client and x-goog-user-project headers
1298
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1284
1299
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1285
1300
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1286
1301
  gapic_version: ::Google::Cloud::WebSecurityScanner::V1::VERSION,
1287
1302
  transports_version_send: [:rest]
1288
1303
 
1304
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1289
1305
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1290
1306
 
1291
1307
  options.apply_defaults timeout: @config.rpcs.list_finding_type_stats.timeout,
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
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.10.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common