2016-01-29 22:32:46 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module CloudbuildV1
|
|
|
|
|
2018-03-28 00:35:47 +00:00
|
|
|
class ArtifactObjects
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2018-04-07 00:35:43 +00:00
|
|
|
class ArtifactResult
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2018-03-28 00:35:47 +00:00
|
|
|
class Artifacts
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Build
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildOperationMetadata
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildOptions
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildStep
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildTrigger
|
2017-06-14 17:02:03 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class BuiltImage
|
2017-02-13 23:28:52 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class CancelBuildRequest
|
2017-02-13 23:28:52 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class CancelOperationRequest
|
2017-02-13 23:28:52 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-02-13 23:28:52 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class FileHashes
|
2017-02-13 23:28:52 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class GitHubEventsConfig
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class HttpDelivery
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class HashProp
|
2017-02-03 19:29:28 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListBuildTriggersResponse
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-01-28 03:38:40 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListBuildsResponse
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-01-28 03:38:40 +00:00
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class Notification
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierConfig
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierMetadata
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierSecret
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierSecretRef
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierSpec
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-01-28 03:38:40 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Operation
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-01-28 03:38:40 +00:00
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class PullRequestFilter
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class PushFilter
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class RepoSource
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Results
|
2017-04-03 20:18:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-10-26 00:35:44 +00:00
|
|
|
class RetryBuildRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class SmtpDelivery
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Secret
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class SlackDelivery
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class Source
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-06-30 21:17:37 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class SourceProvenance
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Status
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-08-17 17:19:48 +00:00
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-08-17 17:19:48 +00:00
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class StorageSource
|
2017-05-26 16:44:32 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-06-30 21:17:37 +00:00
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class TimeSpan
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Volume
|
2017-07-12 20:10:42 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
2016-06-30 21:17:37 +00:00
|
|
|
|
2018-03-28 00:35:47 +00:00
|
|
|
class ArtifactObjects
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :location, as: 'location'
|
|
|
|
collection :paths, as: 'paths'
|
2018-04-06 00:35:48 +00:00
|
|
|
property :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
|
|
|
|
2018-03-28 00:35:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-04-07 00:35:43 +00:00
|
|
|
class ArtifactResult
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
|
|
|
|
|
|
|
property :location, as: 'location'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-03-28 00:35:47 +00:00
|
|
|
class Artifacts
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :images, as: 'images'
|
|
|
|
property :objects, as: 'objects', class: Google::Apis::CloudbuildV1::ArtifactObjects, decorator: Google::Apis::CloudbuildV1::ArtifactObjects::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Build
|
2017-02-13 23:28:52 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-03-28 00:35:47 +00:00
|
|
|
property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1::Artifacts, decorator: Google::Apis::CloudbuildV1::Artifacts::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :build_trigger_id, as: 'buildTriggerId'
|
|
|
|
property :create_time, as: 'createTime'
|
|
|
|
property :finish_time, as: 'finishTime'
|
|
|
|
property :id, as: 'id'
|
|
|
|
collection :images, as: 'images'
|
|
|
|
property :log_url, as: 'logUrl'
|
|
|
|
property :logs_bucket, as: 'logsBucket'
|
|
|
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
|
|
|
|
|
|
|
property :project_id, as: 'projectId'
|
2020-04-13 16:49:10 +00:00
|
|
|
property :queue_ttl, as: 'queueTtl'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
|
|
|
|
|
|
|
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::Secret, decorator: Google::Apis::CloudbuildV1::Secret::Representation
|
|
|
|
|
2020-08-19 00:38:20 +00:00
|
|
|
property :service_account, as: 'serviceAccount'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
|
|
|
|
|
|
|
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :start_time, as: 'startTime'
|
|
|
|
property :status, as: 'status'
|
|
|
|
property :status_detail, as: 'statusDetail'
|
|
|
|
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
|
|
|
|
|
|
|
hash :substitutions, as: 'substitutions'
|
|
|
|
collection :tags, as: 'tags'
|
|
|
|
property :timeout, as: 'timeout'
|
2017-12-13 00:35:45 +00:00
|
|
|
hash :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildOperationMetadata
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildOptions
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-11-16 00:35:16 +00:00
|
|
|
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
2020-06-03 00:38:28 +00:00
|
|
|
property :dynamic_substitutions, as: 'dynamicSubstitutions'
|
2018-10-02 00:36:26 +00:00
|
|
|
collection :env, as: 'env'
|
2017-10-24 00:36:03 +00:00
|
|
|
property :log_streaming_option, as: 'logStreamingOption'
|
2018-09-11 00:36:16 +00:00
|
|
|
property :logging, as: 'logging'
|
2017-11-16 00:35:16 +00:00
|
|
|
property :machine_type, as: 'machineType'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
2018-10-02 00:36:26 +00:00
|
|
|
collection :secret_env, as: 'secretEnv'
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
|
|
|
property :substitution_option, as: 'substitutionOption'
|
2018-10-02 00:36:26 +00:00
|
|
|
collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation
|
|
|
|
|
2018-10-18 00:36:35 +00:00
|
|
|
property :worker_pool, as: 'workerPool'
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildStep
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :args, as: 'args'
|
|
|
|
property :dir, as: 'dir'
|
|
|
|
property :entrypoint, as: 'entrypoint'
|
|
|
|
collection :env, as: 'env'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :name, as: 'name'
|
2018-10-02 00:36:26 +00:00
|
|
|
property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :secret_env, as: 'secretEnv'
|
2018-02-21 00:36:04 +00:00
|
|
|
property :status, as: 'status'
|
|
|
|
property :timeout, as: 'timeout'
|
2017-12-13 00:35:45 +00:00
|
|
|
property :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :wait_for, as: 'waitFor'
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class BuildTrigger
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
|
|
|
|
|
|
property :create_time, as: 'createTime'
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :disabled, as: 'disabled'
|
|
|
|
property :filename, as: 'filename'
|
2019-03-07 00:37:00 +00:00
|
|
|
property :github, as: 'github', class: Google::Apis::CloudbuildV1::GitHubEventsConfig, decorator: Google::Apis::CloudbuildV1::GitHubEventsConfig::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
property :id, as: 'id'
|
2018-08-22 21:14:52 +00:00
|
|
|
collection :ignored_files, as: 'ignoredFiles'
|
|
|
|
collection :included_files, as: 'includedFiles'
|
2019-08-27 00:38:06 +00:00
|
|
|
property :name, as: 'name'
|
2017-08-25 19:54:22 +00:00
|
|
|
hash :substitutions, as: 'substitutions'
|
2019-05-03 00:37:18 +00:00
|
|
|
collection :tags, as: 'tags'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
|
|
|
end
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class BuiltImage
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :digest, as: 'digest'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :name, as: 'name'
|
2017-12-13 00:35:45 +00:00
|
|
|
property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class CancelBuildRequest
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class CancelOperationRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-04-03 20:18:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
|
|
|
end
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
class FileHashes
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-26 16:44:32 +00:00
|
|
|
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class GitHubEventsConfig
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :installation_id, :numeric_string => true, as: 'installationId'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :owner, as: 'owner'
|
|
|
|
property :pull_request, as: 'pullRequest', class: Google::Apis::CloudbuildV1::PullRequestFilter, decorator: Google::Apis::CloudbuildV1::PullRequestFilter::Representation
|
|
|
|
|
|
|
|
property :push, as: 'push', class: Google::Apis::CloudbuildV1::PushFilter, decorator: Google::Apis::CloudbuildV1::PushFilter::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class HttpDelivery
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :uri, as: 'uri'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class HashProp
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :type, as: 'type'
|
|
|
|
property :value, :base64 => true, as: 'value'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListBuildTriggersResponse
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2019-03-28 00:37:19 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class ListBuildsResponse
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class Notification
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2020-06-30 00:38:26 +00:00
|
|
|
property :filter, as: 'filter'
|
|
|
|
property :http_delivery, as: 'httpDelivery', class: Google::Apis::CloudbuildV1::HttpDelivery, decorator: Google::Apis::CloudbuildV1::HttpDelivery::Representation
|
|
|
|
|
|
|
|
property :slack_delivery, as: 'slackDelivery', class: Google::Apis::CloudbuildV1::SlackDelivery, decorator: Google::Apis::CloudbuildV1::SlackDelivery::Representation
|
|
|
|
|
|
|
|
property :smtp_delivery, as: 'smtpDelivery', class: Google::Apis::CloudbuildV1::SmtpDelivery, decorator: Google::Apis::CloudbuildV1::SmtpDelivery::Representation
|
|
|
|
|
|
|
|
hash :struct_delivery, as: 'structDelivery'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierConfig
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :api_version, as: 'apiVersion'
|
|
|
|
property :kind, as: 'kind'
|
|
|
|
property :metadata, as: 'metadata', class: Google::Apis::CloudbuildV1::NotifierMetadata, decorator: Google::Apis::CloudbuildV1::NotifierMetadata::Representation
|
|
|
|
|
|
|
|
property :spec, as: 'spec', class: Google::Apis::CloudbuildV1::NotifierSpec, decorator: Google::Apis::CloudbuildV1::NotifierSpec::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierMetadata
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :notifier, as: 'notifier'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierSecret
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :value, as: 'value'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierSecretRef
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :secret_ref, as: 'secretRef'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class NotifierSpec
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :notification, as: 'notification', class: Google::Apis::CloudbuildV1::Notification, decorator: Google::Apis::CloudbuildV1::Notification::Representation
|
|
|
|
|
|
|
|
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::NotifierSecret, decorator: Google::Apis::CloudbuildV1::NotifierSecret::Representation
|
2017-05-26 16:44:32 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Operation
|
2017-05-26 16:44:32 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :done, as: 'done'
|
|
|
|
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
hash :metadata, as: 'metadata'
|
|
|
|
property :name, as: 'name'
|
|
|
|
hash :response, as: 'response'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class PullRequestFilter
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :branch, as: 'branch'
|
|
|
|
property :comment_control, as: 'commentControl'
|
2020-03-10 00:38:14 +00:00
|
|
|
property :invert_regex, as: 'invertRegex'
|
2019-03-07 00:37:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class PushFilter
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :branch, as: 'branch'
|
2020-03-10 00:38:14 +00:00
|
|
|
property :invert_regex, as: 'invertRegex'
|
2019-03-07 00:37:00 +00:00
|
|
|
property :tag, as: 'tag'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class RepoSource
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :branch_name, as: 'branchName'
|
|
|
|
property :commit_sha, as: 'commitSha'
|
2017-11-01 00:35:09 +00:00
|
|
|
property :dir, as: 'dir'
|
2020-03-10 00:38:14 +00:00
|
|
|
property :invert_regex, as: 'invertRegex'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
property :repo_name, as: 'repoName'
|
2019-11-13 00:37:45 +00:00
|
|
|
hash :substitutions, as: 'substitutions'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :tag_name, as: 'tagName'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Results
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2018-03-28 00:35:47 +00:00
|
|
|
property :artifact_manifest, as: 'artifactManifest'
|
2019-03-13 00:37:11 +00:00
|
|
|
property :artifact_timing, as: 'artifactTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :build_step_images, as: 'buildStepImages'
|
2018-08-22 21:14:52 +00:00
|
|
|
collection :build_step_outputs, as: 'buildStepOutputs'
|
2017-08-25 19:54:22 +00:00
|
|
|
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2018-03-28 00:35:47 +00:00
|
|
|
property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-10-26 00:35:44 +00:00
|
|
|
class RetryBuildRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class SmtpDelivery
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :from_address, as: 'fromAddress'
|
|
|
|
property :password, as: 'password', class: Google::Apis::CloudbuildV1::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1::NotifierSecretRef::Representation
|
|
|
|
|
|
|
|
property :port, as: 'port'
|
|
|
|
collection :recipient_addresses, as: 'recipientAddresses'
|
|
|
|
property :sender_address, as: 'senderAddress'
|
|
|
|
property :server, as: 'server'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Secret
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :kms_key_name, as: 'kmsKeyName'
|
|
|
|
hash :secret_env, as: 'secretEnv'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-30 00:38:26 +00:00
|
|
|
class SlackDelivery
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :webhook_uri, as: 'webhookUri', class: Google::Apis::CloudbuildV1::NotifierSecretRef, decorator: Google::Apis::CloudbuildV1::NotifierSecretRef::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
class Source
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class SourceProvenance
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
|
|
|
|
|
|
|
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
|
|
|
|
|
|
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
2017-07-12 20:10:42 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Status
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :code, as: 'code'
|
|
|
|
collection :details, as: 'details'
|
|
|
|
property :message, as: 'message'
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class StorageSource
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :bucket, as: 'bucket'
|
2017-08-25 19:54:22 +00:00
|
|
|
property :generation, :numeric_string => true, as: 'generation'
|
2017-07-12 20:10:42 +00:00
|
|
|
property :object, as: 'object'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-12-13 00:35:45 +00:00
|
|
|
class TimeSpan
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :end_time, as: 'endTime'
|
|
|
|
property :start_time, as: 'startTime'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
class Volume
|
2017-07-12 20:10:42 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-08-25 19:54:22 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :path, as: 'path'
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|