google-apis-containeranalysis_v1beta1 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c943a4451bc6ac4d5b1f5c7bc44ad1f26488f42506452e21198c3c5518fa4ef3
4
- data.tar.gz: 0ccc32d85bdae73d8d68e1d510264ddef5423a24f4a924f5b40c9d9ae28596dd
3
+ metadata.gz: b6f5a74e4569fe342ba476395aefbf816fb76878168370b351cf3e670f9f9d90
4
+ data.tar.gz: 632caf2b409d0cefc1399c7e52b12b45ec3f6dc6a843af3e25e05243ceec8c5a
5
5
  SHA512:
6
- metadata.gz: 764372efeec2a2f0b1d716785adb0314efc8813b44eae180fd7d47e42854833e4ba7e5267f516942020633125352b85480f2860844e32d785c27b88ec96057b6
7
- data.tar.gz: 031652b30cf9a14af6444ff1854370d8c3e92e304bfb360ad59c0f3148744c79e2e8a127fcb2eb9fd1dbb56a96e93749b7466442e96ed1e74d65a14d5715a7e6
6
+ metadata.gz: addf30801fb545ceb0527a52a0ca86601013b75957ee655c62d6eb66af9dd6c654ff037433c322a8e383c5d44879cce6d04bf27844cddfe6947c324378bbac32
7
+ data.tar.gz: 1237836f1dfd0d1de5ba7ee9a2063d1b15426f2b1e7a4aff843cea2ea59c353aa551df6f4468e824b9b4c59a91d8cdf0ed97102983f11c1a73cd6c8515ad3c46
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.10.0 (2021-09-16)
4
+
5
+ * Regenerated from discovery document revision 20210913
6
+
3
7
  ### v0.9.0 (2021-08-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20210813
@@ -537,6 +537,141 @@ module Google
537
537
  end
538
538
  end
539
539
 
540
+ # A step in the build pipeline.
541
+ class BuildStep
542
+ include Google::Apis::Core::Hashable
543
+
544
+ # A list of arguments that will be presented to the step when it is started. If
545
+ # the image used to run the step's container has an entrypoint, the `args` are
546
+ # used as arguments to that entrypoint. If the image does not define an
547
+ # entrypoint, the first element in args is used as the entrypoint, and the
548
+ # remainder will be used as arguments.
549
+ # Corresponds to the JSON property `args`
550
+ # @return [Array<String>]
551
+ attr_accessor :args
552
+
553
+ # Working directory to use when running this step's container. If this value is
554
+ # a relative path, it is relative to the build's working directory. If this
555
+ # value is absolute, it may be outside the build's working directory, in which
556
+ # case the contents of the path may not be persisted across build step
557
+ # executions, unless a `volume` for that path is specified. If the build
558
+ # specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies
559
+ # an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
560
+ # Corresponds to the JSON property `dir`
561
+ # @return [String]
562
+ attr_accessor :dir
563
+
564
+ # Entrypoint to be used instead of the build step image's default entrypoint. If
565
+ # unset, the image's default entrypoint is used.
566
+ # Corresponds to the JSON property `entrypoint`
567
+ # @return [String]
568
+ attr_accessor :entrypoint
569
+
570
+ # A list of environment variable definitions to be used when running a step. The
571
+ # elements are of the form "KEY=VALUE" for the environment variable "KEY" being
572
+ # given the value "VALUE".
573
+ # Corresponds to the JSON property `env`
574
+ # @return [Array<String>]
575
+ attr_accessor :env
576
+
577
+ # Unique identifier for this build step, used in `wait_for` to reference this
578
+ # build step as a dependency.
579
+ # Corresponds to the JSON property `id`
580
+ # @return [String]
581
+ attr_accessor :id
582
+
583
+ # Required. The name of the container image that will run this particular build
584
+ # step. If the image is available in the host's Docker daemon's cache, it will
585
+ # be run directly. If not, the host will attempt to pull the image first, using
586
+ # the builder service account's credentials if necessary. The Docker daemon's
587
+ # cache will already have the latest versions of all of the officially supported
588
+ # build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://
589
+ # github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also
590
+ # have cached many of the layers for some popular images, like "ubuntu", "debian"
591
+ # , but they will be refreshed at the time you attempt to use them. If you built
592
+ # an image in a previous build step, it will be stored in the host's Docker
593
+ # daemon's cache and is available to use as the name for a later build step.
594
+ # Corresponds to the JSON property `name`
595
+ # @return [String]
596
+ attr_accessor :name
597
+
598
+ # Start and end times for a build execution phase.
599
+ # Corresponds to the JSON property `pullTiming`
600
+ # @return [Google::Apis::ContaineranalysisV1beta1::TimeSpan]
601
+ attr_accessor :pull_timing
602
+
603
+ # A shell script to be executed in the step. When script is provided, the user
604
+ # cannot specify the entrypoint or args.
605
+ # Corresponds to the JSON property `script`
606
+ # @return [String]
607
+ attr_accessor :script
608
+
609
+ # A list of environment variables which are encrypted using a Cloud Key
610
+ # Management Service crypto key. These values must be specified in the build's `
611
+ # Secret`.
612
+ # Corresponds to the JSON property `secretEnv`
613
+ # @return [Array<String>]
614
+ attr_accessor :secret_env
615
+
616
+ # Output only. Status of the build step. At this time, build step status is only
617
+ # updated on build completion; step status is not updated in real-time as the
618
+ # build progresses.
619
+ # Corresponds to the JSON property `status`
620
+ # @return [String]
621
+ attr_accessor :status
622
+
623
+ # Time limit for executing this build step. If not defined, the step has no time
624
+ # limit and will be allowed to continue to run until either it completes or the
625
+ # build itself times out.
626
+ # Corresponds to the JSON property `timeout`
627
+ # @return [String]
628
+ attr_accessor :timeout
629
+
630
+ # Start and end times for a build execution phase.
631
+ # Corresponds to the JSON property `timing`
632
+ # @return [Google::Apis::ContaineranalysisV1beta1::TimeSpan]
633
+ attr_accessor :timing
634
+
635
+ # List of volumes to mount into the build step. Each volume is created as an
636
+ # empty volume prior to execution of the build step. Upon completion of the
637
+ # build, volumes and their contents are discarded. Using a named volume in only
638
+ # one step is not valid as it is indicative of a build request with an incorrect
639
+ # configuration.
640
+ # Corresponds to the JSON property `volumes`
641
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::Volume>]
642
+ attr_accessor :volumes
643
+
644
+ # The ID(s) of the step(s) that this build step depends on. This build step will
645
+ # not start until all the build steps in `wait_for` have completed successfully.
646
+ # If `wait_for` is empty, this build step will start when all previous build
647
+ # steps in the `Build.Steps` list have completed successfully.
648
+ # Corresponds to the JSON property `waitFor`
649
+ # @return [Array<String>]
650
+ attr_accessor :wait_for
651
+
652
+ def initialize(**args)
653
+ update!(**args)
654
+ end
655
+
656
+ # Update properties of this object
657
+ def update!(**args)
658
+ @args = args[:args] if args.key?(:args)
659
+ @dir = args[:dir] if args.key?(:dir)
660
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
661
+ @env = args[:env] if args.key?(:env)
662
+ @id = args[:id] if args.key?(:id)
663
+ @name = args[:name] if args.key?(:name)
664
+ @pull_timing = args[:pull_timing] if args.key?(:pull_timing)
665
+ @script = args[:script] if args.key?(:script)
666
+ @secret_env = args[:secret_env] if args.key?(:secret_env)
667
+ @status = args[:status] if args.key?(:status)
668
+ @timeout = args[:timeout] if args.key?(:timeout)
669
+ @timing = args[:timing] if args.key?(:timing)
670
+ @volumes = args[:volumes] if args.key?(:volumes)
671
+ @wait_for = args[:wait_for] if args.key?(:wait_for)
672
+ end
673
+ end
674
+
540
675
  # Defines an object for the byproducts field in in-toto links. The suggested
541
676
  # fields are "stderr", "stdout", and "return-value".
542
677
  class ByProducts
@@ -3537,6 +3672,31 @@ module Google
3537
3672
  end
3538
3673
  end
3539
3674
 
3675
+ # Start and end times for a build execution phase.
3676
+ class TimeSpan
3677
+ include Google::Apis::Core::Hashable
3678
+
3679
+ # End of time span.
3680
+ # Corresponds to the JSON property `endTime`
3681
+ # @return [String]
3682
+ attr_accessor :end_time
3683
+
3684
+ # Start of time span.
3685
+ # Corresponds to the JSON property `startTime`
3686
+ # @return [String]
3687
+ attr_accessor :start_time
3688
+
3689
+ def initialize(**args)
3690
+ update!(**args)
3691
+ end
3692
+
3693
+ # Update properties of this object
3694
+ def update!(**args)
3695
+ @end_time = args[:end_time] if args.key?(:end_time)
3696
+ @start_time = args[:start_time] if args.key?(:start_time)
3697
+ end
3698
+ end
3699
+
3540
3700
  # Version contains structured information about the version of a package.
3541
3701
  class Version
3542
3702
  include Google::Apis::Core::Hashable
@@ -3586,6 +3746,36 @@ module Google
3586
3746
  end
3587
3747
  end
3588
3748
 
3749
+ # Volume describes a Docker container volume which is mounted into build steps
3750
+ # in order to persist files across build step execution.
3751
+ class Volume
3752
+ include Google::Apis::Core::Hashable
3753
+
3754
+ # Name of the volume to mount. Volume names must be unique per build step and
3755
+ # must be valid names for Docker volumes. Each named volume must be used by at
3756
+ # least two build steps.
3757
+ # Corresponds to the JSON property `name`
3758
+ # @return [String]
3759
+ attr_accessor :name
3760
+
3761
+ # Path at which to mount the volume. Paths must be absolute and cannot conflict
3762
+ # with other volume paths on the same build step or with certain reserved volume
3763
+ # paths.
3764
+ # Corresponds to the JSON property `path`
3765
+ # @return [String]
3766
+ attr_accessor :path
3767
+
3768
+ def initialize(**args)
3769
+ update!(**args)
3770
+ end
3771
+
3772
+ # Update properties of this object
3773
+ def update!(**args)
3774
+ @name = args[:name] if args.key?(:name)
3775
+ @path = args[:path] if args.key?(:path)
3776
+ end
3777
+ end
3778
+
3589
3779
  # Vulnerability provides metadata about a security vulnerability in a Note.
3590
3780
  class Vulnerability
3591
3781
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1beta1
18
18
  # Version of the google-apis-containeranalysis_v1beta1 gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210813"
25
+ REVISION = "20210913"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class BuildStep
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class ByProducts
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
@@ -550,12 +556,24 @@ module Google
550
556
  include Google::Apis::Core::JsonObjectSupport
551
557
  end
552
558
 
559
+ class TimeSpan
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
553
565
  class Version
554
566
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
567
 
556
568
  include Google::Apis::Core::JsonObjectSupport
557
569
  end
558
570
 
571
+ class Volume
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
559
577
  class Vulnerability
560
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
561
579
 
@@ -721,6 +739,29 @@ module Google
721
739
  end
722
740
  end
723
741
 
742
+ class BuildStep
743
+ # @private
744
+ class Representation < Google::Apis::Core::JsonRepresentation
745
+ collection :args, as: 'args'
746
+ property :dir, as: 'dir'
747
+ property :entrypoint, as: 'entrypoint'
748
+ collection :env, as: 'env'
749
+ property :id, as: 'id'
750
+ property :name, as: 'name'
751
+ property :pull_timing, as: 'pullTiming', class: Google::Apis::ContaineranalysisV1beta1::TimeSpan, decorator: Google::Apis::ContaineranalysisV1beta1::TimeSpan::Representation
752
+
753
+ property :script, as: 'script'
754
+ collection :secret_env, as: 'secretEnv'
755
+ property :status, as: 'status'
756
+ property :timeout, as: 'timeout'
757
+ property :timing, as: 'timing', class: Google::Apis::ContaineranalysisV1beta1::TimeSpan, decorator: Google::Apis::ContaineranalysisV1beta1::TimeSpan::Representation
758
+
759
+ collection :volumes, as: 'volumes', class: Google::Apis::ContaineranalysisV1beta1::Volume, decorator: Google::Apis::ContaineranalysisV1beta1::Volume::Representation
760
+
761
+ collection :wait_for, as: 'waitFor'
762
+ end
763
+ end
764
+
724
765
  class ByProducts
725
766
  # @private
726
767
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1511,6 +1552,14 @@ module Google
1511
1552
  end
1512
1553
  end
1513
1554
 
1555
+ class TimeSpan
1556
+ # @private
1557
+ class Representation < Google::Apis::Core::JsonRepresentation
1558
+ property :end_time, as: 'endTime'
1559
+ property :start_time, as: 'startTime'
1560
+ end
1561
+ end
1562
+
1514
1563
  class Version
1515
1564
  # @private
1516
1565
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1522,6 +1571,14 @@ module Google
1522
1571
  end
1523
1572
  end
1524
1573
 
1574
+ class Volume
1575
+ # @private
1576
+ class Representation < Google::Apis::Core::JsonRepresentation
1577
+ property :name, as: 'name'
1578
+ property :path, as: 'path'
1579
+ end
1580
+ end
1581
+
1525
1582
  class Vulnerability
1526
1583
  # @private
1527
1584
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.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-08-23 00:00:00.000000000 Z
11
+ date: 2021-09-20 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/master/generated/google-apis-containeranalysis_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.10.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-containeranalysis_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []