google-cloud-container_analysis-v1 0.4.2 → 0.4.6

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: 7a7efd0befc2a1c25d55ee1c2bfd183a615507cb6beb4439d80e4eaf527ff2c2
4
- data.tar.gz: 1ac5b1d691832891a97995477bee6f39f1e7b74c2225ce6543e4ae87053ce056
3
+ metadata.gz: a72605fbe4fd98aef12cc8010b41c3e5b42c55ec6623a4c68850ef2626a6c440
4
+ data.tar.gz: '083bc8ff52fdde9bff8bbc96a99dfc3a259ea9e7d3bdb38430334ae881927d57'
5
5
  SHA512:
6
- metadata.gz: 6e50b9e78cd38997fc200885e2e061e01e648631aa16042054ee8ad0097de2a9d3f5a7cbb84238988cb0c11170657fedc072ace82aa59130fc2ffa1e6252ee2c
7
- data.tar.gz: 425d8e19ca3569902f0682cf90448a43014e1600cfce427b2997ec420dd480f60fc06a6696022921aa888b85ffad6bbdb7b367c913d6c164e13d2f430b5fb8f8
6
+ metadata.gz: 6e4122d84677ad5f18805609379c60fa7723e39eaedab1ebb5f66acb7ad28f22cd91511863b0dda5e52f39c6be8d83d52e6856399ba0ad5193e8769eb304cd73
7
+ data.tar.gz: 6ef5d1e31db42c0682454d9dca10b0532fb037276c5688de5570f2f961b9e340992997973119b10d64d9b29a4a9fd641332e442740b6708d1ff5db0ac363b4df
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Container Analysis V1 API
2
+ --title="Container Analysis V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
@@ -53,13 +53,12 @@ module Google
53
53
  # See {::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client::Configuration}
54
54
  # for a description of the configuration fields.
55
55
  #
56
- # ## Example
56
+ # @example
57
57
  #
58
- # To modify the configuration for all ContainerAnalysis clients:
59
- #
60
- # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
61
- # config.timeout = 10.0
62
- # end
58
+ # # Modify the configuration for all ContainerAnalysis clients
59
+ # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
60
+ # config.timeout = 10.0
61
+ # end
63
62
  #
64
63
  # @yield [config] Configure the Client client.
65
64
  # @yieldparam config [Client::Configuration]
@@ -112,19 +111,15 @@ module Google
112
111
  ##
113
112
  # Create a new ContainerAnalysis client object.
114
113
  #
115
- # ## Examples
116
- #
117
- # To create a new ContainerAnalysis client with the default
118
- # configuration:
119
- #
120
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
114
+ # @example
121
115
  #
122
- # To create a new ContainerAnalysis client with a custom
123
- # configuration:
116
+ # # Create a client using the default configuration
117
+ # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
124
118
  #
125
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
126
- # config.timeout = 10.0
127
- # end
119
+ # # Create a client using a custom configuration
120
+ # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
121
+ # config.timeout = 10.0
122
+ # end
128
123
  #
129
124
  # @yield [config] Configure the ContainerAnalysis client.
130
125
  # @yieldparam config [Client::Configuration]
@@ -144,10 +139,9 @@ module Google
144
139
 
145
140
  # Create credentials
146
141
  credentials = @config.credentials
147
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
142
+ # Use self-signed JWT if the endpoint is unchanged from default,
148
143
  # but only if the default endpoint does not have a region prefix.
149
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
150
- @config.endpoint == Client.configure.endpoint &&
144
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
145
  !@config.endpoint.split(".").first.include?("-")
152
146
  credentials ||= Credentials.default scope: @config.scope,
153
147
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -210,6 +204,21 @@ module Google
210
204
  #
211
205
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
212
206
  #
207
+ # @example Basic example
208
+ # require "google/cloud/container_analysis/v1"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
215
+ #
216
+ # # Call the set_iam_policy method.
217
+ # result = client.set_iam_policy request
218
+ #
219
+ # # The returned object is of type Google::Iam::V1::Policy.
220
+ # p result
221
+ #
213
222
  def set_iam_policy request, options = nil
214
223
  raise ::ArgumentError, "request must be provided" if request.nil?
215
224
 
@@ -227,16 +236,20 @@ module Google
227
236
  gapic_version: ::Google::Cloud::ContainerAnalysis::V1::VERSION
228
237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
229
238
 
230
- header_params = {
231
- "resource" => request.resource
232
- }
239
+ header_params = {}
240
+ if request.resource
241
+ header_params["resource"] = request.resource
242
+ end
243
+
233
244
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
234
245
  metadata[:"x-goog-request-params"] ||= request_params_header
235
246
 
236
247
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
237
248
  metadata: metadata,
238
249
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
239
- options.apply_defaults metadata: @config.metadata,
250
+
251
+ options.apply_defaults timeout: @config.timeout,
252
+ metadata: @config.metadata,
240
253
  retry_policy: @config.retry_policy
241
254
 
242
255
  @container_analysis_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -287,6 +300,21 @@ module Google
287
300
  #
288
301
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
302
  #
303
+ # @example Basic example
304
+ # require "google/cloud/container_analysis/v1"
305
+ #
306
+ # # Create a client object. The client can be reused for multiple calls.
307
+ # client = Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
308
+ #
309
+ # # Create a request. To set request fields, pass in keyword arguments.
310
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
311
+ #
312
+ # # Call the get_iam_policy method.
313
+ # result = client.get_iam_policy request
314
+ #
315
+ # # The returned object is of type Google::Iam::V1::Policy.
316
+ # p result
317
+ #
290
318
  def get_iam_policy request, options = nil
291
319
  raise ::ArgumentError, "request must be provided" if request.nil?
292
320
 
@@ -304,16 +332,20 @@ module Google
304
332
  gapic_version: ::Google::Cloud::ContainerAnalysis::V1::VERSION
305
333
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
334
 
307
- header_params = {
308
- "resource" => request.resource
309
- }
335
+ header_params = {}
336
+ if request.resource
337
+ header_params["resource"] = request.resource
338
+ end
339
+
310
340
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
341
  metadata[:"x-goog-request-params"] ||= request_params_header
312
342
 
313
343
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
314
344
  metadata: metadata,
315
345
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
316
- options.apply_defaults metadata: @config.metadata,
346
+
347
+ options.apply_defaults timeout: @config.timeout,
348
+ metadata: @config.metadata,
317
349
  retry_policy: @config.retry_policy
318
350
 
319
351
  @container_analysis_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -365,6 +397,21 @@ module Google
365
397
  #
366
398
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
399
  #
400
+ # @example Basic example
401
+ # require "google/cloud/container_analysis/v1"
402
+ #
403
+ # # Create a client object. The client can be reused for multiple calls.
404
+ # client = Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
405
+ #
406
+ # # Create a request. To set request fields, pass in keyword arguments.
407
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
408
+ #
409
+ # # Call the test_iam_permissions method.
410
+ # result = client.test_iam_permissions request
411
+ #
412
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
413
+ # p result
414
+ #
368
415
  def test_iam_permissions request, options = nil
369
416
  raise ::ArgumentError, "request must be provided" if request.nil?
370
417
 
@@ -382,16 +429,20 @@ module Google
382
429
  gapic_version: ::Google::Cloud::ContainerAnalysis::V1::VERSION
383
430
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
431
 
385
- header_params = {
386
- "resource" => request.resource
387
- }
432
+ header_params = {}
433
+ if request.resource
434
+ header_params["resource"] = request.resource
435
+ end
436
+
388
437
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
438
  metadata[:"x-goog-request-params"] ||= request_params_header
390
439
 
391
440
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
392
441
  metadata: metadata,
393
442
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
394
- options.apply_defaults metadata: @config.metadata,
443
+
444
+ options.apply_defaults timeout: @config.timeout,
445
+ metadata: @config.metadata,
395
446
  retry_policy: @config.retry_policy
396
447
 
397
448
  @container_analysis_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -434,6 +485,21 @@ module Google
434
485
  #
435
486
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
436
487
  #
488
+ # @example Basic example
489
+ # require "google/cloud/container_analysis/v1"
490
+ #
491
+ # # Create a client object. The client can be reused for multiple calls.
492
+ # client = Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
493
+ #
494
+ # # Create a request. To set request fields, pass in keyword arguments.
495
+ # request = Google::Cloud::ContainerAnalysis::V1::GetVulnerabilityOccurrencesSummaryRequest.new
496
+ #
497
+ # # Call the get_vulnerability_occurrences_summary method.
498
+ # result = client.get_vulnerability_occurrences_summary request
499
+ #
500
+ # # The returned object is of type Google::Cloud::ContainerAnalysis::V1::VulnerabilityOccurrencesSummary.
501
+ # p result
502
+ #
437
503
  def get_vulnerability_occurrences_summary request, options = nil
438
504
  raise ::ArgumentError, "request must be provided" if request.nil?
439
505
 
@@ -451,16 +517,20 @@ module Google
451
517
  gapic_version: ::Google::Cloud::ContainerAnalysis::V1::VERSION
452
518
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
519
 
454
- header_params = {
455
- "parent" => request.parent
456
- }
520
+ header_params = {}
521
+ if request.parent
522
+ header_params["parent"] = request.parent
523
+ end
524
+
457
525
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
458
526
  metadata[:"x-goog-request-params"] ||= request_params_header
459
527
 
460
528
  options.apply_defaults timeout: @config.rpcs.get_vulnerability_occurrences_summary.timeout,
461
529
  metadata: metadata,
462
530
  retry_policy: @config.rpcs.get_vulnerability_occurrences_summary.retry_policy
463
- options.apply_defaults metadata: @config.metadata,
531
+
532
+ options.apply_defaults timeout: @config.timeout,
533
+ metadata: @config.metadata,
464
534
  retry_policy: @config.retry_policy
465
535
 
466
536
  @container_analysis_stub.call_rpc :get_vulnerability_occurrences_summary, request, options: options do |response, operation|
@@ -484,22 +554,21 @@ module Google
484
554
  # Configuration can be applied globally to all clients, or to a single client
485
555
  # on construction.
486
556
  #
487
- # # Examples
488
- #
489
- # To modify the global config, setting the timeout for set_iam_policy
490
- # to 20 seconds, and all remaining timeouts to 10 seconds:
491
- #
492
- # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
493
- # config.timeout = 10.0
494
- # config.rpcs.set_iam_policy.timeout = 20.0
495
- # end
496
- #
497
- # To apply the above configuration only to a new client:
498
- #
499
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
500
- # config.timeout = 10.0
501
- # config.rpcs.set_iam_policy.timeout = 20.0
502
- # end
557
+ # @example
558
+ #
559
+ # # Modify the global config, setting the timeout for
560
+ # # set_iam_policy to 20 seconds,
561
+ # # and all remaining timeouts to 10 seconds.
562
+ # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
563
+ # config.timeout = 10.0
564
+ # config.rpcs.set_iam_policy.timeout = 20.0
565
+ # end
566
+ #
567
+ # # Apply the above configuration only to a new client.
568
+ # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
569
+ # config.timeout = 10.0
570
+ # config.rpcs.set_iam_policy.timeout = 20.0
571
+ # end
503
572
  #
504
573
  # @!attribute [rw] endpoint
505
574
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContainerAnalysis
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.6"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/containeranalysis/v1/containeranalysis.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -11,6 +9,8 @@ require 'google/iam/v1/iam_policy_pb'
11
9
  require 'google/iam/v1/policy_pb'
12
10
  require 'google/protobuf/timestamp_pb'
13
11
  require 'grafeas/v1/vulnerability_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/devtools/containeranalysis/v1/containeranalysis.proto", :syntax => :proto3) do
16
16
  add_message "google.devtools.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest" do
@@ -39,7 +39,7 @@ module Google
39
39
  # image with the vulnerability referring to that note.
40
40
  class Service
41
41
 
42
- include GRPC::GenericService
42
+ include ::GRPC::GenericService
43
43
 
44
44
  self.marshal_class_method = :encode
45
45
  self.unmarshal_class_method = :decode
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -65,7 +65,7 @@ module Grafeas
65
65
  # @return [::String]
66
66
  # The identifier for the public key that verifies this signature.
67
67
  # * The `public_key_id` is required.
68
- # * The `public_key_id` MUST be an RFC3986 conformant URI.
68
+ # * The `public_key_id` SHOULD be an RFC3986 conformant URI.
69
69
  # * When possible, the `public_key_id` SHOULD be an immutable reference,
70
70
  # such as a cryptographic digest.
71
71
  #
@@ -85,9 +85,32 @@ module Grafeas
85
85
  extend ::Google::Protobuf::MessageExts::ClassMethods
86
86
  end
87
87
 
88
+ # MUST match
89
+ # https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An
90
+ # authenticated message of arbitrary type.
91
+ # @!attribute [rw] payload
92
+ # @return [::String]
93
+ # @!attribute [rw] payload_type
94
+ # @return [::String]
95
+ # @!attribute [rw] signatures
96
+ # @return [::Array<::Grafeas::V1::EnvelopeSignature>]
97
+ class Envelope
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # @!attribute [rw] sig
103
+ # @return [::String]
104
+ # @!attribute [rw] keyid
105
+ # @return [::String]
106
+ class EnvelopeSignature
107
+ include ::Google::Protobuf::MessageExts
108
+ extend ::Google::Protobuf::MessageExts::ClassMethods
109
+ end
110
+
88
111
  # Kind represents the kinds of notes supported.
89
112
  module NoteKind
90
- # Unknown.
113
+ # Default value. This value is unused.
91
114
  NOTE_KIND_UNSPECIFIED = 0
92
115
 
93
116
  # The note and occurrence represent a package vulnerability.
@@ -113,6 +136,12 @@ module Grafeas
113
136
 
114
137
  # This represents an available package upgrade.
115
138
  UPGRADE = 8
139
+
140
+ # This represents a Compliance Note
141
+ COMPLIANCE = 9
142
+
143
+ # This represents a DSSE attestation Note
144
+ DSSE_ATTESTATION = 10
116
145
  end
117
146
  end
118
147
  end
@@ -101,6 +101,14 @@ module Grafeas
101
101
  # @!attribute [rw] revision
102
102
  # @return [::String]
103
103
  # The iteration of the package build from the above version.
104
+ # @!attribute [rw] inclusive
105
+ # @return [::Boolean]
106
+ # Whether this version is specifying part of an inclusive range. Grafeas
107
+ # does not have the capability to specify version ranges; instead we have
108
+ # fields that specify start version and end versions. At times this is
109
+ # insufficient - we also need to specify whether the version is included in
110
+ # the range or is excluded from the range. This boolean is expected to be set
111
+ # to true when the version is included in a range.
104
112
  # @!attribute [rw] kind
105
113
  # @return [::Grafeas::V1::Version::VersionKind]
106
114
  # Required. Distinguishes between sentinel MIN/MAX versions and normal
@@ -109,6 +109,12 @@ module Grafeas
109
109
  # The time this information was last changed at the source. This is an
110
110
  # upstream timestamp from the underlying information source - e.g. Ubuntu
111
111
  # security tracker.
112
+ # @!attribute [rw] source
113
+ # @return [::String]
114
+ # The source from which the information in this Detail was obtained.
115
+ # @!attribute [rw] vendor
116
+ # @return [::String]
117
+ # The name of the vendor of the product.
112
118
  class Detail
113
119
  include ::Google::Protobuf::MessageExts
114
120
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -161,6 +167,9 @@ module Grafeas
161
167
  # Output only. The CVSS score of this vulnerability. CVSS score is on a
162
168
  # scale of 0 - 10 where 0 indicates low severity and 10 indicates high
163
169
  # severity.
170
+ # @!attribute [rw] cvssv3
171
+ # @return [::Grafeas::V1::VulnerabilityOccurrence::CVSSV3]
172
+ # The cvss v3 score for the vulnerability.
164
173
  # @!attribute [rw] package_issue
165
174
  # @return [::Array<::Grafeas::V1::VulnerabilityOccurrence::PackageIssue>]
166
175
  # Required. The set of affected locations and their fixes (if available)
@@ -178,6 +187,14 @@ module Grafeas
178
187
  # @return [::Grafeas::V1::Severity]
179
188
  # The distro assigned severity for this vulnerability when it is available,
180
189
  # otherwise this is the note provider assigned severity.
190
+ #
191
+ # When there are multiple PackageIssues for this vulnerability, they can have
192
+ # different effective severities because some might be provided by the distro
193
+ # while others are provided by the language ecosystem for a language pack.
194
+ # For this reason, it is advised to use the effective severity on the
195
+ # PackageIssue level. In the case where multiple PackageIssues have differing
196
+ # effective severities, this field should be the highest severity for any of
197
+ # the PackageIssues.
181
198
  # @!attribute [rw] fix_available
182
199
  # @return [::Boolean]
183
200
  # Output only. Whether at least one of the affected packages has a fix
@@ -186,6 +203,19 @@ module Grafeas
186
203
  include ::Google::Protobuf::MessageExts
187
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
188
205
 
206
+ # The CVSS v3 score for this vulnerability.
207
+ # @!attribute [rw] base_score
208
+ # @return [::Float]
209
+ # The base score for for this vulnerability according to cvss v3.
210
+ # @!attribute [rw] severity
211
+ # @return [::Grafeas::V1::Severity]
212
+ # The severity rating assigned to this vulnerability by vulnerability
213
+ # provider.
214
+ class CVSSV3
215
+ include ::Google::Protobuf::MessageExts
216
+ extend ::Google::Protobuf::MessageExts::ClassMethods
217
+ end
218
+
189
219
  # A detail for a distro and package this vulnerability occurrence was found
190
220
  # in and its associated fix (if one is available).
191
221
  # @!attribute [rw] affected_cpe_uri
@@ -215,6 +245,14 @@ module Grafeas
215
245
  # @!attribute [rw] fix_available
216
246
  # @return [::Boolean]
217
247
  # Output only. Whether a fix is available for this package.
248
+ # @!attribute [rw] package_type
249
+ # @return [::String]
250
+ # The type of package (e.g. OS, MAVEN, GO).
251
+ # @!attribute [r] effective_severity
252
+ # @return [::Grafeas::V1::Severity]
253
+ # The distro or language system assigned severity for this vulnerability
254
+ # when that is available and note provider assigned severity when it is not
255
+ # available.
218
256
  class PackageIssue
219
257
  include ::Google::Protobuf::MessageExts
220
258
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-container_analysis-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.6
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: 2022-01-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
@@ -48,16 +48,22 @@ dependencies:
48
48
  name: grafeas-v1
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
57
60
  requirements:
58
- - - "~>"
61
+ - - ">"
59
62
  - !ruby/object:Gem::Version
60
63
  version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: grpc-google-iam-v1
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -246,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
252
  - !ruby/object:Gem::Version
247
253
  version: '0'
248
254
  requirements: []
249
- rubygems_version: 3.2.17
255
+ rubygems_version: 3.3.4
250
256
  signing_key:
251
257
  specification_version: 4
252
258
  summary: API Client library for the Container Analysis V1 API