grafeas-v1 0.16.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grafeas/v1/grafeas/client.rb +31 -14
- data/lib/grafeas/v1/grafeas.rb +0 -6
- data/lib/grafeas/v1/version.rb +1 -1
- data/lib/grafeas/v1.rb +0 -5
- metadata +2 -6
- data/lib/grafeas/v1/grafeas/rest/client.rb +0 -1616
- data/lib/grafeas/v1/grafeas/rest/service_stub.rb +0 -939
- data/lib/grafeas/v1/grafeas/rest.rb +0 -60
- data/lib/grafeas/v1/rest.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0770e531153329dfe2c3cda2265a331cf24e7cf2b3268895249641292bae3910
|
4
|
+
data.tar.gz: af430533233ce7448f8cbae265c100dd949d204ad278217849364198e038e6c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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 = {}
|
data/lib/grafeas/v1/grafeas.rb
CHANGED
@@ -24,7 +24,6 @@ require "grafeas/v1/version"
|
|
24
24
|
|
25
25
|
require "grafeas/v1/grafeas/paths"
|
26
26
|
require "grafeas/v1/grafeas/client"
|
27
|
-
require "grafeas/v1/grafeas/rest"
|
28
27
|
|
29
28
|
module Grafeas
|
30
29
|
module V1
|
@@ -49,11 +48,6 @@ module Grafeas
|
|
49
48
|
# require "grafeas/v1/grafeas"
|
50
49
|
# client = ::Grafeas::V1::Grafeas::Client.new
|
51
50
|
#
|
52
|
-
# @example Load this service and instantiate a REST client
|
53
|
-
#
|
54
|
-
# require "grafeas/v1/grafeas/rest"
|
55
|
-
# client = ::Grafeas::V1::Grafeas::Rest::Client.new
|
56
|
-
#
|
57
51
|
module Grafeas
|
58
52
|
end
|
59
53
|
end
|
data/lib/grafeas/v1/version.rb
CHANGED
data/lib/grafeas/v1.rb
CHANGED
@@ -28,11 +28,6 @@ module Grafeas
|
|
28
28
|
# require "grafeas/v1"
|
29
29
|
# client = ::Grafeas::V1::Grafeas::Client.new
|
30
30
|
#
|
31
|
-
# @example Load this package, including all its services, and instantiate a REST client
|
32
|
-
#
|
33
|
-
# require "grafeas/v1"
|
34
|
-
# client = ::Grafeas::V1::Grafeas::Rest::Client.new
|
35
|
-
#
|
36
31
|
module V1
|
37
32
|
end
|
38
33
|
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.
|
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-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -69,9 +69,6 @@ files:
|
|
69
69
|
- lib/grafeas/v1/grafeas.rb
|
70
70
|
- lib/grafeas/v1/grafeas/client.rb
|
71
71
|
- lib/grafeas/v1/grafeas/paths.rb
|
72
|
-
- lib/grafeas/v1/grafeas/rest.rb
|
73
|
-
- lib/grafeas/v1/grafeas/rest/client.rb
|
74
|
-
- lib/grafeas/v1/grafeas/rest/service_stub.rb
|
75
72
|
- lib/grafeas/v1/grafeas_pb.rb
|
76
73
|
- lib/grafeas/v1/grafeas_services_pb.rb
|
77
74
|
- lib/grafeas/v1/image_pb.rb
|
@@ -79,7 +76,6 @@ files:
|
|
79
76
|
- lib/grafeas/v1/intoto_statement_pb.rb
|
80
77
|
- lib/grafeas/v1/package_pb.rb
|
81
78
|
- lib/grafeas/v1/provenance_pb.rb
|
82
|
-
- lib/grafeas/v1/rest.rb
|
83
79
|
- lib/grafeas/v1/sbom_pb.rb
|
84
80
|
- lib/grafeas/v1/severity_pb.rb
|
85
81
|
- lib/grafeas/v1/slsa_provenance_pb.rb
|