google-apis-containeranalysis_v1 0.45.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: a077282b3972b85d4384a4f5bde6b7d3ce86c220ed546f40d19c7ed5615cc677
4
- data.tar.gz: 1c2bd16a49d299802cfad201c430e950af77ca66fa31f148ca1248d00209a40c
3
+ metadata.gz: ccf2c28eca21be02306050efdc60379e23051bce6bc2c8954697681ba4bd4053
4
+ data.tar.gz: a360d79d1da0f27e328b18181bedefa4db70e6388ec8c66e6c8361d2b59c48fd
5
5
  SHA512:
6
- metadata.gz: 9f951eb8208fb39b66b1323e02f042107ba2830597d9d71a408d71f54dea7589fa7d82cab1d9c2970c074b50df4155661bcd8f146dfec6e93dfbef6647d97cb5
7
- data.tar.gz: 8c459a4e3d244321b762a022a6c44f54f55f161ee2d605d33071de91d4cd1e4f5f50d38dcaf48e4360cc7cadd723d5b23fab87ffc42e88d5b91f655e25346215
6
+ metadata.gz: 24d3c8e36be40d961a2ba08c78f63ebecaec846070c851161e6d68c9cfdded279637b27ae855e4025844c76b5cb93dd2d7008c3264f70d0e7a1ee91761f66915
7
+ data.tar.gz: 3d67bb43f358f7f1ffa47f615786ce244707cf4b9b0fe4b9809d90190e9ed38614c878f36d8a3d77198f7577575fb13285e8954a95aeea0f79d9ec780fcbc3ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
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
+
8
+ ### v0.46.0 (2024-01-23)
9
+
10
+ * Regenerated from discovery document revision 20240105
11
+ * Regenerated using generator version 0.13.0
12
+
3
13
  ### v0.45.0 (2023-11-12)
4
14
 
5
15
  * Regenerated from discovery document revision 20231103
@@ -373,27 +373,52 @@ module Google
373
373
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
374
374
  # email address that represents a Google group. For example, `admins@example.com`
375
375
  # . * `domain:`domain``: The G Suite domain (primary) that represents all the
376
- # users of that domain. For example, `google.com` or `example.com`. * `deleted:
377
- # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
378
- # representing a user that has been recently deleted. For example, `alice@
379
- # example.com?uid=123456789012345678901`. If the user is recovered, this value
380
- # reverts to `user:`emailid`` and the recovered user retains the role in the
381
- # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
382
- # (plus unique identifier) representing a service account that has been recently
383
- # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
376
+ # users of that domain. For example, `google.com` or `example.com`. * `principal:
377
+ # //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
378
+ # subject_attribute_value``: A single identity in a workforce identity pool. * `
379
+ # principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
380
+ # group/`group_id``: All workforce identities in a group. * `principalSet://iam.
381
+ # googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
382
+ # attribute_name`/`attribute_value``: All workforce identities with a specific
383
+ # attribute value. * `principalSet://iam.googleapis.com/locations/global/
384
+ # workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
385
+ # principal://iam.googleapis.com/projects/`project_number`/locations/global/
386
+ # workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
387
+ # identity in a workload identity pool. * `principalSet://iam.googleapis.com/
388
+ # projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
389
+ # group/`group_id``: A workload identity pool group. * `principalSet://iam.
390
+ # googleapis.com/projects/`project_number`/locations/global/
391
+ # workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
392
+ # All identities in a workload identity pool with a certain attribute. * `
393
+ # principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
394
+ # workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
395
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
396
+ # identifier) representing a user that has been recently deleted. For example, `
397
+ # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
398
+ # value reverts to `user:`emailid`` and the recovered user retains the role in
399
+ # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
400
+ # address (plus unique identifier) representing a service account that has been
401
+ # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
384
402
  # 123456789012345678901`. If the service account is undeleted, this value
385
403
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
386
404
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
387
405
  # An email address (plus unique identifier) representing a Google group that has
388
406
  # been recently deleted. For example, `admins@example.com?uid=
389
407
  # 123456789012345678901`. If the group is recovered, this value reverts to `
390
- # group:`emailid`` and the recovered group retains the role in the binding.
408
+ # group:`emailid`` and the recovered group retains the role in the binding. * `
409
+ # deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
410
+ # pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
411
+ # workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
412
+ # locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
391
413
  # Corresponds to the JSON property `members`
392
414
  # @return [Array<String>]
393
415
  attr_accessor :members
394
416
 
395
417
  # Role that is assigned to the list of `members`, or principals. For example, `
396
- # 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).
397
422
  # Corresponds to the JSON property `role`
398
423
  # @return [String]
399
424
  attr_accessor :role
@@ -1087,6 +1112,19 @@ module Google
1087
1112
  end
1088
1113
  end
1089
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
+
1090
1128
  # Command describes a step performed as part of the build pipeline.
1091
1129
  class Command
1092
1130
  include Google::Apis::Core::Hashable
@@ -3438,6 +3476,47 @@ module Google
3438
3476
  end
3439
3477
  end
3440
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
+
3441
3520
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
3442
3521
  # CEL is a C-like expression language. The syntax and semantics of CEL are
3443
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.45.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.12.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231103"
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
@@ -36,6 +36,8 @@ module Google
36
36
  #
37
37
  # @see https://cloud.google.com/container-analysis/api/reference/rest/
38
38
  class ContainerAnalysisService < Google::Apis::Core::BaseService
39
+ DEFAULT_ENDPOINT_TEMPLATE = "https://containeranalysis.$UNIVERSE_DOMAIN$/"
40
+
39
41
  # @return [String]
40
42
  # API key. Your API key identifies your project and provides you with API access,
41
43
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -47,7 +49,7 @@ module Google
47
49
  attr_accessor :quota_user
48
50
 
49
51
  def initialize
50
- super('https://containeranalysis.googleapis.com/', '',
52
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
51
53
  client_name: 'google-apis-containeranalysis_v1',
52
54
  client_version: Google::Apis::ContaineranalysisV1::GEM_VERSION)
53
55
  @batch_path = 'batch'
@@ -816,6 +818,40 @@ module Google
816
818
  command.query['quotaUser'] = quota_user unless quota_user.nil?
817
819
  execute_or_queue_command(command, &block)
818
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
819
855
 
820
856
  protected
821
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.45.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: 2023-11-12 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.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.11.0
29
+ version: 0.12.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.45.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Container Analysis API V1