google-apis-containeranalysis_v1 0.46.0 → 0.48.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: 89dc8bc718ee401ab89c2477b93895e05c6db72a768823ae1b261cf55d26c6aa
4
+ data.tar.gz: 7a0b1557366f159909b14b62b8ee26e81bd15b0f4dc0898174cbbf1c0ab32a1c
5
5
  SHA512:
6
- metadata.gz: ab9d45c3685882aacca1face0c202fc31de2c2730fda85ac3380fd06af675bfdff0b08915229a5660fec74d7229ccf929876d021be3f2f4a78b0255cf36e17b6
7
- data.tar.gz: b1bc469fcf20e9a90dfe4742efc3fff74e7e32b22a6f7bb41819f24654ee9705c65e6ac8393b6aea2507d4e536c717bdf41e2582c7f7b5b8310fa09444e39bd0
6
+ metadata.gz: 659bfe44728873c78607ed9011e66800d05d3c00a227268757140b68444c7035aa3b82a9364d6bb1fcb3b5aadd2b2444c882a9123e99889c8a58a9bbd2bc768a
7
+ data.tar.gz: 70938a163620869271fce360c61b4c7d92f6ca3d34352484292188b70648594191541b4666e6e555a9af7b2f36b90b3ded27b7e3a92451372ed378aac67b32f2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-containeranalysis_v1
2
2
 
3
+ ### v0.48.0 (2024-02-23)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.47.0 (2024-02-11)
8
+
9
+ * Regenerated from discovery document revision 20240205
10
+ * Regenerated using generator version 0.13.1
11
+
3
12
  ### v0.46.0 (2024-01-23)
4
13
 
5
14
  * Regenerated from discovery document revision 20240105
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/container-analysis/api/refe
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -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.48.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.48.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-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.12.0
19
+ version: 0.14.0
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.12.0
29
+ version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.48.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: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.3
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Container Analysis API V1