Autogenerated update (2020-06-05)

Update:
- cloudtasks_v2beta3
- compute_alpha
- compute_beta
- compute_v1
- content_v2
- content_v2_1
- games_v1
- people_v1
- pubsub_v1
- serviceconsumermanagement_v1
- serviceconsumermanagement_v1beta1
- serviceusage_v1
- serviceusage_v1beta1
- testing_v1
This commit is contained in:
Google APIs 2020-06-05 00:39:06 +00:00
parent 38c970bd80
commit f0f8e3708d
42 changed files with 881 additions and 186 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/ # @see https://cloud.google.com/tasks/
module CloudtasksV2beta3 module CloudtasksV2beta3
VERSION = 'V2beta3' VERSION = 'V2beta3'
REVISION = '20200513' REVISION = '20200529'
# 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

@ -1157,6 +1157,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# Immutable. The type of a queue (push or pull).
# `Queue.type` is an immutable property of the queue that is set at the queue
# creation time. When left unspecified, the default value of `PUSH` is
# selected.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1170,6 +1178,7 @@ module Google
@retry_config = args[:retry_config] if args.key?(:retry_config) @retry_config = args[:retry_config] if args.key?(:retry_config)
@stackdriver_logging_config = args[:stackdriver_logging_config] if args.key?(:stackdriver_logging_config) @stackdriver_logging_config = args[:stackdriver_logging_config] if args.key?(:stackdriver_logging_config)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
@type = args[:type] if args.key?(:type)
end end
end end

View File

@ -403,6 +403,7 @@ module Google
property :stackdriver_logging_config, as: 'stackdriverLoggingConfig', class: Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig, decorator: Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig::Representation property :stackdriver_logging_config, as: 'stackdriverLoggingConfig', class: Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig, decorator: Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig::Representation
property :state, as: 'state' property :state, as: 'state'
property :type, as: 'type'
end end
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 = '20200501' REVISION = '20200511'
# 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

@ -2276,11 +2276,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :mode attr_accessor :mode
# Configuration parameters of autoscaling based on queuing system.
# Corresponds to the JSON property `queueBasedScaling`
# @return [Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling]
attr_accessor :queue_based_scaling
# Configuration that allows for slower scale down so that even if Autoscaler # Configuration that allows for slower scale down so that even if Autoscaler
# recommends an abrupt scale down of a MIG, it will be throttled as specified by # recommends an abrupt scale down of a MIG, it will be throttled as specified by
# the parameters below. # the parameters below.
@ -2308,7 +2303,6 @@ module Google
@max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas)
@min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas)
@mode = args[:mode] if args.key?(:mode) @mode = args[:mode] if args.key?(:mode)
@queue_based_scaling = args[:queue_based_scaling] if args.key?(:queue_based_scaling)
@scale_down_control = args[:scale_down_control] if args.key?(:scale_down_control) @scale_down_control = args[:scale_down_control] if args.key?(:scale_down_control)
@scale_in_control = args[:scale_in_control] if args.key?(:scale_in_control) @scale_in_control = args[:scale_in_control] if args.key?(:scale_in_control)
end end
@ -2460,74 +2454,6 @@ module Google
end end
end end
# Configuration parameters of autoscaling based on queuing system.
class AutoscalingPolicyQueueBasedScaling
include Google::Apis::Core::Hashable
# Scaling based on the average number of tasks in the queue per each active
# instance. The autoscaler keeps the average number of tasks per instance below
# this number, based on data collected in the last couple of minutes. The
# autoscaler will also take into account incoming tasks when calculating when to
# scale.
# Corresponds to the JSON property `acceptableBacklogPerInstance`
# @return [Float]
attr_accessor :acceptable_backlog_per_instance
# Configuration parameters for scaling based on Cloud Pub/Sub subscription queue.
# Corresponds to the JSON property `cloudPubSub`
# @return [Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub]
attr_accessor :cloud_pub_sub
# The scaling algorithm will also calculate throughput estimates on its own; if
# you explicitly provide this value, the autoscaler will take into account your
# value as well as automatic estimates when deciding how to scale.
# Corresponds to the JSON property `singleWorkerThroughputPerSec`
# @return [Float]
attr_accessor :single_worker_throughput_per_sec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@acceptable_backlog_per_instance = args[:acceptable_backlog_per_instance] if args.key?(:acceptable_backlog_per_instance)
@cloud_pub_sub = args[:cloud_pub_sub] if args.key?(:cloud_pub_sub)
@single_worker_throughput_per_sec = args[:single_worker_throughput_per_sec] if args.key?(:single_worker_throughput_per_sec)
end
end
# Configuration parameters for scaling based on Cloud Pub/Sub subscription queue.
class AutoscalingPolicyQueueBasedScalingCloudPubSub
include Google::Apis::Core::Hashable
# Cloud Pub/Sub subscription used for scaling. Provide the partial URL (starting
# with projects/) or just the subscription name. The subscription must be
# assigned to the topic specified in topicName and must be in a pull
# configuration. The subscription must belong to the same project as the
# Autoscaler.
# Corresponds to the JSON property `subscription`
# @return [String]
attr_accessor :subscription
# Cloud Pub/Sub topic used for scaling. Provide the partial URL or partial URL (
# starting with projects/) or just the topic name. The topic must belong to the
# same project as the Autoscaler resource.
# Corresponds to the JSON property `topic`
# @return [String]
attr_accessor :topic
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@subscription = args[:subscription] if args.key?(:subscription)
@topic = args[:topic] if args.key?(:topic)
end
end
# Configuration that allows for slower scale down so that even if Autoscaler # Configuration that allows for slower scale down so that even if Autoscaler
# recommends an abrupt scale down of a MIG, it will be throttled as specified by # recommends an abrupt scale down of a MIG, it will be throttled as specified by
# the parameters below. # the parameters below.
@ -5435,6 +5361,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# Specifies the disk interface to use for attaching this disk, which is either
# SCSI or NVME. The default is SCSI.
# Corresponds to the JSON property `interface`
# @return [String]
attr_accessor :interface
# [Output Only] Type of the resource. Always compute#disk for disks. # [Output Only] Type of the resource. Always compute#disk for disks.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
@ -5695,6 +5627,7 @@ module Google
@erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature) @erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@interface = args[:interface] if args.key?(:interface)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@ -8452,6 +8385,25 @@ module Google
end end
end end
#
class GetOwnerInstanceResponse
include Google::Apis::Core::Hashable
# Full instance resource URL.
# Corresponds to the JSON property `instance`
# @return [String]
attr_accessor :instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instance = args[:instance] if args.key?(:instance)
end
end
# #
class GlobalNetworkEndpointGroupsAttachEndpointsRequest class GlobalNetworkEndpointGroupsAttachEndpointsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -9329,6 +9281,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :health_status_aggregation_policy attr_accessor :health_status_aggregation_policy
# This field is deprecated. Use health_status_aggregation_policy instead.
# Policy for how the results from multiple health checks for the same endpoint # Policy for how the results from multiple health checks for the same endpoint
# are aggregated. # are aggregated.
# - NO_AGGREGATION. An EndpointHealth message is returned for each backend in # - NO_AGGREGATION. An EndpointHealth message is returned for each backend in
@ -12068,8 +12021,8 @@ module Google
alias_method :start_restricted?, :start_restricted alias_method :start_restricted?, :start_restricted
# [Output Only] The status of the instance. One of the following values: # [Output Only] The status of the instance. One of the following values:
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING,
# TERMINATED. # and TERMINATED.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -29165,7 +29118,7 @@ module Google
end end
# Represents a Cloud Router resource. # Represents a Cloud Router resource.
# For more information about Cloud Router, read the the Cloud Router overview. # For more information about Cloud Router, read the Cloud Router overview.
class Router class Router
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -29451,12 +29404,14 @@ module Google
attr_accessor :asn attr_accessor :asn
# The interval in seconds between BGP keepalive messages that are sent to the # The interval in seconds between BGP keepalive messages that are sent to the
# peer. Hold time is three times the interval at which keepalive messages are # peer.
# sent, and the hold time is the maximum number of seconds allowed to elapse # Not currently available publicly.
# between successive keepalive messages that BGP receives from a peer. BGP will # Hold time is three times the interval at which keepalive messages are sent,
# use the smaller of either the local hold time value or the peer's hold time # and the hold time is the maximum number of seconds allowed to elapse between
# value as the hold time for the BGP connection between the two peers. If set, # successive keepalive messages that BGP receives from a peer.
# this value must be between 1 and 120. The default is 20. # BGP will use the smaller of either the local hold time value or the peer's
# hold time value as the hold time for the BGP connection between the two peers.
# If set, this value must be between 1 and 120. The default is 20.
# Corresponds to the JSON property `keepaliveInterval` # Corresponds to the JSON property `keepaliveInterval`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :keepalive_interval attr_accessor :keepalive_interval
@ -29514,14 +29469,16 @@ module Google
attr_accessor :advertised_route_priority attr_accessor :advertised_route_priority
# BFD configuration for the BGP peering. # BFD configuration for the BGP peering.
# Not currently available publicly.
# Corresponds to the JSON property `bfd` # Corresponds to the JSON property `bfd`
# @return [Google::Apis::ComputeAlpha::RouterBgpPeerBfd] # @return [Google::Apis::ComputeAlpha::RouterBgpPeerBfd]
attr_accessor :bfd attr_accessor :bfd
# The status of the BGP peer connection. If set to FALSE, any active session # The status of the BGP peer connection.
# with the peer is terminated and all associated routing information is removed. # Not currently available publicly.
# If set to TRUE, the peer connection can be established with routing # If set to FALSE, any active session with the peer is terminated and all
# information. The default is TRUE. # associated routing information is removed. If set to TRUE, the peer connection
# can be established with routing information. The default is TRUE.
# Corresponds to the JSON property `enable` # Corresponds to the JSON property `enable`
# @return [String] # @return [String]
attr_accessor :enable attr_accessor :enable
@ -29598,8 +29555,10 @@ module Google
# The minimum interval, in milliseconds, between BFD control packets received # The minimum interval, in milliseconds, between BFD control packets received
# from the peer router. The actual value is negotiated between the two routers # from the peer router. The actual value is negotiated between the two routers
# and is equal to the greater of this value and the transmit interval of the # and is equal to the greater of this value and the transmit interval of the
# other router. If set, this value must be between 100 and 30000. The default is # other router.
# 300. # Not currently available publicly.
# If set, this value must be between 100 and 30000.
# The default is 300.
# Corresponds to the JSON property `minReceiveInterval` # Corresponds to the JSON property `minReceiveInterval`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_receive_interval attr_accessor :min_receive_interval
@ -29607,8 +29566,10 @@ module Google
# The minimum interval, in milliseconds, between BFD control packets transmitted # The minimum interval, in milliseconds, between BFD control packets transmitted
# to the peer router. The actual value is negotiated between the two routers and # to the peer router. The actual value is negotiated between the two routers and
# is equal to the greater of this value and the corresponding receive interval # is equal to the greater of this value and the corresponding receive interval
# of the other router. If set, this value must be between 100 and 30000. The # of the other router.
# default is 300. # Not currently available publicly.
# If set, this value must be between 100 and 30000.
# The default is 300.
# Corresponds to the JSON property `minTransmitInterval` # Corresponds to the JSON property `minTransmitInterval`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_transmit_interval attr_accessor :min_transmit_interval
@ -29623,7 +29584,9 @@ module Google
attr_accessor :mode attr_accessor :mode
# The number of consecutive BFD packets that must be missed before BFD declares # The number of consecutive BFD packets that must be missed before BFD declares
# that a peer is unavailable. If set, the value must be a value between 2 and 16. # that a peer is unavailable.
# Not currently available publicly.
# If set, the value must be a value between 2 and 16.
# The default is 3. # The default is 3.
# Corresponds to the JSON property `multiplier` # Corresponds to the JSON property `multiplier`
# @return [Fixnum] # @return [Fixnum]
@ -29641,11 +29604,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :packet_mode attr_accessor :packet_mode
# The BFD session initialization mode for this BGP peer. If set to ACTIVE, the # The BFD session initialization mode for this BGP peer.
# Cloud Router will initiate the BFD session for this BGP peer. If set to # Not currently available publicly.
# PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD # If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP
# session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP # peer. If set to PASSIVE, the Cloud Router will wait for the peer router to
# peer. The default is PASSIVE. # initiate the BFD session for this BGP peer. If set to DISABLED, BFD is
# disabled for this BGP peer. The default is PASSIVE.
# Corresponds to the JSON property `sessionInitializationMode` # Corresponds to the JSON property `sessionInitializationMode`
# @return [String] # @return [String]
attr_accessor :session_initialization_mode attr_accessor :session_initialization_mode
@ -30346,7 +30310,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a Cloud Router resource. # Represents a Cloud Router resource.
# For more information about Cloud Router, read the the Cloud Router overview. # For more information about Cloud Router, read the Cloud Router overview.
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::ComputeAlpha::Router] # @return [Google::Apis::ComputeAlpha::Router]
attr_accessor :resource attr_accessor :resource

View File

@ -310,18 +310,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AutoscalingPolicyQueueBasedScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicyQueueBasedScalingCloudPubSub
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicyScaleDownControl class AutoscalingPolicyScaleDownControl
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1012,6 +1000,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GetOwnerInstanceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GlobalNetworkEndpointGroupsAttachEndpointsRequest class GlobalNetworkEndpointGroupsAttachEndpointsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5953,8 +5947,6 @@ module Google
property :max_num_replicas, as: 'maxNumReplicas' property :max_num_replicas, as: 'maxNumReplicas'
property :min_num_replicas, as: 'minNumReplicas' property :min_num_replicas, as: 'minNumReplicas'
property :mode, as: 'mode' property :mode, as: 'mode'
property :queue_based_scaling, as: 'queueBasedScaling', class: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling::Representation
property :scale_down_control, as: 'scaleDownControl', class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl::Representation property :scale_down_control, as: 'scaleDownControl', class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl::Representation
property :scale_in_control, as: 'scaleInControl', class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleInControl, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleInControl::Representation property :scale_in_control, as: 'scaleInControl', class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleInControl, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleInControl::Representation
@ -5988,24 +5980,6 @@ module Google
end end
end end
class AutoscalingPolicyQueueBasedScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :acceptable_backlog_per_instance, as: 'acceptableBacklogPerInstance'
property :cloud_pub_sub, as: 'cloudPubSub', class: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub::Representation
property :single_worker_throughput_per_sec, as: 'singleWorkerThroughputPerSec'
end
end
class AutoscalingPolicyQueueBasedScalingCloudPubSub
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :subscription, as: 'subscription'
property :topic, as: 'topic'
end
end
class AutoscalingPolicyScaleDownControl class AutoscalingPolicyScaleDownControl
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -6667,6 +6641,7 @@ module Google
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
property :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :interface, as: 'interface'
property :kind, as: 'kind' property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint' property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels' hash :labels, as: 'labels'
@ -7339,6 +7314,13 @@ module Google
end end
end end
class GetOwnerInstanceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
end
end
class GlobalNetworkEndpointGroupsAttachEndpointsRequest class GlobalNetworkEndpointGroupsAttachEndpointsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -4443,6 +4443,43 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Find owner instance from given ip address
# @param [String] project
# Project ID for this request.
# @param [String] ip_address
# The ip_address could be external IPv4, or internal IPv4 within IPv6 form of
# virtual_network_id with internal IPv4. IPv6 is not supported yet.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse]
#
# @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_global_address_owner_instance(project, ip_address: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/addresses/getOwnerInstance', options)
command.response_representation = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse::Representation
command.response_class = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse
command.params['project'] = project unless project.nil?
command.query['ipAddress'] = ip_address unless ip_address.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
# Creates an address resource in the specified project by using the data # Creates an address resource in the specified project by using the data
# included in the request. # included in the request.
# @param [String] project # @param [String] project

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 = '20200501' REVISION = '20200511'
# 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

@ -4866,6 +4866,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# Specifies the disk interface to use for attaching this disk, which is either
# SCSI or NVME. The default is SCSI.
# Corresponds to the JSON property `interface`
# @return [String]
attr_accessor :interface
# [Output Only] Type of the resource. Always compute#disk for disks. # [Output Only] Type of the resource. Always compute#disk for disks.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
@ -5067,6 +5073,7 @@ module Google
@erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature) @erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@interface = args[:interface] if args.key?(:interface)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@ -8540,6 +8547,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :health_status_aggregation_policy attr_accessor :health_status_aggregation_policy
# This field is deprecated. Use health_status_aggregation_policy instead.
# Policy for how the results from multiple health checks for the same endpoint # Policy for how the results from multiple health checks for the same endpoint
# are aggregated. # are aggregated.
# - NO_AGGREGATION. An EndpointHealth message is returned for each backend in # - NO_AGGREGATION. An EndpointHealth message is returned for each backend in
@ -8548,7 +8556,7 @@ module Google
# HealthState of the entire health check service. If all backend's are healthy, # HealthState of the entire health check service. If all backend's are healthy,
# the HealthState of the health check service is HEALTHY. . # the HealthState of the health check service is HEALTHY. .
# Corresponds to the JSON property `healthStatusAggregationStrategy` # Corresponds to the JSON property `healthStatusAggregationStrategy`
# @return [Object] # @return [String]
attr_accessor :health_status_aggregation_strategy attr_accessor :health_status_aggregation_strategy
# [Output Only] The unique identifier for the resource. This identifier is # [Output Only] The unique identifier for the resource. This identifier is
@ -10693,6 +10701,11 @@ module Google
attr_accessor :can_ip_forward attr_accessor :can_ip_forward
alias_method :can_ip_forward?, :can_ip_forward alias_method :can_ip_forward?, :can_ip_forward
# A set of Confidential Instance options.
# Corresponds to the JSON property `confidentialInstanceConfig`
# @return [Google::Apis::ComputeBeta::ConfidentialInstanceConfig]
attr_accessor :confidential_instance_config
# [Output Only] The CPU platform used by this instance. # [Output Only] The CPU platform used by this instance.
# Corresponds to the JSON property `cpuPlatform` # Corresponds to the JSON property `cpuPlatform`
# @return [String] # @return [String]
@ -10907,8 +10920,8 @@ module Google
alias_method :start_restricted?, :start_restricted alias_method :start_restricted?, :start_restricted
# [Output Only] The status of the instance. One of the following values: # [Output Only] The status of the instance. One of the following values:
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING,
# TERMINATED. # and TERMINATED.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -10937,6 +10950,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
@confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
@cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection) @deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection)
@ -25778,7 +25792,7 @@ module Google
end end
# Represents a Cloud Router resource. # Represents a Cloud Router resource.
# For more information about Cloud Router, read the the Cloud Router overview. # For more information about Cloud Router, read the Cloud Router overview.
class Router class Router
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -26052,12 +26066,14 @@ module Google
attr_accessor :asn attr_accessor :asn
# The interval in seconds between BGP keepalive messages that are sent to the # The interval in seconds between BGP keepalive messages that are sent to the
# peer. Hold time is three times the interval at which keepalive messages are # peer.
# sent, and the hold time is the maximum number of seconds allowed to elapse # Not currently available publicly.
# between successive keepalive messages that BGP receives from a peer. BGP will # Hold time is three times the interval at which keepalive messages are sent,
# use the smaller of either the local hold time value or the peer's hold time # and the hold time is the maximum number of seconds allowed to elapse between
# value as the hold time for the BGP connection between the two peers. If set, # successive keepalive messages that BGP receives from a peer.
# this value must be between 1 and 120. The default is 20. # BGP will use the smaller of either the local hold time value or the peer's
# hold time value as the hold time for the BGP connection between the two peers.
# If set, this value must be between 1 and 120. The default is 20.
# Corresponds to the JSON property `keepaliveInterval` # Corresponds to the JSON property `keepaliveInterval`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :keepalive_interval attr_accessor :keepalive_interval
@ -26115,14 +26131,16 @@ module Google
attr_accessor :advertised_route_priority attr_accessor :advertised_route_priority
# BFD configuration for the BGP peering. # BFD configuration for the BGP peering.
# Not currently available publicly.
# Corresponds to the JSON property `bfd` # Corresponds to the JSON property `bfd`
# @return [Google::Apis::ComputeBeta::RouterBgpPeerBfd] # @return [Google::Apis::ComputeBeta::RouterBgpPeerBfd]
attr_accessor :bfd attr_accessor :bfd
# The status of the BGP peer connection. If set to FALSE, any active session # The status of the BGP peer connection.
# with the peer is terminated and all associated routing information is removed. # Not currently available publicly.
# If set to TRUE, the peer connection can be established with routing # If set to FALSE, any active session with the peer is terminated and all
# information. The default is TRUE. # associated routing information is removed. If set to TRUE, the peer connection
# can be established with routing information. The default is TRUE.
# Corresponds to the JSON property `enable` # Corresponds to the JSON property `enable`
# @return [String] # @return [String]
attr_accessor :enable attr_accessor :enable
@ -26199,8 +26217,10 @@ module Google
# The minimum interval, in milliseconds, between BFD control packets received # The minimum interval, in milliseconds, between BFD control packets received
# from the peer router. The actual value is negotiated between the two routers # from the peer router. The actual value is negotiated between the two routers
# and is equal to the greater of this value and the transmit interval of the # and is equal to the greater of this value and the transmit interval of the
# other router. If set, this value must be between 100 and 30000. The default is # other router.
# 300. # Not currently available publicly.
# If set, this value must be between 100 and 30000.
# The default is 300.
# Corresponds to the JSON property `minReceiveInterval` # Corresponds to the JSON property `minReceiveInterval`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_receive_interval attr_accessor :min_receive_interval
@ -26208,24 +26228,29 @@ module Google
# The minimum interval, in milliseconds, between BFD control packets transmitted # The minimum interval, in milliseconds, between BFD control packets transmitted
# to the peer router. The actual value is negotiated between the two routers and # to the peer router. The actual value is negotiated between the two routers and
# is equal to the greater of this value and the corresponding receive interval # is equal to the greater of this value and the corresponding receive interval
# of the other router. If set, this value must be between 100 and 30000. The # of the other router.
# default is 300. # Not currently available publicly.
# If set, this value must be between 100 and 30000.
# The default is 300.
# Corresponds to the JSON property `minTransmitInterval` # Corresponds to the JSON property `minTransmitInterval`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_transmit_interval attr_accessor :min_transmit_interval
# The number of consecutive BFD packets that must be missed before BFD declares # The number of consecutive BFD packets that must be missed before BFD declares
# that a peer is unavailable. If set, the value must be a value between 2 and 16. # that a peer is unavailable.
# Not currently available publicly.
# If set, the value must be a value between 2 and 16.
# The default is 3. # The default is 3.
# Corresponds to the JSON property `multiplier` # Corresponds to the JSON property `multiplier`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :multiplier attr_accessor :multiplier
# The BFD session initialization mode for this BGP peer. If set to ACTIVE, the # The BFD session initialization mode for this BGP peer.
# Cloud Router will initiate the BFD session for this BGP peer. If set to # Not currently available publicly.
# PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD # If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP
# session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP # peer. If set to PASSIVE, the Cloud Router will wait for the peer router to
# peer. The default is PASSIVE. # initiate the BFD session for this BGP peer. If set to DISABLED, BFD is
# disabled for this BGP peer. The default is PASSIVE.
# Corresponds to the JSON property `sessionInitializationMode` # Corresponds to the JSON property `sessionInitializationMode`
# @return [String] # @return [String]
attr_accessor :session_initialization_mode attr_accessor :session_initialization_mode
@ -26820,7 +26845,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a Cloud Router resource. # Represents a Cloud Router resource.
# For more information about Cloud Router, read the the Cloud Router overview. # For more information about Cloud Router, read the Cloud Router overview.
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::ComputeBeta::Router] # @return [Google::Apis::ComputeBeta::Router]
attr_accessor :resource attr_accessor :resource

View File

@ -6018,6 +6018,7 @@ module Google
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
property :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :interface, as: 'interface'
property :kind, as: 'kind' property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint' property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels' hash :labels, as: 'labels'
@ -7359,6 +7360,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :can_ip_forward, as: 'canIpForward' property :can_ip_forward, as: 'canIpForward'
property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::ComputeBeta::ConfidentialInstanceConfig, decorator: Google::Apis::ComputeBeta::ConfidentialInstanceConfig::Representation
property :cpu_platform, as: 'cpuPlatform' property :cpu_platform, as: 'cpuPlatform'
property :creation_timestamp, as: 'creationTimestamp' property :creation_timestamp, as: 'creationTimestamp'
property :deletion_protection, as: 'deletionProtection' property :deletion_protection, as: 'deletionProtection'

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 = '20200501' REVISION = '20200511'
# 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

@ -10078,8 +10078,8 @@ module Google
alias_method :start_restricted?, :start_restricted alias_method :start_restricted?, :start_restricted
# [Output Only] The status of the instance. One of the following values: # [Output Only] The status of the instance. One of the following values:
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING,
# TERMINATED. # and TERMINATED.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -23483,7 +23483,7 @@ module Google
end end
# Represents a Cloud Router resource. # Represents a Cloud Router resource.
# For more information about Cloud Router, read the the Cloud Router overview. # For more information about Cloud Router, read the Cloud Router overview.
class Router class Router
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -24441,7 +24441,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a Cloud Router resource. # Represents a Cloud Router resource.
# For more information about Cloud Router, read the the Cloud Router overview. # For more information about Cloud Router, read the Cloud Router overview.
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::ComputeV1::Router] # @return [Google::Apis::ComputeV1::Router]
attr_accessor :resource attr_accessor :resource

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2 module ContentV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200421' REVISION = '20200526'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -5740,6 +5740,11 @@ module Google
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>] # @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
attr_accessor :line_items attr_accessor :line_items
# Delivery details of the shipment if scheduling is needed.
# Corresponds to the JSON property `scheduledDeliveryDetails`
# @return [Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails]
attr_accessor :scheduled_delivery_details
# The status of the shipment. # The status of the shipment.
# Acceptable values are: # Acceptable values are:
# - "`delivered`" # - "`delivered`"
@ -5766,6 +5771,7 @@ module Google
@delivery_date = args[:delivery_date] if args.key?(:delivery_date) @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@line_items = args[:line_items] if args.key?(:line_items) @line_items = args[:line_items] if args.key?(:line_items)
@scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id) @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end end
@ -5804,6 +5810,31 @@ module Google
end end
end end
#
class OrderShipmentScheduledDeliveryDetails
include Google::Apis::Core::Hashable
# The phone number of the carrier fulfilling the delivery.
# Corresponds to the JSON property `carrierPhoneNumber`
# @return [String]
attr_accessor :carrier_phone_number
# The date a shipment is scheduled for delivery, in ISO 8601 format.
# Corresponds to the JSON property `scheduledDate`
# @return [String]
attr_accessor :scheduled_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@carrier_phone_number = args[:carrier_phone_number] if args.key?(:carrier_phone_number)
@scheduled_date = args[:scheduled_date] if args.key?(:scheduled_date)
end
end
# #
class OrderinvoicesCreateChargeInvoiceRequest class OrderinvoicesCreateChargeInvoiceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -10955,6 +10986,7 @@ module Google
# - "`new`" # - "`new`"
# - "`shipped`" # - "`shipped`"
# - "`undeliverable`" # - "`undeliverable`"
# - "`pending`"
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state

View File

@ -808,6 +808,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrderShipmentScheduledDeliveryDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateChargeInvoiceRequest class OrderinvoicesCreateChargeInvoiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3115,6 +3121,8 @@ module Google
property :id, as: 'id' property :id, as: 'id'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
property :scheduled_delivery_details, as: 'scheduledDeliveryDetails', class: Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails, decorator: Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails::Representation
property :status, as: 'status' property :status, as: 'status'
property :tracking_id, as: 'trackingId' property :tracking_id, as: 'trackingId'
end end
@ -3129,6 +3137,14 @@ module Google
end end
end end
class OrderShipmentScheduledDeliveryDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :carrier_phone_number, as: 'carrierPhoneNumber'
property :scheduled_date, as: 'scheduledDate'
end
end
class OrderinvoicesCreateChargeInvoiceRequest class OrderinvoicesCreateChargeInvoiceRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2519,7 +2519,11 @@ module Google
end end
# Returns and refunds a line item. Note that this method can only be called on # Returns and refunds a line item. Note that this method can only be called on
# fully shipped orders. # fully shipped orders. Please also note that the Orderreturns API is the
# preferred way to handle returns after you receive a return from a customer.
# You can use Orderreturns.list or Orderreturns.get to search for the return,
# and then use Orderreturns.processreturn to issue the refund. If the return
# cannot be found, then we recommend using this API to issue a refund.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
# account. # account.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2_1 module ContentV2_1
VERSION = 'V2_1' VERSION = 'V2_1'
REVISION = '20200512' REVISION = '20200526'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -4984,14 +4984,16 @@ module Google
class OrderPromotion class OrderPromotion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Items which this promotion may be applied to. If empty, there are no # Items that this promotion may be applied to. If empty, there are no
# restrictions on applicable items and quantity. # restrictions on applicable items and quantity. This field will also be empty
# for shipping promotions because shipping is not tied to any specific item.
# Corresponds to the JSON property `applicableItems` # Corresponds to the JSON property `applicableItems`
# @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>] # @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>]
attr_accessor :applicable_items attr_accessor :applicable_items
# Items which this promotion have been applied to. Do not provide for `orders. # Items that this promotion have been applied to. Do not provide for `orders.
# createtestorder`. # createtestorder`. This field will be empty for shipping promotions because
# shipping is not tied to any specific item.
# Corresponds to the JSON property `appliedItems` # Corresponds to the JSON property `appliedItems`
# @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>] # @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>]
attr_accessor :applied_items attr_accessor :applied_items
@ -5478,6 +5480,11 @@ module Google
# @return [Array<Google::Apis::ContentV2_1::OrderShipmentLineItemShipment>] # @return [Array<Google::Apis::ContentV2_1::OrderShipmentLineItemShipment>]
attr_accessor :line_items attr_accessor :line_items
# Delivery details of the shipment if scheduling is needed.
# Corresponds to the JSON property `scheduledDeliveryDetails`
# @return [Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails]
attr_accessor :scheduled_delivery_details
# The shipment group ID of the shipment. This is set in shiplineitems request. # The shipment group ID of the shipment. This is set in shiplineitems request.
# Corresponds to the JSON property `shipmentGroupId` # Corresponds to the JSON property `shipmentGroupId`
# @return [String] # @return [String]
@ -5509,6 +5516,7 @@ module Google
@delivery_date = args[:delivery_date] if args.key?(:delivery_date) @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@line_items = args[:line_items] if args.key?(:line_items) @line_items = args[:line_items] if args.key?(:line_items)
@scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id) @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id) @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@ -5548,6 +5556,31 @@ module Google
end end
end end
#
class OrderShipmentScheduledDeliveryDetails
include Google::Apis::Core::Hashable
# The phone number of the carrier fulfilling the delivery.
# Corresponds to the JSON property `carrierPhoneNumber`
# @return [String]
attr_accessor :carrier_phone_number
# The date a shipment is scheduled for delivery, in ISO 8601 format.
# Corresponds to the JSON property `scheduledDate`
# @return [String]
attr_accessor :scheduled_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@carrier_phone_number = args[:carrier_phone_number] if args.key?(:carrier_phone_number)
@scheduled_date = args[:scheduled_date] if args.key?(:scheduled_date)
end
end
# #
class OrderinvoicesCreateChargeInvoiceRequest class OrderinvoicesCreateChargeInvoiceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -8896,7 +8929,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :destination attr_accessor :destination
# # Destination approval status in targetCountry of the offer.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -10128,6 +10161,7 @@ module Google
# - "`new`" # - "`new`"
# - "`shipped`" # - "`shipped`"
# - "`undeliverable`" # - "`undeliverable`"
# - "`pending`"
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state

View File

@ -808,6 +808,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrderShipmentScheduledDeliveryDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateChargeInvoiceRequest class OrderinvoicesCreateChargeInvoiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3152,6 +3158,8 @@ module Google
property :id, as: 'id' property :id, as: 'id'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment::Representation collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment::Representation
property :scheduled_delivery_details, as: 'scheduledDeliveryDetails', class: Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails, decorator: Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails::Representation
property :shipment_group_id, as: 'shipmentGroupId' property :shipment_group_id, as: 'shipmentGroupId'
property :status, as: 'status' property :status, as: 'status'
property :tracking_id, as: 'trackingId' property :tracking_id, as: 'trackingId'
@ -3167,6 +3175,14 @@ module Google
end end
end end
class OrderShipmentScheduledDeliveryDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :carrier_phone_number, as: 'carrierPhoneNumber'
property :scheduled_date, as: 'scheduledDate'
end
end
class OrderinvoicesCreateChargeInvoiceRequest class OrderinvoicesCreateChargeInvoiceRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2504,7 +2504,11 @@ module Google
end end
# Returns and refunds a line item. Note that this method can only be called on # Returns and refunds a line item. Note that this method can only be called on
# fully shipped orders. # fully shipped orders. Please also note that the Orderreturns API is the
# preferred way to handle returns after you receive a return from a customer.
# You can use Orderreturns.list or Orderreturns.get to search for the return,
# and then use Orderreturns.processreturn to issue the refund. If the return
# cannot be found, then we recommend using this API to issue a refund.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
# account. # account.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/ # @see https://developers.google.com/games/services/
module GamesV1 module GamesV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200416' REVISION = '20200528'
# View and manage its own configuration data in your Google Drive # View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/ # @see https://developers.google.com/people/
module PeopleV1 module PeopleV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200601' REVISION = '20200604'
# See, edit, download, and permanently delete your contacts # See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'

View File

@ -1239,6 +1239,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :phonetic_middle_name attr_accessor :phonetic_middle_name
# The free form name value.
# Corresponds to the JSON property `unstructuredName`
# @return [String]
attr_accessor :unstructured_name
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1259,6 +1264,7 @@ module Google
@phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix) @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
@phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix) @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
@phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name) @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
@unstructured_name = args[:unstructured_name] if args.key?(:unstructured_name)
end end
end end

View File

@ -679,6 +679,7 @@ module Google
property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix' property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix'
property :phonetic_honorific_suffix, as: 'phoneticHonorificSuffix' property :phonetic_honorific_suffix, as: 'phoneticHonorificSuffix'
property :phonetic_middle_name, as: 'phoneticMiddleName' property :phonetic_middle_name, as: 'phoneticMiddleName'
property :unstructured_name, as: 'unstructuredName'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1 module PubsubV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200505' REVISION = '20200525'
# 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

@ -203,6 +203,20 @@ module Google
end end
end end
# Response for the DetachSubscription method.
# Reserved for future use.
class DetachSubscriptionResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A generic empty message that you can re-use to avoid defining duplicated # 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 # 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: # or the response type of an API method. For instance:
@ -401,7 +415,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The names of the subscriptions that match the request. # The names of subscriptions attached to the topic specified in the request.
# Corresponds to the JSON property `subscriptions` # Corresponds to the JSON property `subscriptions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :subscriptions attr_accessor :subscriptions

View File

@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DetachSubscriptionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -265,6 +271,12 @@ module Google
end end
end end
class DetachSubscriptionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Empty class Empty
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -502,6 +502,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Detaches a subscription from this topic. All messages retained in the
# subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
# will return FAILED_PRECONDITION. If the subscription is a push
# subscription, pushes to the endpoint will stop.
# @param [String] subscription
# Required. The subscription to detach.
# Format is `projects/`project`/subscriptions/`subscription``.
# @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::PubsubV1::DetachSubscriptionResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PubsubV1::DetachSubscriptionResponse]
#
# @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 detach_project_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+subscription}:detach', options)
command.response_representation = Google::Apis::PubsubV1::DetachSubscriptionResponse::Representation
command.response_class = Google::Apis::PubsubV1::DetachSubscriptionResponse
command.params['subscription'] = subscription unless subscription.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 configuration details of a subscription. # Gets the configuration details of a subscription.
# @param [String] subscription # @param [String] subscription
# Required. The name of the subscription to get. # Required. The name of the subscription to get.
@ -1264,7 +1298,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the names of the subscriptions on this topic. # Lists the names of the attached subscriptions on this topic.
# @param [String] topic # @param [String] topic
# Required. The name of the topic that subscriptions are attached to. # Required. The name of the topic that subscriptions are attached to.
# Format is `projects/`project`/topics/`topic``. # Format is `projects/`project`/topics/`topic``.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview # @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1 module ServiceconsumermanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200516' REVISION = '20200603'
# 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

@ -4071,6 +4071,103 @@ module Google
end end
end end
# Response message for ImportProducerQuotaPolicies
class V1Beta1ImportProducerQuotaPoliciesResponse
include Google::Apis::Core::Hashable
# The policies that were created from the imported data.
# Corresponds to the JSON property `policies`
# @return [Array<Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy>]
attr_accessor :policies
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policies = args[:policies] if args.key?(:policies)
end
end
# Quota policy created by service producer.
class V1Beta1ProducerQuotaPolicy
include Google::Apis::Core::Hashable
# The cloud resource container at which the quota policy is created. The
# format is `container_type`/`container_number`
# Corresponds to the JSON property `container`
# @return [String]
attr_accessor :container
# If this map is nonempty, then this policy applies only to specific values
# for dimensions defined in the limit unit.
# For example, an policy on a limit with the unit 1/`project`/`region`
# could contain an entry with the key "region" and the value "us-east-1";
# the policy is only applied to quota consumed in that region.
# This map has the following restrictions:
# * Keys that are not defined in the limit's unit are not valid keys.
# Any string appearing in `brackets` in the unit (besides `project` or
# `user`) is a defined key.
# * "project" is not a valid key; the project is already specified in
# the parent resource name.
# * "user" is not a valid key; the API does not support quota polcies
# that apply only to a specific user.
# * If "region" appears as a key, its value must be a valid Cloud region.
# * If "zone" appears as a key, its value must be a valid Cloud zone.
# * If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the
# map.
# Corresponds to the JSON property `dimensions`
# @return [Hash<String,String>]
attr_accessor :dimensions
# The name of the metric to which this policy applies.
# An example name would be:
# `compute.googleapis.com/cpus`
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The resource name of the producer policy.
# An example name would be:
# `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/
# 4a3f2c1d`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The quota policy value.
# Can be any nonnegative integer, or -1 (unlimited quota).
# Corresponds to the JSON property `policyValue`
# @return [Fixnum]
attr_accessor :policy_value
# The limit unit of the limit to which this policy applies.
# An example unit would be:
# `1/`project`/`region``
# Note that ``project`` and ``region`` are not placeholders in this example;
# the literal characters ``` and ``` occur in the string.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@container = args[:container] if args.key?(:container)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@metric = args[:metric] if args.key?(:metric)
@name = args[:name] if args.key?(:name)
@policy_value = args[:policy_value] if args.key?(:policy_value)
@unit = args[:unit] if args.key?(:unit)
end
end
# A quota override # A quota override
class V1Beta1QuotaOverride class V1Beta1QuotaOverride
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -490,6 +490,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class V1Beta1ImportProducerQuotaPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class V1Beta1ProducerQuotaPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class V1Beta1QuotaOverride class V1Beta1QuotaOverride
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1361,6 +1373,26 @@ module Google
end end
end end
class V1Beta1ImportProducerQuotaPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :policies, as: 'policies', class: Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy::Representation
end
end
class V1Beta1ProducerQuotaPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container, as: 'container'
hash :dimensions, as: 'dimensions'
property :metric, as: 'metric'
property :name, as: 'name'
property :policy_value, :numeric_string => true, as: 'policyValue'
property :unit, as: 'unit'
end
end
class V1Beta1QuotaOverride class V1Beta1QuotaOverride
# @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/service-consumer-management/docs/overview # @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1beta1 module ServiceconsumermanagementV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200516' REVISION = '20200603'
# 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

@ -3673,6 +3673,25 @@ module Google
end end
end end
# Response message for ImportProducerQuotaPolicies
class V1Beta1ImportProducerQuotaPoliciesResponse
include Google::Apis::Core::Hashable
# The policies that were created from the imported data.
# Corresponds to the JSON property `policies`
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy>]
attr_accessor :policies
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policies = args[:policies] if args.key?(:policies)
end
end
# Response message for ListConsumerQuotaMetrics. # Response message for ListConsumerQuotaMetrics.
class V1Beta1ListConsumerQuotaMetricsResponse class V1Beta1ListConsumerQuotaMetricsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3746,6 +3765,84 @@ module Google
end end
end end
# Quota policy created by service producer.
class V1Beta1ProducerQuotaPolicy
include Google::Apis::Core::Hashable
# The cloud resource container at which the quota policy is created. The
# format is `container_type`/`container_number`
# Corresponds to the JSON property `container`
# @return [String]
attr_accessor :container
# If this map is nonempty, then this policy applies only to specific values
# for dimensions defined in the limit unit.
# For example, an policy on a limit with the unit 1/`project`/`region`
# could contain an entry with the key "region" and the value "us-east-1";
# the policy is only applied to quota consumed in that region.
# This map has the following restrictions:
# * Keys that are not defined in the limit's unit are not valid keys.
# Any string appearing in `brackets` in the unit (besides `project` or
# `user`) is a defined key.
# * "project" is not a valid key; the project is already specified in
# the parent resource name.
# * "user" is not a valid key; the API does not support quota polcies
# that apply only to a specific user.
# * If "region" appears as a key, its value must be a valid Cloud region.
# * If "zone" appears as a key, its value must be a valid Cloud zone.
# * If any valid key other than "region" or "zone" appears in the map, then
# all valid keys other than "region" or "zone" must also appear in the
# map.
# Corresponds to the JSON property `dimensions`
# @return [Hash<String,String>]
attr_accessor :dimensions
# The name of the metric to which this policy applies.
# An example name would be:
# `compute.googleapis.com/cpus`
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The resource name of the producer policy.
# An example name would be:
# `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/
# 4a3f2c1d`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The quota policy value.
# Can be any nonnegative integer, or -1 (unlimited quota).
# Corresponds to the JSON property `policyValue`
# @return [Fixnum]
attr_accessor :policy_value
# The limit unit of the limit to which this policy applies.
# An example unit would be:
# `1/`project`/`region``
# Note that ``project`` and ``region`` are not placeholders in this example;
# the literal characters ``` and ``` occur in the string.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@container = args[:container] if args.key?(:container)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@metric = args[:metric] if args.key?(:metric)
@name = args[:name] if args.key?(:name)
@policy_value = args[:policy_value] if args.key?(:policy_value)
@unit = args[:unit] if args.key?(:unit)
end
end
# A quota bucket is a quota provisioning unit for a specific set of dimensions. # A quota bucket is a quota provisioning unit for a specific set of dimensions.
class V1Beta1QuotaBucket class V1Beta1QuotaBucket
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -394,6 +394,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class V1Beta1ImportProducerQuotaPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class V1Beta1ListConsumerQuotaMetricsResponse class V1Beta1ListConsumerQuotaMetricsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -412,6 +418,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class V1Beta1ProducerQuotaPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class V1Beta1QuotaBucket class V1Beta1QuotaBucket
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1165,6 +1177,14 @@ module Google
end end
end end
class V1Beta1ImportProducerQuotaPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :policies, as: 'policies', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy::Representation
end
end
class V1Beta1ListConsumerQuotaMetricsResponse class V1Beta1ListConsumerQuotaMetricsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1191,6 +1211,18 @@ module Google
end end
end end
class V1Beta1ProducerQuotaPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container, as: 'container'
hash :dimensions, as: 'dimensions'
property :metric, as: 'metric'
property :name, as: 'name'
property :policy_value, :numeric_string => true, as: 'policyValue'
property :unit, as: 'unit'
end
end
class V1Beta1QuotaBucket class V1Beta1QuotaBucket
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/ # @see https://cloud.google.com/service-usage/
module ServiceusageV1 module ServiceusageV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200516' REVISION = '20200603'
# 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

@ -22,6 +22,76 @@ module Google
module Apis module Apis
module ServiceusageV1 module ServiceusageV1
# Quota policy created by quota administrator.
class AdminQuotaPolicy
include Google::Apis::Core::Hashable
# The cloud resource container at which the quota policy is created. The
# format is `container_type`/`container_number`
# Corresponds to the JSON property `container`
# @return [String]
attr_accessor :container
# If this map is nonempty, then this policy applies only to specific values
# for dimensions defined in the limit unit.
# For example, an policy on a limit with the unit 1/`project`/`region`
# could contain an entry with the key "region" and the value "us-east-1";
# the policy is only applied to quota consumed in that region.
# This map has the following restrictions:
# * If "region" appears as a key, its value must be a valid Cloud region.
# * If "zone" appears as a key, its value must be a valid Cloud zone.
# * Keys other than "region" or "zone" are not valid.
# Corresponds to the JSON property `dimensions`
# @return [Hash<String,String>]
attr_accessor :dimensions
# The name of the metric to which this policy applies.
# An example name would be:
# `compute.googleapis.com/cpus`
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The resource name of the policy.
# This name is generated by the server when the policy is created.
# Example names would be:
# `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminPolicies/
# 4a3f2c1d`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The quota policy value.
# Can be any nonnegative integer, or -1 (unlimited quota).
# Corresponds to the JSON property `policyValue`
# @return [Fixnum]
attr_accessor :policy_value
# The limit unit of the limit to which this policy applies.
# An example unit would be:
# `1/`project`/`region``
# Note that ``project`` and ``region`` are not placeholders in this example;
# the literal characters ``` and ``` occur in the string.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@container = args[:container] if args.key?(:container)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@metric = args[:metric] if args.key?(:metric)
@name = args[:name] if args.key?(:name)
@policy_value = args[:policy_value] if args.key?(:policy_value)
@unit = args[:unit] if args.key?(:unit)
end
end
# Api is a light-weight descriptor for an API Interface. # Api is a light-weight descriptor for an API Interface.
# Interfaces are also described as "protocol buffer services" in some contexts, # Interfaces are also described as "protocol buffer services" in some contexts,
# such as by the "service" keyword in a .proto file, but they are different # such as by the "service" keyword in a .proto file, but they are different
@ -2534,6 +2604,25 @@ module Google
end end
end end
# Response message for ImportAdminQuotaPolicies
class ImportAdminQuotaPoliciesResponse
include Google::Apis::Core::Hashable
# The policies that were created from the imported data.
# Corresponds to the JSON property `policies`
# @return [Array<Google::Apis::ServiceusageV1::AdminQuotaPolicy>]
attr_accessor :policies
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policies = args[:policies] if args.key?(:policies)
end
end
# Response message for ImportConsumerOverrides # Response message for ImportConsumerOverrides
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module ServiceusageV1 module ServiceusageV1
class AdminQuotaPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Api class Api
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -286,6 +292,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ImportAdminQuotaPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -490,6 +502,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AdminQuotaPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container, as: 'container'
hash :dimensions, as: 'dimensions'
property :metric, as: 'metric'
property :name, as: 'name'
property :policy_value, :numeric_string => true, as: 'policyValue'
property :unit, as: 'unit'
end
end
class Api class Api
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -969,6 +993,14 @@ module Google
end end
end end
class ImportAdminQuotaPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :policies, as: 'policies', class: Google::Apis::ServiceusageV1::AdminQuotaPolicy, decorator: Google::Apis::ServiceusageV1::AdminQuotaPolicy::Representation
end
end
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/ # @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1 module ServiceusageV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200516' REVISION = '20200603'
# 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

@ -22,6 +22,76 @@ module Google
module Apis module Apis
module ServiceusageV1beta1 module ServiceusageV1beta1
# Quota policy created by quota administrator.
class AdminQuotaPolicy
include Google::Apis::Core::Hashable
# The cloud resource container at which the quota policy is created. The
# format is `container_type`/`container_number`
# Corresponds to the JSON property `container`
# @return [String]
attr_accessor :container
# If this map is nonempty, then this policy applies only to specific values
# for dimensions defined in the limit unit.
# For example, an policy on a limit with the unit 1/`project`/`region`
# could contain an entry with the key "region" and the value "us-east-1";
# the policy is only applied to quota consumed in that region.
# This map has the following restrictions:
# * If "region" appears as a key, its value must be a valid Cloud region.
# * If "zone" appears as a key, its value must be a valid Cloud zone.
# * Keys other than "region" or "zone" are not valid.
# Corresponds to the JSON property `dimensions`
# @return [Hash<String,String>]
attr_accessor :dimensions
# The name of the metric to which this policy applies.
# An example name would be:
# `compute.googleapis.com/cpus`
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The resource name of the policy.
# This name is generated by the server when the policy is created.
# Example names would be:
# `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminPolicies/
# 4a3f2c1d`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The quota policy value.
# Can be any nonnegative integer, or -1 (unlimited quota).
# Corresponds to the JSON property `policyValue`
# @return [Fixnum]
attr_accessor :policy_value
# The limit unit of the limit to which this policy applies.
# An example unit would be:
# `1/`project`/`region``
# Note that ``project`` and ``region`` are not placeholders in this example;
# the literal characters ``` and ``` occur in the string.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@container = args[:container] if args.key?(:container)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@metric = args[:metric] if args.key?(:metric)
@name = args[:name] if args.key?(:name)
@policy_value = args[:policy_value] if args.key?(:policy_value)
@unit = args[:unit] if args.key?(:unit)
end
end
# Api is a light-weight descriptor for an API Interface. # Api is a light-weight descriptor for an API Interface.
# Interfaces are also described as "protocol buffer services" in some contexts, # Interfaces are also described as "protocol buffer services" in some contexts,
# such as by the "service" keyword in a .proto file, but they are different # such as by the "service" keyword in a .proto file, but they are different
@ -2603,6 +2673,25 @@ module Google
end end
end end
# Response message for ImportAdminQuotaPolicies
class ImportAdminQuotaPoliciesResponse
include Google::Apis::Core::Hashable
# The policies that were created from the imported data.
# Corresponds to the JSON property `policies`
# @return [Array<Google::Apis::ServiceusageV1beta1::AdminQuotaPolicy>]
attr_accessor :policies
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policies = args[:policies] if args.key?(:policies)
end
end
# Response message for ImportConsumerOverrides # Response message for ImportConsumerOverrides
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module ServiceusageV1beta1 module ServiceusageV1beta1
class AdminQuotaPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Api class Api
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -286,6 +292,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ImportAdminQuotaPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -526,6 +538,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AdminQuotaPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container, as: 'container'
hash :dimensions, as: 'dimensions'
property :metric, as: 'metric'
property :name, as: 'name'
property :policy_value, :numeric_string => true, as: 'policyValue'
property :unit, as: 'unit'
end
end
class Api class Api
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1014,6 +1038,14 @@ module Google
end end
end end
class ImportAdminQuotaPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :policies, as: 'policies', class: Google::Apis::ServiceusageV1beta1::AdminQuotaPolicy, decorator: Google::Apis::ServiceusageV1beta1::AdminQuotaPolicy::Representation
end
end
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/ # @see https://developers.google.com/cloud-test-lab/
module TestingV1 module TestingV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200508' REVISION = '20200603'
# 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

@ -1004,7 +1004,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A path to a file in Google Cloud Storage. # A path to a file in Google Cloud Storage.
# Example: gs://build-app-1414623860166/app-debug-unaligned.apk # Example: gs://build-app-1414623860166/app%40debug-unaligned.apk
# These paths are expected to be url encoded (percent encoding)
# Corresponds to the JSON property `gcsPath` # Corresponds to the JSON property `gcsPath`
# @return [String] # @return [String]
attr_accessor :gcs_path attr_accessor :gcs_path