google-apis-containeranalysis_v1beta1 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -294,7 +294,7 @@ module Google
|
|
294
294
|
end
|
295
295
|
end
|
296
296
|
|
297
|
-
# Associates `members
|
297
|
+
# Associates `members`, or principals, with a `role`.
|
298
298
|
class Binding
|
299
299
|
include Google::Apis::Core::Hashable
|
300
300
|
|
@@ -317,7 +317,7 @@ module Google
|
|
317
317
|
# @return [Google::Apis::ContaineranalysisV1beta1::Expr]
|
318
318
|
attr_accessor :condition
|
319
319
|
|
320
|
-
# Specifies the
|
320
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
321
321
|
# members` can have the following values: * `allUsers`: A special identifier
|
322
322
|
# that represents anyone who is on the internet; with or without a Google
|
323
323
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -347,8 +347,8 @@ module Google
|
|
347
347
|
# @return [Array<String>]
|
348
348
|
attr_accessor :members
|
349
349
|
|
350
|
-
# Role that is assigned to `members
|
351
|
-
#
|
350
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
351
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
352
352
|
# Corresponds to the JSON property `role`
|
353
353
|
# @return [String]
|
354
354
|
attr_accessor :role
|
@@ -537,141 +537,6 @@ 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
|
-
|
675
540
|
# Defines an object for the byproducts field in in-toto links. The suggested
|
676
541
|
# fields are "stderr", "stdout", and "return-value".
|
677
542
|
class ByProducts
|
@@ -818,29 +683,1308 @@ module Google
|
|
818
683
|
# command.
|
819
684
|
# Corresponds to the JSON property `dir`
|
820
685
|
# @return [String]
|
821
|
-
attr_accessor :dir
|
686
|
+
attr_accessor :dir
|
687
|
+
|
688
|
+
# Environment variables set before running this command.
|
689
|
+
# Corresponds to the JSON property `env`
|
690
|
+
# @return [Array<String>]
|
691
|
+
attr_accessor :env
|
692
|
+
|
693
|
+
# Optional unique identifier for this command, used in wait_for to reference
|
694
|
+
# this command as a dependency.
|
695
|
+
# Corresponds to the JSON property `id`
|
696
|
+
# @return [String]
|
697
|
+
attr_accessor :id
|
698
|
+
|
699
|
+
# Required. Name of the command, as presented on the command line, or if the
|
700
|
+
# command is packaged as a Docker container, as presented to `docker pull`.
|
701
|
+
# Corresponds to the JSON property `name`
|
702
|
+
# @return [String]
|
703
|
+
attr_accessor :name
|
704
|
+
|
705
|
+
# The ID(s) of the command(s) that this command depends on.
|
706
|
+
# Corresponds to the JSON property `waitFor`
|
707
|
+
# @return [Array<String>]
|
708
|
+
attr_accessor :wait_for
|
709
|
+
|
710
|
+
def initialize(**args)
|
711
|
+
update!(**args)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Update properties of this object
|
715
|
+
def update!(**args)
|
716
|
+
@args = args[:args] if args.key?(:args)
|
717
|
+
@dir = args[:dir] if args.key?(:dir)
|
718
|
+
@env = args[:env] if args.key?(:env)
|
719
|
+
@id = args[:id] if args.key?(:id)
|
720
|
+
@name = args[:name] if args.key?(:name)
|
721
|
+
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
725
|
+
# ApprovalConfig describes configuration for manual approval of a build.
|
726
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig
|
727
|
+
include Google::Apis::Core::Hashable
|
728
|
+
|
729
|
+
# Whether or not approval is needed. If this is set on a build, it will become
|
730
|
+
# pending when created, and will need to be explicitly approved to start.
|
731
|
+
# Corresponds to the JSON property `approvalRequired`
|
732
|
+
# @return [Boolean]
|
733
|
+
attr_accessor :approval_required
|
734
|
+
alias_method :approval_required?, :approval_required
|
735
|
+
|
736
|
+
def initialize(**args)
|
737
|
+
update!(**args)
|
738
|
+
end
|
739
|
+
|
740
|
+
# Update properties of this object
|
741
|
+
def update!(**args)
|
742
|
+
@approval_required = args[:approval_required] if args.key?(:approval_required)
|
743
|
+
end
|
744
|
+
end
|
745
|
+
|
746
|
+
# ApprovalResult describes the decision and associated metadata of a manual
|
747
|
+
# approval of a build.
|
748
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult
|
749
|
+
include Google::Apis::Core::Hashable
|
750
|
+
|
751
|
+
# Output only. The time when the approval decision was made.
|
752
|
+
# Corresponds to the JSON property `approvalTime`
|
753
|
+
# @return [String]
|
754
|
+
attr_accessor :approval_time
|
755
|
+
|
756
|
+
# Output only. Email of the user that called the ApproveBuild API to approve or
|
757
|
+
# reject a build at the time that the API was called.
|
758
|
+
# Corresponds to the JSON property `approverAccount`
|
759
|
+
# @return [String]
|
760
|
+
attr_accessor :approver_account
|
761
|
+
|
762
|
+
# Optional. An optional comment for this manual approval result.
|
763
|
+
# Corresponds to the JSON property `comment`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :comment
|
766
|
+
|
767
|
+
# Required. The decision of this manual approval.
|
768
|
+
# Corresponds to the JSON property `decision`
|
769
|
+
# @return [String]
|
770
|
+
attr_accessor :decision
|
771
|
+
|
772
|
+
# Optional. An optional URL tied to this manual approval result. This field is
|
773
|
+
# essentially the same as comment, except that it will be rendered by the UI
|
774
|
+
# differently. An example use case is a link to an external job that approved
|
775
|
+
# this Build.
|
776
|
+
# Corresponds to the JSON property `url`
|
777
|
+
# @return [String]
|
778
|
+
attr_accessor :url
|
779
|
+
|
780
|
+
def initialize(**args)
|
781
|
+
update!(**args)
|
782
|
+
end
|
783
|
+
|
784
|
+
# Update properties of this object
|
785
|
+
def update!(**args)
|
786
|
+
@approval_time = args[:approval_time] if args.key?(:approval_time)
|
787
|
+
@approver_account = args[:approver_account] if args.key?(:approver_account)
|
788
|
+
@comment = args[:comment] if args.key?(:comment)
|
789
|
+
@decision = args[:decision] if args.key?(:decision)
|
790
|
+
@url = args[:url] if args.key?(:url)
|
791
|
+
end
|
792
|
+
end
|
793
|
+
|
794
|
+
# Artifacts produced by a build that should be uploaded upon successful
|
795
|
+
# completion of all build steps.
|
796
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts
|
797
|
+
include Google::Apis::Core::Hashable
|
798
|
+
|
799
|
+
# A list of images to be pushed upon the successful completion of all build
|
800
|
+
# steps. The images will be pushed using the builder service account's
|
801
|
+
# credentials. The digests of the pushed images will be stored in the Build
|
802
|
+
# resource's results field. If any of the images fail to be pushed, the build is
|
803
|
+
# marked FAILURE.
|
804
|
+
# Corresponds to the JSON property `images`
|
805
|
+
# @return [Array<String>]
|
806
|
+
attr_accessor :images
|
807
|
+
|
808
|
+
# Files in the workspace to upload to Cloud Storage upon successful completion
|
809
|
+
# of all build steps.
|
810
|
+
# Corresponds to the JSON property `objects`
|
811
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects]
|
812
|
+
attr_accessor :objects
|
813
|
+
|
814
|
+
def initialize(**args)
|
815
|
+
update!(**args)
|
816
|
+
end
|
817
|
+
|
818
|
+
# Update properties of this object
|
819
|
+
def update!(**args)
|
820
|
+
@images = args[:images] if args.key?(:images)
|
821
|
+
@objects = args[:objects] if args.key?(:objects)
|
822
|
+
end
|
823
|
+
end
|
824
|
+
|
825
|
+
# Files in the workspace to upload to Cloud Storage upon successful completion
|
826
|
+
# of all build steps.
|
827
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects
|
828
|
+
include Google::Apis::Core::Hashable
|
829
|
+
|
830
|
+
# Cloud Storage bucket and optional object path, in the form "gs://bucket/path/
|
831
|
+
# to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/
|
832
|
+
# storage/docs/bucket-naming#requirements)). Files in the workspace matching any
|
833
|
+
# path pattern will be uploaded to Cloud Storage with this location as a prefix.
|
834
|
+
# Corresponds to the JSON property `location`
|
835
|
+
# @return [String]
|
836
|
+
attr_accessor :location
|
837
|
+
|
838
|
+
# Path globs used to match files in the build's workspace.
|
839
|
+
# Corresponds to the JSON property `paths`
|
840
|
+
# @return [Array<String>]
|
841
|
+
attr_accessor :paths
|
842
|
+
|
843
|
+
# Start and end times for a build execution phase.
|
844
|
+
# Corresponds to the JSON property `timing`
|
845
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
|
846
|
+
attr_accessor :timing
|
847
|
+
|
848
|
+
def initialize(**args)
|
849
|
+
update!(**args)
|
850
|
+
end
|
851
|
+
|
852
|
+
# Update properties of this object
|
853
|
+
def update!(**args)
|
854
|
+
@location = args[:location] if args.key?(:location)
|
855
|
+
@paths = args[:paths] if args.key?(:paths)
|
856
|
+
@timing = args[:timing] if args.key?(:timing)
|
857
|
+
end
|
858
|
+
end
|
859
|
+
|
860
|
+
# A build resource in the Cloud Build API. At a high level, a `Build` describes
|
861
|
+
# where to find source code, how to build it (for example, the builder image to
|
862
|
+
# run on the source), and where to store the built artifacts. Fields can include
|
863
|
+
# the following variables, which will be expanded when the build is created: - $
|
864
|
+
# PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
|
865
|
+
# of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
|
866
|
+
# autogenerated ID of the build. - $REPO_NAME: the source repository name
|
867
|
+
# specified by RepoSource. - $BRANCH_NAME: the branch name specified by
|
868
|
+
# RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
|
869
|
+
# or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
|
870
|
+
# specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
|
871
|
+
# COMMIT_SHA.
|
872
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Build
|
873
|
+
include Google::Apis::Core::Hashable
|
874
|
+
|
875
|
+
# BuildApproval describes a build's approval configuration, state, and result.
|
876
|
+
# Corresponds to the JSON property `approval`
|
877
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval]
|
878
|
+
attr_accessor :approval
|
879
|
+
|
880
|
+
# Artifacts produced by a build that should be uploaded upon successful
|
881
|
+
# completion of all build steps.
|
882
|
+
# Corresponds to the JSON property `artifacts`
|
883
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts]
|
884
|
+
attr_accessor :artifacts
|
885
|
+
|
886
|
+
# Secrets and secret environment variables.
|
887
|
+
# Corresponds to the JSON property `availableSecrets`
|
888
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets]
|
889
|
+
attr_accessor :available_secrets
|
890
|
+
|
891
|
+
# Output only. The ID of the `BuildTrigger` that triggered this build, if it was
|
892
|
+
# triggered automatically.
|
893
|
+
# Corresponds to the JSON property `buildTriggerId`
|
894
|
+
# @return [String]
|
895
|
+
attr_accessor :build_trigger_id
|
896
|
+
|
897
|
+
# Output only. Time at which the request to create the build was received.
|
898
|
+
# Corresponds to the JSON property `createTime`
|
899
|
+
# @return [String]
|
900
|
+
attr_accessor :create_time
|
901
|
+
|
902
|
+
# A fatal problem encountered during the execution of the build.
|
903
|
+
# Corresponds to the JSON property `failureInfo`
|
904
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo]
|
905
|
+
attr_accessor :failure_info
|
906
|
+
|
907
|
+
# Output only. Time at which execution of the build was finished. The difference
|
908
|
+
# between finish_time and start_time is the duration of the build's execution.
|
909
|
+
# Corresponds to the JSON property `finishTime`
|
910
|
+
# @return [String]
|
911
|
+
attr_accessor :finish_time
|
912
|
+
|
913
|
+
# Output only. Unique identifier of the build.
|
914
|
+
# Corresponds to the JSON property `id`
|
915
|
+
# @return [String]
|
916
|
+
attr_accessor :id
|
917
|
+
|
918
|
+
# A list of images to be pushed upon the successful completion of all build
|
919
|
+
# steps. The images are pushed using the builder service account's credentials.
|
920
|
+
# The digests of the pushed images will be stored in the `Build` resource's
|
921
|
+
# results field. If any of the images fail to be pushed, the build status is
|
922
|
+
# marked `FAILURE`.
|
923
|
+
# Corresponds to the JSON property `images`
|
924
|
+
# @return [Array<String>]
|
925
|
+
attr_accessor :images
|
926
|
+
|
927
|
+
# Output only. URL to logs for this build in Google Cloud Console.
|
928
|
+
# Corresponds to the JSON property `logUrl`
|
929
|
+
# @return [String]
|
930
|
+
attr_accessor :log_url
|
931
|
+
|
932
|
+
# Google Cloud Storage bucket where logs should be written (see [Bucket Name
|
933
|
+
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
934
|
+
# ). Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
|
935
|
+
# Corresponds to the JSON property `logsBucket`
|
936
|
+
# @return [String]
|
937
|
+
attr_accessor :logs_bucket
|
938
|
+
|
939
|
+
# Output only. The 'Build' name with format: `projects/`project`/locations/`
|
940
|
+
# location`/builds/`build``, where `build` is a unique identifier generated by
|
941
|
+
# the service.
|
942
|
+
# Corresponds to the JSON property `name`
|
943
|
+
# @return [String]
|
944
|
+
attr_accessor :name
|
945
|
+
|
946
|
+
# Optional arguments to enable specific features of builds.
|
947
|
+
# Corresponds to the JSON property `options`
|
948
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions]
|
949
|
+
attr_accessor :options
|
950
|
+
|
951
|
+
# Output only. ID of the project.
|
952
|
+
# Corresponds to the JSON property `projectId`
|
953
|
+
# @return [String]
|
954
|
+
attr_accessor :project_id
|
955
|
+
|
956
|
+
# TTL in queue for this build. If provided and the build is enqueued longer than
|
957
|
+
# this value, the build will expire and the build status will be `EXPIRED`. The
|
958
|
+
# TTL starts ticking from create_time.
|
959
|
+
# Corresponds to the JSON property `queueTtl`
|
960
|
+
# @return [String]
|
961
|
+
attr_accessor :queue_ttl
|
962
|
+
|
963
|
+
# Artifacts created by the build pipeline.
|
964
|
+
# Corresponds to the JSON property `results`
|
965
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Results]
|
966
|
+
attr_accessor :results
|
967
|
+
|
968
|
+
# Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is
|
969
|
+
# the recommended technique for managing sensitive data with Cloud Build. Use `
|
970
|
+
# available_secrets` to configure builds to access secrets from Secret Manager.
|
971
|
+
# For instructions, see: https://cloud.google.com/cloud-build/docs/securing-
|
972
|
+
# builds/use-secrets
|
973
|
+
# Corresponds to the JSON property `secrets`
|
974
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Secret>]
|
975
|
+
attr_accessor :secrets
|
976
|
+
|
977
|
+
# IAM service account whose credentials will be used at build runtime. Must be
|
978
|
+
# of the format `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. ACCOUNT can
|
979
|
+
# be email address or uniqueId of the service account.
|
980
|
+
# Corresponds to the JSON property `serviceAccount`
|
981
|
+
# @return [String]
|
982
|
+
attr_accessor :service_account
|
983
|
+
|
984
|
+
# Location of the source in a supported storage service.
|
985
|
+
# Corresponds to the JSON property `source`
|
986
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Source]
|
987
|
+
attr_accessor :source
|
988
|
+
|
989
|
+
# Provenance of the source. Ways to find the original source, or verify that
|
990
|
+
# some source was used for this build.
|
991
|
+
# Corresponds to the JSON property `sourceProvenance`
|
992
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance]
|
993
|
+
attr_accessor :source_provenance
|
994
|
+
|
995
|
+
# Output only. Time at which execution of the build was started.
|
996
|
+
# Corresponds to the JSON property `startTime`
|
997
|
+
# @return [String]
|
998
|
+
attr_accessor :start_time
|
999
|
+
|
1000
|
+
# Output only. Status of the build.
|
1001
|
+
# Corresponds to the JSON property `status`
|
1002
|
+
# @return [String]
|
1003
|
+
attr_accessor :status
|
1004
|
+
|
1005
|
+
# Output only. Customer-readable message about the current status.
|
1006
|
+
# Corresponds to the JSON property `statusDetail`
|
1007
|
+
# @return [String]
|
1008
|
+
attr_accessor :status_detail
|
1009
|
+
|
1010
|
+
# Required. The operations to be performed on the workspace.
|
1011
|
+
# Corresponds to the JSON property `steps`
|
1012
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep>]
|
1013
|
+
attr_accessor :steps
|
1014
|
+
|
1015
|
+
# Substitutions data for `Build` resource.
|
1016
|
+
# Corresponds to the JSON property `substitutions`
|
1017
|
+
# @return [Hash<String,String>]
|
1018
|
+
attr_accessor :substitutions
|
1019
|
+
|
1020
|
+
# Tags for annotation of a `Build`. These are not docker tags.
|
1021
|
+
# Corresponds to the JSON property `tags`
|
1022
|
+
# @return [Array<String>]
|
1023
|
+
attr_accessor :tags
|
1024
|
+
|
1025
|
+
# Amount of time that this build should be allowed to run, to second granularity.
|
1026
|
+
# If this amount of time elapses, work on the build will cease and the build
|
1027
|
+
# status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default
|
1028
|
+
# time is ten minutes.
|
1029
|
+
# Corresponds to the JSON property `timeout`
|
1030
|
+
# @return [String]
|
1031
|
+
attr_accessor :timeout
|
1032
|
+
|
1033
|
+
# Output only. Stores timing information for phases of the build. Valid keys are:
|
1034
|
+
# * BUILD: time to execute all build steps. * PUSH: time to push all specified
|
1035
|
+
# images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up
|
1036
|
+
# build. If the build does not specify source or images, these keys will not be
|
1037
|
+
# included.
|
1038
|
+
# Corresponds to the JSON property `timing`
|
1039
|
+
# @return [Hash<String,Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan>]
|
1040
|
+
attr_accessor :timing
|
1041
|
+
|
1042
|
+
# Output only. Non-fatal problems encountered during the execution of the build.
|
1043
|
+
# Corresponds to the JSON property `warnings`
|
1044
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning>]
|
1045
|
+
attr_accessor :warnings
|
1046
|
+
|
1047
|
+
def initialize(**args)
|
1048
|
+
update!(**args)
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
# Update properties of this object
|
1052
|
+
def update!(**args)
|
1053
|
+
@approval = args[:approval] if args.key?(:approval)
|
1054
|
+
@artifacts = args[:artifacts] if args.key?(:artifacts)
|
1055
|
+
@available_secrets = args[:available_secrets] if args.key?(:available_secrets)
|
1056
|
+
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
1057
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1058
|
+
@failure_info = args[:failure_info] if args.key?(:failure_info)
|
1059
|
+
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
1060
|
+
@id = args[:id] if args.key?(:id)
|
1061
|
+
@images = args[:images] if args.key?(:images)
|
1062
|
+
@log_url = args[:log_url] if args.key?(:log_url)
|
1063
|
+
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
1064
|
+
@name = args[:name] if args.key?(:name)
|
1065
|
+
@options = args[:options] if args.key?(:options)
|
1066
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
1067
|
+
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
|
1068
|
+
@results = args[:results] if args.key?(:results)
|
1069
|
+
@secrets = args[:secrets] if args.key?(:secrets)
|
1070
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
1071
|
+
@source = args[:source] if args.key?(:source)
|
1072
|
+
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
1073
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1074
|
+
@status = args[:status] if args.key?(:status)
|
1075
|
+
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
1076
|
+
@steps = args[:steps] if args.key?(:steps)
|
1077
|
+
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
1078
|
+
@tags = args[:tags] if args.key?(:tags)
|
1079
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
1080
|
+
@timing = args[:timing] if args.key?(:timing)
|
1081
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
1082
|
+
end
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# BuildApproval describes a build's approval configuration, state, and result.
|
1086
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval
|
1087
|
+
include Google::Apis::Core::Hashable
|
1088
|
+
|
1089
|
+
# ApprovalConfig describes configuration for manual approval of a build.
|
1090
|
+
# Corresponds to the JSON property `config`
|
1091
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig]
|
1092
|
+
attr_accessor :config
|
1093
|
+
|
1094
|
+
# ApprovalResult describes the decision and associated metadata of a manual
|
1095
|
+
# approval of a build.
|
1096
|
+
# Corresponds to the JSON property `result`
|
1097
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult]
|
1098
|
+
attr_accessor :result
|
1099
|
+
|
1100
|
+
# Output only. The state of this build's approval.
|
1101
|
+
# Corresponds to the JSON property `state`
|
1102
|
+
# @return [String]
|
1103
|
+
attr_accessor :state
|
1104
|
+
|
1105
|
+
def initialize(**args)
|
1106
|
+
update!(**args)
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# Update properties of this object
|
1110
|
+
def update!(**args)
|
1111
|
+
@config = args[:config] if args.key?(:config)
|
1112
|
+
@result = args[:result] if args.key?(:result)
|
1113
|
+
@state = args[:state] if args.key?(:state)
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
# A fatal problem encountered during the execution of the build.
|
1118
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo
|
1119
|
+
include Google::Apis::Core::Hashable
|
1120
|
+
|
1121
|
+
# Explains the failure issue in more detail using hard-coded text.
|
1122
|
+
# Corresponds to the JSON property `detail`
|
1123
|
+
# @return [String]
|
1124
|
+
attr_accessor :detail
|
1125
|
+
|
1126
|
+
# The name of the failure.
|
1127
|
+
# Corresponds to the JSON property `type`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :type
|
1130
|
+
|
1131
|
+
def initialize(**args)
|
1132
|
+
update!(**args)
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
# Update properties of this object
|
1136
|
+
def update!(**args)
|
1137
|
+
@detail = args[:detail] if args.key?(:detail)
|
1138
|
+
@type = args[:type] if args.key?(:type)
|
1139
|
+
end
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
# Optional arguments to enable specific features of builds.
|
1143
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions
|
1144
|
+
include Google::Apis::Core::Hashable
|
1145
|
+
|
1146
|
+
# Requested disk size for the VM that runs the build. Note that this is *NOT* "
|
1147
|
+
# disk free"; some of the space will be used by the operating system and build
|
1148
|
+
# utilities. Also note that this is the minimum disk size that will be allocated
|
1149
|
+
# for the build -- the build may run with a larger disk than requested. At
|
1150
|
+
# present, the maximum disk size is 1000GB; builds that request more than the
|
1151
|
+
# maximum are rejected with an error.
|
1152
|
+
# Corresponds to the JSON property `diskSizeGb`
|
1153
|
+
# @return [Fixnum]
|
1154
|
+
attr_accessor :disk_size_gb
|
1155
|
+
|
1156
|
+
# Option to specify whether or not to apply bash style string operations to the
|
1157
|
+
# substitutions. NOTE: this is always enabled for triggered builds and cannot be
|
1158
|
+
# overridden in the build configuration file.
|
1159
|
+
# Corresponds to the JSON property `dynamicSubstitutions`
|
1160
|
+
# @return [Boolean]
|
1161
|
+
attr_accessor :dynamic_substitutions
|
1162
|
+
alias_method :dynamic_substitutions?, :dynamic_substitutions
|
1163
|
+
|
1164
|
+
# A list of global environment variable definitions that will exist for all
|
1165
|
+
# build steps in this build. If a variable is defined in both globally and in a
|
1166
|
+
# build step, the variable will use the build step value. The elements are of
|
1167
|
+
# the form "KEY=VALUE" for the environment variable "KEY" being given the value "
|
1168
|
+
# VALUE".
|
1169
|
+
# Corresponds to the JSON property `env`
|
1170
|
+
# @return [Array<String>]
|
1171
|
+
attr_accessor :env
|
1172
|
+
|
1173
|
+
# Option to define build log streaming behavior to Google Cloud Storage.
|
1174
|
+
# Corresponds to the JSON property `logStreamingOption`
|
1175
|
+
# @return [String]
|
1176
|
+
attr_accessor :log_streaming_option
|
1177
|
+
|
1178
|
+
# Option to specify the logging mode, which determines if and where build logs
|
1179
|
+
# are stored.
|
1180
|
+
# Corresponds to the JSON property `logging`
|
1181
|
+
# @return [String]
|
1182
|
+
attr_accessor :logging
|
1183
|
+
|
1184
|
+
# Compute Engine machine type on which to run the build.
|
1185
|
+
# Corresponds to the JSON property `machineType`
|
1186
|
+
# @return [String]
|
1187
|
+
attr_accessor :machine_type
|
1188
|
+
|
1189
|
+
# Details about how a build should be executed on a `WorkerPool`. See [running
|
1190
|
+
# builds in a private pool](https://cloud.google.com/build/docs/private-pools/
|
1191
|
+
# run-builds-in-private-pool) for more information.
|
1192
|
+
# Corresponds to the JSON property `pool`
|
1193
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption]
|
1194
|
+
attr_accessor :pool
|
1195
|
+
|
1196
|
+
# Requested verifiability options.
|
1197
|
+
# Corresponds to the JSON property `requestedVerifyOption`
|
1198
|
+
# @return [String]
|
1199
|
+
attr_accessor :requested_verify_option
|
1200
|
+
|
1201
|
+
# A list of global environment variables, which are encrypted using a Cloud Key
|
1202
|
+
# Management Service crypto key. These values must be specified in the build's `
|
1203
|
+
# Secret`. These variables will be available to all build steps in this build.
|
1204
|
+
# Corresponds to the JSON property `secretEnv`
|
1205
|
+
# @return [Array<String>]
|
1206
|
+
attr_accessor :secret_env
|
1207
|
+
|
1208
|
+
# Requested hash for SourceProvenance.
|
1209
|
+
# Corresponds to the JSON property `sourceProvenanceHash`
|
1210
|
+
# @return [Array<String>]
|
1211
|
+
attr_accessor :source_provenance_hash
|
1212
|
+
|
1213
|
+
# Option to specify behavior when there is an error in the substitution checks.
|
1214
|
+
# NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be
|
1215
|
+
# overridden in the build configuration file.
|
1216
|
+
# Corresponds to the JSON property `substitutionOption`
|
1217
|
+
# @return [String]
|
1218
|
+
attr_accessor :substitution_option
|
1219
|
+
|
1220
|
+
# Global list of volumes to mount for ALL build steps Each volume is created as
|
1221
|
+
# an empty volume prior to starting the build process. Upon completion of the
|
1222
|
+
# build, volumes and their contents are discarded. Global volume names and paths
|
1223
|
+
# cannot conflict with the volumes defined a build step. Using a global volume
|
1224
|
+
# in a build with only one step is not valid as it is indicative of a build
|
1225
|
+
# request with an incorrect configuration.
|
1226
|
+
# Corresponds to the JSON property `volumes`
|
1227
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Volume>]
|
1228
|
+
attr_accessor :volumes
|
1229
|
+
|
1230
|
+
# This field deprecated; please use `pool.name` instead.
|
1231
|
+
# Corresponds to the JSON property `workerPool`
|
1232
|
+
# @return [String]
|
1233
|
+
attr_accessor :worker_pool
|
1234
|
+
|
1235
|
+
def initialize(**args)
|
1236
|
+
update!(**args)
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
# Update properties of this object
|
1240
|
+
def update!(**args)
|
1241
|
+
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
1242
|
+
@dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions)
|
1243
|
+
@env = args[:env] if args.key?(:env)
|
1244
|
+
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
|
1245
|
+
@logging = args[:logging] if args.key?(:logging)
|
1246
|
+
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
1247
|
+
@pool = args[:pool] if args.key?(:pool)
|
1248
|
+
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
1249
|
+
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
1250
|
+
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
|
1251
|
+
@substitution_option = args[:substitution_option] if args.key?(:substitution_option)
|
1252
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
1253
|
+
@worker_pool = args[:worker_pool] if args.key?(:worker_pool)
|
1254
|
+
end
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
# Details about how a build should be executed on a `WorkerPool`. See [running
|
1258
|
+
# builds in a private pool](https://cloud.google.com/build/docs/private-pools/
|
1259
|
+
# run-builds-in-private-pool) for more information.
|
1260
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption
|
1261
|
+
include Google::Apis::Core::Hashable
|
1262
|
+
|
1263
|
+
# The `WorkerPool` resource to execute the build on. You must have `cloudbuild.
|
1264
|
+
# workerpools.use` on the project hosting the WorkerPool. Format projects/`
|
1265
|
+
# project`/locations/`location`/workerPools/`workerPoolId`
|
1266
|
+
# Corresponds to the JSON property `name`
|
1267
|
+
# @return [String]
|
1268
|
+
attr_accessor :name
|
1269
|
+
|
1270
|
+
# Configuration per workload for both Private Pools and Hybrid Pools.
|
1271
|
+
# Corresponds to the JSON property `workerConfig`
|
1272
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig]
|
1273
|
+
attr_accessor :worker_config
|
1274
|
+
|
1275
|
+
def initialize(**args)
|
1276
|
+
update!(**args)
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
# Update properties of this object
|
1280
|
+
def update!(**args)
|
1281
|
+
@name = args[:name] if args.key?(:name)
|
1282
|
+
@worker_config = args[:worker_config] if args.key?(:worker_config)
|
1283
|
+
end
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
# Configuration per workload for both Private Pools and Hybrid Pools.
|
1287
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
|
1288
|
+
include Google::Apis::Core::Hashable
|
1289
|
+
|
1290
|
+
# The disk size (in GB) which is requested for the build container. If unset, a
|
1291
|
+
# value of 10 GB will be used.
|
1292
|
+
# Corresponds to the JSON property `diskSizeGb`
|
1293
|
+
# @return [Fixnum]
|
1294
|
+
attr_accessor :disk_size_gb
|
1295
|
+
|
1296
|
+
# The memory (in GB) which is requested for the build container. If unset, a
|
1297
|
+
# value of 4 GB will be used.
|
1298
|
+
# Corresponds to the JSON property `memoryGb`
|
1299
|
+
# @return [Float]
|
1300
|
+
attr_accessor :memory_gb
|
1301
|
+
|
1302
|
+
# The number of vCPUs which are requested for the build container. If unset, a
|
1303
|
+
# value of 1 will be used.
|
1304
|
+
# Corresponds to the JSON property `vcpuCount`
|
1305
|
+
# @return [Float]
|
1306
|
+
attr_accessor :vcpu_count
|
1307
|
+
|
1308
|
+
def initialize(**args)
|
1309
|
+
update!(**args)
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
# Update properties of this object
|
1313
|
+
def update!(**args)
|
1314
|
+
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
1315
|
+
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
|
1316
|
+
@vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
|
1317
|
+
end
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
# A step in the build pipeline.
|
1321
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep
|
1322
|
+
include Google::Apis::Core::Hashable
|
1323
|
+
|
1324
|
+
# A list of arguments that will be presented to the step when it is started. If
|
1325
|
+
# the image used to run the step's container has an entrypoint, the `args` are
|
1326
|
+
# used as arguments to that entrypoint. If the image does not define an
|
1327
|
+
# entrypoint, the first element in args is used as the entrypoint, and the
|
1328
|
+
# remainder will be used as arguments.
|
1329
|
+
# Corresponds to the JSON property `args`
|
1330
|
+
# @return [Array<String>]
|
1331
|
+
attr_accessor :args
|
1332
|
+
|
1333
|
+
# Working directory to use when running this step's container. If this value is
|
1334
|
+
# a relative path, it is relative to the build's working directory. If this
|
1335
|
+
# value is absolute, it may be outside the build's working directory, in which
|
1336
|
+
# case the contents of the path may not be persisted across build step
|
1337
|
+
# executions, unless a `volume` for that path is specified. If the build
|
1338
|
+
# specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies
|
1339
|
+
# an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
|
1340
|
+
# Corresponds to the JSON property `dir`
|
1341
|
+
# @return [String]
|
1342
|
+
attr_accessor :dir
|
1343
|
+
|
1344
|
+
# Entrypoint to be used instead of the build step image's default entrypoint. If
|
1345
|
+
# unset, the image's default entrypoint is used.
|
1346
|
+
# Corresponds to the JSON property `entrypoint`
|
1347
|
+
# @return [String]
|
1348
|
+
attr_accessor :entrypoint
|
1349
|
+
|
1350
|
+
# A list of environment variable definitions to be used when running a step. The
|
1351
|
+
# elements are of the form "KEY=VALUE" for the environment variable "KEY" being
|
1352
|
+
# given the value "VALUE".
|
1353
|
+
# Corresponds to the JSON property `env`
|
1354
|
+
# @return [Array<String>]
|
1355
|
+
attr_accessor :env
|
1356
|
+
|
1357
|
+
# Unique identifier for this build step, used in `wait_for` to reference this
|
1358
|
+
# build step as a dependency.
|
1359
|
+
# Corresponds to the JSON property `id`
|
1360
|
+
# @return [String]
|
1361
|
+
attr_accessor :id
|
1362
|
+
|
1363
|
+
# Required. The name of the container image that will run this particular build
|
1364
|
+
# step. If the image is available in the host's Docker daemon's cache, it will
|
1365
|
+
# be run directly. If not, the host will attempt to pull the image first, using
|
1366
|
+
# the builder service account's credentials if necessary. The Docker daemon's
|
1367
|
+
# cache will already have the latest versions of all of the officially supported
|
1368
|
+
# build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://
|
1369
|
+
# github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also
|
1370
|
+
# have cached many of the layers for some popular images, like "ubuntu", "debian"
|
1371
|
+
# , but they will be refreshed at the time you attempt to use them. If you built
|
1372
|
+
# an image in a previous build step, it will be stored in the host's Docker
|
1373
|
+
# daemon's cache and is available to use as the name for a later build step.
|
1374
|
+
# Corresponds to the JSON property `name`
|
1375
|
+
# @return [String]
|
1376
|
+
attr_accessor :name
|
1377
|
+
|
1378
|
+
# Start and end times for a build execution phase.
|
1379
|
+
# Corresponds to the JSON property `pullTiming`
|
1380
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
|
1381
|
+
attr_accessor :pull_timing
|
1382
|
+
|
1383
|
+
# A shell script to be executed in the step. When script is provided, the user
|
1384
|
+
# cannot specify the entrypoint or args.
|
1385
|
+
# Corresponds to the JSON property `script`
|
1386
|
+
# @return [String]
|
1387
|
+
attr_accessor :script
|
1388
|
+
|
1389
|
+
# A list of environment variables which are encrypted using a Cloud Key
|
1390
|
+
# Management Service crypto key. These values must be specified in the build's `
|
1391
|
+
# Secret`.
|
1392
|
+
# Corresponds to the JSON property `secretEnv`
|
1393
|
+
# @return [Array<String>]
|
1394
|
+
attr_accessor :secret_env
|
1395
|
+
|
1396
|
+
# Output only. Status of the build step. At this time, build step status is only
|
1397
|
+
# updated on build completion; step status is not updated in real-time as the
|
1398
|
+
# build progresses.
|
1399
|
+
# Corresponds to the JSON property `status`
|
1400
|
+
# @return [String]
|
1401
|
+
attr_accessor :status
|
1402
|
+
|
1403
|
+
# Time limit for executing this build step. If not defined, the step has no time
|
1404
|
+
# limit and will be allowed to continue to run until either it completes or the
|
1405
|
+
# build itself times out.
|
1406
|
+
# Corresponds to the JSON property `timeout`
|
1407
|
+
# @return [String]
|
1408
|
+
attr_accessor :timeout
|
1409
|
+
|
1410
|
+
# Start and end times for a build execution phase.
|
1411
|
+
# Corresponds to the JSON property `timing`
|
1412
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
|
1413
|
+
attr_accessor :timing
|
1414
|
+
|
1415
|
+
# List of volumes to mount into the build step. Each volume is created as an
|
1416
|
+
# empty volume prior to execution of the build step. Upon completion of the
|
1417
|
+
# build, volumes and their contents are discarded. Using a named volume in only
|
1418
|
+
# one step is not valid as it is indicative of a build request with an incorrect
|
1419
|
+
# configuration.
|
1420
|
+
# Corresponds to the JSON property `volumes`
|
1421
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Volume>]
|
1422
|
+
attr_accessor :volumes
|
1423
|
+
|
1424
|
+
# The ID(s) of the step(s) that this build step depends on. This build step will
|
1425
|
+
# not start until all the build steps in `wait_for` have completed successfully.
|
1426
|
+
# If `wait_for` is empty, this build step will start when all previous build
|
1427
|
+
# steps in the `Build.Steps` list have completed successfully.
|
1428
|
+
# Corresponds to the JSON property `waitFor`
|
1429
|
+
# @return [Array<String>]
|
1430
|
+
attr_accessor :wait_for
|
1431
|
+
|
1432
|
+
def initialize(**args)
|
1433
|
+
update!(**args)
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
# Update properties of this object
|
1437
|
+
def update!(**args)
|
1438
|
+
@args = args[:args] if args.key?(:args)
|
1439
|
+
@dir = args[:dir] if args.key?(:dir)
|
1440
|
+
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
1441
|
+
@env = args[:env] if args.key?(:env)
|
1442
|
+
@id = args[:id] if args.key?(:id)
|
1443
|
+
@name = args[:name] if args.key?(:name)
|
1444
|
+
@pull_timing = args[:pull_timing] if args.key?(:pull_timing)
|
1445
|
+
@script = args[:script] if args.key?(:script)
|
1446
|
+
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
1447
|
+
@status = args[:status] if args.key?(:status)
|
1448
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
1449
|
+
@timing = args[:timing] if args.key?(:timing)
|
1450
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
1451
|
+
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
1452
|
+
end
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
# A non-fatal problem encountered during the execution of the build.
|
1456
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning
|
1457
|
+
include Google::Apis::Core::Hashable
|
1458
|
+
|
1459
|
+
# The priority for this warning.
|
1460
|
+
# Corresponds to the JSON property `priority`
|
1461
|
+
# @return [String]
|
1462
|
+
attr_accessor :priority
|
1463
|
+
|
1464
|
+
# Explanation of the warning generated.
|
1465
|
+
# Corresponds to the JSON property `text`
|
1466
|
+
# @return [String]
|
1467
|
+
attr_accessor :text
|
1468
|
+
|
1469
|
+
def initialize(**args)
|
1470
|
+
update!(**args)
|
1471
|
+
end
|
1472
|
+
|
1473
|
+
# Update properties of this object
|
1474
|
+
def update!(**args)
|
1475
|
+
@priority = args[:priority] if args.key?(:priority)
|
1476
|
+
@text = args[:text] if args.key?(:text)
|
1477
|
+
end
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
# An image built by the pipeline.
|
1481
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage
|
1482
|
+
include Google::Apis::Core::Hashable
|
1483
|
+
|
1484
|
+
# Docker Registry 2.0 digest.
|
1485
|
+
# Corresponds to the JSON property `digest`
|
1486
|
+
# @return [String]
|
1487
|
+
attr_accessor :digest
|
1488
|
+
|
1489
|
+
# Name used to push the container image to Google Container Registry, as
|
1490
|
+
# presented to `docker push`.
|
1491
|
+
# Corresponds to the JSON property `name`
|
1492
|
+
# @return [String]
|
1493
|
+
attr_accessor :name
|
1494
|
+
|
1495
|
+
# Start and end times for a build execution phase.
|
1496
|
+
# Corresponds to the JSON property `pushTiming`
|
1497
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
|
1498
|
+
attr_accessor :push_timing
|
1499
|
+
|
1500
|
+
def initialize(**args)
|
1501
|
+
update!(**args)
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
# Update properties of this object
|
1505
|
+
def update!(**args)
|
1506
|
+
@digest = args[:digest] if args.key?(:digest)
|
1507
|
+
@name = args[:name] if args.key?(:name)
|
1508
|
+
@push_timing = args[:push_timing] if args.key?(:push_timing)
|
1509
|
+
end
|
1510
|
+
end
|
1511
|
+
|
1512
|
+
# Container message for hashes of byte content of files, used in
|
1513
|
+
# SourceProvenance messages to verify integrity of source input to the build.
|
1514
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes
|
1515
|
+
include Google::Apis::Core::Hashable
|
1516
|
+
|
1517
|
+
# Collection of file hashes.
|
1518
|
+
# Corresponds to the JSON property `fileHash`
|
1519
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Hash>]
|
1520
|
+
attr_accessor :file_hash
|
1521
|
+
|
1522
|
+
def initialize(**args)
|
1523
|
+
update!(**args)
|
1524
|
+
end
|
1525
|
+
|
1526
|
+
# Update properties of this object
|
1527
|
+
def update!(**args)
|
1528
|
+
@file_hash = args[:file_hash] if args.key?(:file_hash)
|
1529
|
+
end
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
# Container message for hash values.
|
1533
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Hash
|
1534
|
+
include Google::Apis::Core::Hashable
|
1535
|
+
|
1536
|
+
# The type of hash that was performed.
|
1537
|
+
# Corresponds to the JSON property `type`
|
1538
|
+
# @return [String]
|
1539
|
+
attr_accessor :type
|
1540
|
+
|
1541
|
+
# The hash value.
|
1542
|
+
# Corresponds to the JSON property `value`
|
1543
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1544
|
+
# @return [String]
|
1545
|
+
attr_accessor :value
|
1546
|
+
|
1547
|
+
def initialize(**args)
|
1548
|
+
update!(**args)
|
1549
|
+
end
|
1550
|
+
|
1551
|
+
# Update properties of this object
|
1552
|
+
def update!(**args)
|
1553
|
+
@type = args[:type] if args.key?(:type)
|
1554
|
+
@value = args[:value] if args.key?(:value)
|
1555
|
+
end
|
1556
|
+
end
|
1557
|
+
|
1558
|
+
# Pairs a set of secret environment variables mapped to encrypted values with
|
1559
|
+
# the Cloud KMS key to use to decrypt the value.
|
1560
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret
|
1561
|
+
include Google::Apis::Core::Hashable
|
1562
|
+
|
1563
|
+
# Map of environment variable name to its encrypted value. Secret environment
|
1564
|
+
# variables must be unique across all of a build's secrets, and must be used by
|
1565
|
+
# at least one build step. Values can be at most 64 KB in size. There can be at
|
1566
|
+
# most 100 secret values across all of a build's secrets.
|
1567
|
+
# Corresponds to the JSON property `envMap`
|
1568
|
+
# @return [Hash<String,String>]
|
1569
|
+
attr_accessor :env_map
|
1570
|
+
|
1571
|
+
# Resource name of Cloud KMS crypto key to decrypt the encrypted value. In
|
1572
|
+
# format: projects/*/locations/*/keyRings/*/cryptoKeys/*
|
1573
|
+
# Corresponds to the JSON property `kmsKeyName`
|
1574
|
+
# @return [String]
|
1575
|
+
attr_accessor :kms_key_name
|
1576
|
+
|
1577
|
+
def initialize(**args)
|
1578
|
+
update!(**args)
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
# Update properties of this object
|
1582
|
+
def update!(**args)
|
1583
|
+
@env_map = args[:env_map] if args.key?(:env_map)
|
1584
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
1585
|
+
end
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
# Location of the source in a Google Cloud Source Repository.
|
1589
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource
|
1590
|
+
include Google::Apis::Core::Hashable
|
1591
|
+
|
1592
|
+
# Regex matching branches to build. The syntax of the regular expressions
|
1593
|
+
# accepted is the syntax accepted by RE2 and described at https://github.com/
|
1594
|
+
# google/re2/wiki/Syntax
|
1595
|
+
# Corresponds to the JSON property `branchName`
|
1596
|
+
# @return [String]
|
1597
|
+
attr_accessor :branch_name
|
1598
|
+
|
1599
|
+
# Explicit commit SHA to build.
|
1600
|
+
# Corresponds to the JSON property `commitSha`
|
1601
|
+
# @return [String]
|
1602
|
+
attr_accessor :commit_sha
|
1603
|
+
|
1604
|
+
# Directory, relative to the source root, in which to run the build. This must
|
1605
|
+
# be a relative path. If a step's `dir` is specified and is an absolute path,
|
1606
|
+
# this value is ignored for that step's execution.
|
1607
|
+
# Corresponds to the JSON property `dir`
|
1608
|
+
# @return [String]
|
1609
|
+
attr_accessor :dir
|
1610
|
+
|
1611
|
+
# Only trigger a build if the revision regex does NOT match the revision regex.
|
1612
|
+
# Corresponds to the JSON property `invertRegex`
|
1613
|
+
# @return [Boolean]
|
1614
|
+
attr_accessor :invert_regex
|
1615
|
+
alias_method :invert_regex?, :invert_regex
|
1616
|
+
|
1617
|
+
# ID of the project that owns the Cloud Source Repository. If omitted, the
|
1618
|
+
# project ID requesting the build is assumed.
|
1619
|
+
# Corresponds to the JSON property `projectId`
|
1620
|
+
# @return [String]
|
1621
|
+
attr_accessor :project_id
|
1622
|
+
|
1623
|
+
# Name of the Cloud Source Repository.
|
1624
|
+
# Corresponds to the JSON property `repoName`
|
1625
|
+
# @return [String]
|
1626
|
+
attr_accessor :repo_name
|
1627
|
+
|
1628
|
+
# Substitutions to use in a triggered build. Should only be used with
|
1629
|
+
# RunBuildTrigger
|
1630
|
+
# Corresponds to the JSON property `substitutions`
|
1631
|
+
# @return [Hash<String,String>]
|
1632
|
+
attr_accessor :substitutions
|
1633
|
+
|
1634
|
+
# Regex matching tags to build. The syntax of the regular expressions accepted
|
1635
|
+
# is the syntax accepted by RE2 and described at https://github.com/google/re2/
|
1636
|
+
# wiki/Syntax
|
1637
|
+
# Corresponds to the JSON property `tagName`
|
1638
|
+
# @return [String]
|
1639
|
+
attr_accessor :tag_name
|
1640
|
+
|
1641
|
+
def initialize(**args)
|
1642
|
+
update!(**args)
|
1643
|
+
end
|
1644
|
+
|
1645
|
+
# Update properties of this object
|
1646
|
+
def update!(**args)
|
1647
|
+
@branch_name = args[:branch_name] if args.key?(:branch_name)
|
1648
|
+
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
|
1649
|
+
@dir = args[:dir] if args.key?(:dir)
|
1650
|
+
@invert_regex = args[:invert_regex] if args.key?(:invert_regex)
|
1651
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
1652
|
+
@repo_name = args[:repo_name] if args.key?(:repo_name)
|
1653
|
+
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
1654
|
+
@tag_name = args[:tag_name] if args.key?(:tag_name)
|
1655
|
+
end
|
1656
|
+
end
|
1657
|
+
|
1658
|
+
# Artifacts created by the build pipeline.
|
1659
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Results
|
1660
|
+
include Google::Apis::Core::Hashable
|
1661
|
+
|
1662
|
+
# Path to the artifact manifest. Only populated when artifacts are uploaded.
|
1663
|
+
# Corresponds to the JSON property `artifactManifest`
|
1664
|
+
# @return [String]
|
1665
|
+
attr_accessor :artifact_manifest
|
1666
|
+
|
1667
|
+
# Start and end times for a build execution phase.
|
1668
|
+
# Corresponds to the JSON property `artifactTiming`
|
1669
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
|
1670
|
+
attr_accessor :artifact_timing
|
1671
|
+
|
1672
|
+
# List of build step digests, in the order corresponding to build step indices.
|
1673
|
+
# Corresponds to the JSON property `buildStepImages`
|
1674
|
+
# @return [Array<String>]
|
1675
|
+
attr_accessor :build_step_images
|
1676
|
+
|
1677
|
+
# List of build step outputs, produced by builder images, in the order
|
1678
|
+
# corresponding to build step indices. [Cloud Builders](https://cloud.google.com/
|
1679
|
+
# cloud-build/docs/cloud-builders) can produce this output by writing to `$
|
1680
|
+
# BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
|
1681
|
+
# Corresponds to the JSON property `buildStepOutputs`
|
1682
|
+
# @return [Array<String>]
|
1683
|
+
attr_accessor :build_step_outputs
|
1684
|
+
|
1685
|
+
# Container images that were built as a part of the build.
|
1686
|
+
# Corresponds to the JSON property `images`
|
1687
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage>]
|
1688
|
+
attr_accessor :images
|
1689
|
+
|
1690
|
+
# Number of artifacts uploaded. Only populated when artifacts are uploaded.
|
1691
|
+
# Corresponds to the JSON property `numArtifacts`
|
1692
|
+
# @return [Fixnum]
|
1693
|
+
attr_accessor :num_artifacts
|
1694
|
+
|
1695
|
+
def initialize(**args)
|
1696
|
+
update!(**args)
|
1697
|
+
end
|
1698
|
+
|
1699
|
+
# Update properties of this object
|
1700
|
+
def update!(**args)
|
1701
|
+
@artifact_manifest = args[:artifact_manifest] if args.key?(:artifact_manifest)
|
1702
|
+
@artifact_timing = args[:artifact_timing] if args.key?(:artifact_timing)
|
1703
|
+
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
1704
|
+
@build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
|
1705
|
+
@images = args[:images] if args.key?(:images)
|
1706
|
+
@num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
|
1707
|
+
end
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
# Pairs a set of secret environment variables containing encrypted values with
|
1711
|
+
# the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `
|
1712
|
+
# available_secrets` instead of using `kmsKeyName` with `secret`. For
|
1713
|
+
# instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/
|
1714
|
+
# use-encrypted-credentials.
|
1715
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Secret
|
1716
|
+
include Google::Apis::Core::Hashable
|
1717
|
+
|
1718
|
+
# Cloud KMS key name to use to decrypt these envs.
|
1719
|
+
# Corresponds to the JSON property `kmsKeyName`
|
1720
|
+
# @return [String]
|
1721
|
+
attr_accessor :kms_key_name
|
1722
|
+
|
1723
|
+
# Map of environment variable name to its encrypted value. Secret environment
|
1724
|
+
# variables must be unique across all of a build's secrets, and must be used by
|
1725
|
+
# at least one build step. Values can be at most 64 KB in size. There can be at
|
1726
|
+
# most 100 secret values across all of a build's secrets.
|
1727
|
+
# Corresponds to the JSON property `secretEnv`
|
1728
|
+
# @return [Hash<String,String>]
|
1729
|
+
attr_accessor :secret_env
|
1730
|
+
|
1731
|
+
def initialize(**args)
|
1732
|
+
update!(**args)
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
# Update properties of this object
|
1736
|
+
def update!(**args)
|
1737
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
1738
|
+
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
1739
|
+
end
|
1740
|
+
end
|
1741
|
+
|
1742
|
+
# Pairs a secret environment variable with a SecretVersion in Secret Manager.
|
1743
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret
|
1744
|
+
include Google::Apis::Core::Hashable
|
1745
|
+
|
1746
|
+
# Environment variable name to associate with the secret. Secret environment
|
1747
|
+
# variables must be unique across all of a build's secrets, and must be used by
|
1748
|
+
# at least one build step.
|
1749
|
+
# Corresponds to the JSON property `env`
|
1750
|
+
# @return [String]
|
1751
|
+
attr_accessor :env
|
1752
|
+
|
1753
|
+
# Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
|
1754
|
+
# Corresponds to the JSON property `versionName`
|
1755
|
+
# @return [String]
|
1756
|
+
attr_accessor :version_name
|
1757
|
+
|
1758
|
+
def initialize(**args)
|
1759
|
+
update!(**args)
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
# Update properties of this object
|
1763
|
+
def update!(**args)
|
1764
|
+
@env = args[:env] if args.key?(:env)
|
1765
|
+
@version_name = args[:version_name] if args.key?(:version_name)
|
1766
|
+
end
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
# Secrets and secret environment variables.
|
1770
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets
|
1771
|
+
include Google::Apis::Core::Hashable
|
1772
|
+
|
1773
|
+
# Secrets encrypted with KMS key and the associated secret environment variable.
|
1774
|
+
# Corresponds to the JSON property `inline`
|
1775
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret>]
|
1776
|
+
attr_accessor :inline
|
1777
|
+
|
1778
|
+
# Secrets in Secret Manager and associated secret environment variable.
|
1779
|
+
# Corresponds to the JSON property `secretManager`
|
1780
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret>]
|
1781
|
+
attr_accessor :secret_manager
|
1782
|
+
|
1783
|
+
def initialize(**args)
|
1784
|
+
update!(**args)
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
# Update properties of this object
|
1788
|
+
def update!(**args)
|
1789
|
+
@inline = args[:inline] if args.key?(:inline)
|
1790
|
+
@secret_manager = args[:secret_manager] if args.key?(:secret_manager)
|
1791
|
+
end
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
# Location of the source in a supported storage service.
|
1795
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Source
|
1796
|
+
include Google::Apis::Core::Hashable
|
1797
|
+
|
1798
|
+
# Location of the source in a Google Cloud Source Repository.
|
1799
|
+
# Corresponds to the JSON property `repoSource`
|
1800
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource]
|
1801
|
+
attr_accessor :repo_source
|
1802
|
+
|
1803
|
+
# Location of the source in an archive file in Google Cloud Storage.
|
1804
|
+
# Corresponds to the JSON property `storageSource`
|
1805
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource]
|
1806
|
+
attr_accessor :storage_source
|
1807
|
+
|
1808
|
+
# Location of the source manifest in Google Cloud Storage. This feature is in
|
1809
|
+
# Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
|
1810
|
+
# builders/tree/master/gcs-fetcher).
|
1811
|
+
# Corresponds to the JSON property `storageSourceManifest`
|
1812
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest]
|
1813
|
+
attr_accessor :storage_source_manifest
|
1814
|
+
|
1815
|
+
def initialize(**args)
|
1816
|
+
update!(**args)
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
# Update properties of this object
|
1820
|
+
def update!(**args)
|
1821
|
+
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
1822
|
+
@storage_source = args[:storage_source] if args.key?(:storage_source)
|
1823
|
+
@storage_source_manifest = args[:storage_source_manifest] if args.key?(:storage_source_manifest)
|
1824
|
+
end
|
1825
|
+
end
|
1826
|
+
|
1827
|
+
# Provenance of the source. Ways to find the original source, or verify that
|
1828
|
+
# some source was used for this build.
|
1829
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance
|
1830
|
+
include Google::Apis::Core::Hashable
|
1831
|
+
|
1832
|
+
# Output only. Hash(es) of the build source, which can be used to verify that
|
1833
|
+
# the original source integrity was maintained in the build. Note that `
|
1834
|
+
# FileHashes` will only be populated if `BuildOptions` has requested a `
|
1835
|
+
# SourceProvenanceHash`. The keys to this map are file paths used as build
|
1836
|
+
# source and the values contain the hash values for those files. If the build
|
1837
|
+
# source came in a single package such as a gzipped tarfile (`.tar.gz`), the `
|
1838
|
+
# FileHash` will be for the single path to that file.
|
1839
|
+
# Corresponds to the JSON property `fileHashes`
|
1840
|
+
# @return [Hash<String,Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes>]
|
1841
|
+
attr_accessor :file_hashes
|
1842
|
+
|
1843
|
+
# Location of the source in a Google Cloud Source Repository.
|
1844
|
+
# Corresponds to the JSON property `resolvedRepoSource`
|
1845
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource]
|
1846
|
+
attr_accessor :resolved_repo_source
|
1847
|
+
|
1848
|
+
# Location of the source in an archive file in Google Cloud Storage.
|
1849
|
+
# Corresponds to the JSON property `resolvedStorageSource`
|
1850
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource]
|
1851
|
+
attr_accessor :resolved_storage_source
|
1852
|
+
|
1853
|
+
# Location of the source manifest in Google Cloud Storage. This feature is in
|
1854
|
+
# Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
|
1855
|
+
# builders/tree/master/gcs-fetcher).
|
1856
|
+
# Corresponds to the JSON property `resolvedStorageSourceManifest`
|
1857
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest]
|
1858
|
+
attr_accessor :resolved_storage_source_manifest
|
1859
|
+
|
1860
|
+
def initialize(**args)
|
1861
|
+
update!(**args)
|
1862
|
+
end
|
1863
|
+
|
1864
|
+
# Update properties of this object
|
1865
|
+
def update!(**args)
|
1866
|
+
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
|
1867
|
+
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
|
1868
|
+
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
|
1869
|
+
@resolved_storage_source_manifest = args[:resolved_storage_source_manifest] if args.key?(:resolved_storage_source_manifest)
|
1870
|
+
end
|
1871
|
+
end
|
1872
|
+
|
1873
|
+
# Location of the source in an archive file in Google Cloud Storage.
|
1874
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource
|
1875
|
+
include Google::Apis::Core::Hashable
|
1876
|
+
|
1877
|
+
# Google Cloud Storage bucket containing the source (see [Bucket Name
|
1878
|
+
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
1879
|
+
# ).
|
1880
|
+
# Corresponds to the JSON property `bucket`
|
1881
|
+
# @return [String]
|
1882
|
+
attr_accessor :bucket
|
1883
|
+
|
1884
|
+
# Google Cloud Storage generation for the object. If the generation is omitted,
|
1885
|
+
# the latest generation will be used.
|
1886
|
+
# Corresponds to the JSON property `generation`
|
1887
|
+
# @return [Fixnum]
|
1888
|
+
attr_accessor :generation
|
1889
|
+
|
1890
|
+
# Google Cloud Storage object containing the source. This object must be a
|
1891
|
+
# zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
|
1892
|
+
# Corresponds to the JSON property `object`
|
1893
|
+
# @return [String]
|
1894
|
+
attr_accessor :object
|
1895
|
+
|
1896
|
+
def initialize(**args)
|
1897
|
+
update!(**args)
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
# Update properties of this object
|
1901
|
+
def update!(**args)
|
1902
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
1903
|
+
@generation = args[:generation] if args.key?(:generation)
|
1904
|
+
@object = args[:object] if args.key?(:object)
|
1905
|
+
end
|
1906
|
+
end
|
1907
|
+
|
1908
|
+
# Location of the source manifest in Google Cloud Storage. This feature is in
|
1909
|
+
# Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
|
1910
|
+
# builders/tree/master/gcs-fetcher).
|
1911
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest
|
1912
|
+
include Google::Apis::Core::Hashable
|
1913
|
+
|
1914
|
+
# Google Cloud Storage bucket containing the source manifest (see [Bucket Name
|
1915
|
+
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
1916
|
+
# ).
|
1917
|
+
# Corresponds to the JSON property `bucket`
|
1918
|
+
# @return [String]
|
1919
|
+
attr_accessor :bucket
|
1920
|
+
|
1921
|
+
# Google Cloud Storage generation for the object. If the generation is omitted,
|
1922
|
+
# the latest generation will be used.
|
1923
|
+
# Corresponds to the JSON property `generation`
|
1924
|
+
# @return [Fixnum]
|
1925
|
+
attr_accessor :generation
|
1926
|
+
|
1927
|
+
# Google Cloud Storage object containing the source manifest. This object must
|
1928
|
+
# be a JSON file.
|
1929
|
+
# Corresponds to the JSON property `object`
|
1930
|
+
# @return [String]
|
1931
|
+
attr_accessor :object
|
1932
|
+
|
1933
|
+
def initialize(**args)
|
1934
|
+
update!(**args)
|
1935
|
+
end
|
1936
|
+
|
1937
|
+
# Update properties of this object
|
1938
|
+
def update!(**args)
|
1939
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
1940
|
+
@generation = args[:generation] if args.key?(:generation)
|
1941
|
+
@object = args[:object] if args.key?(:object)
|
1942
|
+
end
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
# Start and end times for a build execution phase.
|
1946
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
|
1947
|
+
include Google::Apis::Core::Hashable
|
1948
|
+
|
1949
|
+
# End of time span.
|
1950
|
+
# Corresponds to the JSON property `endTime`
|
1951
|
+
# @return [String]
|
1952
|
+
attr_accessor :end_time
|
1953
|
+
|
1954
|
+
# Start of time span.
|
1955
|
+
# Corresponds to the JSON property `startTime`
|
1956
|
+
# @return [String]
|
1957
|
+
attr_accessor :start_time
|
822
1958
|
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
attr_accessor :env
|
1959
|
+
def initialize(**args)
|
1960
|
+
update!(**args)
|
1961
|
+
end
|
827
1962
|
|
828
|
-
#
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
1963
|
+
# Update properties of this object
|
1964
|
+
def update!(**args)
|
1965
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1966
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1967
|
+
end
|
1968
|
+
end
|
833
1969
|
|
834
|
-
|
835
|
-
|
1970
|
+
# Volume describes a Docker container volume which is mounted into build steps
|
1971
|
+
# in order to persist files across build step execution.
|
1972
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1Volume
|
1973
|
+
include Google::Apis::Core::Hashable
|
1974
|
+
|
1975
|
+
# Name of the volume to mount. Volume names must be unique per build step and
|
1976
|
+
# must be valid names for Docker volumes. Each named volume must be used by at
|
1977
|
+
# least two build steps.
|
836
1978
|
# Corresponds to the JSON property `name`
|
837
1979
|
# @return [String]
|
838
1980
|
attr_accessor :name
|
839
1981
|
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
|
1982
|
+
# Path at which to mount the volume. Paths must be absolute and cannot conflict
|
1983
|
+
# with other volume paths on the same build step or with certain reserved volume
|
1984
|
+
# paths.
|
1985
|
+
# Corresponds to the JSON property `path`
|
1986
|
+
# @return [String]
|
1987
|
+
attr_accessor :path
|
844
1988
|
|
845
1989
|
def initialize(**args)
|
846
1990
|
update!(**args)
|
@@ -848,12 +1992,8 @@ module Google
|
|
848
1992
|
|
849
1993
|
# Update properties of this object
|
850
1994
|
def update!(**args)
|
851
|
-
@args = args[:args] if args.key?(:args)
|
852
|
-
@dir = args[:dir] if args.key?(:dir)
|
853
|
-
@env = args[:env] if args.key?(:env)
|
854
|
-
@id = args[:id] if args.key?(:id)
|
855
1995
|
@name = args[:name] if args.key?(:name)
|
856
|
-
@
|
1996
|
+
@path = args[:path] if args.key?(:path)
|
857
1997
|
end
|
858
1998
|
end
|
859
1999
|
|
@@ -1540,18 +2680,10 @@ module Google
|
|
1540
2680
|
# @return [String]
|
1541
2681
|
attr_accessor :id
|
1542
2682
|
|
1543
|
-
#
|
1544
|
-
#
|
1545
|
-
# License for a file
|
1546
|
-
# Corresponds to the JSON property `licenseComments`
|
1547
|
-
# @return [String]
|
1548
|
-
attr_accessor :license_comments
|
1549
|
-
|
1550
|
-
# This field contains the license the SPDX file creator has concluded as
|
1551
|
-
# governing the file or alternative values if the governing license cannot be
|
1552
|
-
# determined
|
2683
|
+
# License information: https://spdx.github.io/spdx-spec/3-package-information/#
|
2684
|
+
# 315-declared-license
|
1553
2685
|
# Corresponds to the JSON property `licenseConcluded`
|
1554
|
-
# @return [
|
2686
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
1555
2687
|
attr_accessor :license_concluded
|
1556
2688
|
|
1557
2689
|
# This field provides a place for the SPDX file creator to record license
|
@@ -1572,7 +2704,6 @@ module Google
|
|
1572
2704
|
@copyright = args[:copyright] if args.key?(:copyright)
|
1573
2705
|
@files_license_info = args[:files_license_info] if args.key?(:files_license_info)
|
1574
2706
|
@id = args[:id] if args.key?(:id)
|
1575
|
-
@license_comments = args[:license_comments] if args.key?(:license_comments)
|
1576
2707
|
@license_concluded = args[:license_concluded] if args.key?(:license_concluded)
|
1577
2708
|
@notice = args[:notice] if args.key?(:notice)
|
1578
2709
|
end
|
@@ -1754,13 +2885,16 @@ module Google
|
|
1754
2885
|
class GetPolicyOptions
|
1755
2886
|
include Google::Apis::Core::Hashable
|
1756
2887
|
|
1757
|
-
# Optional. The policy
|
1758
|
-
# 3. Requests specifying an invalid value will be
|
1759
|
-
# policies with any conditional bindings must
|
1760
|
-
#
|
1761
|
-
# field unset.
|
1762
|
-
#
|
1763
|
-
#
|
2888
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
2889
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2890
|
+
# rejected. Requests for policies with any conditional role bindings must
|
2891
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
2892
|
+
# valid value or leave the field unset. The policy in the response might use the
|
2893
|
+
# policy version that you specified, or it might use a lower policy version. For
|
2894
|
+
# example, if you specify version 3, but the policy has no conditional role
|
2895
|
+
# bindings, the response uses version 1. To learn which resources support
|
2896
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2897
|
+
# google.com/iam/help/conditions/resource-policies).
|
1764
2898
|
# Corresponds to the JSON property `requestedPolicyVersion`
|
1765
2899
|
# @return [Fixnum]
|
1766
2900
|
attr_accessor :requested_policy_version
|
@@ -2268,6 +3402,33 @@ module Google
|
|
2268
3402
|
end
|
2269
3403
|
end
|
2270
3404
|
|
3405
|
+
# License information: https://spdx.github.io/spdx-spec/3-package-information/#
|
3406
|
+
# 315-declared-license
|
3407
|
+
class License
|
3408
|
+
include Google::Apis::Core::Hashable
|
3409
|
+
|
3410
|
+
# Comments
|
3411
|
+
# Corresponds to the JSON property `comments`
|
3412
|
+
# @return [String]
|
3413
|
+
attr_accessor :comments
|
3414
|
+
|
3415
|
+
# Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-
|
3416
|
+
# expressions/
|
3417
|
+
# Corresponds to the JSON property `expression`
|
3418
|
+
# @return [String]
|
3419
|
+
attr_accessor :expression
|
3420
|
+
|
3421
|
+
def initialize(**args)
|
3422
|
+
update!(**args)
|
3423
|
+
end
|
3424
|
+
|
3425
|
+
# Update properties of this object
|
3426
|
+
def update!(**args)
|
3427
|
+
@comments = args[:comments] if args.key?(:comments)
|
3428
|
+
@expression = args[:expression] if args.key?(:expression)
|
3429
|
+
end
|
3430
|
+
end
|
3431
|
+
|
2271
3432
|
# This corresponds to an in-toto link.
|
2272
3433
|
class Link
|
2273
3434
|
include Google::Apis::Core::Hashable
|
@@ -2566,10 +3727,10 @@ module Google
|
|
2566
3727
|
# @return [Google::Apis::ContaineranalysisV1beta1::FileNote]
|
2567
3728
|
attr_accessor :spdx_file
|
2568
3729
|
|
2569
|
-
#
|
3730
|
+
# PackageInfoNote represents an SPDX Package Information section: https://spdx.
|
2570
3731
|
# github.io/spdx-spec/3-package-information/
|
2571
3732
|
# Corresponds to the JSON property `spdxPackage`
|
2572
|
-
# @return [Google::Apis::ContaineranalysisV1beta1::
|
3733
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::PackageInfoNote]
|
2573
3734
|
attr_accessor :spdx_package
|
2574
3735
|
|
2575
3736
|
# RelationshipNote represents an SPDX Relationship section: https://spdx.github.
|
@@ -2706,10 +3867,10 @@ module Google
|
|
2706
3867
|
# @return [Google::Apis::ContaineranalysisV1beta1::FileOccurrence]
|
2707
3868
|
attr_accessor :spdx_file
|
2708
3869
|
|
2709
|
-
#
|
2710
|
-
# github.io/spdx-spec/3-package-information/
|
3870
|
+
# PackageInfoOccurrence represents an SPDX Package Information section: https://
|
3871
|
+
# spdx.github.io/spdx-spec/3-package-information/
|
2711
3872
|
# Corresponds to the JSON property `spdxPackage`
|
2712
|
-
# @return [Google::Apis::ContaineranalysisV1beta1::
|
3873
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::PackageInfoOccurrence]
|
2713
3874
|
attr_accessor :spdx_package
|
2714
3875
|
|
2715
3876
|
# RelationshipOccurrence represents an SPDX Relationship section: https://spdx.
|
@@ -2782,56 +3943,9 @@ module Google
|
|
2782
3943
|
end
|
2783
3944
|
end
|
2784
3945
|
|
2785
|
-
#
|
2786
|
-
# fix (if one is available).
|
2787
|
-
class PackageIssue
|
2788
|
-
include Google::Apis::Core::Hashable
|
2789
|
-
|
2790
|
-
# The location of the vulnerability.
|
2791
|
-
# Corresponds to the JSON property `affectedLocation`
|
2792
|
-
# @return [Google::Apis::ContaineranalysisV1beta1::VulnerabilityLocation]
|
2793
|
-
attr_accessor :affected_location
|
2794
|
-
|
2795
|
-
# Output only. The distro or language system assigned severity for this
|
2796
|
-
# vulnerability when that is available and note provider assigned severity when
|
2797
|
-
# it is not available.
|
2798
|
-
# Corresponds to the JSON property `effectiveSeverity`
|
2799
|
-
# @return [String]
|
2800
|
-
attr_accessor :effective_severity
|
2801
|
-
|
2802
|
-
# The location of the vulnerability.
|
2803
|
-
# Corresponds to the JSON property `fixedLocation`
|
2804
|
-
# @return [Google::Apis::ContaineranalysisV1beta1::VulnerabilityLocation]
|
2805
|
-
attr_accessor :fixed_location
|
2806
|
-
|
2807
|
-
# The type of package (e.g. OS, MAVEN, GO).
|
2808
|
-
# Corresponds to the JSON property `packageType`
|
2809
|
-
# @return [String]
|
2810
|
-
attr_accessor :package_type
|
2811
|
-
|
2812
|
-
# Deprecated, use Details.effective_severity instead The severity (e.g., distro
|
2813
|
-
# assigned severity) for this vulnerability.
|
2814
|
-
# Corresponds to the JSON property `severityName`
|
2815
|
-
# @return [String]
|
2816
|
-
attr_accessor :severity_name
|
2817
|
-
|
2818
|
-
def initialize(**args)
|
2819
|
-
update!(**args)
|
2820
|
-
end
|
2821
|
-
|
2822
|
-
# Update properties of this object
|
2823
|
-
def update!(**args)
|
2824
|
-
@affected_location = args[:affected_location] if args.key?(:affected_location)
|
2825
|
-
@effective_severity = args[:effective_severity] if args.key?(:effective_severity)
|
2826
|
-
@fixed_location = args[:fixed_location] if args.key?(:fixed_location)
|
2827
|
-
@package_type = args[:package_type] if args.key?(:package_type)
|
2828
|
-
@severity_name = args[:severity_name] if args.key?(:severity_name)
|
2829
|
-
end
|
2830
|
-
end
|
2831
|
-
|
2832
|
-
# PackageNote represents an SPDX Package Information section: https://spdx.
|
3946
|
+
# PackageInfoNote represents an SPDX Package Information section: https://spdx.
|
2833
3947
|
# github.io/spdx-spec/3-package-information/
|
2834
|
-
class
|
3948
|
+
class PackageInfoNote
|
2835
3949
|
include Google::Apis::Core::Hashable
|
2836
3950
|
|
2837
3951
|
# Indicates whether the file content of this package has been available for or
|
@@ -2890,9 +4004,10 @@ module Google
|
|
2890
4004
|
# @return [String]
|
2891
4005
|
attr_accessor :home_page
|
2892
4006
|
|
2893
|
-
#
|
4007
|
+
# License information: https://spdx.github.io/spdx-spec/3-package-information/#
|
4008
|
+
# 315-declared-license
|
2894
4009
|
# Corresponds to the JSON property `licenseDeclared`
|
2895
|
-
# @return [
|
4010
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
2896
4011
|
attr_accessor :license_declared
|
2897
4012
|
|
2898
4013
|
# If the package identified in the SPDX file originated from a different person
|
@@ -2902,6 +4017,11 @@ module Google
|
|
2902
4017
|
# @return [String]
|
2903
4018
|
attr_accessor :originator
|
2904
4019
|
|
4020
|
+
# The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
|
4021
|
+
# Corresponds to the JSON property `packageType`
|
4022
|
+
# @return [String]
|
4023
|
+
attr_accessor :package_type
|
4024
|
+
|
2905
4025
|
# A short description of the package
|
2906
4026
|
# Corresponds to the JSON property `summaryDescription`
|
2907
4027
|
# @return [String]
|
@@ -2948,6 +4068,7 @@ module Google
|
|
2948
4068
|
@home_page = args[:home_page] if args.key?(:home_page)
|
2949
4069
|
@license_declared = args[:license_declared] if args.key?(:license_declared)
|
2950
4070
|
@originator = args[:originator] if args.key?(:originator)
|
4071
|
+
@package_type = args[:package_type] if args.key?(:package_type)
|
2951
4072
|
@summary_description = args[:summary_description] if args.key?(:summary_description)
|
2952
4073
|
@supplier = args[:supplier] if args.key?(:supplier)
|
2953
4074
|
@title = args[:title] if args.key?(:title)
|
@@ -2956,9 +4077,9 @@ module Google
|
|
2956
4077
|
end
|
2957
4078
|
end
|
2958
4079
|
|
2959
|
-
#
|
2960
|
-
# github.io/spdx-spec/3-package-information/
|
2961
|
-
class
|
4080
|
+
# PackageInfoOccurrence represents an SPDX Package Information section: https://
|
4081
|
+
# spdx.github.io/spdx-spec/3-package-information/
|
4082
|
+
class PackageInfoOccurrence
|
2962
4083
|
include Google::Apis::Core::Hashable
|
2963
4084
|
|
2964
4085
|
# A place for the SPDX file creator to record any general comments about the
|
@@ -2973,30 +4094,51 @@ module Google
|
|
2973
4094
|
# @return [String]
|
2974
4095
|
attr_accessor :filename
|
2975
4096
|
|
4097
|
+
# Output only. Provide a place for the SPDX file creator to record a web site
|
4098
|
+
# that serves as the package's home page
|
4099
|
+
# Corresponds to the JSON property `homePage`
|
4100
|
+
# @return [String]
|
4101
|
+
attr_accessor :home_page
|
4102
|
+
|
2976
4103
|
# Uniquely identify any element in an SPDX document which may be referenced by
|
2977
4104
|
# other elements
|
2978
4105
|
# Corresponds to the JSON property `id`
|
2979
4106
|
# @return [String]
|
2980
4107
|
attr_accessor :id
|
2981
4108
|
|
2982
|
-
#
|
2983
|
-
#
|
2984
|
-
# License for a package
|
2985
|
-
# Corresponds to the JSON property `licenseComments`
|
2986
|
-
# @return [String]
|
2987
|
-
attr_accessor :license_comments
|
2988
|
-
|
2989
|
-
# package or alternative values, if the governing license cannot be determined
|
4109
|
+
# License information: https://spdx.github.io/spdx-spec/3-package-information/#
|
4110
|
+
# 315-declared-license
|
2990
4111
|
# Corresponds to the JSON property `licenseConcluded`
|
2991
|
-
# @return [
|
4112
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::License]
|
2992
4113
|
attr_accessor :license_concluded
|
2993
4114
|
|
4115
|
+
# Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
|
4116
|
+
# Corresponds to the JSON property `packageType`
|
4117
|
+
# @return [String]
|
4118
|
+
attr_accessor :package_type
|
4119
|
+
|
2994
4120
|
# Provide a place for the SPDX file creator to record any relevant background
|
2995
4121
|
# information or additional comments about the origin of the package
|
2996
4122
|
# Corresponds to the JSON property `sourceInfo`
|
2997
4123
|
# @return [String]
|
2998
4124
|
attr_accessor :source_info
|
2999
4125
|
|
4126
|
+
# Output only. A short description of the package
|
4127
|
+
# Corresponds to the JSON property `summaryDescription`
|
4128
|
+
# @return [String]
|
4129
|
+
attr_accessor :summary_description
|
4130
|
+
|
4131
|
+
# Output only. Identify the full name of the package as given by the Package
|
4132
|
+
# Originator
|
4133
|
+
# Corresponds to the JSON property `title`
|
4134
|
+
# @return [String]
|
4135
|
+
attr_accessor :title
|
4136
|
+
|
4137
|
+
# Output only. Identify the version of the package
|
4138
|
+
# Corresponds to the JSON property `version`
|
4139
|
+
# @return [String]
|
4140
|
+
attr_accessor :version
|
4141
|
+
|
3000
4142
|
def initialize(**args)
|
3001
4143
|
update!(**args)
|
3002
4144
|
end
|
@@ -3005,10 +4147,61 @@ module Google
|
|
3005
4147
|
def update!(**args)
|
3006
4148
|
@comment = args[:comment] if args.key?(:comment)
|
3007
4149
|
@filename = args[:filename] if args.key?(:filename)
|
4150
|
+
@home_page = args[:home_page] if args.key?(:home_page)
|
3008
4151
|
@id = args[:id] if args.key?(:id)
|
3009
|
-
@license_comments = args[:license_comments] if args.key?(:license_comments)
|
3010
4152
|
@license_concluded = args[:license_concluded] if args.key?(:license_concluded)
|
4153
|
+
@package_type = args[:package_type] if args.key?(:package_type)
|
3011
4154
|
@source_info = args[:source_info] if args.key?(:source_info)
|
4155
|
+
@summary_description = args[:summary_description] if args.key?(:summary_description)
|
4156
|
+
@title = args[:title] if args.key?(:title)
|
4157
|
+
@version = args[:version] if args.key?(:version)
|
4158
|
+
end
|
4159
|
+
end
|
4160
|
+
|
4161
|
+
# This message wraps a location affected by a vulnerability and its associated
|
4162
|
+
# fix (if one is available).
|
4163
|
+
class PackageIssue
|
4164
|
+
include Google::Apis::Core::Hashable
|
4165
|
+
|
4166
|
+
# The location of the vulnerability.
|
4167
|
+
# Corresponds to the JSON property `affectedLocation`
|
4168
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::VulnerabilityLocation]
|
4169
|
+
attr_accessor :affected_location
|
4170
|
+
|
4171
|
+
# Output only. The distro or language system assigned severity for this
|
4172
|
+
# vulnerability when that is available and note provider assigned severity when
|
4173
|
+
# it is not available.
|
4174
|
+
# Corresponds to the JSON property `effectiveSeverity`
|
4175
|
+
# @return [String]
|
4176
|
+
attr_accessor :effective_severity
|
4177
|
+
|
4178
|
+
# The location of the vulnerability.
|
4179
|
+
# Corresponds to the JSON property `fixedLocation`
|
4180
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::VulnerabilityLocation]
|
4181
|
+
attr_accessor :fixed_location
|
4182
|
+
|
4183
|
+
# The type of package (e.g. OS, MAVEN, GO).
|
4184
|
+
# Corresponds to the JSON property `packageType`
|
4185
|
+
# @return [String]
|
4186
|
+
attr_accessor :package_type
|
4187
|
+
|
4188
|
+
# Deprecated, use Details.effective_severity instead The severity (e.g., distro
|
4189
|
+
# assigned severity) for this vulnerability.
|
4190
|
+
# Corresponds to the JSON property `severityName`
|
4191
|
+
# @return [String]
|
4192
|
+
attr_accessor :severity_name
|
4193
|
+
|
4194
|
+
def initialize(**args)
|
4195
|
+
update!(**args)
|
4196
|
+
end
|
4197
|
+
|
4198
|
+
# Update properties of this object
|
4199
|
+
def update!(**args)
|
4200
|
+
@affected_location = args[:affected_location] if args.key?(:affected_location)
|
4201
|
+
@effective_severity = args[:effective_severity] if args.key?(:effective_severity)
|
4202
|
+
@fixed_location = args[:fixed_location] if args.key?(:fixed_location)
|
4203
|
+
@package_type = args[:package_type] if args.key?(:package_type)
|
4204
|
+
@severity_name = args[:severity_name] if args.key?(:severity_name)
|
3012
4205
|
end
|
3013
4206
|
end
|
3014
4207
|
|
@@ -3067,37 +4260,42 @@ module Google
|
|
3067
4260
|
|
3068
4261
|
# An Identity and Access Management (IAM) policy, which specifies access
|
3069
4262
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
3070
|
-
# A `binding` binds one or more `members
|
3071
|
-
# user accounts, service accounts, Google groups, and domains (
|
3072
|
-
# A `role` is a named list of permissions; each `role` can be
|
3073
|
-
# role or a user-created custom role. For some types of Google
|
3074
|
-
# a `binding` can also specify a `condition`, which is a
|
3075
|
-
# allows access to a resource only if the expression
|
3076
|
-
# condition can add constraints based on attributes of
|
3077
|
-
# or both. To learn which resources support
|
3078
|
-
# see the [IAM documentation](https://cloud.
|
3079
|
-
# resource-policies). **JSON example:** ` "
|
3080
|
-
# resourcemanager.organizationAdmin", "members": [
|
3081
|
-
# group:admins@example.com", "domain:google.com", "
|
3082
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
3083
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
3084
|
-
# title": "expirable access", "description": "Does not grant
|
3085
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
3086
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
3087
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
3088
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
3089
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
3090
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
3091
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
3092
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
3093
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
3094
|
-
# google.com/iam/docs/).
|
4263
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
4264
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
4265
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
4266
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
4267
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
4268
|
+
# logical expression that allows access to a resource only if the expression
|
4269
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
4270
|
+
# the request, the resource, or both. To learn which resources support
|
4271
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
4272
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
4273
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
4274
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
4275
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
4276
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
4277
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
4278
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
4279
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
4280
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
4281
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
4282
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
4283
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
4284
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
4285
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
4286
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
4287
|
+
# cloud.google.com/iam/docs/).
|
3095
4288
|
class Policy
|
3096
4289
|
include Google::Apis::Core::Hashable
|
3097
4290
|
|
3098
|
-
# Associates a list of `members
|
3099
|
-
# condition` that determines how and when the `bindings` are applied.
|
3100
|
-
# the `bindings` must contain at least one
|
4291
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
4292
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
4293
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
4294
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
4295
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
4296
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
4297
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
4298
|
+
# principals to the `bindings` in the `Policy`.
|
3101
4299
|
# Corresponds to the JSON property `bindings`
|
3102
4300
|
# @return [Array<Google::Apis::ContaineranalysisV1beta1::Binding>]
|
3103
4301
|
attr_accessor :bindings
|
@@ -3205,12 +4403,18 @@ module Google
|
|
3205
4403
|
class RelationshipNote
|
3206
4404
|
include Google::Apis::Core::Hashable
|
3207
4405
|
|
4406
|
+
# The type of relationship between the source and target SPDX elements
|
4407
|
+
# Corresponds to the JSON property `type`
|
4408
|
+
# @return [String]
|
4409
|
+
attr_accessor :type
|
4410
|
+
|
3208
4411
|
def initialize(**args)
|
3209
4412
|
update!(**args)
|
3210
4413
|
end
|
3211
4414
|
|
3212
4415
|
# Update properties of this object
|
3213
4416
|
def update!(**args)
|
4417
|
+
@type = args[:type] if args.key?(:type)
|
3214
4418
|
end
|
3215
4419
|
end
|
3216
4420
|
|
@@ -3239,7 +4443,8 @@ module Google
|
|
3239
4443
|
# @return [String]
|
3240
4444
|
attr_accessor :target
|
3241
4445
|
|
3242
|
-
# The type of relationship between the source and target SPDX
|
4446
|
+
# Output only. The type of relationship between the source and target SPDX
|
4447
|
+
# elements
|
3243
4448
|
# Corresponds to the JSON property `type`
|
3244
4449
|
# @return [String]
|
3245
4450
|
attr_accessor :type
|
@@ -3369,31 +4574,31 @@ module Google
|
|
3369
4574
|
|
3370
4575
|
# An Identity and Access Management (IAM) policy, which specifies access
|
3371
4576
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
3372
|
-
# A `binding` binds one or more `members
|
3373
|
-
# user accounts, service accounts, Google groups, and domains (
|
3374
|
-
# A `role` is a named list of permissions; each `role` can be
|
3375
|
-
# role or a user-created custom role. For some types of Google
|
3376
|
-
# a `binding` can also specify a `condition`, which is a
|
3377
|
-
# allows access to a resource only if the expression
|
3378
|
-
# condition can add constraints based on attributes of
|
3379
|
-
# or both. To learn which resources support
|
3380
|
-
# see the [IAM documentation](https://cloud.
|
3381
|
-
# resource-policies). **JSON example:** ` "
|
3382
|
-
# resourcemanager.organizationAdmin", "members": [
|
3383
|
-
# group:admins@example.com", "domain:google.com", "
|
3384
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
3385
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
3386
|
-
# title": "expirable access", "description": "Does not grant
|
3387
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
3388
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
3389
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
3390
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
3391
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
3392
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
3393
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
3394
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
3395
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
3396
|
-
# google.com/iam/docs/).
|
4577
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
4578
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
4579
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
4580
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
4581
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
4582
|
+
# logical expression that allows access to a resource only if the expression
|
4583
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
4584
|
+
# the request, the resource, or both. To learn which resources support
|
4585
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
4586
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
4587
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
4588
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
4589
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
4590
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
4591
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
4592
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
4593
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
4594
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
4595
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
4596
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
4597
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
4598
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
4599
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
4600
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
4601
|
+
# cloud.google.com/iam/docs/).
|
3397
4602
|
# Corresponds to the JSON property `policy`
|
3398
4603
|
# @return [Google::Apis::ContaineranalysisV1beta1::Policy]
|
3399
4604
|
attr_accessor :policy
|
@@ -3672,31 +4877,6 @@ module Google
|
|
3672
4877
|
end
|
3673
4878
|
end
|
3674
4879
|
|
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
|
-
|
3700
4880
|
# Version contains structured information about the version of a package.
|
3701
4881
|
class Version
|
3702
4882
|
include Google::Apis::Core::Hashable
|
@@ -3746,36 +4926,6 @@ module Google
|
|
3746
4926
|
end
|
3747
4927
|
end
|
3748
4928
|
|
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
|
-
|
3779
4929
|
# Vulnerability provides metadata about a security vulnerability in a Note.
|
3780
4930
|
class Vulnerability
|
3781
4931
|
include Google::Apis::Core::Hashable
|