Autogenerated update (2018-02-21)

Update:
- androidmanagement_v1
- cloudbuild_v1
- genomics_v1
- genomics_v1alpha2
- people_v1
- slides_v1
This commit is contained in:
Google APIs committed 2018-02-21 00:36:04 +00:00
1 parent 7302a0d956
commit 26f035d3b3
21 files changed
+3316 -10

No files matched your search

@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20180207'
REVISION = '20180212'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
+2 -2
View File
@@ -18,14 +18,14 @@ require 'google/apis/cloudbuild_v1/representations.rb'
module Google
module Apis
# Google Cloud Container Builder API
# Cloud Container Builder API
#
# Builds container images in the cloud.
#
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20180205'
REVISION = '20180220'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -361,6 +361,21 @@ module Google
# @return [Array<String>]
attr_accessor :secret_env
# Status of the build step. At this time, build step status is only updated
# on build completion; step status is not updated in real-time as the build
# progresses.
# @OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Time limit for executing this build step. If not defined, the step has no
# time limit and will be allowed to continue to run until either it completes
# or the build itself times out.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Stores start and end times for a build execution phase.
# Corresponds to the JSON property `timing`
# @return [Google::Apis::CloudbuildV1::TimeSpan]
@@ -398,6 +413,8 @@ module Google
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@secret_env = args[:secret_env] if args.key?(:secret_env)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@timing = args[:timing] if args.key?(:timing)
@volumes = args[:volumes] if args.key?(:volumes)
@wait_for = args[:wait_for] if args.key?(:wait_for)
@@ -236,6 +236,8 @@ module Google
property :id, as: 'id'
property :name, as: 'name'
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
@@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module CloudbuildV1
# Google Cloud Container Builder API
# Cloud Container Builder API
#
# Builds container images in the cloud.
#
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics
module GenomicsV1
VERSION = 'V1'
REVISION = '20180208'
REVISION = '20180220'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -485,6 +485,67 @@ module Google
end
end
# This event is generated when a container starts.
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
# 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
# if port mappings exist.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
# 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.
# 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
# This event is generated when a container exits.
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
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
# A bucket over which read coverage has been precomputed. A bucket corresponds
# to a specific range of the reference sequence.
class CoverageBucket
@@ -551,6 +612,37 @@ module Google
end
end
# This event is generated whenever a resource limitation or transient error
# delays execution of a pipeline that was otherwise ready to run.
class DelayedEvent
include Google::Apis::Core::Hashable
# A textual description of the cause of the delay. The string may change
# without notice since it is often generated by another service (such as
# 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
# (for example, CPUS or INSTANCES). If the particular metric is not known,
# a single UNKNOWN metric will be present.
# 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
# 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:
@@ -638,6 +730,39 @@ module Google
end
end
# Event carries information about events that occur during pipeline execution.
class Event
include Google::Apis::Core::Hashable
# A human readable description of the event. Note that these strings may
# 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
# Machine readable details about the event.
# Corresponds to the JSON property `details`
# @return [Hash<String,Object>]
attr_accessor :details
# The time that the event occurred.
# 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
#
class Exon
include Google::Apis::Core::Hashable
@@ -837,6 +962,32 @@ module Google
end
end
# This event is generated when the execution of a pipeline has failed. Note
# that other events may continue to occur after this event.
class FailedEvent
include Google::Apis::Core::Hashable
# The human readable description of the cause of the failure.
# Corresponds to the JSON property `cause`
# @return [String]
attr_accessor :cause
# The Google standard error code that best describes this failure.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cause = args[:cause] if args.key?(:cause)
@code = args[:code] if args.key?(:code)
end
end
# Request message for `GetIamPolicy` method.
class GetIamPolicyRequest
include Google::Apis::Core::Hashable
@@ -1533,6 +1684,44 @@ module Google
end
end
# This event is generated when the worker starts pulling an image.
class PullStartedEvent
include Google::Apis::Core::Hashable
# The URI of the image that was pulled.
# Corresponds to the JSON property `imageUri`
# @return [String]
attr_accessor :image_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_uri = args[:image_uri] if args.key?(:image_uri)
end
end
# This event is generated when the worker stops pulling an image.
class PullStoppedEvent
include Google::Apis::Core::Hashable
# The URI of the image that was pulled.
# Corresponds to the JSON property `imageUri`
# @return [String]
attr_accessor :image_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_uri = args[:image_uri] if args.key?(:image_uri)
end
end
# A 0-based half-open genomic coordinate range for search requests.
class Range
include Google::Apis::Core::Hashable
@@ -3097,6 +3286,34 @@ module Google
end
end
# This event is 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.
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
# A variant represents a change in DNA sequence relative to a reference
# sequence. For example, a variant could represent a SNP or an insertion.
# Variants belong to a variant set.
@@ -3472,6 +3689,58 @@ module Google
@value = args[:value] if args.key?(:value)
end
end
# This event is generated once a worker VM has been assigned to run the
# 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
# This event is generated when the worker VM that was assigned to the pipeline
# has been released (i.e., deleted).
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
end
end
end
@@ -88,6 +88,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ContainerStartedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerStoppedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CoverageBucket
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -100,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DelayedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -112,6 +130,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Event
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Exon
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -142,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FailedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -244,6 +274,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PullStartedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PullStoppedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Range
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -436,6 +478,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UnexpectedExitStatusEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Variant
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -466,6 +514,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class WorkerAssignedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkerReleasedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Annotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -592,6 +652,23 @@ module Google
end
end
class ContainerStartedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :ip_address, as: 'ipAddress'
hash :port_mappings, as: 'portMappings'
end
end
class ContainerStoppedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :exit_status, as: 'exitStatus'
end
end
class CoverageBucket
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -611,6 +688,14 @@ module Google
end
end
class DelayedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
collection :metrics, as: 'metrics'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -627,6 +712,15 @@ module Google
end
end
class Event
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
hash :details, as: 'details'
property :timestamp, as: 'timestamp'
end
end
class Exon
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -674,6 +768,14 @@ module Google
end
end
class FailedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
property :code, as: 'code'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -840,6 +942,20 @@ module Google
end
end
class PullStartedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_uri, as: 'imageUri'
end
end
class PullStoppedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_uri, as: 'imageUri'
end
end
class Range
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1194,6 +1310,14 @@ module Google
end
end
class UnexpectedExitStatusEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :exit_status, as: 'exitStatus'
end
end
class Variant
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1279,6 +1403,22 @@ module Google
property :value, as: 'value'
end
end
class WorkerAssignedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
property :zone, as: 'zone'
end
end
class WorkerReleasedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
property :zone, as: 'zone'
end
end
end
end
end
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics
module GenomicsV1alpha2
VERSION = 'V1alpha2'
REVISION = '20180208'
REVISION = '20180220'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -73,6 +73,67 @@ module Google
end
end
# This event is generated when a container starts.
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
# 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
# if port mappings exist.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
# 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.
# 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
# This event is generated when a container exits.
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
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
# Stores the information that the controller will fetch from the
# server in order to run. Should only be used by VMs created by the
# Pipelines Service and not by end users.
@@ -136,6 +197,37 @@ module Google
end
end
# This event is generated whenever a resource limitation or transient error
# delays execution of a pipeline that was otherwise ready to run.
class DelayedEvent
include Google::Apis::Core::Hashable
# A textual description of the cause of the delay. The string may change
# without notice since it is often generated by another service (such as
# 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
# (for example, CPUS or INSTANCES). If the particular metric is not known,
# a single UNKNOWN metric will be present.
# 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
# A Google Compute Engine disk resource specification.
class Disk
include Google::Apis::Core::Hashable
@@ -260,6 +352,65 @@ module Google
end
end
# Event carries information about events that occur during pipeline execution.
class Event
include Google::Apis::Core::Hashable
# A human readable description of the event. Note that these strings may
# 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
# Machine readable details about the event.
# Corresponds to the JSON property `details`
# @return [Hash<String,Object>]
attr_accessor :details
# The time that the event occurred.
# 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
# This event is generated when the execution of a pipeline has failed. Note
# that other events may continue to occur after this event.
class FailedEvent
include Google::Apis::Core::Hashable
# The human readable description of the cause of the failure.
# Corresponds to the JSON property `cause`
# @return [String]
attr_accessor :cause
# The Google standard error code that best describes this failure.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cause = args[:cause] if args.key?(:cause)
@code = args[:code] if args.key?(:code)
end
end
# The read group set import response.
class ImportReadGroupSetsResponse
include Google::Apis::Core::Hashable
@@ -878,6 +1029,44 @@ module Google
end
end
# This event is generated when the worker starts pulling an image.
class PullStartedEvent
include Google::Apis::Core::Hashable
# The URI of the image that was pulled.
# Corresponds to the JSON property `imageUri`
# @return [String]
attr_accessor :image_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_uri = args[:image_uri] if args.key?(:image_uri)
end
end
# This event is generated when the worker stops pulling an image.
class PullStoppedEvent
include Google::Apis::Core::Hashable
# The URI of the image that was pulled.
# Corresponds to the JSON property `imageUri`
# @return [String]
attr_accessor :image_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_uri = args[:image_uri] if args.key?(:image_uri)
end
end
#
class RepeatedString
include Google::Apis::Core::Hashable
@@ -1222,6 +1411,86 @@ module Google
@timestamp = args[:timestamp] if args.key?(:timestamp)
end
end
# This event is 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.
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
# This event is generated once a worker VM has been assigned to run the
# 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
# This event is generated when the worker VM that was assigned to the pipeline
# has been released (i.e., deleted).
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
end
end
end
@@ -34,12 +34,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ContainerStartedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerStoppedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ControllerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DelayedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Disk
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -58,6 +76,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Event
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FailedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportReadGroupSetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -130,6 +160,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PullStartedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PullStoppedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepeatedString
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -178,6 +220,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UnexpectedExitStatusEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkerAssignedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkerReleasedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -194,6 +254,23 @@ module Google
end
end
class ContainerStartedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :ip_address, as: 'ipAddress'
hash :port_mappings, as: 'portMappings'
end
end
class ContainerStoppedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :exit_status, as: 'exitStatus'
end
end
class ControllerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -210,6 +287,14 @@ module Google
end
end
class DelayedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
collection :metrics, as: 'metrics'
end
end
class Disk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -237,6 +322,23 @@ module Google
end
end
class Event
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
hash :details, as: 'details'
property :timestamp, as: 'timestamp'
end
end
class FailedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
property :code, as: 'code'
end
end
class ImportReadGroupSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -366,6 +468,20 @@ module Google
end
end
class PullStartedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_uri, as: 'imageUri'
end
end
class PullStoppedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_uri, as: 'imageUri'
end
end
class RepeatedString
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -446,6 +562,30 @@ module Google
property :timestamp, as: 'timestamp'
end
end
class UnexpectedExitStatusEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :exit_status, as: 'exitStatus'
end
end
class WorkerAssignedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
property :zone, as: 'zone'
end
end
class WorkerReleasedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
property :zone, as: 'zone'
end
end
end
end
end
@@ -0,0 +1,37 @@
# 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 'google/apis/genomics_v2alpha1/service.rb'
require 'google/apis/genomics_v2alpha1/classes.rb'
require 'google/apis/genomics_v2alpha1/representations.rb'
module Google
module Apis
# Genomics API
#
# Upload, process, query, and search Genomics data in the cloud.
#
# @see https://cloud.google.com/genomics
module GenomicsV2alpha1
VERSION = 'V2alpha1'
REVISION = '20180220'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View and manage Genomics data
AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,535 @@
# 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 GenomicsV2alpha1
class Action
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 CheckInRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CheckInResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ComputeEngine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerStartedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerStoppedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DelayedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Disk
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 Event
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FailedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportReadGroupSetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportVariantsResponse
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 Metadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Mount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Network
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 OperationEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Pipeline
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PullStartedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PullStoppedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Resources
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RunPipelineRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RuntimeMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAccount
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 UnexpectedExitStatusEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VirtualMachine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkerAssignedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkerReleasedEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Action
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :commands, as: 'commands'
property :entrypoint, as: 'entrypoint'
hash :environment, as: 'environment'
collection :flags, as: 'flags'
property :image_uri, as: 'imageUri'
hash :labels, as: 'labels'
collection :mounts, as: 'mounts', class: Google::Apis::GenomicsV2alpha1::Mount, decorator: Google::Apis::GenomicsV2alpha1::Mount::Representation
property :name, as: 'name'
property :pid_namespace, as: 'pidNamespace'
hash :port_mappings, as: 'portMappings'
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class CheckInRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deadline_expired, as: 'deadlineExpired', class: Google::Apis::GenomicsV2alpha1::Empty, decorator: Google::Apis::GenomicsV2alpha1::Empty::Representation
hash :event, as: 'event'
property :result, as: 'result', class: Google::Apis::GenomicsV2alpha1::Status, decorator: Google::Apis::GenomicsV2alpha1::Status::Representation
end
end
class CheckInResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deadline, as: 'deadline'
hash :metadata, as: 'metadata'
end
end
class ComputeEngine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :disk_names, as: 'diskNames'
property :instance_name, as: 'instanceName'
property :machine_type, as: 'machineType'
property :zone, as: 'zone'
end
end
class ContainerStartedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :ip_address, as: 'ipAddress'
hash :port_mappings, as: 'portMappings'
end
end
class ContainerStoppedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :exit_status, as: 'exitStatus'
end
end
class DelayedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
collection :metrics, as: 'metrics'
end
end
class Disk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :size_gb, as: 'sizeGb'
property :source_image, as: 'sourceImage'
property :type, as: 'type'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Event
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
hash :details, as: 'details'
property :timestamp, as: 'timestamp'
end
end
class FailedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
property :code, as: 'code'
end
end
class ImportReadGroupSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :read_group_set_ids, as: 'readGroupSetIds'
end
end
class ImportVariantsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :call_set_ids, as: 'callSetIds'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::GenomicsV2alpha1::Operation, decorator: Google::Apis::GenomicsV2alpha1::Operation::Representation
end
end
class Metadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
collection :events, as: 'events', class: Google::Apis::GenomicsV2alpha1::Event, decorator: Google::Apis::GenomicsV2alpha1::Event::Representation
hash :labels, as: 'labels'
property :pipeline, as: 'pipeline', class: Google::Apis::GenomicsV2alpha1::Pipeline, decorator: Google::Apis::GenomicsV2alpha1::Pipeline::Representation
end
end
class Mount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disk, as: 'disk'
property :path, as: 'path'
property :read_only, as: 'readOnly'
end
end
class Network
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :use_private_address, as: 'usePrivateAddress'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::GenomicsV2alpha1::Status, decorator: Google::Apis::GenomicsV2alpha1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class OperationEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_id, as: 'clientId'
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
collection :events, as: 'events', class: Google::Apis::GenomicsV2alpha1::OperationEvent, decorator: Google::Apis::GenomicsV2alpha1::OperationEvent::Representation
hash :labels, as: 'labels'
property :project_id, as: 'projectId'
hash :request, as: 'request'
hash :runtime_metadata, as: 'runtimeMetadata'
property :start_time, as: 'startTime'
end
end
class Pipeline
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :actions, as: 'actions', class: Google::Apis::GenomicsV2alpha1::Action, decorator: Google::Apis::GenomicsV2alpha1::Action::Representation
hash :environment, as: 'environment'
property :resources, as: 'resources', class: Google::Apis::GenomicsV2alpha1::Resources, decorator: Google::Apis::GenomicsV2alpha1::Resources::Representation
end
end
class PullStartedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_uri, as: 'imageUri'
end
end
class PullStoppedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_uri, as: 'imageUri'
end
end
class Resources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
collection :regions, as: 'regions'
property :virtual_machine, as: 'virtualMachine', class: Google::Apis::GenomicsV2alpha1::VirtualMachine, decorator: Google::Apis::GenomicsV2alpha1::VirtualMachine::Representation
collection :zones, as: 'zones'
end
end
class RunPipelineRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :pipeline, as: 'pipeline', class: Google::Apis::GenomicsV2alpha1::Pipeline, decorator: Google::Apis::GenomicsV2alpha1::Pipeline::Representation
end
end
class RuntimeMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compute_engine, as: 'computeEngine', class: Google::Apis::GenomicsV2alpha1::ComputeEngine, decorator: Google::Apis::GenomicsV2alpha1::ComputeEngine::Representation
end
end
class ServiceAccount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
collection :scopes, as: 'scopes'
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 UnexpectedExitStatusEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_id, as: 'actionId'
property :exit_status, as: 'exitStatus'
end
end
class VirtualMachine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
property :boot_image, as: 'bootImage'
property :cpu_platform, as: 'cpuPlatform'
collection :disks, as: 'disks', class: Google::Apis::GenomicsV2alpha1::Disk, decorator: Google::Apis::GenomicsV2alpha1::Disk::Representation
hash :labels, as: 'labels'
property :machine_type, as: 'machineType'
property :network, as: 'network', class: Google::Apis::GenomicsV2alpha1::Network, decorator: Google::Apis::GenomicsV2alpha1::Network::Representation
property :preemptible, as: 'preemptible'
property :service_account, as: 'serviceAccount', class: Google::Apis::GenomicsV2alpha1::ServiceAccount, decorator: Google::Apis::GenomicsV2alpha1::ServiceAccount::Representation
end
end
class WorkerAssignedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
property :zone, as: 'zone'
end
end
class WorkerReleasedEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
property :zone, as: 'zone'
end
end
end
end
end
@@ -0,0 +1,246 @@
# 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 '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 GenomicsV2alpha1
# Genomics API
#
# Upload, process, query, and search Genomics data in the cloud.
#
# @example
# require 'google/apis/genomics_v2alpha1'
#
# Genomics = Google::Apis::GenomicsV2alpha1 # Alias the module
# service = Genomics::GenomicsService.new
#
# @see https://cloud.google.com/genomics
class GenomicsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://genomics.googleapis.com/', '')
@batch_path = 'batch'
end
# Runs a pipeline.
# @param [Google::Apis::GenomicsV2alpha1::RunPipelineRequest] run_pipeline_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV2alpha1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV2alpha1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def run_pipeline(run_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2alpha1/pipelines:run', options)
command.request_representation = Google::Apis::GenomicsV2alpha1::RunPipelineRequest::Representation
command.request_object = run_pipeline_request_object
command.response_representation = Google::Apis::GenomicsV2alpha1::Operation::Representation
command.response_class = Google::Apis::GenomicsV2alpha1::Operation
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. Clients
# may use Operations.GetOperation or Operations.ListOperations to check whether
# the cancellation succeeded or the operation completed despite cancellation.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [Google::Apis::GenomicsV2alpha1::CancelOperationRequest] cancel_operation_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV2alpha1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV2alpha1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2alpha1/{+name}:cancel', options)
command.request_representation = Google::Apis::GenomicsV2alpha1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::GenomicsV2alpha1::Empty::Representation
command.response_class = Google::Apis::GenomicsV2alpha1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV2alpha1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV2alpha1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2alpha1/{+name}', options)
command.response_representation = Google::Apis::GenomicsV2alpha1::Operation::Representation
command.response_class = Google::Apis::GenomicsV2alpha1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# A string for filtering Operations.
# The following filter fields are supported&#58;
# * projectId&#58; Required. Corresponds to
# OperationMetadata.projectId.
# * createTime&#58; The time this job was created, in seconds from the
# [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=`
# operators.
# * status&#58; Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only
# one status may be specified.
# * labels.key where key is a label key.
# Examples&#58;
# * `projectId = my-project AND createTime >= 1432140000`
# * `projectId = my-project AND createTime >= 1432140000 AND createTime <=
# 1432150000 AND status = RUNNING`
# * `projectId = my-project AND labels.color = *`
# * `projectId = my-project AND labels.color = red`
# @param [Fixnum] page_size
# The maximum number of results to return. If unspecified, defaults to
# 256. The maximum value is 2048.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV2alpha1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV2alpha1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2alpha1/{+name}', options)
command.response_representation = Google::Apis::GenomicsV2alpha1::ListOperationsResponse::Representation
command.response_class = Google::Apis::GenomicsV2alpha1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# The worker uses this method to retrieve the assigned operation and
# provide periodic status updates.
# @param [String] id
# The worker id, assigned when it was created.
# @param [Google::Apis::GenomicsV2alpha1::CheckInRequest] check_in_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV2alpha1::CheckInResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV2alpha1::CheckInResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def check_worker_in(id, check_in_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2alpha1/workers/{id}:checkIn', options)
command.request_representation = Google::Apis::GenomicsV2alpha1::CheckInRequest::Representation
command.request_object = check_in_request_object
command.response_representation = Google::Apis::GenomicsV2alpha1::CheckInResponse::Representation
command.response_class = Google::Apis::GenomicsV2alpha1::CheckInResponse
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end
+2 -2
View File
@@ -18,14 +18,14 @@ require 'google/apis/people_v1/representations.rb'
module Google
module Apis
# Google People API
# People API
#
# Provides access to information about profiles and contacts.
#
# @see https://developers.google.com/people/
module PeopleV1
VERSION = 'V1'
REVISION = '20180116'
REVISION = '20180217'
# Manage your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
+1 -1
View File
@@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module PeopleV1
# Google People API
# People API
#
# Provides access to information about profiles and contacts.
#
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/slides/
module SlidesV1
VERSION = 'V1'
REVISION = '20180208'
REVISION = '20180216'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -2770,6 +2770,43 @@ module Google
end
end
# Replaces an existing image with a new image.
# Replacing an image removes some image effects from the existing image.
class ReplaceImageRequest
include Google::Apis::Core::Hashable
# The ID of the existing image that will be replaced.
# Corresponds to the JSON property `imageObjectId`
# @return [String]
attr_accessor :image_object_id
# The replacement method.
# Corresponds to the JSON property `imageReplaceMethod`
# @return [String]
attr_accessor :image_replace_method
# The URL of the new image.
# The image is fetched once at insertion time and a copy is stored for
# display inside the presentation. Images must be less than 50MB in size,
# cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
# format.
# The provided URL can be at most 2 kB in length.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image_object_id = args[:image_object_id] if args.key?(:image_object_id)
@image_replace_method = args[:image_replace_method] if args.key?(:image_replace_method)
@url = args[:url] if args.key?(:url)
end
end
# A single kind of update to apply to a presentation.
class Request
include Google::Apis::Core::Hashable
@@ -2916,6 +2953,12 @@ module Google
# @return [Google::Apis::SlidesV1::ReplaceAllTextRequest]
attr_accessor :replace_all_text
# Replaces an existing image with a new image.
# Replacing an image removes some image effects from the existing image.
# Corresponds to the JSON property `replaceImage`
# @return [Google::Apis::SlidesV1::ReplaceImageRequest]
attr_accessor :replace_image
# Ungroups objects, such as groups.
# Corresponds to the JSON property `ungroupObjects`
# @return [Google::Apis::SlidesV1::UngroupObjectsRequest]
@@ -3031,6 +3074,7 @@ module Google
@replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
@replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
@replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
@replace_image = args[:replace_image] if args.key?(:replace_image)
@ungroup_objects = args[:ungroup_objects] if args.key?(:ungroup_objects)
@unmerge_table_cells = args[:unmerge_table_cells] if args.key?(:unmerge_table_cells)
@update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties)
@@ -5028,6 +5072,28 @@ module Google
class VideoProperties
include Google::Apis::Core::Hashable
# Whether to enable video autoplay when the page is displayed in present
# mode. Defaults to false.
# Corresponds to the JSON property `autoPlay`
# @return [Boolean]
attr_accessor :auto_play
alias_method :auto_play?, :auto_play
# The time at which to end playback, measured in seconds from the beginning
# of the video.
# If set, the end time should be after the start time.
# If not set or if you set this to a value that exceeds the video duration,
# the video will be played until its end.
# Corresponds to the JSON property `end`
# @return [Fixnum]
attr_accessor :end
# Whether to mute the audio during video playback. Defaults to false.
# Corresponds to the JSON property `mute`
# @return [Boolean]
attr_accessor :mute
alias_method :mute?, :mute
# The outline of a PageElement.
# If these fields are unset, they may be inherited from a parent placeholder
# if it exists. If there is no parent, the fields will default to the value
@@ -5037,13 +5103,27 @@ module Google
# @return [Google::Apis::SlidesV1::Outline]
attr_accessor :outline
# The time at which to start playback, measured in seconds from the beginning
# of the video.
# If set, the start time should be before the end time.
# If you set this to a value that exceeds the video's length in seconds, the
# video will be played from the last second.
# If not set, the video will be played from the beginning.
# Corresponds to the JSON property `start`
# @return [Fixnum]
attr_accessor :start
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_play = args[:auto_play] if args.key?(:auto_play)
@end = args[:end] if args.key?(:end)
@mute = args[:mute] if args.key?(:mute)
@outline = args[:outline] if args.key?(:outline)
@start = args[:start] if args.key?(:start)
end
end
@@ -460,6 +460,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ReplaceImageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Request
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1527,6 +1533,15 @@ module Google
end
end
class ReplaceImageRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_object_id, as: 'imageObjectId'
property :image_replace_method, as: 'imageReplaceMethod'
property :url, as: 'url'
end
end
class Request
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1576,6 +1591,8 @@ module Google
property :replace_all_text, as: 'replaceAllText', class: Google::Apis::SlidesV1::ReplaceAllTextRequest, decorator: Google::Apis::SlidesV1::ReplaceAllTextRequest::Representation
property :replace_image, as: 'replaceImage', class: Google::Apis::SlidesV1::ReplaceImageRequest, decorator: Google::Apis::SlidesV1::ReplaceImageRequest::Representation
property :ungroup_objects, as: 'ungroupObjects', class: Google::Apis::SlidesV1::UngroupObjectsRequest, decorator: Google::Apis::SlidesV1::UngroupObjectsRequest::Representation
property :unmerge_table_cells, as: 'unmergeTableCells', class: Google::Apis::SlidesV1::UnmergeTableCellsRequest, decorator: Google::Apis::SlidesV1::UnmergeTableCellsRequest::Representation
@@ -2156,8 +2173,12 @@ module Google
class VideoProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_play, as: 'autoPlay'
property :end, as: 'end'
property :mute, as: 'mute'
property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation
property :start, as: 'start'
end
end