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
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Operation
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListBuildTriggersResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class BuiltImage
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class RepoSource
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
class HashProp
|
2017-02-13 23:28:52 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
class BuildStep
|
2017-02-13 23:28:52 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class FileHashes
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-03 19:29:28 +00:00
|
|
|
class Status
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-01-28 03:38:40 +00:00
|
|
|
class Empty
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class BuildTrigger
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Build
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class CancelBuildRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class ListBuildsResponse
|
2016-01-29 22:32:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class ListOperationsResponse
|
2016-01-29 22:32:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Source
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class BuildOptions
|
2016-06-30 21:17:37 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class StorageSource
|
2016-01-29 22:32:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class Results
|
2016-08-17 17:19:48 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class BuildOperationMetadata
|
2016-01-29 22:32:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class SourceProvenance
|
2016-06-30 21:17:37 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-01-13 23:04:35 +00:00
|
|
|
class CancelOperationRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-02-03 19:29:28 +00:00
|
|
|
class Operation
|
2017-03-10 21:11:09 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
hash :response, as: 'response'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
hash :metadata, as: 'metadata'
|
2017-03-27 22:14:47 +00:00
|
|
|
property :done, as: 'done'
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class ListBuildTriggersResponse
|
2017-03-10 21:11:09 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
class BuiltImage
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :digest, as: 'digest'
|
|
|
|
end
|
2016-08-17 17:19:48 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class RepoSource
|
2017-02-13 23:28:52 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :tag_name, as: 'tagName'
|
|
|
|
property :commit_sha, as: 'commitSha'
|
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
property :repo_name, as: 'repoName'
|
|
|
|
property :branch_name, as: 'branchName'
|
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
class HashProp
|
2017-02-13 23:28:52 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-27 22:14:47 +00:00
|
|
|
property :type, as: 'type'
|
|
|
|
property :value, :base64 => true, as: 'value'
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
|
|
|
end
|
2016-06-30 21:17:37 +00:00
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
class BuildStep
|
2017-02-13 23:28:52 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-27 22:14:47 +00:00
|
|
|
property :entrypoint, as: 'entrypoint'
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :dir, as: 'dir'
|
|
|
|
collection :env, as: 'env'
|
|
|
|
collection :wait_for, as: 'waitFor'
|
|
|
|
collection :args, as: 'args'
|
|
|
|
property :name, as: 'name'
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
2016-06-30 21:17:37 +00:00
|
|
|
end
|
|
|
|
|
2017-01-13 23:04:35 +00:00
|
|
|
class FileHashes
|
2017-02-13 23:28:52 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class Status
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :details, as: 'details'
|
|
|
|
property :code, as: 'code'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :message, as: 'message'
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
2016-08-08 20:25:38 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class Empty
|
2017-01-28 03:38:40 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class BuildTrigger
|
2017-01-28 03:38:40 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-27 22:14:47 +00:00
|
|
|
property :disabled, as: 'disabled'
|
|
|
|
property :create_time, as: 'createTime'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
property :filename, as: 'filename'
|
2017-01-28 03:38:40 +00:00
|
|
|
property :id, as: 'id'
|
|
|
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
2016-08-17 17:19:48 +00:00
|
|
|
|
2017-02-03 19:29:28 +00:00
|
|
|
hash :substitutions, as: 'substitutions'
|
2017-01-28 03:38:40 +00:00
|
|
|
property :description, as: 'description'
|
|
|
|
end
|
2016-08-17 17:19:48 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class Build
|
2017-01-28 03:38:40 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-27 22:14:47 +00:00
|
|
|
property :create_time, as: 'createTime'
|
|
|
|
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
collection :images, as: 'images'
|
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
property :log_url, as: 'logUrl'
|
|
|
|
property :finish_time, as: 'finishTime'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
property :timeout, as: 'timeout'
|
2017-03-27 22:14:47 +00:00
|
|
|
property :status, as: 'status'
|
|
|
|
property :status_detail, as: 'statusDetail'
|
2017-02-13 23:28:52 +00:00
|
|
|
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
property :logs_bucket, as: 'logsBucket'
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
|
|
|
|
2017-02-03 19:29:28 +00:00
|
|
|
property :build_trigger_id, as: 'buildTriggerId'
|
|
|
|
property :id, as: 'id'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :start_time, as: 'startTime'
|
2017-03-27 22:14:47 +00:00
|
|
|
hash :substitutions, as: 'substitutions'
|
2017-01-28 03:38:40 +00:00
|
|
|
end
|
2016-06-30 21:17:37 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class CancelBuildRequest
|
2017-01-28 03:38:40 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class ListBuildsResponse
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-01-25 07:37:13 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
|
|
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class ListOperationsResponse
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-01-25 07:37:13 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
|
2016-01-29 22:32:46 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Source
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
|
|
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class BuildOptions
|
2016-06-30 21:17:37 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
2017-03-10 21:11:09 +00:00
|
|
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
2016-06-30 21:17:37 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class StorageSource
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :generation, as: 'generation'
|
2017-01-25 07:37:13 +00:00
|
|
|
property :bucket, as: 'bucket'
|
|
|
|
property :object, as: 'object'
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class Results
|
2016-08-17 17:19:48 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-27 22:14:47 +00:00
|
|
|
collection :build_step_images, as: 'buildStepImages'
|
2017-01-25 07:37:13 +00:00
|
|
|
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
2016-08-17 17:19:48 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class BuildOperationMetadata
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-01-25 07:37:13 +00:00
|
|
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
|
|
|
2016-01-29 22:32:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-01-25 07:37:13 +00:00
|
|
|
class SourceProvenance
|
2016-06-30 21:17:37 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-02-13 23:28:52 +00:00
|
|
|
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
2016-06-30 21:17:37 +00:00
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
2016-01-29 22:32:46 +00:00
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
|
|
|
|
2016-06-30 21:17:37 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class CancelOperationRequest
|
2016-01-29 22:32:46 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|