google-apis-containeranalysis_v1alpha1 0.6.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: c54fafe6cf9bad8db9e5c4a515b632ef6722cca244fc631dd89a4b9b74a25705
4
- data.tar.gz: 2e9eabe72d8326cc5a2b66ce96ae23710efb85e7810519e33d7ec63adc29e69f
3
+ metadata.gz: ed66951523efa08213d8ddd7f0b2a75a2452df8eea6bb6525a0a3d193971c6a0
4
+ data.tar.gz: e6e7b837102054a87a4bffa143aef0880b8fae633947b348eea754f8d26de24b
5
5
  SHA512:
6
- metadata.gz: 42476d46852363d310cfa963ea889665d1ed348e908fa2b7ce8f447c7ba18e6d22254a0f4901566b0f6c5b03821767aa2b091115240a44dfc98498d088b8aae7
7
- data.tar.gz: 38a44342825cf3168f2bd020ba79e3b9d427e1423401f4398c4146c6ba9febab79c07cef0be1ced0215fdda21754b0c302d3fc583e96a54fdfd35466f94ff31f
6
+ metadata.gz: e3c229fc16ee07ad6d3085870d8e4416ded816d815bc34f114e62935623561ebc04e821d490cd9e7ba11fd6646b755dbd33be157b71f5208d1fa96df449ba5d9
7
+ data.tar.gz: 3c1ed7a6215803532501a416a3d9d8f40ff35fe25c470989e5910fc1386745eb81e108c2997b631c8ae9ff5973893040a6f4748f0ae54de931ba58ec4fd67652
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ### v0.6.0 (2021-05-19)
4
9
 
5
10
  * Unspecified changes
@@ -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
@@ -1515,6 +1650,39 @@ module Google
1515
1650
  end
1516
1651
  end
1517
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
+
1518
1686
  # Provides a detailed description of a `Note`.
1519
1687
  class Note
1520
1688
  include Google::Apis::Core::Hashable
@@ -1544,6 +1712,11 @@ module Google
1544
1712
  # @return [Google::Apis::ContaineranalysisV1alpha1::BuildType]
1545
1713
  attr_accessor :build_type
1546
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
+
1547
1720
  # Output only. The time this note was created. This field can be used as a
1548
1721
  # filter in list requests.
1549
1722
  # Corresponds to the JSON property `createTime`
@@ -1629,6 +1802,7 @@ module Google
1629
1802
  @attestation_authority = args[:attestation_authority] if args.key?(:attestation_authority)
1630
1803
  @base_image = args[:base_image] if args.key?(:base_image)
1631
1804
  @build_type = args[:build_type] if args.key?(:build_type)
1805
+ @compliance = args[:compliance] if args.key?(:compliance)
1632
1806
  @create_time = args[:create_time] if args.key?(:create_time)
1633
1807
  @deployable = args[:deployable] if args.key?(:deployable)
1634
1808
  @discovery = args[:discovery] if args.key?(:discovery)
@@ -1666,6 +1840,12 @@ module Google
1666
1840
  # @return [Google::Apis::ContaineranalysisV1alpha1::BuildDetails]
1667
1841
  attr_accessor :build_details
1668
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
+
1669
1849
  # Output only. The time this `Occurrence` was created.
1670
1850
  # Corresponds to the JSON property `createTime`
1671
1851
  # @return [String]
@@ -1754,6 +1934,7 @@ module Google
1754
1934
  def update!(**args)
1755
1935
  @attestation = args[:attestation] if args.key?(:attestation)
1756
1936
  @build_details = args[:build_details] if args.key?(:build_details)
1937
+ @compliance = args[:compliance] if args.key?(:compliance)
1757
1938
  @create_time = args[:create_time] if args.key?(:create_time)
1758
1939
  @deployment = args[:deployment] if args.key?(:deployment)
1759
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.6.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.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210409"
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
@@ -841,6 +911,15 @@ module Google
841
911
  end
842
912
  end
843
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
+
844
923
  class Note
845
924
  # @private
846
925
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -850,6 +929,8 @@ module Google
850
929
 
851
930
  property :build_type, as: 'buildType', class: Google::Apis::ContaineranalysisV1alpha1::BuildType, decorator: Google::Apis::ContaineranalysisV1alpha1::BuildType::Representation
852
931
 
932
+ property :compliance, as: 'compliance', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceNote, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceNote::Representation
933
+
853
934
  property :create_time, as: 'createTime'
854
935
  property :deployable, as: 'deployable', class: Google::Apis::ContaineranalysisV1alpha1::Deployable, decorator: Google::Apis::ContaineranalysisV1alpha1::Deployable::Representation
855
936
 
@@ -879,6 +960,8 @@ module Google
879
960
 
880
961
  property :build_details, as: 'buildDetails', class: Google::Apis::ContaineranalysisV1alpha1::BuildDetails, decorator: Google::Apis::ContaineranalysisV1alpha1::BuildDetails::Representation
881
962
 
963
+ property :compliance, as: 'compliance', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence::Representation
964
+
882
965
  property :create_time, as: 'createTime'
883
966
  property :deployment, as: 'deployment', class: Google::Apis::ContaineranalysisV1alpha1::Deployment, decorator: Google::Apis::ContaineranalysisV1alpha1::Deployment::Representation
884
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.6.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-05-24 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.6.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: []