Autogenerated update (2020-02-16)

Update:
- cloudtasks_v2beta2
- compute_alpha
- compute_beta
- compute_v1
- gmail_v1
- tasks_v1
This commit is contained in:
Google APIs 2020-02-16 00:37:39 +00:00
parent 446df35695
commit f6c192fe35
15 changed files with 1858 additions and 49 deletions

View File

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

View File

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

View File

@ -9849,7 +9849,7 @@ module Google
# @return [Google::Apis::ComputeAlpha::Int64RangeMatch]
attr_accessor :range_match
# The value of the header must match the regualar expression specified in
# The value of the header must match the regular expression specified in
# regexMatch. For regular expression grammar, please see: en.cppreference.com/w/
# cpp/regex/ecmascript
# For matching against a port specified in the HTTP request, use a headerMatch
@ -9857,6 +9857,8 @@ module Google
# RFC2616 Host header's port specifier.
# Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or
# rangeMatch must be set.
# Note that regexMatch only applies to Loadbalancers that have their
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -10180,6 +10182,8 @@ module Google
# regular expression specified by regexMatch. For the regular expression grammar,
# please see en.cppreference.com/w/cpp/regex/ecmascript
# Only one of presentMatch, exactMatch or regexMatch must be set.
# Note that regexMatch only applies when the loadBalancingScheme is set to
# INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -10557,6 +10561,8 @@ module Google
# parameters and anchor supplied with the original URL. For regular expression
# grammar please see en.cppreference.com/w/cpp/regex/ecmascript
# Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
# Note that regexMatch only applies to Loadbalancers that have their
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -11419,6 +11425,12 @@ module Google
# @return [Fixnum]
attr_accessor :preserved_state_size_gb
# The private IPv6 google access type for the VM. If not specified, use
# INHERIT_FROM_SUBNETWORK as default.
# Corresponds to the JSON property `privateIpv6GoogleAccess`
# @return [String]
attr_accessor :private_ipv6_google_access
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeAlpha::ReservationAffinity]
@ -11509,6 +11521,11 @@ module Google
# @return [Google::Apis::ComputeAlpha::Tags]
attr_accessor :tags
# Upcoming Maintenance notification information.
# Corresponds to the JSON property `upcomingMaintenance`
# @return [Google::Apis::ComputeAlpha::UpcomingMaintenance]
attr_accessor :upcoming_maintenance
# [Output Only] URL of the zone where the instance resides. You must specify
# this field as part of the HTTP request URL. It is not settable as a field in
# the request body.
@ -11546,6 +11563,7 @@ module Google
@network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
@post_key_revocation_action_type = args[:post_key_revocation_action_type] if args.key?(:post_key_revocation_action_type)
@preserved_state_size_gb = args[:preserved_state_size_gb] if args.key?(:preserved_state_size_gb)
@private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access)
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
@scheduling = args[:scheduling] if args.key?(:scheduling)
@ -11562,6 +11580,7 @@ module Google
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@tags = args[:tags] if args.key?(:tags)
@upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance)
@zone = args[:zone] if args.key?(:zone)
end
end
@ -14170,6 +14189,12 @@ module Google
# @return [String]
attr_accessor :post_key_revocation_action_type
# The private IPv6 google access type for the VM. If not specified, use
# INHERIT_FROM_SUBNETWORK as default.
# Corresponds to the JSON property `privateIpv6GoogleAccess`
# @return [String]
attr_accessor :private_ipv6_google_access
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeAlpha::ReservationAffinity]
@ -14226,6 +14251,7 @@ module Google
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
@post_key_revocation_action_type = args[:post_key_revocation_action_type] if args.key?(:post_key_revocation_action_type)
@private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access)
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
@scheduling = args[:scheduling] if args.key?(:scheduling)
@ -23567,8 +23593,7 @@ module Google
# The list of HTTP route rules. Use this list instead of pathRules when advanced
# route matching and routing actions are desired. routeRules are evaluated in
# order of priority, from the lowest to highest number.
# Within a given pathMatcher, only one of pathRules or routeRules must be set.
# routeRules are not supported in UrlMaps intended for External Load balancers.
# Within a given pathMatcher, you can set only one of pathRules or routeRules.
# Corresponds to the JSON property `routeRules`
# @return [Array<Google::Apis::ComputeAlpha::HttpRouteRule>]
attr_accessor :route_rules
@ -36296,6 +36321,39 @@ module Google
end
end
# Upcoming Maintenance notification information.
class UpcomingMaintenance
include Google::Apis::Core::Hashable
# [Output Only] The date when the maintenance will take place. This value is in
# RFC3339 text format.
# Corresponds to the JSON property `date`
# @return [String]
attr_accessor :date
# [Output Only] The time when the maintenance will take place. This value is in
# RFC3339 text format.
# Corresponds to the JSON property `time`
# @return [String]
attr_accessor :time
# Defines the type of maintenance.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@date = args[:date] if args.key?(:date)
@time = args[:time] if args.key?(:time)
@type = args[:type] if args.key?(:type)
end
end
# Represents a URL Map resource.
# Google Compute Engine has two URL Map resources:
# * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/

View File

@ -4888,6 +4888,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpcomingMaintenance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -7898,6 +7904,7 @@ module Google
property :post_key_revocation_action_type, as: 'postKeyRevocationActionType'
property :preserved_state_size_gb, :numeric_string => true, as: 'preservedStateSizeGb'
property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation
collection :resource_policies, as: 'resourcePolicies'
@ -7923,6 +7930,8 @@ module Google
property :status_message, as: 'statusMessage'
property :tags, as: 'tags', class: Google::Apis::ComputeAlpha::Tags, decorator: Google::Apis::ComputeAlpha::Tags::Representation
property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::ComputeAlpha::UpcomingMaintenance, decorator: Google::Apis::ComputeAlpha::UpcomingMaintenance::Representation
property :zone, as: 'zone'
end
end
@ -8618,6 +8627,7 @@ module Google
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation
property :post_key_revocation_action_type, as: 'postKeyRevocationActionType'
property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation
collection :resource_policies, as: 'resourcePolicies'
@ -14273,6 +14283,15 @@ module Google
end
end
class UpcomingMaintenance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date, as: 'date'
property :time, as: 'time'
property :type, as: 'type'
end
end
class UrlMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -3194,6 +3194,11 @@ module Google
class BackendServiceGroupHealth
include Google::Apis::Core::Hashable
# Metadata defined as annotations on the network endpoint group.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# Health state of the backend instances or endpoints in requested instance or
# network endpoint group, determined based on configured health checks.
# Corresponds to the JSON property `healthStatus`
@ -3212,6 +3217,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@health_status = args[:health_status] if args.key?(:health_status)
@kind = args[:kind] if args.key?(:kind)
end
@ -8204,6 +8210,12 @@ module Google
# @return [String]
attr_accessor :kind
# Configuration of logging on a health check. If logging is enabled, logs will
# be exported to Stackdriver.
# Corresponds to the JSON property `logConfig`
# @return [Google::Apis::ComputeBeta::HealthCheckLogConfig]
attr_accessor :log_config
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
@ -8270,6 +8282,7 @@ module Google
@https_health_check = args[:https_health_check] if args.key?(:https_health_check)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@log_config = args[:log_config] if args.key?(:log_config)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@ -8398,6 +8411,28 @@ module Google
end
end
# Configuration of logging on a health check. If logging is enabled, logs will
# be exported to Stackdriver.
class HealthCheckLogConfig
include Google::Apis::Core::Hashable
# Indicates whether or not to export logs. This is false by default, which means
# no health check logging will be done.
# Corresponds to the JSON property `enable`
# @return [Boolean]
attr_accessor :enable
alias_method :enable?, :enable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable = args[:enable] if args.key?(:enable)
end
end
# A full or valid partial URL to a health check. For example, the following are
# valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project-id/global/
@ -8422,6 +8457,258 @@ module Google
end
end
# A HealthCheckService defines a set of backends on which to perform periodic
# health checks and an endpoint to which to send notification of changes in the
# health status of the backends.
class HealthCheckService
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a HealthCheckService. An up-to-date fingerprint must be provided in
# order to patch/update the HealthCheckService; Otherwise, the request will fail
# with error 412 conditionNotMet. To see the latest fingerprint, make a get()
# request to retrieve the HealthCheckService.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :fingerprint
# List of URLs to the HealthCheck resources. Must have at least one HealthCheck,
# and not more than 10. HealthCheck resources must have portSpecification=
# USE_SERVING_PORT. For regional HealthCheckService, the HealthCheck must be
# regional and in the same region. For global HealthCheckService, HealthCheck
# must be global. Mix of regional and global HealthChecks is not supported.
# Multiple regional HealthChecks must belong to the same region. Regional
# HealthChecks</code? must belong to the same region as zones of NEGs.
# Corresponds to the JSON property `healthChecks`
# @return [Array<String>]
attr_accessor :health_checks
# Optional. Policy for how the results from multiple health checks for the same
# endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified.
# - NO_AGGREGATION. An EndpointHealth message is returned for each backend in
# the health check service.
# - AND. If any backend's health check reports UNHEALTHY, then UNHEALTHY is the
# HealthState of the entire health check service. If all backend's are healthy,
# the HealthState of the health check service is HEALTHY. .
# Corresponds to the JSON property `healthStatusAggregationPolicy`
# @return [String]
attr_accessor :health_status_aggregation_policy
# Policy for how the results from multiple health checks for the same endpoint
# are aggregated.
# - NO_AGGREGATION. An EndpointHealth message is returned for each backend in
# the health check service.
# - AND. If any backend's health check reports UNHEALTHY, then UNHEALTHY is the
# HealthState of the entire health check service. If all backend's are healthy,
# the HealthState of the health check service is HEALTHY. .
# Corresponds to the JSON property `healthStatusAggregationStrategy`
# @return [Object]
attr_accessor :health_status_aggregation_strategy
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output only] Type of the resource. Always compute#healthCheckServicefor
# health check services.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. The name must be 1-63 characters long, and comply with
# RFC1035. Specifically, the name must be 1-63 characters long and match the
# regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
# character must be a lowercase letter, and all following characters must be a
# dash, lowercase letter, or digit, except the last character, which cannot be a
# dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# List of URLs to the NetworkEndpointGroup resources. Must not have more than
# 100. For regional HealthCheckService, NEGs must be in zones in the region of
# the HealthCheckService.
# Corresponds to the JSON property `networkEndpointGroups`
# @return [Array<String>]
attr_accessor :network_endpoint_groups
# List of URLs to the NotificationEndpoint resources. Must not have more than 10.
# A list of endpoints for receiving notifications of change in health status.
# For regional HealthCheckService, NotificationEndpoint must be regional and in
# the same region. For global HealthCheckService, NotificationEndpoint must be
# global.
# Corresponds to the JSON property `notificationEndpoints`
# @return [Array<String>]
attr_accessor :notification_endpoints
# [Output Only] URL of the region where the health check service resides. This
# field is not applicable to global health check services. You must specify this
# field as part of the HTTP request URL. It is not settable as a field in the
# request body.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@health_checks = args[:health_checks] if args.key?(:health_checks)
@health_status_aggregation_policy = args[:health_status_aggregation_policy] if args.key?(:health_status_aggregation_policy)
@health_status_aggregation_strategy = args[:health_status_aggregation_strategy] if args.key?(:health_status_aggregation_strategy)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@network_endpoint_groups = args[:network_endpoint_groups] if args.key?(:network_endpoint_groups)
@notification_endpoints = args[:notification_endpoints] if args.key?(:notification_endpoints)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
#
class HealthCheckServicesList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of HealthCheckService resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::HealthCheckService>]
attr_accessor :items
# [Output Only] Type of the resource. Always compute#healthCheckServicesList for
# lists of HealthCheckServices.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeBeta::HealthCheckServicesList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeBeta::HealthCheckServicesList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
#
class HealthChecksAggregatedList
include Google::Apis::Core::Hashable
@ -8634,6 +8921,11 @@ module Google
class HealthStatus
include Google::Apis::Core::Hashable
# Metadata defined as annotations for network endpoint.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# Health state of the instance.
# Corresponds to the JSON property `healthState`
# @return [String]
@ -8660,6 +8952,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@health_state = args[:health_state] if args.key?(:health_state)
@instance = args[:instance] if args.key?(:instance)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ -8929,7 +9222,7 @@ module Google
# @return [Google::Apis::ComputeBeta::Int64RangeMatch]
attr_accessor :range_match
# The value of the header must match the regualar expression specified in
# The value of the header must match the regular expression specified in
# regexMatch. For regular expression grammar, please see: en.cppreference.com/w/
# cpp/regex/ecmascript
# For matching against a port specified in the HTTP request, use a headerMatch
@ -8937,6 +9230,8 @@ module Google
# RFC2616 Host header's port specifier.
# Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or
# rangeMatch must be set.
# Note that regexMatch only applies to Loadbalancers that have their
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -9254,6 +9549,8 @@ module Google
# regular expression specified by regexMatch. For the regular expression grammar,
# please see en.cppreference.com/w/cpp/regex/ecmascript
# Only one of presentMatch, exactMatch or regexMatch must be set.
# Note that regexMatch only applies when the loadBalancingScheme is set to
# INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -9631,6 +9928,8 @@ module Google
# parameters and anchor supplied with the original URL. For regular expression
# grammar please see en.cppreference.com/w/cpp/regex/ecmascript
# Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
# Note that regexMatch only applies to Loadbalancers that have their
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -11629,6 +11928,12 @@ module Google
class InstanceGroupManagerStatus
include Google::Apis::Core::Hashable
# [Output Only] The URL of the Autoscaler that targets this instance group
# manager.
# Corresponds to the JSON property `autoscaler`
# @return [String]
attr_accessor :autoscaler
# [Output Only] A bit indicating whether the managed instance group is in a
# stable state. A stable state means that: none of the instances in the managed
# instance group is currently undergoing any type of change (for example,
@ -11657,6 +11962,7 @@ module Google
# Update properties of this object
def update!(**args)
@autoscaler = args[:autoscaler] if args.key?(:autoscaler)
@is_stable = args[:is_stable] if args.key?(:is_stable)
@stateful = args[:stateful] if args.key?(:stateful)
@version_target = args[:version_target] if args.key?(:version_target)
@ -16911,6 +17217,11 @@ module Google
class NetworkEndpoint
include Google::Apis::Core::Hashable
# Metadata defined as annotations on the network endpoint.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# Optional fully qualified domain name of network endpoint. This can only be
# specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
# Corresponds to the JSON property `fqdn`
@ -16947,6 +17258,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@fqdn = args[:fqdn] if args.key?(:fqdn)
@instance = args[:instance] if args.key?(:instance)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ -16960,6 +17272,11 @@ module Google
class NetworkEndpointGroup
include Google::Apis::Core::Hashable
# Metadata defined as annotations on the network endpoint group.
# Corresponds to the JSON property `annotations`
# @return [Hash<String,String>]
attr_accessor :annotations
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -17043,6 +17360,7 @@ module Google
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@default_port = args[:default_port] if args.key?(:default_port)
@description = args[:description] if args.key?(:description)
@ -19615,6 +19933,251 @@ module Google
end
end
# A notification endpoint resource defines an endpoint to receive notifications
# when there are status changes detected by the associated health check service.
class NotificationEndpoint
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Represents a gRPC setting that describes one gRPC notification endpoint and
# the retry duration attempting to send notification to this endpoint.
# Corresponds to the JSON property `grpcSettings`
# @return [Google::Apis::ComputeBeta::NotificationEndpointGrpcSettings]
attr_accessor :grpc_settings
# [Output Only] A unique identifier for this resource type. The server generates
# this identifier.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#notificationEndpoint for
# notification endpoints.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
# z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] URL of the region where the notification endpoint resides. This
# field applies only to the regional resource. You must specify this field as
# part of the HTTP request URL. It is not settable as a field in the request
# body.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@grpc_settings = args[:grpc_settings] if args.key?(:grpc_settings)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# Represents a gRPC setting that describes one gRPC notification endpoint and
# the retry duration attempting to send notification to this endpoint.
class NotificationEndpointGrpcSettings
include Google::Apis::Core::Hashable
# Optional. If specified, this field is used to set the authority header by the
# sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.
# 3
# Corresponds to the JSON property `authority`
# @return [String]
attr_accessor :authority
# Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS
# name.
# Corresponds to the JSON property `endpoint`
# @return [String]
attr_accessor :endpoint
# Optional. If specified, this field is used to populate the "name" field in
# gRPC requests.
# Corresponds to the JSON property `payloadName`
# @return [String]
attr_accessor :payload_name
# A Duration represents a fixed-length span of time represented as a count of
# seconds and fractions of seconds at nanosecond resolution. It is independent
# of any calendar and concepts like "day" or "month". Range is approximately 10,
# 000 years.
# Corresponds to the JSON property `resendInterval`
# @return [Google::Apis::ComputeBeta::Duration]
attr_accessor :resend_interval
# How much time (in seconds) is spent attempting notification retries until a
# successful response is received. Default is 30s. Limit is 20m (1200s). Must be
# a positive number.
# Corresponds to the JSON property `retryDurationSec`
# @return [Fixnum]
attr_accessor :retry_duration_sec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@authority = args[:authority] if args.key?(:authority)
@endpoint = args[:endpoint] if args.key?(:endpoint)
@payload_name = args[:payload_name] if args.key?(:payload_name)
@resend_interval = args[:resend_interval] if args.key?(:resend_interval)
@retry_duration_sec = args[:retry_duration_sec] if args.key?(:retry_duration_sec)
end
end
#
class NotificationEndpointList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of NotificationEndpoint resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::NotificationEndpoint>]
attr_accessor :items
# [Output Only] Type of the resource. Always compute#notificationEndpoint for
# notification endpoints.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeBeta::NotificationEndpointList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeBeta::NotificationEndpointList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
# Represents an Operation resource.
# Google Compute Engine has three Operation resources:
# * [Global](/compute/docs/reference/rest/latest/globalOperations) * [Regional](/
@ -21088,8 +21651,7 @@ module Google
# The list of HTTP route rules. Use this list instead of pathRules when advanced
# route matching and routing actions are desired. routeRules are evaluated in
# order of priority, from the lowest to highest number.
# Within a given pathMatcher, only one of pathRules or routeRules must be set.
# routeRules are not supported in UrlMaps intended for External Load balancers.
# Within a given pathMatcher, you can set only one of pathRules or routeRules.
# Corresponds to the JSON property `routeRules`
# @return [Array<Google::Apis::ComputeBeta::HttpRouteRule>]
attr_accessor :route_rules

View File

@ -1030,12 +1030,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckServicesList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class HealthChecksAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2548,6 +2578,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NotificationEndpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationEndpointGrpcSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationEndpointList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5456,6 +5516,7 @@ module Google
class BackendServiceGroupHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
collection :health_status, as: 'healthStatus', class: Google::Apis::ComputeBeta::HealthStatus, decorator: Google::Apis::ComputeBeta::HealthStatus::Representation
property :kind, as: 'kind'
@ -6624,6 +6685,8 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::HealthCheckLogConfig, decorator: Google::Apis::ComputeBeta::HealthCheckLogConfig::Representation
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
@ -6669,6 +6732,13 @@ module Google
end
end
class HealthCheckLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable, as: 'enable'
end
end
class HealthCheckReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6676,6 +6746,57 @@ module Google
end
end
class HealthCheckService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
collection :health_checks, as: 'healthChecks'
property :health_status_aggregation_policy, as: 'healthStatusAggregationPolicy'
property :health_status_aggregation_strategy, as: 'healthStatusAggregationStrategy'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :network_endpoint_groups, as: 'networkEndpointGroups'
collection :notification_endpoints, as: 'notificationEndpoints'
property :region, as: 'region'
property :self_link, as: 'selfLink'
end
end
class HealthCheckServicesList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::HealthCheckService, decorator: Google::Apis::ComputeBeta::HealthCheckService::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::HealthCheckServicesList::Warning, decorator: Google::Apis::ComputeBeta::HealthCheckServicesList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::HealthCheckServicesList::Warning::Datum, decorator: Google::Apis::ComputeBeta::HealthCheckServicesList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class HealthChecksAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6739,6 +6860,7 @@ module Google
class HealthStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :health_state, as: 'healthState'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
@ -7412,6 +7534,7 @@ module Google
class InstanceGroupManagerStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaler, as: 'autoscaler'
property :is_stable, as: 'isStable'
property :stateful, as: 'stateful', class: Google::Apis::ComputeBeta::InstanceGroupManagerStatusStateful, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerStatusStateful::Representation
@ -8783,6 +8906,7 @@ module Google
class NetworkEndpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :fqdn, as: 'fqdn'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
@ -8793,6 +8917,7 @@ module Google
class NetworkEndpointGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :annotations, as: 'annotations'
property :creation_timestamp, as: 'creationTimestamp'
property :default_port, as: 'defaultPort'
property :description, as: 'description'
@ -9492,6 +9617,65 @@ module Google
end
end
class NotificationEndpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :grpc_settings, as: 'grpcSettings', class: Google::Apis::ComputeBeta::NotificationEndpointGrpcSettings, decorator: Google::Apis::ComputeBeta::NotificationEndpointGrpcSettings::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
end
end
class NotificationEndpointGrpcSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :authority, as: 'authority'
property :endpoint, as: 'endpoint'
property :payload_name, as: 'payloadName'
property :resend_interval, as: 'resendInterval', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
property :retry_duration_sec, as: 'retryDurationSec'
end
end
class NotificationEndpointList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::NotificationEndpoint, decorator: Google::Apis::ComputeBeta::NotificationEndpoint::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::NotificationEndpointList::Warning, decorator: Google::Apis::ComputeBeta::NotificationEndpointList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::NotificationEndpointList::Warning::Datum, decorator: Google::Apis::ComputeBeta::NotificationEndpointList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -8246,7 +8246,7 @@ module Google
# @return [Google::Apis::ComputeV1::Int64RangeMatch]
attr_accessor :range_match
# The value of the header must match the regualar expression specified in
# The value of the header must match the regular expression specified in
# regexMatch. For regular expression grammar, please see: en.cppreference.com/w/
# cpp/regex/ecmascript
# For matching against a port specified in the HTTP request, use a headerMatch
@ -8254,6 +8254,8 @@ module Google
# RFC2616 Host header's port specifier.
# Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or
# rangeMatch must be set.
# Note that regexMatch only applies to Loadbalancers that have their
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -8571,6 +8573,8 @@ module Google
# regular expression specified by regexMatch. For the regular expression grammar,
# please see en.cppreference.com/w/cpp/regex/ecmascript
# Only one of presentMatch, exactMatch or regexMatch must be set.
# Note that regexMatch only applies when the loadBalancingScheme is set to
# INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -8948,6 +8952,8 @@ module Google
# parameters and anchor supplied with the original URL. For regular expression
# grammar please see en.cppreference.com/w/cpp/regex/ecmascript
# Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
# Note that regexMatch only applies to Loadbalancers that have their
# loadBalancingScheme set to INTERNAL_SELF_MANAGED.
# Corresponds to the JSON property `regexMatch`
# @return [String]
attr_accessor :regex_match
@ -10987,6 +10993,53 @@ module Google
end
end
# InstanceGroupManagers.applyUpdatesToInstances
class InstanceGroupManagersApplyUpdatesRequest
include Google::Apis::Core::Hashable
# The list of URLs of one or more instances for which you want to apply updates.
# Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[
# INSTANCE_NAME].
# Corresponds to the JSON property `instances`
# @return [Array<String>]
attr_accessor :instances
# The minimal action that you want to perform on each instance during the update:
#
# - REPLACE: At minimum, delete the instance and create it again.
# - RESTART: Stop the instance and start it again.
# - REFRESH: Do not stop the instance.
# - NONE: Do not disrupt the instance at all. By default, the minimum action is
# NONE. If your update requires a more disruptive action than you set with this
# flag, the necessary action is performed to execute the update.
# Corresponds to the JSON property `minimalAction`
# @return [String]
attr_accessor :minimal_action
# The most disruptive action that you want to perform on each instance during
# the update:
# - REPLACE: Delete the instance and create it again.
# - RESTART: Stop the instance and start it again.
# - REFRESH: Do not stop the instance.
# - NONE: Do not disrupt the instance at all. By default, the most disruptive
# allowed action is REPLACE. If your update requires a more disruptive action
# than you set with this flag, the update request will fail.
# Corresponds to the JSON property `mostDisruptiveAllowedAction`
# @return [String]
attr_accessor :most_disruptive_allowed_action
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
@minimal_action = args[:minimal_action] if args.key?(:minimal_action)
@most_disruptive_allowed_action = args[:most_disruptive_allowed_action] if args.key?(:most_disruptive_allowed_action)
end
end
# InstanceGroupManagers.createInstances
class InstanceGroupManagersCreateInstancesRequest
include Google::Apis::Core::Hashable
@ -19367,8 +19420,7 @@ module Google
# The list of HTTP route rules. Use this list instead of pathRules when advanced
# route matching and routing actions are desired. routeRules are evaluated in
# order of priority, from the lowest to highest number.
# Within a given pathMatcher, only one of pathRules or routeRules must be set.
# routeRules are not supported in UrlMaps intended for External Load balancers.
# Within a given pathMatcher, you can set only one of pathRules or routeRules.
# Corresponds to the JSON property `routeRules`
# @return [Array<Google::Apis::ComputeV1::HttpRouteRule>]
attr_accessor :route_rules
@ -20506,6 +20558,53 @@ module Google
end
end
# InstanceGroupManagers.applyUpdatesToInstances
class RegionInstanceGroupManagersApplyUpdatesRequest
include Google::Apis::Core::Hashable
# The list of URLs of one or more instances for which you want to apply updates.
# Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[
# INSTANCE_NAME].
# Corresponds to the JSON property `instances`
# @return [Array<String>]
attr_accessor :instances
# The minimal action that you want to perform on each instance during the update:
#
# - REPLACE: At minimum, delete the instance and create it again.
# - RESTART: Stop the instance and start it again.
# - REFRESH: Do not stop the instance.
# - NONE: Do not disrupt the instance at all. By default, the minimum action is
# NONE. If your update requires a more disruptive action than you set with this
# flag, the necessary action is performed to execute the update.
# Corresponds to the JSON property `minimalAction`
# @return [String]
attr_accessor :minimal_action
# The most disruptive action that you want to perform on each instance during
# the update:
# - REPLACE: Delete the instance and create it again.
# - RESTART: Stop the instance and start it again.
# - REFRESH: Do not stop the instance.
# - NONE: Do not disrupt the instance at all. By default, the most disruptive
# allowed action is REPLACE. If your update requires a more disruptive action
# than you set with this flag, the update request will fail.
# Corresponds to the JSON property `mostDisruptiveAllowedAction`
# @return [String]
attr_accessor :most_disruptive_allowed_action
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
@minimal_action = args[:minimal_action] if args.key?(:minimal_action)
@most_disruptive_allowed_action = args[:most_disruptive_allowed_action] if args.key?(:most_disruptive_allowed_action)
end
end
# RegionInstanceGroupManagers.createInstances
class RegionInstanceGroupManagersCreateInstancesRequest
include Google::Apis::Core::Hashable

View File

@ -1336,6 +1336,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersApplyUpdatesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersCreateInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2728,6 +2734,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersApplyUpdatesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersCreateInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -6918,6 +6930,15 @@ module Google
end
end
class InstanceGroupManagersApplyUpdatesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
property :minimal_action, as: 'minimalAction'
property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction'
end
end
class InstanceGroupManagersCreateInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -9385,6 +9406,15 @@ module Google
end
end
class RegionInstanceGroupManagersApplyUpdatesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
property :minimal_action, as: 'minimalAction'
property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction'
end
end
class RegionInstanceGroupManagersCreateInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -6168,6 +6168,50 @@ module Google
execute_or_queue_command(command, &block)
end
# Apply changes to selected instances on the managed instance group. This method
# can be used to apply new overrides and/or new versions.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone where the managed instance group is located. Should
# conform to RFC1035.
# @param [String] instance_group_manager
# The name of the managed instance group, should conform to RFC1035.
# @param [Google::Apis::ComputeV1::InstanceGroupManagersApplyUpdatesRequest] instance_group_managers_apply_updates_request_object
# @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::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 apply_instance_group_manager_updates_to_instances(project, zone, instance_group_manager, instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersApplyUpdatesRequest::Representation
command.request_object = instance_group_managers_apply_updates_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['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 instances with per-instance configs in this managed instance group.
# Instances are created using the current instance template. The create
# instances operation is marked DONE if the createInstances request is
@ -16405,6 +16449,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Apply updates to selected instances the managed instance group.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request, should conform to RFC1035.
# @param [String] instance_group_manager
# The name of the managed instance group, should conform to RFC1035.
# @param [Google::Apis::ComputeV1::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object
# @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::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 apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
command.request_object = region_instance_group_managers_apply_updates_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['region'] = region unless region.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 instances with per-instance configs in this regional managed instance
# group. Instances are created using the current instance template. The create
# instances operation is marked DONE if the createInstances request is

View File

@ -25,11 +25,23 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20200110'
REVISION = '20200203'
# Read, compose, send, and permanently delete all your email from Gmail
AUTH_SCOPE = 'https://mail.google.com/'
# Manage drafts and send emails when you interact with the add-on
AUTH_GMAIL_ADDONS_CURRENT_ACTION_COMPOSE = 'https://www.googleapis.com/auth/gmail.addons.current.action.compose'
# View your email messages when you interact with the add-on
AUTH_GMAIL_ADDONS_CURRENT_MESSAGE_ACTION = 'https://www.googleapis.com/auth/gmail.addons.current.message.action'
# View your email message metadata when the add-on is running
AUTH_GMAIL_ADDONS_CURRENT_MESSAGE_METADATA = 'https://www.googleapis.com/auth/gmail.addons.current.message.metadata'
# View your email messages when the add-on is running
AUTH_GMAIL_ADDONS_CURRENT_MESSAGE_READONLY = 'https://www.googleapis.com/auth/gmail.addons.current.message.readonly'
# Manage drafts and send emails
AUTH_GMAIL_COMPOSE = 'https://www.googleapis.com/auth/gmail.compose'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/tasks/firstapp
module TasksV1
VERSION = 'V1'
REVISION = '20190628'
REVISION = '20200129'
# Create, edit, organize, and delete all your tasks
AUTH_TASKS = 'https://www.googleapis.com/auth/tasks'

View File

@ -116,6 +116,8 @@ module Google
end
# Creates a new task list and adds it to the authenticated user's task lists.
# Fails with HTTP code 403 or 429 after reaching the storage limit of 2,000
# lists.
# @param [Google::Apis::TasksV1::TaskList] task_list_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -361,7 +363,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new task on the specified task list.
# Creates a new task on the specified task list. Fails with HTTP code 403 or 429
# after reaching the storage limit of 100,000 tasks per account.
# @param [String] tasklist
# Task list identifier.
# @param [Google::Apis::TasksV1::Task] task_object