# 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 class ArtifactObjects class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ArtifactResult class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Artifacts 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 BuildOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BuildOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BuildStep 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 BuiltImage 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 class CancelOperationRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class CheckSuiteFilter class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Empty 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 class GitHubEventsConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class HashProp 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 class ListBuildsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end 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 class RepoSource class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Results class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class RetryBuildRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Secret class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Source class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SourceProvenance class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class StorageSource class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class TimeSpan class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Volume class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ArtifactObjects # @private class Representation < Google::Apis::Core::JsonRepresentation property :location, as: 'location' collection :paths, as: 'paths' property :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation end end 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 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 class Build # @private class Representation < Google::Apis::Core::JsonRepresentation property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1::Artifacts, decorator: Google::Apis::CloudbuildV1::Artifacts::Representation 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' 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 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 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' hash :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation end end class BuildOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation end end class BuildOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' collection :env, as: 'env' property :log_streaming_option, as: 'logStreamingOption' property :logging, as: 'logging' property :machine_type, as: 'machineType' property :requested_verify_option, as: 'requestedVerifyOption' collection :secret_env, as: 'secretEnv' collection :source_provenance_hash, as: 'sourceProvenanceHash' property :substitution_option, as: 'substitutionOption' collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation property :worker_pool, as: 'workerPool' end end class BuildStep # @private class Representation < Google::Apis::Core::JsonRepresentation collection :args, as: 'args' property :dir, as: 'dir' property :entrypoint, as: 'entrypoint' collection :env, as: 'env' property :id, as: 'id' property :name, as: 'name' property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation collection :secret_env, as: 'secretEnv' property :status, as: 'status' property :timeout, as: 'timeout' property :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation collection :wait_for, as: 'waitFor' end end class BuildTrigger # @private class Representation < Google::Apis::Core::JsonRepresentation 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' property :github, as: 'github', class: Google::Apis::CloudbuildV1::GitHubEventsConfig, decorator: Google::Apis::CloudbuildV1::GitHubEventsConfig::Representation property :id, as: 'id' collection :ignored_files, as: 'ignoredFiles' collection :included_files, as: 'includedFiles' hash :substitutions, as: 'substitutions' property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation end end class BuiltImage # @private class Representation < Google::Apis::Core::JsonRepresentation property :digest, as: 'digest' property :name, as: 'name' property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation end end class CancelBuildRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end class CancelOperationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end class CheckSuiteFilter # @private class Representation < Google::Apis::Core::JsonRepresentation end end class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end class FileHashes # @private class Representation < Google::Apis::Core::JsonRepresentation collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation end end class GitHubEventsConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :check_suite, as: 'checkSuite', class: Google::Apis::CloudbuildV1::CheckSuiteFilter, decorator: Google::Apis::CloudbuildV1::CheckSuiteFilter::Representation 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 class HashProp # @private class Representation < Google::Apis::Core::JsonRepresentation property :type, as: 'type' property :value, :base64 => true, as: 'value' end end class ListBuildTriggersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation end end class ListBuildsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation property :next_page_token, as: 'nextPageToken' end end class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation end end class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation property :done, as: 'done' property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation hash :metadata, as: 'metadata' property :name, as: 'name' hash :response, as: 'response' end end class PullRequestFilter # @private class Representation < Google::Apis::Core::JsonRepresentation property :branch, as: 'branch' property :comment_control, as: 'commentControl' end end class PushFilter # @private class Representation < Google::Apis::Core::JsonRepresentation property :branch, as: 'branch' property :tag, as: 'tag' end end class RepoSource # @private class Representation < Google::Apis::Core::JsonRepresentation property :branch_name, as: 'branchName' property :commit_sha, as: 'commitSha' property :dir, as: 'dir' property :project_id, as: 'projectId' property :repo_name, as: 'repoName' property :tag_name, as: 'tagName' end end class Results # @private class Representation < Google::Apis::Core::JsonRepresentation property :artifact_manifest, as: 'artifactManifest' collection :build_step_images, as: 'buildStepImages' collection :build_step_outputs, as: 'buildStepOutputs' collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation property :num_artifacts, :numeric_string => true, as: 'numArtifacts' end end class RetryBuildRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end class Secret # @private class Representation < Google::Apis::Core::JsonRepresentation property :kms_key_name, as: 'kmsKeyName' hash :secret_env, as: 'secretEnv' end end class Source # @private class Representation < Google::Apis::Core::JsonRepresentation property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation 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 end end class Status # @private class Representation < Google::Apis::Core::JsonRepresentation property :code, as: 'code' collection :details, as: 'details' property :message, as: 'message' end end class StorageSource # @private class Representation < Google::Apis::Core::JsonRepresentation property :bucket, as: 'bucket' property :generation, :numeric_string => true, as: 'generation' property :object, as: 'object' end end class TimeSpan # @private class Representation < Google::Apis::Core::JsonRepresentation property :end_time, as: 'endTime' property :start_time, as: 'startTime' end end class Volume # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :path, as: 'path' end end end end end