2015-07-20 21:49:34 +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 GenomicsV1
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The request message for Operations.CancelOperation.
|
|
|
|
class CancelOperationRequest
|
2017-03-10 21:11:09 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2016-04-14 18:15:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Describes a Compute Engine resource that is being managed by a running
|
|
|
|
# pipeline.
|
|
|
|
class ComputeEngine
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The names of the disks that were created for this pipeline.
|
|
|
|
# Corresponds to the JSON property `diskNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :disk_names
|
|
|
|
|
|
|
|
# The instance on which the operation is running.
|
|
|
|
# Corresponds to the JSON property `instanceName`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :instance_name
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The machine type of the instance.
|
|
|
|
# Corresponds to the JSON property `machineType`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :machine_type
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The availability zone in which the instance resides.
|
|
|
|
# Corresponds to the JSON property `zone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :zone
|
2017-06-02 06:11:31 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
def initialize(**args)
|
2016-04-14 18:15:27 +00:00
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@disk_names = args[:disk_names] if args.key?(:disk_names)
|
|
|
|
@instance_name = args[:instance_name] if args.key?(:instance_name)
|
|
|
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
|
|
|
@zone = args[:zone] if args.key?(:zone)
|
2016-04-14 18:15:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# An event generated when a container is forcibly terminated by the
|
|
|
|
# worker. Currently, this only occurs when the container outlives the
|
|
|
|
# timeout specified by the user.
|
|
|
|
class ContainerKilledEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The numeric ID of the action that started the container.
|
|
|
|
# Corresponds to the JSON property `actionId`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :action_id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@action_id = args[:action_id] if args.key?(:action_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# An event generated when a container starts.
|
2018-02-21 00:36:04 +00:00
|
|
|
class ContainerStartedEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The numeric ID of the action that started this container.
|
|
|
|
# Corresponds to the JSON property `actionId`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :action_id
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# The public IP address that can be used to connect to the container. This
|
|
|
|
# field is only populated when at least one port mapping is present. If the
|
|
|
|
# instance was created with a private address, this field will be empty even
|
2018-02-21 00:36:04 +00:00
|
|
|
# if port mappings exist.
|
|
|
|
# Corresponds to the JSON property `ipAddress`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ip_address
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# The container-to-host port mappings installed for this container. This
|
|
|
|
# set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag
|
|
|
|
# as well as any specified in the `Action` definition.
|
2018-02-21 00:36:04 +00:00
|
|
|
# Corresponds to the JSON property `portMappings`
|
|
|
|
# @return [Hash<String,Fixnum>]
|
|
|
|
attr_accessor :port_mappings
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@action_id = args[:action_id] if args.key?(:action_id)
|
|
|
|
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
|
|
|
@port_mappings = args[:port_mappings] if args.key?(:port_mappings)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# An event generated when a container exits.
|
2018-02-21 00:36:04 +00:00
|
|
|
class ContainerStoppedEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The numeric ID of the action that started this container.
|
|
|
|
# Corresponds to the JSON property `actionId`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :action_id
|
|
|
|
|
|
|
|
# The exit status of the container.
|
|
|
|
# Corresponds to the JSON property `exitStatus`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :exit_status
|
|
|
|
|
2018-05-03 00:36:08 +00:00
|
|
|
# The tail end of any content written to standard error by the container.
|
2018-08-22 21:14:52 +00:00
|
|
|
# If the content emits large amounts of debugging noise or contains
|
|
|
|
# sensitive information, you can prevent the content from being printed by
|
|
|
|
# setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag.
|
2018-05-03 00:36:08 +00:00
|
|
|
# Note that only a small amount of the end of the stream is captured here.
|
2018-08-22 21:14:52 +00:00
|
|
|
# The entire stream is stored in the `/google/logs` directory mounted into
|
|
|
|
# each action, and can be copied off the machine as described elsewhere.
|
2018-05-03 00:36:08 +00:00
|
|
|
# Corresponds to the JSON property `stderr`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :stderr
|
|
|
|
|
2018-02-21 00:36:04 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@action_id = args[:action_id] if args.key?(:action_id)
|
|
|
|
@exit_status = args[:exit_status] if args.key?(:exit_status)
|
2018-05-03 00:36:08 +00:00
|
|
|
@stderr = args[:stderr] if args.key?(:stderr)
|
2018-02-21 00:36:04 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# An event generated whenever a resource limitation or transient error
|
2018-02-21 00:36:04 +00:00
|
|
|
# delays execution of a pipeline that was otherwise ready to run.
|
|
|
|
class DelayedEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# A textual description of the cause of the delay. The string can change
|
|
|
|
# without notice because it is often generated by another service (such as
|
2018-02-21 00:36:04 +00:00
|
|
|
# Compute Engine).
|
|
|
|
# Corresponds to the JSON property `cause`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cause
|
|
|
|
|
|
|
|
# If the delay was caused by a resource shortage, this field lists the
|
|
|
|
# Compute Engine metrics that are preventing this operation from running
|
2018-08-22 21:14:52 +00:00
|
|
|
# (for example, `CPUS` or `INSTANCES`). If the particular metric is not
|
|
|
|
# known, a single `UNKNOWN` metric will be present.
|
2018-02-21 00:36:04 +00:00
|
|
|
# Corresponds to the JSON property `metrics`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :metrics
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@cause = args[:cause] if args.key?(:cause)
|
|
|
|
@metrics = args[:metrics] if args.key?(:metrics)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-01-18 00:35:53 +00:00
|
|
|
# A generic empty message that you can re-use to avoid defining duplicated
|
|
|
|
# empty messages in your APIs. A typical example is to use it as the request
|
|
|
|
# or the response type of an API method. For instance:
|
|
|
|
# service Foo `
|
|
|
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
|
|
# `
|
|
|
|
# The JSON representation for `Empty` is empty JSON object ````.
|
|
|
|
class Empty
|
2017-06-14 17:02:03 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2018-01-18 00:35:53 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Carries information about events that occur during pipeline execution.
|
|
|
|
class Event
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# A human-readable description of the event. Note that these strings can
|
|
|
|
# change at any time without notice. Any application logic must use the
|
|
|
|
# information in the `details` field.
|
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
2018-02-21 00:36:04 +00:00
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# Machine-readable details about the event.
|
2018-02-21 00:36:04 +00:00
|
|
|
# Corresponds to the JSON property `details`
|
|
|
|
# @return [Hash<String,Object>]
|
|
|
|
attr_accessor :details
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# The time at which the event occurred.
|
2018-02-21 00:36:04 +00:00
|
|
|
# Corresponds to the JSON property `timestamp`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :timestamp
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@details = args[:details] if args.key?(:details)
|
|
|
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# An event generated when the execution of a pipeline has failed. Note
|
|
|
|
# that other events can continue to occur after this event.
|
|
|
|
class FailedEvent
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The human-readable description of the cause of the failure.
|
|
|
|
# Corresponds to the JSON property `cause`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :cause
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The Google standard error code that best describes this failure.
|
|
|
|
# Corresponds to the JSON property `code`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :code
|
2018-01-18 00:35:53 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@cause = args[:cause] if args.key?(:cause)
|
|
|
|
@code = args[:code] if args.key?(:code)
|
2018-01-18 00:35:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The read group set import response.
|
|
|
|
class ImportReadGroupSetsResponse
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# IDs of the read group sets that were created.
|
|
|
|
# Corresponds to the JSON property `readGroupSetIds`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [Array<String>]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :read_group_set_ids
|
2018-01-18 00:35:53 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids)
|
2018-01-18 00:35:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The variant data import response.
|
|
|
|
class ImportVariantsResponse
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# IDs of the call sets created during the import.
|
2018-01-18 00:35:53 +00:00
|
|
|
# Corresponds to the JSON property `callSetIds`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :call_set_ids
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The response message for Operations.ListOperations.
|
|
|
|
class ListOperationsResponse
|
2018-08-22 21:14:52 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The standard List next-page token.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
2018-08-22 21:14:52 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :next_page_token
|
2018-08-22 21:14:52 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# A list of operations that matches the specified filter in the request.
|
|
|
|
# Corresponds to the JSON property `operations`
|
|
|
|
# @return [Array<Google::Apis::GenomicsV1::Operation>]
|
|
|
|
attr_accessor :operations
|
2018-08-22 21:14:52 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
@operations = args[:operations] if args.key?(:operations)
|
2018-08-22 21:14:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# This resource represents a long-running operation that is the result of a
|
|
|
|
# network API call.
|
|
|
|
class Operation
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# If the value is `false`, it means the operation is still in progress.
|
|
|
|
# If `true`, the operation is completed, and either `error` or `response` is
|
|
|
|
# available.
|
|
|
|
# Corresponds to the JSON property `done`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :done
|
|
|
|
alias_method :done?, :done
|
|
|
|
|
|
|
|
# The `Status` type defines a logical error model that is suitable for
|
|
|
|
# different programming environments, including REST APIs and RPC APIs. It is
|
|
|
|
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
|
|
# - Simple to use and understand for most users
|
|
|
|
# - Flexible enough to meet unexpected needs
|
|
|
|
# # Overview
|
|
|
|
# The `Status` message contains three pieces of data: error code, error
|
|
|
|
# message, and error details. The error code should be an enum value of
|
|
|
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
|
|
# error message should be a developer-facing English message that helps
|
|
|
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
|
|
# error message is needed, put the localized message in the error details or
|
|
|
|
# localize it in the client. The optional error details may contain arbitrary
|
|
|
|
# information about the error. There is a predefined set of error detail types
|
|
|
|
# in the package `google.rpc` that can be used for common error conditions.
|
|
|
|
# # Language mapping
|
|
|
|
# The `Status` message is the logical representation of the error model, but it
|
|
|
|
# is not necessarily the actual wire format. When the `Status` message is
|
|
|
|
# exposed in different client libraries and different wire protocols, it can be
|
|
|
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
|
|
# in Java, but more likely mapped to some error codes in C.
|
|
|
|
# # Other uses
|
|
|
|
# The error model and the `Status` message can be used in a variety of
|
|
|
|
# environments, either with or without APIs, to provide a
|
|
|
|
# consistent developer experience across different environments.
|
|
|
|
# Example uses of this error model include:
|
|
|
|
# - Partial errors. If a service needs to return partial errors to the client,
|
|
|
|
# it may embed the `Status` in the normal response to indicate the partial
|
|
|
|
# errors.
|
|
|
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
|
|
# have a `Status` message for error reporting.
|
|
|
|
# - Batch operations. If a client uses batch request and batch response, the
|
|
|
|
# `Status` message should be used directly inside batch response, one for
|
|
|
|
# each error sub-response.
|
|
|
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
|
|
# results in its response, the status of those operations should be
|
|
|
|
# represented directly using the `Status` message.
|
|
|
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
|
|
# be used directly after any stripping needed for security/privacy reasons.
|
|
|
|
# Corresponds to the JSON property `error`
|
|
|
|
# @return [Google::Apis::GenomicsV1::Status]
|
|
|
|
attr_accessor :error
|
|
|
|
|
|
|
|
# An OperationMetadata or Metadata object. This will always be returned with the
|
|
|
|
# Operation.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Hash<String,Object>]
|
|
|
|
attr_accessor :metadata
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The server-assigned name, which is only unique within the same service that
|
|
|
|
# originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL-
|
|
|
|
# qzoWAgEw`
|
|
|
|
# Corresponds to the JSON property `name`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
|
|
|
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
|
|
|
# exports, an Empty response is returned.
|
|
|
|
# Corresponds to the JSON property `response`
|
|
|
|
# @return [Hash<String,Object>]
|
|
|
|
attr_accessor :response
|
2018-01-18 00:35:53 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@done = args[:done] if args.key?(:done)
|
|
|
|
@error = args[:error] if args.key?(:error)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@response = args[:response] if args.key?(:response)
|
2018-01-18 00:35:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# An event that occurred during an Operation.
|
|
|
|
class OperationEvent
|
2018-02-21 00:36:04 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Required description of event.
|
|
|
|
# Corresponds to the JSON property `description`
|
2018-02-21 00:36:04 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :description
|
2018-02-21 00:36:04 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Optional time of when event finished. An event can have a start time and no
|
|
|
|
# finish time. If an event has a finish time, there must be a start time.
|
|
|
|
# Corresponds to the JSON property `endTime`
|
2018-02-21 00:36:04 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :end_time
|
2018-02-21 00:36:04 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Optional time of when event started.
|
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
2018-01-18 00:35:53 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2018-01-18 00:35:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Metadata describing an Operation.
|
|
|
|
class OperationMetadata
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# This field is deprecated. Use `labels` instead. Optionally provided by the
|
|
|
|
# caller when submitting the request that creates the operation.
|
|
|
|
# Corresponds to the JSON property `clientId`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :client_id
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The time at which the job was submitted to the Genomics service.
|
|
|
|
# Corresponds to the JSON property `createTime`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :create_time
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The time at which the job stopped running.
|
|
|
|
# Corresponds to the JSON property `endTime`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :end_time
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Optional event messages that were generated during the job's execution.
|
|
|
|
# This also contains any warnings that were generated during import
|
|
|
|
# or export.
|
|
|
|
# Corresponds to the JSON property `events`
|
|
|
|
# @return [Array<Google::Apis::GenomicsV1::OperationEvent>]
|
|
|
|
attr_accessor :events
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Optionally provided by the caller when submitting the request that creates
|
|
|
|
# the operation.
|
|
|
|
# Corresponds to the JSON property `labels`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :labels
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The Google Cloud Project in which the job is scoped.
|
|
|
|
# Corresponds to the JSON property `projectId`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :project_id
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The original request that started the operation. Note that this will be in
|
|
|
|
# current version of the API. If the operation was started with v1beta2 API
|
|
|
|
# and a GetOperation is performed on v1 API, a v1 request will be returned.
|
|
|
|
# Corresponds to the JSON property `request`
|
|
|
|
# @return [Hash<String,Object>]
|
|
|
|
attr_accessor :request
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Runtime metadata on this Operation.
|
|
|
|
# Corresponds to the JSON property `runtimeMetadata`
|
|
|
|
# @return [Hash<String,Object>]
|
|
|
|
attr_accessor :runtime_metadata
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The time at which the job began to run.
|
|
|
|
# Corresponds to the JSON property `startTime`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :start_time
|
2018-01-18 00:35:53 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@client_id = args[:client_id] if args.key?(:client_id)
|
|
|
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
|
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
|
|
@events = args[:events] if args.key?(:events)
|
|
|
|
@labels = args[:labels] if args.key?(:labels)
|
|
|
|
@project_id = args[:project_id] if args.key?(:project_id)
|
|
|
|
@request = args[:request] if args.key?(:request)
|
|
|
|
@runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2018-01-18 00:35:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# An event generated when the worker starts pulling an image.
|
|
|
|
class PullStartedEvent
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The URI of the image that was pulled.
|
|
|
|
# Corresponds to the JSON property `imageUri`
|
2018-01-18 00:35:53 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :image_uri
|
2018-01-18 00:35:53 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
2018-01-18 00:35:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# An event generated when the worker stops pulling an image.
|
|
|
|
class PullStoppedEvent
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The URI of the image that was pulled.
|
|
|
|
# Corresponds to the JSON property `imageUri`
|
2018-01-16 00:35:13 +00:00
|
|
|
# @return [String]
|
2019-03-13 00:37:11 +00:00
|
|
|
attr_accessor :image_uri
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2018-01-18 00:35:53 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2018-01-18 00:35:53 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
2018-01-18 00:35:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# The response to the RunPipeline method, returned in the operation's result
|
|
|
|
# field on success.
|
|
|
|
class RunPipelineResponse
|
2018-01-18 00:35:53 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Runtime metadata that will be populated in the
|
|
|
|
# runtimeMetadata
|
|
|
|
# field of the Operation associated with a RunPipeline execution.
|
|
|
|
class RuntimeMetadata
|
2017-06-14 17:02:03 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-03-13 00:37:11 +00:00
|
|
|
# Describes a Compute Engine resource that is being managed by a running
|
|
|
|
# pipeline.
|
|
|
|
# Corresponds to the JSON property `computeEngine`
|
|
|
|
# @return [Google::Apis::GenomicsV1::ComputeEngine]
|
|
|
|
attr_accessor :compute_engine
|
2017-06-14 17:02:03 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-03-13 00:37:11 +00:00
|
|
|
@compute_engine = args[:compute_engine] if args.key?(:compute_engine)
|
2017-06-14 17:02:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-12 00:37:23 +00:00
|
|
|
# The `Status` type defines a logical error model that is suitable for
|
|
|
|
# different programming environments, including REST APIs and RPC APIs. It is
|
|
|
|
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
2017-08-25 19:54:22 +00:00
|
|
|
# - Simple to use and understand for most users
|
|
|
|
# - Flexible enough to meet unexpected needs
|
|
|
|
# # Overview
|
2019-03-12 00:37:23 +00:00
|
|
|
# The `Status` message contains three pieces of data: error code, error
|
|
|
|
# message, and error details. The error code should be an enum value of
|
2017-08-25 19:54:22 +00:00
|
|
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
|
|
# error message should be a developer-facing English message that helps
|
|
|
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
|
|
# error message is needed, put the localized message in the error details or
|
|
|
|
# localize it in the client. The optional error details may contain arbitrary
|
|
|
|
# information about the error. There is a predefined set of error detail types
|
|
|
|
# in the package `google.rpc` that can be used for common error conditions.
|
|
|
|
# # Language mapping
|
|
|
|
# The `Status` message is the logical representation of the error model, but it
|
|
|
|
# is not necessarily the actual wire format. When the `Status` message is
|
|
|
|
# exposed in different client libraries and different wire protocols, it can be
|
|
|
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
|
|
# in Java, but more likely mapped to some error codes in C.
|
|
|
|
# # Other uses
|
|
|
|
# The error model and the `Status` message can be used in a variety of
|
|
|
|
# environments, either with or without APIs, to provide a
|
|
|
|
# consistent developer experience across different environments.
|
|
|
|
# Example uses of this error model include:
|
|
|
|
# - Partial errors. If a service needs to return partial errors to the client,
|
|
|
|
# it may embed the `Status` in the normal response to indicate the partial
|
|
|
|
# errors.
|
|
|
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
|
|
# have a `Status` message for error reporting.
|
|
|
|
# - Batch operations. If a client uses batch request and batch response, the
|
|
|
|
# `Status` message should be used directly inside batch response, one for
|
|
|
|
# each error sub-response.
|
|
|
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
|
|
# results in its response, the status of those operations should be
|
|
|
|
# represented directly using the `Status` message.
|
|
|
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
|
|
# be used directly after any stripping needed for security/privacy reasons.
|
|
|
|
class Status
|
2017-03-27 22:14:47 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The status code, which should be an enum value of google.rpc.Code.
|
|
|
|
# Corresponds to the JSON property `code`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :code
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A list of messages that carry the error details. There is a common set of
|
|
|
|
# message types for APIs to use.
|
|
|
|
# Corresponds to the JSON property `details`
|
|
|
|
# @return [Array<Hash<String,Object>>]
|
|
|
|
attr_accessor :details
|
|
|
|
|
|
|
|
# A developer-facing error message, which should be in English. Any
|
|
|
|
# user-facing error message should be localized and sent in the
|
|
|
|
# google.rpc.Status.details field, or localized by the client.
|
|
|
|
# Corresponds to the JSON property `message`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :message
|
2017-03-27 22:14:47 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@code = args[:code] if args.key?(:code)
|
|
|
|
@details = args[:details] if args.key?(:details)
|
|
|
|
@message = args[:message] if args.key?(:message)
|
2017-03-27 22:14:47 +00:00
|
|
|
end
|
|
|
|
end
|
2018-01-18 00:35:53 +00:00
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# An event generated when the execution of a container results in a
|
|
|
|
# non-zero exit status that was not otherwise ignored. Execution will
|
|
|
|
# continue, but only actions that are flagged as `ALWAYS_RUN` will be
|
|
|
|
# executed. Other actions will be skipped.
|
2018-02-21 00:36:04 +00:00
|
|
|
class UnexpectedExitStatusEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The numeric ID of the action that started the container.
|
|
|
|
# Corresponds to the JSON property `actionId`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :action_id
|
|
|
|
|
|
|
|
# The exit status of the container.
|
|
|
|
# Corresponds to the JSON property `exitStatus`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :exit_status
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@action_id = args[:action_id] if args.key?(:action_id)
|
|
|
|
@exit_status = args[:exit_status] if args.key?(:exit_status)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# An event generated after a worker VM has been assigned to run the
|
2018-02-21 00:36:04 +00:00
|
|
|
# pipeline.
|
|
|
|
class WorkerAssignedEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The worker's instance name.
|
|
|
|
# Corresponds to the JSON property `instance`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance
|
|
|
|
|
|
|
|
# The zone the worker is running in.
|
|
|
|
# Corresponds to the JSON property `zone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :zone
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@instance = args[:instance] if args.key?(:instance)
|
|
|
|
@zone = args[:zone] if args.key?(:zone)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-22 21:14:52 +00:00
|
|
|
# An event generated when the worker VM that was assigned to the pipeline
|
|
|
|
# has been released (deleted).
|
2018-02-21 00:36:04 +00:00
|
|
|
class WorkerReleasedEvent
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The worker's instance name.
|
|
|
|
# Corresponds to the JSON property `instance`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :instance
|
|
|
|
|
|
|
|
# The zone the worker was running in.
|
|
|
|
# Corresponds to the JSON property `zone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :zone
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@instance = args[:instance] if args.key?(:instance)
|
|
|
|
@zone = args[:zone] if args.key?(:zone)
|
|
|
|
end
|
|
|
|
end
|
2015-07-20 21:49:34 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|