grafeas-v1 0.16.1 → 1.0.0

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: 57beb4c581dbfc79f1987ca854143de783aac9dca4ad46830545480b83bd0c6d
4
- data.tar.gz: 0a1f69b8e9fd5d645541ef226e6a02e59c399083acfafca2d1582f273e24b3b0
3
+ metadata.gz: 0770e531153329dfe2c3cda2265a331cf24e7cf2b3268895249641292bae3910
4
+ data.tar.gz: af430533233ce7448f8cbae265c100dd949d204ad278217849364198e038e6c3
5
5
  SHA512:
6
- metadata.gz: edb2a1c4c39b74bd1113fde39c19b39d010ae4cf75d0e1efea6bf427bbabfe666cafe05c8a3c8e028ca0dd6806b20b7d96b8e008f60d1155b14edcd92ca0e97d
7
- data.tar.gz: 6e780a675d056ab07410872f50d4d1fa67d7d90a6bf26da7a2b177dae5cbbcb41e9bc3d8eb9acf7a1d29b4a158c0963971e39beb02868aed2cf26c7aab9d0d03
6
+ metadata.gz: 9c978c8c571b532cd19a5bdda98c152b64c3e010412e3c0fc2f1eeb21df111e59bd07e78d6fca252810ba316dd2181ad4594940387dc6357e13bc1389b77909b
7
+ data.tar.gz: 698ab3ae6a3d79c5f1729c0ee53542f24613a23df21a61ce8d4b7182e4cc682810100fa39298e83ea45e82896a38575242dadbfc2a1f9ba2f13d9fbab80828a5
@@ -41,6 +41,9 @@ module Grafeas
41
41
  # image with the vulnerability referring to that note.
42
42
  #
43
43
  class Client
44
+ # @private
45
+ API_VERSION = ""
46
+
44
47
  # @private
45
48
  DEFAULT_ENDPOINT_TEMPLATE = nil
46
49
 
@@ -269,10 +272,11 @@ module Grafeas
269
272
  # Customize the options with defaults
270
273
  metadata = @config.rpcs.get_occurrence.metadata.to_h
271
274
 
272
- # Set x-goog-api-client and x-goog-user-project headers
275
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
276
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
277
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
278
  gapic_version: ::Grafeas::V1::VERSION
279
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
276
280
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
277
281
 
278
282
  header_params = {}
@@ -366,10 +370,11 @@ module Grafeas
366
370
  # Customize the options with defaults
367
371
  metadata = @config.rpcs.list_occurrences.metadata.to_h
368
372
 
369
- # Set x-goog-api-client and x-goog-user-project headers
373
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
370
374
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
371
375
  lib_name: @config.lib_name, lib_version: @config.lib_version,
372
376
  gapic_version: ::Grafeas::V1::VERSION
377
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
373
378
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
374
379
 
375
380
  header_params = {}
@@ -455,10 +460,11 @@ module Grafeas
455
460
  # Customize the options with defaults
456
461
  metadata = @config.rpcs.delete_occurrence.metadata.to_h
457
462
 
458
- # Set x-goog-api-client and x-goog-user-project headers
463
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
459
464
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
460
465
  lib_name: @config.lib_name, lib_version: @config.lib_version,
461
466
  gapic_version: ::Grafeas::V1::VERSION
467
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
462
468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
469
 
464
470
  header_params = {}
@@ -543,10 +549,11 @@ module Grafeas
543
549
  # Customize the options with defaults
544
550
  metadata = @config.rpcs.create_occurrence.metadata.to_h
545
551
 
546
- # Set x-goog-api-client and x-goog-user-project headers
552
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
547
553
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
548
554
  lib_name: @config.lib_name, lib_version: @config.lib_version,
549
555
  gapic_version: ::Grafeas::V1::VERSION
556
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
550
557
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
551
558
 
552
559
  header_params = {}
@@ -631,10 +638,11 @@ module Grafeas
631
638
  # Customize the options with defaults
632
639
  metadata = @config.rpcs.batch_create_occurrences.metadata.to_h
633
640
 
634
- # Set x-goog-api-client and x-goog-user-project headers
641
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
635
642
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
636
643
  lib_name: @config.lib_name, lib_version: @config.lib_version,
637
644
  gapic_version: ::Grafeas::V1::VERSION
645
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
638
646
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
639
647
 
640
648
  header_params = {}
@@ -721,10 +729,11 @@ module Grafeas
721
729
  # Customize the options with defaults
722
730
  metadata = @config.rpcs.update_occurrence.metadata.to_h
723
731
 
724
- # Set x-goog-api-client and x-goog-user-project headers
732
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
725
733
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
726
734
  lib_name: @config.lib_name, lib_version: @config.lib_version,
727
735
  gapic_version: ::Grafeas::V1::VERSION
736
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
728
737
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
729
738
 
730
739
  header_params = {}
@@ -808,10 +817,11 @@ module Grafeas
808
817
  # Customize the options with defaults
809
818
  metadata = @config.rpcs.get_occurrence_note.metadata.to_h
810
819
 
811
- # Set x-goog-api-client and x-goog-user-project headers
820
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
812
821
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
813
822
  lib_name: @config.lib_name, lib_version: @config.lib_version,
814
823
  gapic_version: ::Grafeas::V1::VERSION
824
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
815
825
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
816
826
 
817
827
  header_params = {}
@@ -894,10 +904,11 @@ module Grafeas
894
904
  # Customize the options with defaults
895
905
  metadata = @config.rpcs.get_note.metadata.to_h
896
906
 
897
- # Set x-goog-api-client and x-goog-user-project headers
907
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
898
908
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
899
909
  lib_name: @config.lib_name, lib_version: @config.lib_version,
900
910
  gapic_version: ::Grafeas::V1::VERSION
911
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
901
912
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
902
913
 
903
914
  header_params = {}
@@ -991,10 +1002,11 @@ module Grafeas
991
1002
  # Customize the options with defaults
992
1003
  metadata = @config.rpcs.list_notes.metadata.to_h
993
1004
 
994
- # Set x-goog-api-client and x-goog-user-project headers
1005
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
995
1006
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
996
1007
  lib_name: @config.lib_name, lib_version: @config.lib_version,
997
1008
  gapic_version: ::Grafeas::V1::VERSION
1009
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
1010
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
1011
 
1000
1012
  header_params = {}
@@ -1078,10 +1090,11 @@ module Grafeas
1078
1090
  # Customize the options with defaults
1079
1091
  metadata = @config.rpcs.delete_note.metadata.to_h
1080
1092
 
1081
- # Set x-goog-api-client and x-goog-user-project headers
1093
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1082
1094
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
1095
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
1096
  gapic_version: ::Grafeas::V1::VERSION
1097
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1085
1098
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1086
1099
 
1087
1100
  header_params = {}
@@ -1168,10 +1181,11 @@ module Grafeas
1168
1181
  # Customize the options with defaults
1169
1182
  metadata = @config.rpcs.create_note.metadata.to_h
1170
1183
 
1171
- # Set x-goog-api-client and x-goog-user-project headers
1184
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1172
1185
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1173
1186
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1174
1187
  gapic_version: ::Grafeas::V1::VERSION
1188
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1175
1189
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1176
1190
 
1177
1191
  header_params = {}
@@ -1256,10 +1270,11 @@ module Grafeas
1256
1270
  # Customize the options with defaults
1257
1271
  metadata = @config.rpcs.batch_create_notes.metadata.to_h
1258
1272
 
1259
- # Set x-goog-api-client and x-goog-user-project headers
1273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1260
1274
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1261
1275
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1262
1276
  gapic_version: ::Grafeas::V1::VERSION
1277
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1263
1278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1264
1279
 
1265
1280
  header_params = {}
@@ -1346,10 +1361,11 @@ module Grafeas
1346
1361
  # Customize the options with defaults
1347
1362
  metadata = @config.rpcs.update_note.metadata.to_h
1348
1363
 
1349
- # Set x-goog-api-client and x-goog-user-project headers
1364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1350
1365
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1351
1366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1352
1367
  gapic_version: ::Grafeas::V1::VERSION
1368
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1353
1369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1354
1370
 
1355
1371
  header_params = {}
@@ -1444,10 +1460,11 @@ module Grafeas
1444
1460
  # Customize the options with defaults
1445
1461
  metadata = @config.rpcs.list_note_occurrences.metadata.to_h
1446
1462
 
1447
- # Set x-goog-api-client and x-goog-user-project headers
1463
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1448
1464
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1449
1465
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1450
1466
  gapic_version: ::Grafeas::V1::VERSION
1467
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1451
1468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1452
1469
 
1453
1470
  header_params = {}
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Grafeas
21
21
  module V1
22
- VERSION = "0.16.1"
22
+ VERSION = "1.0.0"
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grafeas-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 1.0.0
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-04-19 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common