google-apis-containeranalysis_v1 0.10.0 → 0.11.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: e57f09456983070fbd5c691428a4896ae8b9d20cb5f2d5da2605eb7df74b9682
4
- data.tar.gz: feaa069bac82b2caacf00287ea7819e9f9f1515c790b4e38871cab0813eed3ee
3
+ metadata.gz: c9912fe880bf93716c9b2bb13858a52a75a0d06d9c16b98d4f4985a91630250a
4
+ data.tar.gz: 4e01b25f57eafb017d2136b764dde9ade49b43e1a84512b65c56a8af760b207a
5
5
  SHA512:
6
- metadata.gz: 6f3375b70bf5b19c8d9ae644991c7db3f23bae42fcd407b89e92f723a5cd7c18689c32d2158acb09604a05f5db0933184781f7647db85432c727c6b4cec150cc
7
- data.tar.gz: af3888f66317868c209e9ea08023d23323c65b54f727fd3a8891e0b7648deb50ede34f828e76b685206cd02dc5ff855d71957b85a1d31161bc78f419893365c7
6
+ metadata.gz: b9a2d677ee0abdeaf11d743541c298094fc71270a8f0d38bf005d7f4da4e7d260622314981700c6703ad4e7a48d5f3d55d243204d15dd9ef491fb281bcae0cf7
7
+ data.tar.gz: 9db13092c324c9ae9b617918e687b7bb762697bbfca3c20494fc00cb40596539fe6c449313a69c083316b15e2ece4c22847193eeb90f9f4ba74503985b7b30f1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-containeranalysis_v1
2
2
 
3
+ ### v0.11.0 (2022-05-11)
4
+
5
+ * Regenerated from discovery document revision 20220506
6
+
3
7
  ### v0.10.0 (2022-05-04)
4
8
 
5
9
  * Regenerated from discovery document revision 20220428
@@ -2445,6 +2445,32 @@ module Google
2445
2445
  end
2446
2446
  end
2447
2447
 
2448
+ # Digest information.
2449
+ class Digest
2450
+ include Google::Apis::Core::Hashable
2451
+
2452
+ # `SHA1`, `SHA512` etc.
2453
+ # Corresponds to the JSON property `algo`
2454
+ # @return [String]
2455
+ attr_accessor :algo
2456
+
2457
+ # Value of the digest encoded. For example: SHA512 - base64 encoding, SHA1 - hex
2458
+ # encoding.
2459
+ # Corresponds to the JSON property `digestValue`
2460
+ # @return [String]
2461
+ attr_accessor :digest_value
2462
+
2463
+ def initialize(**args)
2464
+ update!(**args)
2465
+ end
2466
+
2467
+ # Update properties of this object
2468
+ def update!(**args)
2469
+ @algo = args[:algo] if args.key?(:algo)
2470
+ @digest_value = args[:digest_value] if args.key?(:digest_value)
2471
+ end
2472
+ end
2473
+
2448
2474
  # A note that indicates a type of analysis a provider would perform. This note
2449
2475
  # exists in a provider's project. A `Discovery` occurrence is created in a
2450
2476
  # consumer's project at the start of analysis.
@@ -3255,6 +3281,34 @@ module Google
3255
3281
  end
3256
3282
  end
3257
3283
 
3284
+ # License information.
3285
+ class License
3286
+ include Google::Apis::Core::Hashable
3287
+
3288
+ # Comments
3289
+ # Corresponds to the JSON property `comments`
3290
+ # @return [String]
3291
+ attr_accessor :comments
3292
+
3293
+ # Often a single license can be used to represent the licensing terms. Sometimes
3294
+ # it is necessary to include a choice of one or more licenses or some
3295
+ # combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.
3296
+ # 1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
3297
+ # Corresponds to the JSON property `expression`
3298
+ # @return [String]
3299
+ attr_accessor :expression
3300
+
3301
+ def initialize(**args)
3302
+ update!(**args)
3303
+ end
3304
+
3305
+ # Update properties of this object
3306
+ def update!(**args)
3307
+ @comments = args[:comments] if args.key?(:comments)
3308
+ @expression = args[:expression] if args.key?(:expression)
3309
+ end
3310
+ end
3311
+
3258
3312
  # Response for listing occurrences for a note.
3259
3313
  class ListNoteOccurrencesResponse
3260
3314
  include Google::Apis::Core::Hashable
@@ -3337,8 +3391,7 @@ module Google
3337
3391
  class Location
3338
3392
  include Google::Apis::Core::Hashable
3339
3393
 
3340
- # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
3341
- # denoting the package manager version distributing a package.
3394
+ # Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
3342
3395
  # Corresponds to the JSON property `cpeUri`
3343
3396
  # @return [String]
3344
3397
  attr_accessor :cpe_uri
@@ -3551,8 +3604,7 @@ module Google
3551
3604
  # @return [String]
3552
3605
  attr_accessor :name
3553
3606
 
3554
- # This represents a particular package that is distributed over various channels.
3555
- # E.g., glibc (aka libc6) is distributed by many, at various versions.
3607
+ # PackageNote represents a particular package version.
3556
3608
  # Corresponds to the JSON property `package`
3557
3609
  # @return [Google::Apis::ContaineranalysisV1::PackageNote]
3558
3610
  attr_accessor :package
@@ -3840,29 +3892,87 @@ module Google
3840
3892
  end
3841
3893
  end
3842
3894
 
3843
- # This represents a particular package that is distributed over various channels.
3844
- # E.g., glibc (aka libc6) is distributed by many, at various versions.
3895
+ # PackageNote represents a particular package version.
3845
3896
  class PackageNote
3846
3897
  include Google::Apis::Core::Hashable
3847
3898
 
3848
- # The various channels by which a package is distributed.
3899
+ # The CPU architecture for which packages in this distribution channel were
3900
+ # built. Architecture will be blank for language packages.
3901
+ # Corresponds to the JSON property `architecture`
3902
+ # @return [String]
3903
+ attr_accessor :architecture
3904
+
3905
+ # The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the
3906
+ # package manager version distributing a package. The cpe_uri will be blank for
3907
+ # language packages.
3908
+ # Corresponds to the JSON property `cpeUri`
3909
+ # @return [String]
3910
+ attr_accessor :cpe_uri
3911
+
3912
+ # The description of this package.
3913
+ # Corresponds to the JSON property `description`
3914
+ # @return [String]
3915
+ attr_accessor :description
3916
+
3917
+ # Hash value, typically a file digest, that allows unique identification a
3918
+ # specific package.
3919
+ # Corresponds to the JSON property `digest`
3920
+ # @return [Array<Google::Apis::ContaineranalysisV1::Digest>]
3921
+ attr_accessor :digest
3922
+
3923
+ # Deprecated. The various channels by which a package is distributed.
3849
3924
  # Corresponds to the JSON property `distribution`
3850
3925
  # @return [Array<Google::Apis::ContaineranalysisV1::Distribution>]
3851
3926
  attr_accessor :distribution
3852
3927
 
3928
+ # License information.
3929
+ # Corresponds to the JSON property `license`
3930
+ # @return [Google::Apis::ContaineranalysisV1::License]
3931
+ attr_accessor :license
3932
+
3933
+ # A freeform text denoting the maintainer of this package.
3934
+ # Corresponds to the JSON property `maintainer`
3935
+ # @return [String]
3936
+ attr_accessor :maintainer
3937
+
3853
3938
  # Required. Immutable. The name of the package.
3854
3939
  # Corresponds to the JSON property `name`
3855
3940
  # @return [String]
3856
3941
  attr_accessor :name
3857
3942
 
3943
+ # The type of package; whether native or non native (e.g., ruby gems, node.js
3944
+ # packages, etc.).
3945
+ # Corresponds to the JSON property `packageType`
3946
+ # @return [String]
3947
+ attr_accessor :package_type
3948
+
3949
+ # The homepage for this package.
3950
+ # Corresponds to the JSON property `url`
3951
+ # @return [String]
3952
+ attr_accessor :url
3953
+
3954
+ # Version contains structured information about the version of a package.
3955
+ # Corresponds to the JSON property `version`
3956
+ # @return [Google::Apis::ContaineranalysisV1::Version]
3957
+ attr_accessor :version
3958
+
3858
3959
  def initialize(**args)
3859
3960
  update!(**args)
3860
3961
  end
3861
3962
 
3862
3963
  # Update properties of this object
3863
3964
  def update!(**args)
3965
+ @architecture = args[:architecture] if args.key?(:architecture)
3966
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
3967
+ @description = args[:description] if args.key?(:description)
3968
+ @digest = args[:digest] if args.key?(:digest)
3864
3969
  @distribution = args[:distribution] if args.key?(:distribution)
3970
+ @license = args[:license] if args.key?(:license)
3971
+ @maintainer = args[:maintainer] if args.key?(:maintainer)
3865
3972
  @name = args[:name] if args.key?(:name)
3973
+ @package_type = args[:package_type] if args.key?(:package_type)
3974
+ @url = args[:url] if args.key?(:url)
3975
+ @version = args[:version] if args.key?(:version)
3866
3976
  end
3867
3977
  end
3868
3978
 
@@ -3870,25 +3980,59 @@ module Google
3870
3980
  class PackageOccurrence
3871
3981
  include Google::Apis::Core::Hashable
3872
3982
 
3873
- # Required. All of the places within the filesystem versions of this package
3874
- # have been found.
3983
+ # Output only. The CPU architecture for which packages in this distribution
3984
+ # channel were built. Architecture will be blank for language packages.
3985
+ # Corresponds to the JSON property `architecture`
3986
+ # @return [String]
3987
+ attr_accessor :architecture
3988
+
3989
+ # Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
3990
+ # denoting the package manager version distributing a package. The cpe_uri will
3991
+ # be blank for language packages.
3992
+ # Corresponds to the JSON property `cpeUri`
3993
+ # @return [String]
3994
+ attr_accessor :cpe_uri
3995
+
3996
+ # License information.
3997
+ # Corresponds to the JSON property `license`
3998
+ # @return [Google::Apis::ContaineranalysisV1::License]
3999
+ attr_accessor :license
4000
+
4001
+ # All of the places within the filesystem versions of this package have been
4002
+ # found.
3875
4003
  # Corresponds to the JSON property `location`
3876
4004
  # @return [Array<Google::Apis::ContaineranalysisV1::Location>]
3877
4005
  attr_accessor :location
3878
4006
 
3879
- # Output only. The name of the installed package.
4007
+ # Required. Output only. The name of the installed package.
3880
4008
  # Corresponds to the JSON property `name`
3881
4009
  # @return [String]
3882
4010
  attr_accessor :name
3883
4011
 
4012
+ # Output only. The type of package; whether native or non native (e.g., ruby
4013
+ # gems, node.js packages, etc.).
4014
+ # Corresponds to the JSON property `packageType`
4015
+ # @return [String]
4016
+ attr_accessor :package_type
4017
+
4018
+ # Version contains structured information about the version of a package.
4019
+ # Corresponds to the JSON property `version`
4020
+ # @return [Google::Apis::ContaineranalysisV1::Version]
4021
+ attr_accessor :version
4022
+
3884
4023
  def initialize(**args)
3885
4024
  update!(**args)
3886
4025
  end
3887
4026
 
3888
4027
  # Update properties of this object
3889
4028
  def update!(**args)
4029
+ @architecture = args[:architecture] if args.key?(:architecture)
4030
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
4031
+ @license = args[:license] if args.key?(:license)
3890
4032
  @location = args[:location] if args.key?(:location)
3891
4033
  @name = args[:name] if args.key?(:name)
4034
+ @package_type = args[:package_type] if args.key?(:package_type)
4035
+ @version = args[:version] if args.key?(:version)
3892
4036
  end
3893
4037
  end
3894
4038
 
@@ -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.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220428"
25
+ REVISION = "20220506"
26
26
  end
27
27
  end
28
28
  end
@@ -352,6 +352,12 @@ module Google
352
352
  include Google::Apis::Core::JsonObjectSupport
353
353
  end
354
354
 
355
+ class Digest
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
355
361
  class DiscoveryNote
356
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
363
 
@@ -508,6 +514,12 @@ module Google
508
514
  include Google::Apis::Core::JsonObjectSupport
509
515
  end
510
516
 
517
+ class License
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
511
523
  class ListNoteOccurrencesResponse
512
524
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
525
 
@@ -1363,6 +1375,14 @@ module Google
1363
1375
  end
1364
1376
  end
1365
1377
 
1378
+ class Digest
1379
+ # @private
1380
+ class Representation < Google::Apis::Core::JsonRepresentation
1381
+ property :algo, as: 'algo'
1382
+ property :digest_value, as: 'digestValue'
1383
+ end
1384
+ end
1385
+
1366
1386
  class DiscoveryNote
1367
1387
  # @private
1368
1388
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1600,6 +1620,14 @@ module Google
1600
1620
  end
1601
1621
  end
1602
1622
 
1623
+ class License
1624
+ # @private
1625
+ class Representation < Google::Apis::Core::JsonRepresentation
1626
+ property :comments, as: 'comments'
1627
+ property :expression, as: 'expression'
1628
+ end
1629
+ end
1630
+
1603
1631
  class ListNoteOccurrencesResponse
1604
1632
  # @private
1605
1633
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1759,18 +1787,37 @@ module Google
1759
1787
  class PackageNote
1760
1788
  # @private
1761
1789
  class Representation < Google::Apis::Core::JsonRepresentation
1790
+ property :architecture, as: 'architecture'
1791
+ property :cpe_uri, as: 'cpeUri'
1792
+ property :description, as: 'description'
1793
+ collection :digest, as: 'digest', class: Google::Apis::ContaineranalysisV1::Digest, decorator: Google::Apis::ContaineranalysisV1::Digest::Representation
1794
+
1762
1795
  collection :distribution, as: 'distribution', class: Google::Apis::ContaineranalysisV1::Distribution, decorator: Google::Apis::ContaineranalysisV1::Distribution::Representation
1763
1796
 
1797
+ property :license, as: 'license', class: Google::Apis::ContaineranalysisV1::License, decorator: Google::Apis::ContaineranalysisV1::License::Representation
1798
+
1799
+ property :maintainer, as: 'maintainer'
1764
1800
  property :name, as: 'name'
1801
+ property :package_type, as: 'packageType'
1802
+ property :url, as: 'url'
1803
+ property :version, as: 'version', class: Google::Apis::ContaineranalysisV1::Version, decorator: Google::Apis::ContaineranalysisV1::Version::Representation
1804
+
1765
1805
  end
1766
1806
  end
1767
1807
 
1768
1808
  class PackageOccurrence
1769
1809
  # @private
1770
1810
  class Representation < Google::Apis::Core::JsonRepresentation
1811
+ property :architecture, as: 'architecture'
1812
+ property :cpe_uri, as: 'cpeUri'
1813
+ property :license, as: 'license', class: Google::Apis::ContaineranalysisV1::License, decorator: Google::Apis::ContaineranalysisV1::License::Representation
1814
+
1771
1815
  collection :location, as: 'location', class: Google::Apis::ContaineranalysisV1::Location, decorator: Google::Apis::ContaineranalysisV1::Location::Representation
1772
1816
 
1773
1817
  property :name, as: 'name'
1818
+ property :package_type, as: 'packageType'
1819
+ property :version, as: 'version', class: Google::Apis::ContaineranalysisV1::Version, decorator: Google::Apis::ContaineranalysisV1::Version::Representation
1820
+
1774
1821
  end
1775
1822
  end
1776
1823
 
@@ -189,8 +189,9 @@ module Google
189
189
  # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
190
190
  # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
191
191
  # @param [String] resource
192
- # REQUIRED: The resource for which the policy is being requested. See the
193
- # operation documentation for the appropriate value for this field.
192
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
193
+ # names](https://cloud.google.com/apis/design/resource_names) for the
194
+ # appropriate value for this field.
194
195
  # @param [Google::Apis::ContaineranalysisV1::GetIamPolicyRequest] get_iam_policy_request_object
195
196
  # @param [String] fields
196
197
  # Selector specifying which fields to include in a partial response.
@@ -306,8 +307,9 @@ module Google
306
307
  # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
307
308
  # for occurrences.
308
309
  # @param [String] resource
309
- # REQUIRED: The resource for which the policy is being specified. See the
310
- # operation documentation for the appropriate value for this field.
310
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
311
+ # names](https://cloud.google.com/apis/design/resource_names) for the
312
+ # appropriate value for this field.
311
313
  # @param [Google::Apis::ContaineranalysisV1::SetIamPolicyRequest] set_iam_policy_request_object
312
314
  # @param [String] fields
313
315
  # Selector specifying which fields to include in a partial response.
@@ -344,8 +346,9 @@ module Google
344
346
  # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
345
347
  # occurrences.
346
348
  # @param [String] resource
347
- # REQUIRED: The resource for which the policy detail is being requested. See the
348
- # operation documentation for the appropriate value for this field.
349
+ # REQUIRED: The resource for which the policy detail is being requested. See [
350
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
351
+ # appropriate value for this field.
349
352
  # @param [Google::Apis::ContaineranalysisV1::TestIamPermissionsRequest] test_iam_permissions_request_object
350
353
  # @param [String] fields
351
354
  # Selector specifying which fields to include in a partial response.
@@ -555,8 +558,9 @@ module Google
555
558
  # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
556
559
  # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
557
560
  # @param [String] resource
558
- # REQUIRED: The resource for which the policy is being requested. See the
559
- # operation documentation for the appropriate value for this field.
561
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
562
+ # names](https://cloud.google.com/apis/design/resource_names) for the
563
+ # appropriate value for this field.
560
564
  # @param [Google::Apis::ContaineranalysisV1::GetIamPolicyRequest] get_iam_policy_request_object
561
565
  # @param [String] fields
562
566
  # Selector specifying which fields to include in a partial response.
@@ -738,8 +742,9 @@ module Google
738
742
  # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
739
743
  # for occurrences.
740
744
  # @param [String] resource
741
- # REQUIRED: The resource for which the policy is being specified. See the
742
- # operation documentation for the appropriate value for this field.
745
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
746
+ # names](https://cloud.google.com/apis/design/resource_names) for the
747
+ # appropriate value for this field.
743
748
  # @param [Google::Apis::ContaineranalysisV1::SetIamPolicyRequest] set_iam_policy_request_object
744
749
  # @param [String] fields
745
750
  # Selector specifying which fields to include in a partial response.
@@ -776,8 +781,9 @@ module Google
776
781
  # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
777
782
  # occurrences.
778
783
  # @param [String] resource
779
- # REQUIRED: The resource for which the policy detail is being requested. See the
780
- # operation documentation for the appropriate value for this field.
784
+ # REQUIRED: The resource for which the policy detail is being requested. See [
785
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
786
+ # appropriate value for this field.
781
787
  # @param [Google::Apis::ContaineranalysisV1::TestIamPermissionsRequest] test_iam_permissions_request_object
782
788
  # @param [String] fields
783
789
  # Selector specifying which fields to include in a partial response.
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.10.0
4
+ version: 0.11.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: 2022-05-09 00:00:00.000000000 Z
11
+ date: 2022-05-16 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.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.11.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: []