Autogenerated update (2017-10-06)

Update:
- cloudtasks_v2beta2
- cloudtrace_v2
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- container_v1beta1
- dataproc_v1beta2
- logging_v2beta1
- servicemanagement_v1
- serviceuser_v1
- vision_v1
- youtube_partner_v1
This commit is contained in:
Google APIs 2017-10-06 00:35:09 +00:00
parent 54040f4dda
commit 7b43f41f26
34 changed files with 7633 additions and 254 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/cloud-tasks/ # @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2 module CloudtasksV2beta2
VERSION = 'V2beta2' VERSION = 'V2beta2'
REVISION = '20170926' REVISION = '20171005'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -129,7 +129,7 @@ module Google
# The HTTP method to use for the request. The default is POST. # The HTTP method to use for the request. The default is POST.
# The app's request handler for the task's target URL must be able to handle # The app's request handler for the task's target URL must be able to handle
# HTTP requests with this http_method, otherwise the task attempt will fail # HTTP requests with this http_method, otherwise the task attempt will fail
# with error code 405 "Method Not Allowed" because "the method specified in # with error code 405 (Method Not Allowed). See
# the Request-Line is not allowed for the resource identified by the # the Request-Line is not allowed for the resource identified by the
# Request-URI". See # Request-URI". See
# [Writing a push task request handler](/appengine/docs/java/taskqueue/push/ # [Writing a push task request handler](/appengine/docs/java/taskqueue/push/
@ -154,7 +154,7 @@ module Google
# The relative URL. # The relative URL.
# The relative URL must begin with "/" and must be a valid HTTP relative URL. # The relative URL must begin with "/" and must be a valid HTTP relative URL.
# It can contain a path, query string arguments, and `#` fragments. # It can contain a path and query string arguments.
# If the relative URL is empty, then the root path "/" will be used. # If the relative URL is empty, then the root path "/" will be used.
# No spaces are allowed, and the maximum length allowed is 2083 characters. # No spaces are allowed, and the maximum length allowed is 2083 characters.
# Corresponds to the JSON property `relativeUrl` # Corresponds to the JSON property `relativeUrl`
@ -930,17 +930,12 @@ module Google
# `filter` can be used to specify a subset of tasks to lease. # `filter` can be used to specify a subset of tasks to lease.
# When `filter` is set to `tag=<my-tag>` then the # When `filter` is set to `tag=<my-tag>` then the
# PullTasksResponse will contain only tasks whose # PullTasksResponse will contain only tasks whose
# PullMessage.tag is equal to `<my-tag>`. `<my-tag>` can be # PullMessage.tag is equal to `<my-tag>`. `<my-tag>` must be less than
# a bytes encoded as a string and must be less than 500 bytes. # 500 bytes.
# If `<my-tag>` includes whitespace or special characters (characters which # When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
# aren't letters, numbers, or underscores), then it must be double-quoted. # the same tag as the task with the oldest schedule_time will be returned.
# Double quotes and backslashes in quoted strings must be escaped by
# preceding it with a backslash (`\`).
# When `filter` is set to `tag=oldest_tag()`, only tasks which have the same
# tag as the task with the oldest schedule_time will be returned.
# Grammar Syntax: # Grammar Syntax:
# * `filter = "tag=" comparable` # * `filter = "tag=" tag | "tag_function=" function`
# * `comparable = tag | function`
# * `tag = string | bytes` # * `tag = string | bytes`
# * `function = "oldest_tag()"` # * `function = "oldest_tag()"`
# The `oldest_tag()` function returns tasks which have the same tag as the # The `oldest_tag()` function returns tasks which have the same tag as the
@ -1108,23 +1103,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :queue_state attr_accessor :queue_state
# Rate limits.
# This message determines the maximum rate that tasks can be dispatched by a
# queue, regardless of whether the dispatch is a first task attempt or a retry.
# Corresponds to the JSON property `rateLimits`
# @return [Google::Apis::CloudtasksV2beta2::RateLimits]
attr_accessor :rate_limits
# Retry config. # Retry config.
# These settings determine retry behavior. # These settings determine how a failed task attempt is retried.
# If a task does not complete successfully, meaning that an
# acknowledgement is not received from the handler before the
# [deadline](/appengine/docs/python/taskqueue/push/#the_task_deadline),
# then it will be retried with exponential backoff according to the
# settings in RetryConfig.
# Corresponds to the JSON property `retryConfig` # Corresponds to the JSON property `retryConfig`
# @return [Google::Apis::CloudtasksV2beta2::RetryConfig] # @return [Google::Apis::CloudtasksV2beta2::RetryConfig]
attr_accessor :retry_config attr_accessor :retry_config
# Throttle config.
# These settings determine the throttling behavior.
# Corresponds to the JSON property `throttleConfig`
# @return [Google::Apis::CloudtasksV2beta2::ThrottleConfig]
attr_accessor :throttle_config
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1138,8 +1129,74 @@ module Google
@pull_target = args[:pull_target] if args.key?(:pull_target) @pull_target = args[:pull_target] if args.key?(:pull_target)
@purge_time = args[:purge_time] if args.key?(:purge_time) @purge_time = args[:purge_time] if args.key?(:purge_time)
@queue_state = args[:queue_state] if args.key?(:queue_state) @queue_state = args[:queue_state] if args.key?(:queue_state)
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
@retry_config = args[:retry_config] if args.key?(:retry_config) @retry_config = args[:retry_config] if args.key?(:retry_config)
@throttle_config = args[:throttle_config] if args.key?(:throttle_config) end
end
# Rate limits.
# This message determines the maximum rate that tasks can be dispatched by a
# queue, regardless of whether the dispatch is a first task attempt or a retry.
class RateLimits
include Google::Apis::Core::Hashable
# Output only.
# The max burst size limits how fast the queue is processed when
# many tasks are in the queue and the rate is high. This field
# allows the queue to have a high rate so processing starts shortly
# after a task is enqueued, but still limits resource usage when
# many tasks are enqueued in a short period of time.
# * For App Engine queues, if
# RateLimits.max_tasks_dispatched_per_second is 1, this
# field is 10; otherwise this field is
# RateLimits.max_tasks_dispatched_per_second / 5.
# * For pull queues, this field is output only and always 10,000.
# Note: For App Engine queues that were created through
# `queue.yaml/xml`, `max_burst_size` might not have the same
# settings as specified above; CloudTasks.UpdateQueue can be
# used to set `max_burst_size` only to the values specified above.
# This field has the same meaning as
# [bucket_size in queue.yaml](/appengine/docs/standard/python/config/queueref#
# bucket_size).
# Corresponds to the JSON property `maxBurstSize`
# @return [Fixnum]
attr_accessor :max_burst_size
# The maximum number of concurrent tasks that Cloud Tasks allows
# to be dispatched for this queue. After this threshold has been
# reached, Cloud Tasks stops dispatching tasks until the number of
# concurrent requests decreases.
# The maximum allowed value is 5,000.
# * For App Engine queues, this field is 10 by default.
# * For pull queues, this field is output only and always -1, which
# indicates no limit.
# This field has the same meaning as
# [max_concurrent_requests in queue.yaml](/appengine/docs/standard/python/config/
# queueref#max_concurrent_requests).
# Corresponds to the JSON property `maxConcurrentTasks`
# @return [Fixnum]
attr_accessor :max_concurrent_tasks
# The maximum rate at which tasks are dispatched from this
# queue.
# The maximum allowed value is 500.
# * For App Engine queues, this field is 1 by default.
# * For pull queues, this field is output only and always 10,000.
# This field has the same meaning as
# [rate in queue.yaml](/appengine/docs/standard/python/config/queueref#rate).
# Corresponds to the JSON property `maxTasksDispatchedPerSecond`
# @return [Float]
attr_accessor :max_tasks_dispatched_per_second
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size)
@max_concurrent_tasks = args[:max_concurrent_tasks] if args.key?(:max_concurrent_tasks)
@max_tasks_dispatched_per_second = args[:max_tasks_dispatched_per_second] if args.key?(:max_tasks_dispatched_per_second)
end end
end end
@ -1204,12 +1261,7 @@ module Google
end end
# Retry config. # Retry config.
# These settings determine retry behavior. # These settings determine how a failed task attempt is retried.
# If a task does not complete successfully, meaning that an
# acknowledgement is not received from the handler before the
# [deadline](/appengine/docs/python/taskqueue/push/#the_task_deadline),
# then it will be retried with exponential backoff according to the
# settings in RetryConfig.
class RetryConfig class RetryConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1232,10 +1284,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :max_backoff attr_accessor :max_backoff
# The maximum number of times that the interval between failed task # The time between retries increases exponentially `max_doublings` times.
# retries will be doubled before the increase becomes constant. The # `max_doublings` is maximum number of times that the interval between failed
# constant is: 2**(max_doublings - 1) * # task retries will be doubled before the interval increases linearly.
# RetryConfig.min_backoff. # After max_doublings intervals, the retry interval will be
# 2^(max_doublings - 1) * RetryConfig.min_backoff.
# * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget), # * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget),
# this field is 16 by default. # this field is 16 by default.
# * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this field # * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this field
@ -1639,71 +1692,6 @@ module Google
@permissions = args[:permissions] if args.key?(:permissions) @permissions = args[:permissions] if args.key?(:permissions)
end end
end end
# Throttle config.
# These settings determine the throttling behavior.
class ThrottleConfig
include Google::Apis::Core::Hashable
# Output only.
# The max burst size limits how fast the queue is processed when
# many tasks are in the queue and the rate is high. This field
# allows the queue to have a high rate so processing starts shortly
# after a task is enqueued, but still limits resource usage when
# many tasks are enqueued in a short period of time.
# * For App Engine queues, if
# ThrottleConfig.max_tasks_dispatched_per_second is 1, this
# field is 10; otherwise this field is
# ThrottleConfig.max_tasks_dispatched_per_second / 5.
# * For pull queues, this field is output only and always 10,000.
# Note: For App Engine queues that were created through
# `queue.yaml/xml`, `max_burst_size` might not have the same
# settings as specified above; CloudTasks.UpdateQueue can be
# used to set `max_burst_size` only to the values specified above.
# This field has the same meaning as
# [bucket_size in queue.yaml](/appengine/docs/standard/python/config/queueref#
# bucket_size).
# Corresponds to the JSON property `maxBurstSize`
# @return [Fixnum]
attr_accessor :max_burst_size
# The maximum number of outstanding tasks that Cloud Tasks allows
# to be dispatched for this queue. After this threshold has been
# reached, Cloud Tasks stops dispatching tasks until the number of
# outstanding requests decreases.
# The maximum allowed value is 5,000.
# * For App Engine queues, this field is 10 by default.
# * For pull queues, this field is output only and always -1, which
# indicates no limit.
# This field has the same meaning as
# [max_concurrent_requests in queue.yaml](/appengine/docs/standard/python/config/
# queueref#max_concurrent_requests).
# Corresponds to the JSON property `maxOutstandingTasks`
# @return [Fixnum]
attr_accessor :max_outstanding_tasks
# The maximum rate at which tasks are dispatched from this
# queue.
# The maximum allowed value is 500.
# * For App Engine queues, this field is 1 by default.
# * For pull queues, this field is output only and always 10,000.
# This field has the same meaning as
# [rate in queue.yaml](/appengine/docs/standard/python/config/queueref#rate).
# Corresponds to the JSON property `maxTasksDispatchedPerSecond`
# @return [Float]
attr_accessor :max_tasks_dispatched_per_second
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size)
@max_outstanding_tasks = args[:max_outstanding_tasks] if args.key?(:max_outstanding_tasks)
@max_tasks_dispatched_per_second = args[:max_tasks_dispatched_per_second] if args.key?(:max_tasks_dispatched_per_second)
end
end
end end
end end
end end

View File

@ -178,6 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RateLimits
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RenewLeaseRequest class RenewLeaseRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -238,12 +244,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ThrottleConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AcknowledgeTaskRequest class AcknowledgeTaskRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -468,10 +468,19 @@ module Google
property :purge_time, as: 'purgeTime' property :purge_time, as: 'purgeTime'
property :queue_state, as: 'queueState' property :queue_state, as: 'queueState'
property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2beta2::RateLimits, decorator: Google::Apis::CloudtasksV2beta2::RateLimits::Representation
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation
property :throttle_config, as: 'throttleConfig', class: Google::Apis::CloudtasksV2beta2::ThrottleConfig, decorator: Google::Apis::CloudtasksV2beta2::ThrottleConfig::Representation end
end
class RateLimits
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_burst_size, as: 'maxBurstSize'
property :max_concurrent_tasks, as: 'maxConcurrentTasks'
property :max_tasks_dispatched_per_second, as: 'maxTasksDispatchedPerSecond'
end end
end end
@ -571,15 +580,6 @@ module Google
collection :permissions, as: 'permissions' collection :permissions, as: 'permissions'
end end
end end
class ThrottleConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_burst_size, as: 'maxBurstSize'
property :max_outstanding_tasks, as: 'maxOutstandingTasks'
property :max_tasks_dispatched_per_second, as: 'maxTasksDispatchedPerSecond'
end
end
end end
end end
end end

View File

@ -878,6 +878,10 @@ module Google
# to perform the work associated with the task. To return the # to perform the work associated with the task. To return the
# payloads in the PullTasksResponse, set # payloads in the PullTasksResponse, set
# PullTasksRequest.response_view to Task.View.FULL. # PullTasksRequest.response_view to Task.View.FULL.
# A maximum of 10 qps of CloudTasks.PullTasks requests are allowed per
# queue. google.rpc.Code.RESOURCE_EXHAUSTED is returned when this limit
# is exceeded. google.rpc.Code.RESOURCE_EXHAUSTED is also returned when
# ThrottleConfig.max_tasks_dispatched_per_second is exceeded.
# @param [String] name # @param [String] name
# Required. # Required.
# The queue name. For example: # The queue name. For example:

View File

@ -28,7 +28,7 @@ module Google
# @see https://cloud.google.com/trace # @see https://cloud.google.com/trace
module CloudtraceV2 module CloudtraceV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20170927' REVISION = '20171003'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -217,6 +217,45 @@ module Google
end end
end end
# An event describing a message sent/received between Spans.
class MessageEvent
include Google::Apis::Core::Hashable
# The number of compressed bytes sent or received. If missing assumed to
# be the same size as uncompressed.
# Corresponds to the JSON property `compressedSize`
# @return [Fixnum]
attr_accessor :compressed_size
# An identifier for the message, which must be unique in this span.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# Type of MessageEvent. Indicates whether the message was sent or
# received.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The number of uncompressed bytes sent or received.
# Corresponds to the JSON property `uncompressedSize`
# @return [Fixnum]
attr_accessor :uncompressed_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@compressed_size = args[:compressed_size] if args.key?(:compressed_size)
@id = args[:id] if args.key?(:id)
@type = args[:type] if args.key?(:type)
@uncompressed_size = args[:uncompressed_size] if args.key?(:uncompressed_size)
end
end
# Binary module. # Binary module.
class Module class Module
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -242,52 +281,6 @@ module Google
end end
end end
# An event describing an RPC message sent or received on the network.
class NetworkEvent
include Google::Apis::Core::Hashable
# The number of compressed bytes sent or received.
# Corresponds to the JSON property `compressedMessageSize`
# @return [Fixnum]
attr_accessor :compressed_message_size
# An identifier for the message, which must be unique in this span.
# Corresponds to the JSON property `messageId`
# @return [Fixnum]
attr_accessor :message_id
# For sent messages, this is the time at which the first bit was sent.
# For received messages, this is the time at which the last bit was
# received.
# Corresponds to the JSON property `time`
# @return [String]
attr_accessor :time
# Type of NetworkEvent. Indicates whether the RPC message was sent or
# received.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The number of uncompressed bytes sent or received.
# Corresponds to the JSON property `uncompressedMessageSize`
# @return [Fixnum]
attr_accessor :uncompressed_message_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@compressed_message_size = args[:compressed_message_size] if args.key?(:compressed_message_size)
@message_id = args[:message_id] if args.key?(:message_id)
@time = args[:time] if args.key?(:time)
@type = args[:type] if args.key?(:type)
@uncompressed_message_size = args[:uncompressed_message_size] if args.key?(:uncompressed_message_size)
end
end
# A span represents a single operation within a trace. Spans can be # A span represents a single operation within a trace. Spans can be
# nested to form a trace tree. Often, a trace contains a root span # nested to form a trace tree. Often, a trace contains a root span
# that describes the end-to-end latency, and one or more subspans for # that describes the end-to-end latency, and one or more subspans for
@ -411,7 +404,7 @@ module Google
# A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
# on the span, consisting of either user-supplied key:value pairs, or # on the span, consisting of either user-supplied key:value pairs, or
# details of an RPC message sent/received on the network. # details of a message sent/received between Spans.
# Corresponds to the JSON property `timeEvents` # Corresponds to the JSON property `timeEvents`
# @return [Google::Apis::CloudtraceV2::TimeEvents] # @return [Google::Apis::CloudtraceV2::TimeEvents]
attr_accessor :time_events attr_accessor :time_events
@ -624,7 +617,7 @@ module Google
end end
end end
# A time-stamped annotation or network event in the Span. # A time-stamped annotation or message event in the Span.
class TimeEvent class TimeEvent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -633,10 +626,10 @@ module Google
# @return [Google::Apis::CloudtraceV2::Annotation] # @return [Google::Apis::CloudtraceV2::Annotation]
attr_accessor :annotation attr_accessor :annotation
# An event describing an RPC message sent or received on the network. # An event describing a message sent/received between Spans.
# Corresponds to the JSON property `networkEvent` # Corresponds to the JSON property `messageEvent`
# @return [Google::Apis::CloudtraceV2::NetworkEvent] # @return [Google::Apis::CloudtraceV2::MessageEvent]
attr_accessor :network_event attr_accessor :message_event
# The timestamp indicating the time the event occurred. # The timestamp indicating the time the event occurred.
# Corresponds to the JSON property `time` # Corresponds to the JSON property `time`
@ -650,14 +643,14 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@annotation = args[:annotation] if args.key?(:annotation) @annotation = args[:annotation] if args.key?(:annotation)
@network_event = args[:network_event] if args.key?(:network_event) @message_event = args[:message_event] if args.key?(:message_event)
@time = args[:time] if args.key?(:time) @time = args[:time] if args.key?(:time)
end end
end end
# A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
# on the span, consisting of either user-supplied key:value pairs, or # on the span, consisting of either user-supplied key:value pairs, or
# details of an RPC message sent/received on the network. # details of a message sent/received between Spans.
class TimeEvents class TimeEvents
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -667,11 +660,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :dropped_annotations_count attr_accessor :dropped_annotations_count
# The number of dropped network events in all the included time events. # The number of dropped message events in all the included time events.
# If the value is 0, then no network events were dropped. # If the value is 0, then no message events were dropped.
# Corresponds to the JSON property `droppedNetworkEventsCount` # Corresponds to the JSON property `droppedMessageEventsCount`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :dropped_network_events_count attr_accessor :dropped_message_events_count
# A collection of `TimeEvent`s. # A collection of `TimeEvent`s.
# Corresponds to the JSON property `timeEvent` # Corresponds to the JSON property `timeEvent`
@ -685,7 +678,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@dropped_annotations_count = args[:dropped_annotations_count] if args.key?(:dropped_annotations_count) @dropped_annotations_count = args[:dropped_annotations_count] if args.key?(:dropped_annotations_count)
@dropped_network_events_count = args[:dropped_network_events_count] if args.key?(:dropped_network_events_count) @dropped_message_events_count = args[:dropped_message_events_count] if args.key?(:dropped_message_events_count)
@time_event = args[:time_event] if args.key?(:time_event) @time_event = args[:time_event] if args.key?(:time_event)
end end
end end

View File

@ -64,13 +64,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Module class MessageEvent
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NetworkEvent class Module
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -187,6 +187,16 @@ module Google
end end
end end
class MessageEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compressed_size, :numeric_string => true, as: 'compressedSize'
property :id, :numeric_string => true, as: 'id'
property :type, as: 'type'
property :uncompressed_size, :numeric_string => true, as: 'uncompressedSize'
end
end
class Module class Module
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -197,17 +207,6 @@ module Google
end end
end end
class NetworkEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compressed_message_size, :numeric_string => true, as: 'compressedMessageSize'
property :message_id, :numeric_string => true, as: 'messageId'
property :time, as: 'time'
property :type, as: 'type'
property :uncompressed_message_size, :numeric_string => true, as: 'uncompressedMessageSize'
end
end
class Span class Span
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -283,7 +282,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :annotation, as: 'annotation', class: Google::Apis::CloudtraceV2::Annotation, decorator: Google::Apis::CloudtraceV2::Annotation::Representation property :annotation, as: 'annotation', class: Google::Apis::CloudtraceV2::Annotation, decorator: Google::Apis::CloudtraceV2::Annotation::Representation
property :network_event, as: 'networkEvent', class: Google::Apis::CloudtraceV2::NetworkEvent, decorator: Google::Apis::CloudtraceV2::NetworkEvent::Representation property :message_event, as: 'messageEvent', class: Google::Apis::CloudtraceV2::MessageEvent, decorator: Google::Apis::CloudtraceV2::MessageEvent::Representation
property :time, as: 'time' property :time, as: 'time'
end end
@ -293,7 +292,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :dropped_annotations_count, as: 'droppedAnnotationsCount' property :dropped_annotations_count, as: 'droppedAnnotationsCount'
property :dropped_network_events_count, as: 'droppedNetworkEventsCount' property :dropped_message_events_count, as: 'droppedMessageEventsCount'
collection :time_event, as: 'timeEvent', class: Google::Apis::CloudtraceV2::TimeEvent, decorator: Google::Apis::CloudtraceV2::TimeEvent::Representation collection :time_event, as: 'timeEvent', class: Google::Apis::CloudtraceV2::TimeEvent, decorator: Google::Apis::CloudtraceV2::TimeEvent::Representation
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha module ComputeAlpha
VERSION = 'Alpha' VERSION = 'Alpha'
REVISION = '20170908' REVISION = '20170919'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -620,8 +620,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
# [Output Only] The status of the address, which can be either IN_USE or # [Output Only] The status of the address, which can be one of RESERVING,
# RESERVED. An address that is RESERVED is currently reserved and available to # RESERVED, or IN_USE. An address that is RESERVING is currently in the process
# of being reserved. A RESERVED address is currently reserved and available to
# use. An IN_USE address is currently being used by another resource and is not # use. An IN_USE address is currently being used by another resource and is not
# available. # available.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
@ -4288,6 +4289,47 @@ module Google
end end
end end
# A specification of the desired way to instantiate a disk in the instance
# template when its created from a source instance.
class DiskInstantiationConfig
include Google::Apis::Core::Hashable
# Specifies whether the disk will be auto-deleted when the instance is deleted (
# but not when the disk is detached from the instance).
# Corresponds to the JSON property `autoDelete`
# @return [Boolean]
attr_accessor :auto_delete
alias_method :auto_delete?, :auto_delete
# Specifies the device name of the disk to which the configurations apply to.
# Corresponds to the JSON property `deviceName`
# @return [String]
attr_accessor :device_name
# Specifies whether to include the disk and what image to use.
# Corresponds to the JSON property `instantiateFrom`
# @return [String]
attr_accessor :instantiate_from
# The custom source image to be used to restore this disk when instantiating
# this instance template.
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_delete = args[:auto_delete] if args.key?(:auto_delete)
@device_name = args[:device_name] if args.key?(:device_name)
@instantiate_from = args[:instantiate_from] if args.key?(:instantiate_from)
@source_image = args[:source_image] if args.key?(:source_image)
end
end
# A list of Disk resources. # A list of Disk resources.
class DiskList class DiskList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5398,18 +5440,25 @@ module Google
class FixedOrPercent class FixedOrPercent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Output Only] Absolute value calculated based on mode: mode = fixed -> # [Output Only] Absolute value of VM instances calculated based on the specific
# calculated = fixed = percent -> calculated = ceiling(percent/100 * base_value) # mode.
#
# - If the value is fixed, then the caculated value is equal to the fixed value.
# - If the value is a percent, then the calculated value is percent/100 *
# targetSize. For example, the calculated value of a 80% of a managed instance
# group with 150 instances would be (80/100 * 150) = 120 VM instances. If there
# is a remainder, the number is rounded up.
# Corresponds to the JSON property `calculated` # Corresponds to the JSON property `calculated`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :calculated attr_accessor :calculated
# fixed must be non-negative. # Specifies a fixed number of VM instances. This must be a positive integer.
# Corresponds to the JSON property `fixed` # Corresponds to the JSON property `fixed`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :fixed attr_accessor :fixed
# percent must belong to [0, 100]. # Specifies a percentage of instances between 0 to 100%, inclusive. For example,
# specify 80 for 80%.
# Corresponds to the JSON property `percent` # Corresponds to the JSON property `percent`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :percent attr_accessor :percent
@ -9204,14 +9253,14 @@ module Google
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy] # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy]
attr_accessor :update_policy attr_accessor :update_policy
# Versions supported by this IGM. User should set this field if they need fine- # Specifies the instance templates used by this managed instance group to create
# grained control over how many instances in each version are run by this IGM. # instances.
# Versions are keyed by instanceTemplate. Every instanceTemplate can appear at # Each version is defined by an instanceTemplate. Every template can appear at
# most once. This field overrides instanceTemplate field. If both # most once per instance group. This field overrides the top-level
# instanceTemplate and versions are set, the user receives a warning. " # instanceTemplate field. Read more about the relationships between these fields.
# instanceTemplate: X" is semantically equivalent to "versions [ ` # Exactly one version must leave the targetSize field unset. That version will
# instanceTemplate: X ` ]". Exactly one version must have targetSize field left # be applied to all remaining instances. For more information, read about canary
# unset. Size of such a version will be calculated automatically. # updates.
# Corresponds to the JSON property `versions` # Corresponds to the JSON property `versions`
# @return [Array<Google::Apis::ComputeAlpha::InstanceGroupManagerVersion>] # @return [Array<Google::Apis::ComputeAlpha::InstanceGroupManagerVersion>]
attr_accessor :versions attr_accessor :versions
@ -9771,8 +9820,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_ready_sec attr_accessor :min_ready_sec
# Minimal action to be taken on an instance. The order of action types is: # Minimal action to be taken on an instance. You can specify either RESTART to
# RESTART < REPLACE. # restart existing instances or REPLACE to delete and create new instances from
# the target template. If you specify a code>RESTART, the Updater will attempt
# to perform that action only. However, if the Updater determines that the
# minimal action you specify is not enough to perform the update, it might
# perform a more disruptive action.
# Corresponds to the JSON property `minimalAction` # Corresponds to the JSON property `minimalAction`
# @return [String] # @return [String]
attr_accessor :minimal_action attr_accessor :minimal_action
@ -11052,6 +11105,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :source_instance attr_accessor :source_instance
# A specification of the parameters to use when creating the instance template
# from a source instance.
# Corresponds to the JSON property `sourceInstanceParams`
# @return [Google::Apis::ComputeAlpha::SourceInstanceParams]
attr_accessor :source_instance_params
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -11066,6 +11125,7 @@ module Google
@properties = args[:properties] if args.key?(:properties) @properties = args[:properties] if args.key?(:properties)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@source_instance = args[:source_instance] if args.key?(:source_instance) @source_instance = args[:source_instance] if args.key?(:source_instance)
@source_instance_params = args[:source_instance_params] if args.key?(:source_instance_params)
end end
end end
@ -17877,6 +17937,31 @@ module Google
end end
end end
# Description-tagged IP ranges for the router to advertise.
class RouterAdvertisedIpRange
include Google::Apis::Core::Hashable
# User-specified description for the IP range.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The IP range to advertise. The value must be a CIDR-formatted string.
# Corresponds to the JSON property `range`
# @return [String]
attr_accessor :range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@range = args[:range] if args.key?(:range)
end
end
# Description-tagged prefixes for the router to advertise. # Description-tagged prefixes for the router to advertise.
class RouterAdvertisedPrefix class RouterAdvertisedPrefix
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -18036,6 +18121,14 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :advertised_groups attr_accessor :advertised_groups
# User-specified list of individual IP ranges to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and is advertised to
# all peers of the router. These IP ranges will be advertised in addition to any
# specified groups. Leave this field blank to advertise no custom IP ranges.
# Corresponds to the JSON property `advertisedIpRanges`
# @return [Array<Google::Apis::ComputeAlpha::RouterAdvertisedIpRange>]
attr_accessor :advertised_ip_ranges
# User-specified list of individual prefixes to advertise in custom mode. This # User-specified list of individual prefixes to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and is advertised to # field can only be populated if advertise_mode is CUSTOM and is advertised to
# all peers of the router. These prefixes will be advertised in addition to any # all peers of the router. These prefixes will be advertised in addition to any
@ -18059,6 +18152,7 @@ module Google
def update!(**args) def update!(**args)
@advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode) @advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode)
@advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups) @advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups)
@advertised_ip_ranges = args[:advertised_ip_ranges] if args.key?(:advertised_ip_ranges)
@advertised_prefixs = args[:advertised_prefixs] if args.key?(:advertised_prefixs) @advertised_prefixs = args[:advertised_prefixs] if args.key?(:advertised_prefixs)
@asn = args[:asn] if args.key?(:asn) @asn = args[:asn] if args.key?(:asn)
end end
@ -18082,6 +18176,15 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :advertised_groups attr_accessor :advertised_groups
# User-specified list of individual IP ranges to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and overrides the list
# defined for the router (in Bgp message). These IP ranges will be advertised in
# addition to any specified groups. Leave this field blank to advertise no
# custom IP ranges.
# Corresponds to the JSON property `advertisedIpRanges`
# @return [Array<Google::Apis::ComputeAlpha::RouterAdvertisedIpRange>]
attr_accessor :advertised_ip_ranges
# User-specified list of individual prefixes to advertise in custom mode. This # User-specified list of individual prefixes to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and overrides the list # field can only be populated if advertise_mode is CUSTOM and overrides the list
# defined for the router (in Bgp message). These prefixes will be advertised in # defined for the router (in Bgp message). These prefixes will be advertised in
@ -18134,6 +18237,7 @@ module Google
def update!(**args) def update!(**args)
@advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode) @advertise_mode = args[:advertise_mode] if args.key?(:advertise_mode)
@advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups) @advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups)
@advertised_ip_ranges = args[:advertised_ip_ranges] if args.key?(:advertised_ip_ranges)
@advertised_prefixs = args[:advertised_prefixs] if args.key?(:advertised_prefixs) @advertised_prefixs = args[:advertised_prefixs] if args.key?(:advertised_prefixs)
@advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority) @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority)
@interface_name = args[:interface_name] if args.key?(:interface_name) @interface_name = args[:interface_name] if args.key?(:interface_name)
@ -18719,7 +18823,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :action attr_accessor :action
# Additional restrictions that must be met # Additional restrictions that must be met. All conditions must pass for the
# rule to match.
# Corresponds to the JSON property `conditions` # Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::ComputeAlpha::Condition>] # @return [Array<Google::Apis::ComputeAlpha::Condition>]
attr_accessor :conditions attr_accessor :conditions
@ -19579,6 +19684,29 @@ module Google
end end
end end
# A specification of the parameters to use when creating the instance template
# from a source instance.
class SourceInstanceParams
include Google::Apis::Core::Hashable
# Attached disks configuration. If not provided, defaults are applied: For boot
# disk and any other R/W disks, new custom images will be created from each disk.
# For read-only disks, they will be attached in read-only mode. Local SSD disks
# will be created as blank volumes.
# Corresponds to the JSON property `diskConfigs`
# @return [Array<Google::Apis::ComputeAlpha::DiskInstantiationConfig>]
attr_accessor :disk_configs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disk_configs = args[:disk_configs] if args.key?(:disk_configs)
end
end
# An SslCertificate resource. This resource provides a mechanism to upload an # An SslCertificate resource. This resource provides a mechanism to upload an
# SSL key and certificate to the load balancer to serve secure connections from # SSL key and certificate to the load balancer to serve secure connections from
# the user. # the user.
@ -23566,6 +23694,16 @@ module Google
class UsableSubnetwork class UsableSubnetwork
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The range of internal addresses that are owned by this subnetwork.
# Corresponds to the JSON property `ipCidrRange`
# @return [String]
attr_accessor :ip_cidr_range
# Network URL.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# Subnetwork URL. # Subnetwork URL.
# Corresponds to the JSON property `subnetwork` # Corresponds to the JSON property `subnetwork`
# @return [String] # @return [String]
@ -23577,6 +23715,8 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
@network = args[:network] if args.key?(:network)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork) @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end end
end end

View File

@ -562,6 +562,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DiskInstantiationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DiskList class DiskList
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2476,6 +2482,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RouterAdvertisedIpRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterAdvertisedPrefix class RouterAdvertisedPrefix
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2704,6 +2716,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SourceInstanceParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SslCertificate class SslCertificate
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -4462,6 +4480,16 @@ module Google
end end
end end
class DiskInstantiationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_delete, as: 'autoDelete'
property :device_name, as: 'deviceName'
property :instantiate_from, as: 'instantiateFrom'
property :source_image, as: 'sourceImage'
end
end
class DiskList class DiskList
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -6145,6 +6173,8 @@ module Google
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :source_instance, as: 'sourceInstance' property :source_instance, as: 'sourceInstance'
property :source_instance_params, as: 'sourceInstanceParams', class: Google::Apis::ComputeAlpha::SourceInstanceParams, decorator: Google::Apis::ComputeAlpha::SourceInstanceParams::Representation
end end
end end
@ -7943,6 +7973,14 @@ module Google
end end
end end
class RouterAdvertisedIpRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :range, as: 'range'
end
end
class RouterAdvertisedPrefix class RouterAdvertisedPrefix
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -7988,6 +8026,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :advertise_mode, as: 'advertiseMode' property :advertise_mode, as: 'advertiseMode'
collection :advertised_groups, as: 'advertisedGroups' collection :advertised_groups, as: 'advertisedGroups'
collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeAlpha::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeAlpha::RouterAdvertisedIpRange::Representation
collection :advertised_prefixs, as: 'advertisedPrefixs', class: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix, decorator: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix::Representation collection :advertised_prefixs, as: 'advertisedPrefixs', class: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix, decorator: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix::Representation
property :asn, as: 'asn' property :asn, as: 'asn'
@ -7999,6 +8039,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :advertise_mode, as: 'advertiseMode' property :advertise_mode, as: 'advertiseMode'
collection :advertised_groups, as: 'advertisedGroups' collection :advertised_groups, as: 'advertisedGroups'
collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeAlpha::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeAlpha::RouterAdvertisedIpRange::Representation
collection :advertised_prefixs, as: 'advertisedPrefixs', class: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix, decorator: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix::Representation collection :advertised_prefixs, as: 'advertisedPrefixs', class: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix, decorator: Google::Apis::ComputeAlpha::RouterAdvertisedPrefix::Representation
property :advertised_route_priority, as: 'advertisedRoutePriority' property :advertised_route_priority, as: 'advertisedRoutePriority'
@ -8368,6 +8410,14 @@ module Google
end end
end end
class SourceInstanceParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :disk_configs, as: 'diskConfigs', class: Google::Apis::ComputeAlpha::DiskInstantiationConfig, decorator: Google::Apis::ComputeAlpha::DiskInstantiationConfig::Representation
end
end
class SslCertificate class SslCertificate
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -9399,6 +9449,8 @@ module Google
class UsableSubnetwork class UsableSubnetwork
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
property :network, as: 'network'
property :subnetwork, as: 'subnetwork' property :subnetwork, as: 'subnetwork'
end end
end end

View File

@ -23800,6 +23800,63 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the labels on a TargetVpnGateway. To learn more about labels, read the
# Labeling Resources documentation.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::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 set_target_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options)
command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
command.request_object = region_set_labels_request_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta module ComputeBeta
VERSION = 'Beta' VERSION = 'Beta'
REVISION = '20170908' REVISION = '20170919'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -587,8 +587,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
# [Output Only] The status of the address, which can be either IN_USE or # [Output Only] The status of the address, which can be one of RESERVING,
# RESERVED. An address that is RESERVED is currently reserved and available to # RESERVED, or IN_USE. An address that is RESERVING is currently in the process
# of being reserved. A RESERVED address is currently reserved and available to
# use. An IN_USE address is currently being used by another resource and is not # use. An IN_USE address is currently being used by another resource and is not
# available. # available.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
@ -4997,18 +4998,25 @@ module Google
class FixedOrPercent class FixedOrPercent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Output Only] Absolute value calculated based on mode: mode = fixed -> # [Output Only] Absolute value of VM instances calculated based on the specific
# calculated = fixed = percent -> calculated = ceiling(percent/100 * base_value) # mode.
#
# - If the value is fixed, then the caculated value is equal to the fixed value.
# - If the value is a percent, then the calculated value is percent/100 *
# targetSize. For example, the calculated value of a 80% of a managed instance
# group with 150 instances would be (80/100 * 150) = 120 VM instances. If there
# is a remainder, the number is rounded up.
# Corresponds to the JSON property `calculated` # Corresponds to the JSON property `calculated`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :calculated attr_accessor :calculated
# fixed must be non-negative. # Specifies a fixed number of VM instances. This must be a positive integer.
# Corresponds to the JSON property `fixed` # Corresponds to the JSON property `fixed`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :fixed attr_accessor :fixed
# percent must belong to [0, 100]. # Specifies a percentage of instances between 0 to 100%, inclusive. For example,
# specify 80 for 80%.
# Corresponds to the JSON property `percent` # Corresponds to the JSON property `percent`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :percent attr_accessor :percent
@ -5661,6 +5669,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :request_path attr_accessor :request_path
# The string to match anywhere in the first 1024 bytes of the response body. If
# left empty (the default value), the status code determines health. The
# response data can only be ASCII.
# Corresponds to the JSON property `response`
# @return [String]
attr_accessor :response
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -5672,6 +5687,7 @@ module Google
@port_name = args[:port_name] if args.key?(:port_name) @port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header) @proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request_path = args[:request_path] if args.key?(:request_path) @request_path = args[:request_path] if args.key?(:request_path)
@response = args[:response] if args.key?(:response)
end end
end end
@ -5709,6 +5725,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :request_path attr_accessor :request_path
# The string to match anywhere in the first 1024 bytes of the response body. If
# left empty (the default value), the status code determines health. The
# response data can only be ASCII.
# Corresponds to the JSON property `response`
# @return [String]
attr_accessor :response
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -5720,6 +5743,7 @@ module Google
@port_name = args[:port_name] if args.key?(:port_name) @port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header) @proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request_path = args[:request_path] if args.key?(:request_path) @request_path = args[:request_path] if args.key?(:request_path)
@response = args[:response] if args.key?(:response)
end end
end end
@ -7645,14 +7669,14 @@ module Google
# @return [Google::Apis::ComputeBeta::InstanceGroupManagerUpdatePolicy] # @return [Google::Apis::ComputeBeta::InstanceGroupManagerUpdatePolicy]
attr_accessor :update_policy attr_accessor :update_policy
# Versions supported by this IGM. User should set this field if they need fine- # Specifies the instance templates used by this managed instance group to create
# grained control over how many instances in each version are run by this IGM. # instances.
# Versions are keyed by instanceTemplate. Every instanceTemplate can appear at # Each version is defined by an instanceTemplate. Every template can appear at
# most once. This field overrides instanceTemplate field. If both # most once per instance group. This field overrides the top-level
# instanceTemplate and versions are set, the user receives a warning. " # instanceTemplate field. Read more about the relationships between these fields.
# instanceTemplate: X" is semantically equivalent to "versions [ ` # Exactly one version must leave the targetSize field unset. That version will
# instanceTemplate: X ` ]". Exactly one version must have targetSize field left # be applied to all remaining instances. For more information, read about canary
# unset. Size of such a version will be calculated automatically. # updates.
# Corresponds to the JSON property `versions` # Corresponds to the JSON property `versions`
# @return [Array<Google::Apis::ComputeBeta::InstanceGroupManagerVersion>] # @return [Array<Google::Apis::ComputeBeta::InstanceGroupManagerVersion>]
attr_accessor :versions attr_accessor :versions
@ -8110,8 +8134,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_ready_sec attr_accessor :min_ready_sec
# Minimal action to be taken on an instance. The order of action types is: # Minimal action to be taken on an instance. You can specify either RESTART to
# RESTART < REPLACE. # restart existing instances or REPLACE to delete and create new instances from
# the target template. If you specify a code>RESTART, the Updater will attempt
# to perform that action only. However, if the Updater determines that the
# minimal action you specify is not enough to perform the update, it might
# perform a more disruptive action.
# Corresponds to the JSON property `minimalAction` # Corresponds to the JSON property `minimalAction`
# @return [String] # @return [String]
attr_accessor :minimal_action attr_accessor :minimal_action
@ -15028,7 +15056,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :action attr_accessor :action
# Additional restrictions that must be met # Additional restrictions that must be met. All conditions must pass for the
# rule to match.
# Corresponds to the JSON property `conditions` # Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::ComputeBeta::Condition>] # @return [Array<Google::Apis::ComputeBeta::Condition>]
attr_accessor :conditions attr_accessor :conditions

View File

@ -4191,6 +4191,7 @@ module Google
property :port_name, as: 'portName' property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader' property :proxy_header, as: 'proxyHeader'
property :request_path, as: 'requestPath' property :request_path, as: 'requestPath'
property :response, as: 'response'
end end
end end
@ -4202,6 +4203,7 @@ module Google
property :port_name, as: 'portName' property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader' property :proxy_header, as: 'proxyHeader'
property :request_path, as: 'requestPath' property :request_path, as: 'requestPath'
property :response, as: 'response'
end end
end end

View File

@ -8301,6 +8301,14 @@ module Google
# accidentally creating duplicate commitments. # accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not # The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000). # supported (00000000-0000-0000-0000-000000000000).
# @param [String] source_instance_template
# Specifies instance template to create the instance.
# This field is optional. It can be a full or partial URL. For example, the
# following are all valid URLs to an instance template:
# - https://www.googleapis.com/compute/v1/projects/project/global/global/
# instanceTemplates/instanceTemplate
# - projects/project/global/global/instanceTemplates/instanceTemplate
# - global/instancesTemplates/instanceTemplate
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -8322,7 +8330,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_instance(project, zone, instance_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances', options) command = make_simple_command(:post, '{project}/zones/{zone}/instances', options)
command.request_representation = Google::Apis::ComputeBeta::Instance::Representation command.request_representation = Google::Apis::ComputeBeta::Instance::Representation
command.request_object = instance_object command.request_object = instance_object
@ -8331,6 +8339,7 @@ module Google
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil? command.params['zone'] = zone unless zone.nil?
command.query['requestId'] = request_id unless request_id.nil? command.query['requestId'] = request_id unless request_id.nil?
command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1 module ComputeV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170908' REVISION = '20170919'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -7627,6 +7627,64 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Changes the minimum CPU platform that this instance should use. This method
# can only be called on a stopped instance. For more information, read
# Specifying a Minimum CPU Platform.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name of the instance scoping this request.
# @param [Google::Apis::ComputeV1::InstancesSetMinCpuPlatformRequest] instances_set_min_cpu_platform_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 set_instance_min_cpu_platform(project, zone, instance, instances_set_min_cpu_platform_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform', options)
command.request_representation = Google::Apis::ComputeV1::InstancesSetMinCpuPlatformRequest::Representation
command.request_object = instances_set_min_cpu_platform_request_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets an instance's scheduling options. # Sets an instance's scheduling options.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
@ -8469,6 +8527,59 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Patches the specified network with the data included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] network
# Name of the network to update.
# @param [Google::Apis::ComputeV1::Network] network_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 patch_network(project, network, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/networks/{network}', options)
command.request_representation = Google::Apis::ComputeV1::Network::Representation
command.request_object = network_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['network'] = network unless network.nil?
command.query['requestId'] = request_id unless request_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Removes a peering from the specified network. # Removes a peering from the specified network.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/ # @see https://cloud.google.com/container-engine/
module ContainerV1 module ContainerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170915' REVISION = '20170922'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1705,7 +1705,7 @@ module Google
class SetMasterAuthRequest class SetMasterAuthRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The exact form of action to be taken on the master auth # The exact form of action to be taken on the master auth.
# Corresponds to the JSON property `action` # Corresponds to the JSON property `action`
# @return [String] # @return [String]
attr_accessor :action attr_accessor :action

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/ # @see https://cloud.google.com/container-engine/
module ContainerV1beta1 module ContainerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20170915' REVISION = '20170922'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -407,6 +407,11 @@ module Google
# @return [Array<Google::Apis::ContainerV1beta1::NodePool>] # @return [Array<Google::Apis::ContainerV1beta1::NodePool>]
attr_accessor :node_pools attr_accessor :node_pools
# Configuration for the PodSecurityPolicy feature.
# Corresponds to the JSON property `podSecurityPolicyConfig`
# @return [Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig]
attr_accessor :pod_security_policy_config
# [Output only] Server-defined URL for the resource. # [Output only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
@ -480,6 +485,7 @@ module Google
@node_config = args[:node_config] if args.key?(:node_config) @node_config = args[:node_config] if args.key?(:node_config)
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size) @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
@node_pools = args[:node_pools] if args.key?(:node_pools) @node_pools = args[:node_pools] if args.key?(:node_pools)
@pod_security_policy_config = args[:pod_security_policy_config] if args.key?(:pod_security_policy_config)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@ -561,6 +567,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :desired_node_version attr_accessor :desired_node_version
# Configuration for the PodSecurityPolicy feature.
# Corresponds to the JSON property `desiredPodSecurityPolicyConfig`
# @return [Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig]
attr_accessor :desired_pod_security_policy_config
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -576,6 +587,7 @@ module Google
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling) @desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id) @desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version) @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
@desired_pod_security_policy_config = args[:desired_pod_security_policy_config] if args.key?(:desired_pod_security_policy_config)
end end
end end
@ -1629,6 +1641,27 @@ module Google
end end
end end
# Configuration for the PodSecurityPolicy feature.
class PodSecurityPolicyConfig
include Google::Apis::Core::Hashable
# Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
# must be valid under a PodSecurityPolicy to be created.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
end
end
# RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
# NodePool upgrade. This will be an no-op if the last upgrade successfully # NodePool upgrade. This will be an no-op if the last upgrade successfully
# completed. # completed.
@ -1893,7 +1926,7 @@ module Google
class SetMasterAuthRequest class SetMasterAuthRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The exact form of action to be taken on the master auth # The exact form of action to be taken on the master auth.
# Corresponds to the JSON property `action` # Corresponds to the JSON property `action`
# @return [String] # @return [String]
attr_accessor :action attr_accessor :action

View File

@ -214,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PodSecurityPolicyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RollbackNodePoolUpgradeRequest class RollbackNodePoolUpgradeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -367,6 +373,8 @@ module Google
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize' property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1beta1::NodePool, decorator: Google::Apis::ContainerV1beta1::NodePool::Representation collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1beta1::NodePool, decorator: Google::Apis::ContainerV1beta1::NodePool::Representation
property :pod_security_policy_config, as: 'podSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr' property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
property :status, as: 'status' property :status, as: 'status'
@ -391,6 +399,8 @@ module Google
property :desired_node_pool_id, as: 'desiredNodePoolId' property :desired_node_pool_id, as: 'desiredNodePoolId'
property :desired_node_version, as: 'desiredNodeVersion' property :desired_node_version, as: 'desiredNodeVersion'
property :desired_pod_security_policy_config, as: 'desiredPodSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
end end
end end
@ -643,6 +653,13 @@ module Google
end end
end end
class PodSecurityPolicyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
end
end
class RollbackNodePoolUpgradeRequest class RollbackNodePoolUpgradeRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1beta2 module DataprocV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20170926' REVISION = '20171003'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -318,6 +318,9 @@ module Google
# Required. The Cloud Dataproc region in which to handle the request. # Required. The Cloud Dataproc region in which to handle the request.
# @param [String] cluster_name # @param [String] cluster_name
# Required. The cluster name. # Required. The cluster name.
# @param [String] cluster_uuid
# Optional. Specifying the cluster_uuid means the RPC should fail (with error
# NOT_FOUND) if cluster with specified UUID does not exist.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -335,13 +338,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_region_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block) def delete_project_region_cluster(project_id, region, cluster_name, cluster_uuid: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) command = make_simple_command(:delete, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
command.response_class = Google::Apis::DataprocV1beta2::Operation command.response_class = Google::Apis::DataprocV1beta2::Operation
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.params['clusterName'] = cluster_name unless cluster_name.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil?
command.query['clusterUuid'] = cluster_uuid unless cluster_uuid.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/ # @see https://cloud.google.com/logging/docs/
module LoggingV2beta1 module LoggingV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20170926' REVISION = '20171002'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1043,7 +1043,9 @@ module Google
attr_accessor :description attr_accessor :description
# A concise name for the metric, which can be displayed in user interfaces. Use # A concise name for the metric, which can be displayed in user interfaces. Use
# sentence case without an ending period, for example "Request count". # sentence case without an ending period, for example "Request count". This
# field is optional but it is recommended to be set for any metrics associated
# with user-visible concepts, such as Quota.
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
@ -1063,14 +1065,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :metric_kind attr_accessor :metric_kind
# The resource name of the metric descriptor. Depending on the implementation, # The resource name of the metric descriptor.
# the name typically includes: (1) the parent resource name that defines the
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
# which also appears in the type field of this descriptor. For example,
# following is the resource name of a custom metric within the GCP project my-
# project-id:
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
# 2Fpaid%2Famount"
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/ # @see https://cloud.google.com/service-management/
module ServicemanagementV1 module ServicemanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170926' REVISION = '20170929'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/ # @see https://cloud.google.com/service-management/
module ServiceuserV1 module ServiceuserV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170926' REVISION = '20170929'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1 module VisionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170815' REVISION = '20171003'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1410,7 +1410,9 @@ module Google
class SafeSearchAnnotation class SafeSearchAnnotation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents the adult content likelihood for the image. # Represents the adult content likelihood for the image. Adult content may
# contain elements such as nudity, pornographic images or cartoons, or
# sexual activities.
# Corresponds to the JSON property `adult` # Corresponds to the JSON property `adult`
# @return [String] # @return [String]
attr_accessor :adult attr_accessor :adult
@ -1427,7 +1429,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :spoof attr_accessor :spoof
# Violence likelihood. # Likelihood that this image contains violent content.
# Corresponds to the JSON property `violence` # Corresponds to the JSON property `violence`
# @return [String] # @return [String]
attr_accessor :violence attr_accessor :violence

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/ # @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1 module YoutubePartnerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170925' REVISION = '20171002'
# View and manage your assets and associated content on YouTube # View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'