google-apis-containeranalysis_v1alpha1 0.2.0 → 0.7.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: ff69a0d30336640628a2641e4fe5541d9c9f0dd42b18f96b9a76c3825b427a49
4
- data.tar.gz: 5cc22210eac9e963fb82082fb1ad9ee3f1ba3da5e32f0e3d3e13249d5e596a60
3
+ metadata.gz: ed66951523efa08213d8ddd7f0b2a75a2452df8eea6bb6525a0a3d193971c6a0
4
+ data.tar.gz: e6e7b837102054a87a4bffa143aef0880b8fae633947b348eea754f8d26de24b
5
5
  SHA512:
6
- metadata.gz: 3e77d256972f0734ea86cbc28332f69387fb716931a8ab5d67870d31208ba4cfc662fef7436dc07043081e58a73696ec0a9da7db8cb0bf5cb6a5d5646365971a
7
- data.tar.gz: 7c3fda7720acfb7e36c66f748ec0598c0da1b37ce267659dc7420194f089548492123d52fcef282668db1c0ece29259eb09edc0c75b84a16222c18a34f59b9b0
6
+ metadata.gz: e3c229fc16ee07ad6d3085870d8e4416ded816d815bc34f114e62935623561ebc04e821d490cd9e7ba11fd6646b755dbd33be157b71f5208d1fa96df449ba5d9
7
+ data.tar.gz: 3c1ed7a6215803532501a416a3d9d8f40ff35fe25c470989e5910fc1386745eb81e108c2997b631c8ae9ff5973893040a6f4748f0ae54de931ba58ec4fd67652
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-containeranalysis_v1alpha1
2
2
 
3
+ ### v0.7.0 (2021-06-10)
4
+
5
+ * Regenerated from discovery document revision 20210604
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.6.0 (2021-05-19)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.5.0 (2021-04-16)
13
+
14
+ * Regenerated from discovery document revision 20210409
15
+
16
+ ### v0.4.0 (2021-04-01)
17
+
18
+ * Regenerated from discovery document revision 20210326
19
+ * Regenerated using generator version 0.2.0
20
+
21
+ ### v0.3.0 (2021-03-04)
22
+
23
+ * Unspecified changes
24
+
3
25
  ### v0.2.0 (2021-01-28)
4
26
 
5
27
  * Regenerated from discovery document revision 20210122
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1alpha1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
@@ -458,6 +458,31 @@ module Google
458
458
  end
459
459
  end
460
460
 
461
+ # A compliance check that is a CIS benchmark.
462
+ class CisBenchmark
463
+ include Google::Apis::Core::Hashable
464
+
465
+ # The profile level of this CIS benchmark check.
466
+ # Corresponds to the JSON property `profileLevel`
467
+ # @return [Fixnum]
468
+ attr_accessor :profile_level
469
+
470
+ # The severity level of this CIS benchmark check.
471
+ # Corresponds to the JSON property `severity`
472
+ # @return [String]
473
+ attr_accessor :severity
474
+
475
+ def initialize(**args)
476
+ update!(**args)
477
+ end
478
+
479
+ # Update properties of this object
480
+ def update!(**args)
481
+ @profile_level = args[:profile_level] if args.key?(:profile_level)
482
+ @severity = args[:severity] if args.key?(:severity)
483
+ end
484
+ end
485
+
461
486
  # Command describes a step performed as part of the build pipeline.
462
487
  class Command
463
488
  include Google::Apis::Core::Hashable
@@ -510,6 +535,116 @@ module Google
510
535
  end
511
536
  end
512
537
 
538
+ # ComplianceNote encapsulates all information about a specific compliance check.
539
+ class ComplianceNote
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # A compliance check that is a CIS benchmark.
543
+ # Corresponds to the JSON property `cisBenchmark`
544
+ # @return [Google::Apis::ContaineranalysisV1alpha1::CisBenchmark]
545
+ attr_accessor :cis_benchmark
546
+
547
+ # A description about this compliance check.
548
+ # Corresponds to the JSON property `description`
549
+ # @return [String]
550
+ attr_accessor :description
551
+
552
+ # A rationale for the existence of this compliance check.
553
+ # Corresponds to the JSON property `rationale`
554
+ # @return [String]
555
+ attr_accessor :rationale
556
+
557
+ # A description of remediation steps if the compliance check fails.
558
+ # Corresponds to the JSON property `remediation`
559
+ # @return [String]
560
+ attr_accessor :remediation
561
+
562
+ # Serialized scan instructions with a predefined format.
563
+ # Corresponds to the JSON property `scanInstructions`
564
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
565
+ # @return [String]
566
+ attr_accessor :scan_instructions
567
+
568
+ # The title that identifies this compliance check.
569
+ # Corresponds to the JSON property `title`
570
+ # @return [String]
571
+ attr_accessor :title
572
+
573
+ # The OS and config versions the benchmark applies to.
574
+ # Corresponds to the JSON property `version`
575
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::ComplianceVersion>]
576
+ attr_accessor :version
577
+
578
+ def initialize(**args)
579
+ update!(**args)
580
+ end
581
+
582
+ # Update properties of this object
583
+ def update!(**args)
584
+ @cis_benchmark = args[:cis_benchmark] if args.key?(:cis_benchmark)
585
+ @description = args[:description] if args.key?(:description)
586
+ @rationale = args[:rationale] if args.key?(:rationale)
587
+ @remediation = args[:remediation] if args.key?(:remediation)
588
+ @scan_instructions = args[:scan_instructions] if args.key?(:scan_instructions)
589
+ @title = args[:title] if args.key?(:title)
590
+ @version = args[:version] if args.key?(:version)
591
+ end
592
+ end
593
+
594
+ # An indication that the compliance checks in the associated ComplianceNote were
595
+ # not satisfied for particular resources or a specified reason.
596
+ class ComplianceOccurrence
597
+ include Google::Apis::Core::Hashable
598
+
599
+ # The reason for non compliance of these files.
600
+ # Corresponds to the JSON property `nonComplianceReason`
601
+ # @return [String]
602
+ attr_accessor :non_compliance_reason
603
+
604
+ # A list of files which are violating compliance checks.
605
+ # Corresponds to the JSON property `nonCompliantFiles`
606
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile>]
607
+ attr_accessor :non_compliant_files
608
+
609
+ def initialize(**args)
610
+ update!(**args)
611
+ end
612
+
613
+ # Update properties of this object
614
+ def update!(**args)
615
+ @non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
616
+ @non_compliant_files = args[:non_compliant_files] if args.key?(:non_compliant_files)
617
+ end
618
+ end
619
+
620
+ # Describes the CIS benchmark version that is applicable to a given OS and os
621
+ # version.
622
+ class ComplianceVersion
623
+ include Google::Apis::Core::Hashable
624
+
625
+ # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
626
+ # applicable to.
627
+ # Corresponds to the JSON property `cpeUri`
628
+ # @return [String]
629
+ attr_accessor :cpe_uri
630
+
631
+ # The version of the benchmark. This is set to the version of the OS-specific
632
+ # CIS document the benchmark is defined in.
633
+ # Corresponds to the JSON property `version`
634
+ # @return [String]
635
+ attr_accessor :version
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
644
+ @version = args[:version] if args.key?(:version)
645
+ end
646
+ end
647
+
513
648
  # Request for creating an operation
514
649
  class CreateOperationRequest
515
650
  include Google::Apis::Core::Hashable
@@ -720,6 +855,11 @@ module Google
720
855
  # @return [String]
721
856
  attr_accessor :source
722
857
 
858
+ # The vendor of the product. e.g. "google"
859
+ # Corresponds to the JSON property `vendor`
860
+ # @return [String]
861
+ attr_accessor :vendor
862
+
723
863
  def initialize(**args)
724
864
  update!(**args)
725
865
  end
@@ -736,6 +876,7 @@ module Google
736
876
  @package_type = args[:package_type] if args.key?(:package_type)
737
877
  @severity_name = args[:severity_name] if args.key?(:severity_name)
738
878
  @source = args[:source] if args.key?(:source)
879
+ @vendor = args[:vendor] if args.key?(:vendor)
739
880
  end
740
881
  end
741
882
 
@@ -1509,6 +1650,39 @@ module Google
1509
1650
  end
1510
1651
  end
1511
1652
 
1653
+ # Details about files that caused a compliance check to fail.
1654
+ class NonCompliantFile
1655
+ include Google::Apis::Core::Hashable
1656
+
1657
+ # Command to display the non-compliant files.
1658
+ # Corresponds to the JSON property `displayCommand`
1659
+ # @return [String]
1660
+ attr_accessor :display_command
1661
+
1662
+ # display_command is a single command that can be used to display a list of non
1663
+ # compliant files. When there is no such command, we can also iterate a list of
1664
+ # non compliant file using 'path'. Empty if `display_command` is set.
1665
+ # Corresponds to the JSON property `path`
1666
+ # @return [String]
1667
+ attr_accessor :path
1668
+
1669
+ # Explains why a file is non compliant for a CIS check.
1670
+ # Corresponds to the JSON property `reason`
1671
+ # @return [String]
1672
+ attr_accessor :reason
1673
+
1674
+ def initialize(**args)
1675
+ update!(**args)
1676
+ end
1677
+
1678
+ # Update properties of this object
1679
+ def update!(**args)
1680
+ @display_command = args[:display_command] if args.key?(:display_command)
1681
+ @path = args[:path] if args.key?(:path)
1682
+ @reason = args[:reason] if args.key?(:reason)
1683
+ end
1684
+ end
1685
+
1512
1686
  # Provides a detailed description of a `Note`.
1513
1687
  class Note
1514
1688
  include Google::Apis::Core::Hashable
@@ -1538,6 +1712,11 @@ module Google
1538
1712
  # @return [Google::Apis::ContaineranalysisV1alpha1::BuildType]
1539
1713
  attr_accessor :build_type
1540
1714
 
1715
+ # ComplianceNote encapsulates all information about a specific compliance check.
1716
+ # Corresponds to the JSON property `compliance`
1717
+ # @return [Google::Apis::ContaineranalysisV1alpha1::ComplianceNote]
1718
+ attr_accessor :compliance
1719
+
1541
1720
  # Output only. The time this note was created. This field can be used as a
1542
1721
  # filter in list requests.
1543
1722
  # Corresponds to the JSON property `createTime`
@@ -1623,6 +1802,7 @@ module Google
1623
1802
  @attestation_authority = args[:attestation_authority] if args.key?(:attestation_authority)
1624
1803
  @base_image = args[:base_image] if args.key?(:base_image)
1625
1804
  @build_type = args[:build_type] if args.key?(:build_type)
1805
+ @compliance = args[:compliance] if args.key?(:compliance)
1626
1806
  @create_time = args[:create_time] if args.key?(:create_time)
1627
1807
  @deployable = args[:deployable] if args.key?(:deployable)
1628
1808
  @discovery = args[:discovery] if args.key?(:discovery)
@@ -1660,6 +1840,12 @@ module Google
1660
1840
  # @return [Google::Apis::ContaineranalysisV1alpha1::BuildDetails]
1661
1841
  attr_accessor :build_details
1662
1842
 
1843
+ # An indication that the compliance checks in the associated ComplianceNote were
1844
+ # not satisfied for particular resources or a specified reason.
1845
+ # Corresponds to the JSON property `compliance`
1846
+ # @return [Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence]
1847
+ attr_accessor :compliance
1848
+
1663
1849
  # Output only. The time this `Occurrence` was created.
1664
1850
  # Corresponds to the JSON property `createTime`
1665
1851
  # @return [String]
@@ -1748,6 +1934,7 @@ module Google
1748
1934
  def update!(**args)
1749
1935
  @attestation = args[:attestation] if args.key?(:attestation)
1750
1936
  @build_details = args[:build_details] if args.key?(:build_details)
1937
+ @compliance = args[:compliance] if args.key?(:compliance)
1751
1938
  @create_time = args[:create_time] if args.key?(:create_time)
1752
1939
  @deployment = args[:deployment] if args.key?(:deployment)
1753
1940
  @derived_image = args[:derived_image] if args.key?(:derived_image)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1alpha1
18
18
  # Version of the google-apis-containeranalysis_v1alpha1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210122"
25
+ REVISION = "20210604"
26
26
  end
27
27
  end
28
28
  end
@@ -82,12 +82,36 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class CisBenchmark
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class Command
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class ComplianceNote
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ComplianceOccurrence
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ComplianceVersion
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
91
115
  class CreateOperationRequest
92
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
117
 
@@ -274,6 +298,12 @@ module Google
274
298
  include Google::Apis::Core::JsonObjectSupport
275
299
  end
276
300
 
301
+ class NonCompliantFile
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
277
307
  class Note
278
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
309
 
@@ -532,6 +562,14 @@ module Google
532
562
  end
533
563
  end
534
564
 
565
+ class CisBenchmark
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :profile_level, as: 'profileLevel'
569
+ property :severity, as: 'severity'
570
+ end
571
+ end
572
+
535
573
  class Command
536
574
  # @private
537
575
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -544,6 +582,38 @@ module Google
544
582
  end
545
583
  end
546
584
 
585
+ class ComplianceNote
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ property :cis_benchmark, as: 'cisBenchmark', class: Google::Apis::ContaineranalysisV1alpha1::CisBenchmark, decorator: Google::Apis::ContaineranalysisV1alpha1::CisBenchmark::Representation
589
+
590
+ property :description, as: 'description'
591
+ property :rationale, as: 'rationale'
592
+ property :remediation, as: 'remediation'
593
+ property :scan_instructions, :base64 => true, as: 'scanInstructions'
594
+ property :title, as: 'title'
595
+ collection :version, as: 'version', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceVersion, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceVersion::Representation
596
+
597
+ end
598
+ end
599
+
600
+ class ComplianceOccurrence
601
+ # @private
602
+ class Representation < Google::Apis::Core::JsonRepresentation
603
+ property :non_compliance_reason, as: 'nonComplianceReason'
604
+ collection :non_compliant_files, as: 'nonCompliantFiles', class: Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile, decorator: Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile::Representation
605
+
606
+ end
607
+ end
608
+
609
+ class ComplianceVersion
610
+ # @private
611
+ class Representation < Google::Apis::Core::JsonRepresentation
612
+ property :cpe_uri, as: 'cpeUri'
613
+ property :version, as: 'version'
614
+ end
615
+ end
616
+
547
617
  class CreateOperationRequest
548
618
  # @private
549
619
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -601,6 +671,7 @@ module Google
601
671
  property :package_type, as: 'packageType'
602
672
  property :severity_name, as: 'severityName'
603
673
  property :source, as: 'source'
674
+ property :vendor, as: 'vendor'
604
675
  end
605
676
  end
606
677
 
@@ -840,6 +911,15 @@ module Google
840
911
  end
841
912
  end
842
913
 
914
+ class NonCompliantFile
915
+ # @private
916
+ class Representation < Google::Apis::Core::JsonRepresentation
917
+ property :display_command, as: 'displayCommand'
918
+ property :path, as: 'path'
919
+ property :reason, as: 'reason'
920
+ end
921
+ end
922
+
843
923
  class Note
844
924
  # @private
845
925
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -849,6 +929,8 @@ module Google
849
929
 
850
930
  property :build_type, as: 'buildType', class: Google::Apis::ContaineranalysisV1alpha1::BuildType, decorator: Google::Apis::ContaineranalysisV1alpha1::BuildType::Representation
851
931
 
932
+ property :compliance, as: 'compliance', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceNote, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceNote::Representation
933
+
852
934
  property :create_time, as: 'createTime'
853
935
  property :deployable, as: 'deployable', class: Google::Apis::ContaineranalysisV1alpha1::Deployable, decorator: Google::Apis::ContaineranalysisV1alpha1::Deployable::Representation
854
936
 
@@ -878,6 +960,8 @@ module Google
878
960
 
879
961
  property :build_details, as: 'buildDetails', class: Google::Apis::ContaineranalysisV1alpha1::BuildDetails, decorator: Google::Apis::ContaineranalysisV1alpha1::BuildDetails::Representation
880
962
 
963
+ property :compliance, as: 'compliance', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence::Representation
964
+
881
965
  property :create_time, as: 'createTime'
882
966
  property :deployment, as: 'deployment', class: Google::Apis::ContaineranalysisV1alpha1::Deployment, decorator: Google::Apis::ContaineranalysisV1alpha1::Deployment::Representation
883
967
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.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: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-containeranalysis_v1alpha1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-containeranalysis_v1alpha1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.6
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Container Analysis API V1alpha1