google-apis-containeranalysis_v1 0.46.0 → 0.47.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: 86caad83c7e763be5db83e8937f6a8c5afd8ab8c8da2344960142fc31a777188
4
- data.tar.gz: 432f117170a94bef9639cd4b59199a6cc061de0c0248946231070bf626e99d39
3
+ metadata.gz: ccf2c28eca21be02306050efdc60379e23051bce6bc2c8954697681ba4bd4053
4
+ data.tar.gz: a360d79d1da0f27e328b18181bedefa4db70e6388ec8c66e6c8361d2b59c48fd
5
5
  SHA512:
6
- metadata.gz: ab9d45c3685882aacca1face0c202fc31de2c2730fda85ac3380fd06af675bfdff0b08915229a5660fec74d7229ccf929876d021be3f2f4a78b0255cf36e17b6
7
- data.tar.gz: b1bc469fcf20e9a90dfe4742efc3fff74e7e32b22a6f7bb41819f24654ee9705c65e6ac8393b6aea2507d4e536c717bdf41e2582c7f7b5b8310fa09444e39bd0
6
+ metadata.gz: 24d3c8e36be40d961a2ba08c78f63ebecaec846070c851161e6d68c9cfdded279637b27ae855e4025844c76b5cb93dd2d7008c3264f70d0e7a1ee91761f66915
7
+ data.tar.gz: 3d67bb43f358f7f1ffa47f615786ce244707cf4b9b0fe4b9809d90190e9ed38614c878f36d8a3d77198f7577575fb13285e8954a95aeea0f79d9ec780fcbc3ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-containeranalysis_v1
2
2
 
3
+ ### v0.47.0 (2024-02-11)
4
+
5
+ * Regenerated from discovery document revision 20240205
6
+ * Regenerated using generator version 0.13.1
7
+
3
8
  ### v0.46.0 (2024-01-23)
4
9
 
5
10
  * Regenerated from discovery document revision 20240105
@@ -415,7 +415,10 @@ module Google
415
415
  attr_accessor :members
416
416
 
417
417
  # Role that is assigned to the list of `members`, or principals. For example, `
418
- # roles/viewer`, `roles/editor`, or `roles/owner`.
418
+ # roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
419
+ # roles and permissions, see the [IAM documentation](https://cloud.google.com/
420
+ # iam/docs/roles-overview). For a list of the available pre-defined roles, see [
421
+ # here](https://cloud.google.com/iam/docs/understanding-roles).
419
422
  # Corresponds to the JSON property `role`
420
423
  # @return [String]
421
424
  attr_accessor :role
@@ -1109,6 +1112,19 @@ module Google
1109
1112
  end
1110
1113
  end
1111
1114
 
1115
+ # Empty placeholder to denote that this is a Google Cloud Storage export request.
1116
+ class CloudStorageLocation
1117
+ include Google::Apis::Core::Hashable
1118
+
1119
+ def initialize(**args)
1120
+ update!(**args)
1121
+ end
1122
+
1123
+ # Update properties of this object
1124
+ def update!(**args)
1125
+ end
1126
+ end
1127
+
1112
1128
  # Command describes a step performed as part of the build pipeline.
1113
1129
  class Command
1114
1130
  include Google::Apis::Core::Hashable
@@ -3460,6 +3476,47 @@ module Google
3460
3476
  end
3461
3477
  end
3462
3478
 
3479
+ # The request to generate and export SBOM. Target must be specified for the
3480
+ # request.
3481
+ class ExportSbomRequest
3482
+ include Google::Apis::Core::Hashable
3483
+
3484
+ # Empty placeholder to denote that this is a Google Cloud Storage export request.
3485
+ # Corresponds to the JSON property `cloudStorageLocation`
3486
+ # @return [Google::Apis::ContaineranalysisV1::CloudStorageLocation]
3487
+ attr_accessor :cloud_storage_location
3488
+
3489
+ def initialize(**args)
3490
+ update!(**args)
3491
+ end
3492
+
3493
+ # Update properties of this object
3494
+ def update!(**args)
3495
+ @cloud_storage_location = args[:cloud_storage_location] if args.key?(:cloud_storage_location)
3496
+ end
3497
+ end
3498
+
3499
+ # The response from a call to ExportSBOM.
3500
+ class ExportSbomResponse
3501
+ include Google::Apis::Core::Hashable
3502
+
3503
+ # The name of the discovery occurrence in the form "projects/`project_id`/
3504
+ # occurrences/`OCCURRENCE_ID` It can be used to track the progress of the SBOM
3505
+ # export.
3506
+ # Corresponds to the JSON property `discoveryOccurrence`
3507
+ # @return [String]
3508
+ attr_accessor :discovery_occurrence
3509
+
3510
+ def initialize(**args)
3511
+ update!(**args)
3512
+ end
3513
+
3514
+ # Update properties of this object
3515
+ def update!(**args)
3516
+ @discovery_occurrence = args[:discovery_occurrence] if args.key?(:discovery_occurrence)
3517
+ end
3518
+ end
3519
+
3463
3520
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
3464
3521
  # CEL is a C-like expression language. The syntax and semantics of CEL are
3465
3522
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1
18
18
  # Version of the google-apis-containeranalysis_v1 gem
19
- GEM_VERSION = "0.46.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240105"
25
+ REVISION = "20240205"
26
26
  end
27
27
  end
28
28
  end
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class CloudStorageLocation
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class Command
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -472,6 +478,18 @@ module Google
472
478
  include Google::Apis::Core::JsonObjectSupport
473
479
  end
474
480
 
481
+ class ExportSbomRequest
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
487
+ class ExportSbomResponse
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
475
493
  class Expr
476
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
495
 
@@ -1245,6 +1263,12 @@ module Google
1245
1263
  end
1246
1264
  end
1247
1265
 
1266
+ class CloudStorageLocation
1267
+ # @private
1268
+ class Representation < Google::Apis::Core::JsonRepresentation
1269
+ end
1270
+ end
1271
+
1248
1272
  class Command
1249
1273
  # @private
1250
1274
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1853,6 +1877,21 @@ module Google
1853
1877
  end
1854
1878
  end
1855
1879
 
1880
+ class ExportSbomRequest
1881
+ # @private
1882
+ class Representation < Google::Apis::Core::JsonRepresentation
1883
+ property :cloud_storage_location, as: 'cloudStorageLocation', class: Google::Apis::ContaineranalysisV1::CloudStorageLocation, decorator: Google::Apis::ContaineranalysisV1::CloudStorageLocation::Representation
1884
+
1885
+ end
1886
+ end
1887
+
1888
+ class ExportSbomResponse
1889
+ # @private
1890
+ class Representation < Google::Apis::Core::JsonRepresentation
1891
+ property :discovery_occurrence, as: 'discoveryOccurrence'
1892
+ end
1893
+ end
1894
+
1856
1895
  class Expr
1857
1896
  # @private
1858
1897
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -818,6 +818,40 @@ module Google
818
818
  command.query['quotaUser'] = quota_user unless quota_user.nil?
819
819
  execute_or_queue_command(command, &block)
820
820
  end
821
+
822
+ # Generates an SBOM for the given resource.
823
+ # @param [String] name
824
+ # Required. The name of the resource in the form of `projects/[PROJECT_ID]/
825
+ # resources/[RESOURCE_URL]`.
826
+ # @param [Google::Apis::ContaineranalysisV1::ExportSbomRequest] export_sbom_request_object
827
+ # @param [String] fields
828
+ # Selector specifying which fields to include in a partial response.
829
+ # @param [String] quota_user
830
+ # Available to use for quota purposes for server-side applications. Can be any
831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
832
+ # @param [Google::Apis::RequestOptions] options
833
+ # Request-specific options
834
+ #
835
+ # @yield [result, err] Result & error if block supplied
836
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::ExportSbomResponse] parsed result object
837
+ # @yieldparam err [StandardError] error object if request failed
838
+ #
839
+ # @return [Google::Apis::ContaineranalysisV1::ExportSbomResponse]
840
+ #
841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
844
+ def export_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
845
+ command = make_simple_command(:post, 'v1/{+name}:exportSBOM', options)
846
+ command.request_representation = Google::Apis::ContaineranalysisV1::ExportSbomRequest::Representation
847
+ command.request_object = export_sbom_request_object
848
+ command.response_representation = Google::Apis::ContaineranalysisV1::ExportSbomResponse::Representation
849
+ command.response_class = Google::Apis::ContaineranalysisV1::ExportSbomResponse
850
+ command.params['name'] = name unless name.nil?
851
+ command.query['fields'] = fields unless fields.nil?
852
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
853
+ execute_or_queue_command(command, &block)
854
+ end
821
855
 
822
856
  protected
823
857
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.47.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-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.47.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1
63
63
  post_install_message:
64
64
  rdoc_options: []