Regenerate apis, add datastore_v1beta3
This commit is contained in:
1 parent
3714da7a3f
commit
d9a91c83ee
70 files changed
+4763
-356
No files matched your search
@@ -978,6 +978,21 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :group
|
||||
|
||||
# The max number of simultaneous connections for the group. Can be used with
|
||||
# either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either
|
||||
# maxConnections or maxConnectionsPerInstance must be set.
|
||||
# Corresponds to the JSON property `maxConnections`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_connections
|
||||
|
||||
# The max number of simultaneous connections that a single backend instance can
|
||||
# handle. This is used to calculate the capacity of the group. Can be used in
|
||||
# either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either
|
||||
# maxConnections or maxConnectionsPerInstance must be set.
|
||||
# Corresponds to the JSON property `maxConnectionsPerInstance`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_connections_per_instance
|
||||
|
||||
# The max requests per second (RPS) of the group. Can be used with either RATE
|
||||
# or UTILIZATION balancing modes, but required if RATE mode. For RATE mode,
|
||||
# either maxRate or maxRatePerInstance must be set.
|
||||
@@ -1009,6 +1024,8 @@ module Google
|
||||
@capacity_scaler = args[:capacity_scaler] if args.key?(:capacity_scaler)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@group = args[:group] if args.key?(:group)
|
||||
@max_connections = args[:max_connections] if args.key?(:max_connections)
|
||||
@max_connections_per_instance = args[:max_connections_per_instance] if args.key?(:max_connections_per_instance)
|
||||
@max_rate = args[:max_rate] if args.key?(:max_rate)
|
||||
@max_rate_per_instance = args[:max_rate_per_instance] if args.key?(:max_rate_per_instance)
|
||||
@max_utilization = args[:max_utilization] if args.key?(:max_utilization)
|
||||
@@ -1032,6 +1049,11 @@ module Google
|
||||
# @return [Array<Google::Apis::ComputeBeta::Backend>]
|
||||
attr_accessor :backends
|
||||
|
||||
# Message containing connection draining configuration.
|
||||
# Corresponds to the JSON property `connectionDraining`
|
||||
# @return [Google::Apis::ComputeBeta::ConnectionDraining]
|
||||
attr_accessor :connection_draining
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
@@ -1134,6 +1156,7 @@ module Google
|
||||
def update!(**args)
|
||||
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
|
||||
@backends = args[:backends] if args.key?(:backends)
|
||||
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
|
||||
@@ -1182,8 +1205,7 @@ module Google
|
||||
class BackendServiceList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
@@ -1199,11 +1221,7 @@ module Google
|
||||
# @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.
|
||||
# [Output Only] A token used to continue a truncated list request.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
@@ -1246,30 +1264,50 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Message containing connection draining configuration.
|
||||
class ConnectionDraining
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Time for which instance will be drained (not accept new connections, but still
|
||||
# work to finish started).
|
||||
# Corresponds to the JSON property `drainingTimeoutSec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :draining_timeout_sec
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@draining_timeout_sec = args[:draining_timeout_sec] if args.key?(:draining_timeout_sec)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents a customer-supplied encryption key
|
||||
class CustomerEncryptionKey
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies a 256-bit customer-supplied encryption key, encoded in base64 to
|
||||
# either encrypt or decrypt this resource.
|
||||
# Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648
|
||||
# base64 to either encrypt or decrypt this resource.
|
||||
# Corresponds to the JSON property `rawKey`
|
||||
# @return [String]
|
||||
attr_accessor :raw_key
|
||||
|
||||
# Specifies a base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption
|
||||
# key to either encrypt or decrypt this resource.
|
||||
# Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied
|
||||
# encryption key to either encrypt or decrypt this resource.
|
||||
# The key must meet the following requirements before you can provide it to
|
||||
# Compute Engine:
|
||||
# - The key is wrapped using a RSA public key certificate provided by Google.
|
||||
# - After being wrapped, the key must be encoded in base64 encoding. Get the
|
||||
# RSA public key certificate provided by Google at:
|
||||
# - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.
|
||||
# Get the RSA public key certificate provided by Google at:
|
||||
# https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
|
||||
# Corresponds to the JSON property `rsaEncryptedKey`
|
||||
# @return [String]
|
||||
attr_accessor :rsa_encrypted_key
|
||||
|
||||
# [Output only] The base64 encoded SHA-256 hash of the customer-supplied
|
||||
# encryption key that protects this resource.
|
||||
# [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-
|
||||
# supplied encryption key that protects this resource.
|
||||
# Corresponds to the JSON property `sha256`
|
||||
# @return [String]
|
||||
attr_accessor :sha256
|
||||
@@ -2593,6 +2631,319 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Http2HealthCheck
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The value of the host header in the HTTP/2 health check request. If left empty
|
||||
# (default value), the IP on behalf of which this health check is performed will
|
||||
# be used.
|
||||
# Corresponds to the JSON property `host`
|
||||
# @return [String]
|
||||
attr_accessor :host
|
||||
|
||||
# The TCP port number for the health check request. The default value is 443.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :port
|
||||
|
||||
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
||||
# port_name are defined, port takes precedence.
|
||||
# Corresponds to the JSON property `portName`
|
||||
# @return [String]
|
||||
attr_accessor :port_name
|
||||
|
||||
# Specifies the type of proxy header to append before sending data to the
|
||||
# backend, either NONE or PROXY_V1. The default is NONE.
|
||||
# Corresponds to the JSON property `proxyHeader`
|
||||
# @return [String]
|
||||
attr_accessor :proxy_header
|
||||
|
||||
# The request path of the HTTP/2 health check request. The default value is /.
|
||||
# Corresponds to the JSON property `requestPath`
|
||||
# @return [String]
|
||||
attr_accessor :request_path
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@host = args[:host] if args.key?(:host)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@port_name = args[:port_name] if args.key?(:port_name)
|
||||
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
||||
@request_path = args[:request_path] if args.key?(:request_path)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class HttpHealthCheck
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The value of the host header in the HTTP health check request. If left empty (
|
||||
# default value), the IP on behalf of which this health check is performed will
|
||||
# be used.
|
||||
# Corresponds to the JSON property `host`
|
||||
# @return [String]
|
||||
attr_accessor :host
|
||||
|
||||
# The TCP port number for the health check request. The default value is 80.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :port
|
||||
|
||||
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
||||
# port_name are defined, port takes precedence.
|
||||
# Corresponds to the JSON property `portName`
|
||||
# @return [String]
|
||||
attr_accessor :port_name
|
||||
|
||||
# Specifies the type of proxy header to append before sending data to the
|
||||
# backend, either NONE or PROXY_V1. The default is NONE.
|
||||
# Corresponds to the JSON property `proxyHeader`
|
||||
# @return [String]
|
||||
attr_accessor :proxy_header
|
||||
|
||||
# The request path of the HTTP health check request. The default value is /.
|
||||
# Corresponds to the JSON property `requestPath`
|
||||
# @return [String]
|
||||
attr_accessor :request_path
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@host = args[:host] if args.key?(:host)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@port_name = args[:port_name] if args.key?(:port_name)
|
||||
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
||||
@request_path = args[:request_path] if args.key?(:request_path)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class HttpsHealthCheck
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The value of the host header in the HTTPS health check request. If left empty (
|
||||
# default value), the IP on behalf of which this health check is performed will
|
||||
# be used.
|
||||
# Corresponds to the JSON property `host`
|
||||
# @return [String]
|
||||
attr_accessor :host
|
||||
|
||||
# The TCP port number for the health check request. The default value is 443.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :port
|
||||
|
||||
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
||||
# port_name are defined, port takes precedence.
|
||||
# Corresponds to the JSON property `portName`
|
||||
# @return [String]
|
||||
attr_accessor :port_name
|
||||
|
||||
# Specifies the type of proxy header to append before sending data to the
|
||||
# backend, either NONE or PROXY_V1. The default is NONE.
|
||||
# Corresponds to the JSON property `proxyHeader`
|
||||
# @return [String]
|
||||
attr_accessor :proxy_header
|
||||
|
||||
# The request path of the HTTPS health check request. The default value is /.
|
||||
# Corresponds to the JSON property `requestPath`
|
||||
# @return [String]
|
||||
attr_accessor :request_path
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@host = args[:host] if args.key?(:host)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@port_name = args[:port_name] if args.key?(:port_name)
|
||||
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
||||
@request_path = args[:request_path] if args.key?(:request_path)
|
||||
end
|
||||
end
|
||||
|
||||
# An HealthCheck resource. This resource defines a template for how individual
|
||||
# virtual machines should be checked for health, via one of the supported
|
||||
# protocols.
|
||||
class HealthCheck
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# How often (in seconds) to send a health check. The default value is 5 seconds.
|
||||
# Corresponds to the JSON property `checkIntervalSec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :check_interval_sec
|
||||
|
||||
# [Output Only] Creation timestamp in 3339 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
|
||||
|
||||
# A so-far unhealthy instance will be marked healthy after this many consecutive
|
||||
# successes. The default value is 2.
|
||||
# Corresponds to the JSON property `healthyThreshold`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :healthy_threshold
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `http2HealthCheck`
|
||||
# @return [Google::Apis::ComputeBeta::Http2HealthCheck]
|
||||
attr_accessor :http2_health_check
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `httpHealthCheck`
|
||||
# @return [Google::Apis::ComputeBeta::HttpHealthCheck]
|
||||
attr_accessor :http_health_check
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `httpsHealthCheck`
|
||||
# @return [Google::Apis::ComputeBeta::HttpsHealthCheck]
|
||||
attr_accessor :https_health_check
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Type of the resource.
|
||||
# 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] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `sslHealthCheck`
|
||||
# @return [Google::Apis::ComputeBeta::SslHealthCheck]
|
||||
attr_accessor :ssl_health_check
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `tcpHealthCheck`
|
||||
# @return [Google::Apis::ComputeBeta::TcpHealthCheck]
|
||||
attr_accessor :tcp_health_check
|
||||
|
||||
# How long (in seconds) to wait before claiming failure. The default value is 5
|
||||
# seconds. It is invalid for timeoutSec to have greater value than
|
||||
# checkIntervalSec.
|
||||
# Corresponds to the JSON property `timeoutSec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :timeout_sec
|
||||
|
||||
# Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2.
|
||||
# If not specified, the default is TCP. Exactly one of the protocol-specific
|
||||
# health check field must be specified, which must match type field.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# A so-far healthy instance will be marked unhealthy after this many consecutive
|
||||
# failures. The default value is 2.
|
||||
# Corresponds to the JSON property `unhealthyThreshold`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :unhealthy_threshold
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
|
||||
@http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check)
|
||||
@http_health_check = args[:http_health_check] if args.key?(:http_health_check)
|
||||
@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)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@ssl_health_check = args[:ssl_health_check] if args.key?(:ssl_health_check)
|
||||
@tcp_health_check = args[:tcp_health_check] if args.key?(:tcp_health_check)
|
||||
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains a list of HealthCheck resources.
|
||||
class HealthCheckList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# A list of HealthCheck resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ComputeBeta::HealthCheck>]
|
||||
attr_accessor :items
|
||||
|
||||
# Type of resource.
|
||||
# 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
|
||||
|
||||
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)
|
||||
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/
|
||||
@@ -3066,7 +3417,7 @@ module Google
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Any applicable publicly visible licenses.
|
||||
# Any applicable license URI.
|
||||
# Corresponds to the JSON property `licenses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :licenses
|
||||
@@ -3653,7 +4004,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# An Instance Template Manager resource.
|
||||
class InstanceGroupManager
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -7324,6 +7675,56 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SslHealthCheck
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The TCP port number for the health check request. The default value is 443.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :port
|
||||
|
||||
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
||||
# port_name are defined, port takes precedence.
|
||||
# Corresponds to the JSON property `portName`
|
||||
# @return [String]
|
||||
attr_accessor :port_name
|
||||
|
||||
# Specifies the type of proxy header to append before sending data to the
|
||||
# backend, either NONE or PROXY_V1. The default is NONE.
|
||||
# Corresponds to the JSON property `proxyHeader`
|
||||
# @return [String]
|
||||
attr_accessor :proxy_header
|
||||
|
||||
# The application data to send once the SSL connection has been established (
|
||||
# default value is empty). If both request and response are empty, the
|
||||
# connection establishment alone will indicate health. The request data can only
|
||||
# be ASCII.
|
||||
# Corresponds to the JSON property `request`
|
||||
# @return [String]
|
||||
attr_accessor :request
|
||||
|
||||
# The bytes to match against the beginning of the response data. If left empty (
|
||||
# the default value), any response will indicate health. The response data can
|
||||
# only be ASCII.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [String]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@port_name = args[:port_name] if args.key?(:port_name)
|
||||
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
||||
@request = args[:request] if args.key?(:request)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# Sets the scheduling options for an Instance.
|
||||
class Scheduling
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -8018,6 +8419,56 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TcpHealthCheck
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The TCP port number for the health check request. The default value is 80.
|
||||
# Corresponds to the JSON property `port`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :port
|
||||
|
||||
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
||||
# port_name are defined, port takes precedence.
|
||||
# Corresponds to the JSON property `portName`
|
||||
# @return [String]
|
||||
attr_accessor :port_name
|
||||
|
||||
# Specifies the type of proxy header to append before sending data to the
|
||||
# backend, either NONE or PROXY_V1. The default is NONE.
|
||||
# Corresponds to the JSON property `proxyHeader`
|
||||
# @return [String]
|
||||
attr_accessor :proxy_header
|
||||
|
||||
# The application data to send once the TCP connection has been established (
|
||||
# default value is empty). If both request and response are empty, the
|
||||
# connection establishment alone will indicate health. The request data can only
|
||||
# be ASCII.
|
||||
# Corresponds to the JSON property `request`
|
||||
# @return [String]
|
||||
attr_accessor :request
|
||||
|
||||
# The bytes to match against the beginning of the response data. If left empty (
|
||||
# the default value), any response will indicate health. The response data can
|
||||
# only be ASCII.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [String]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@port = args[:port] if args.key?(:port)
|
||||
@port_name = args[:port_name] if args.key?(:port_name)
|
||||
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
||||
@request = args[:request] if args.key?(:request)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# A set of instance tags.
|
||||
class Tags
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -9017,6 +9468,190 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TargetSslProxiesSetBackendServiceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL of the new BackendService resource for the targetSslProxy.
|
||||
# Corresponds to the JSON property `service`
|
||||
# @return [String]
|
||||
attr_accessor :service
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@service = args[:service] if args.key?(:service)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TargetSslProxiesSetProxyHeaderRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The new type of proxy header to append before sending data to the backend.
|
||||
# NONE or PROXY_V1 are allowed.
|
||||
# Corresponds to the JSON property `proxyHeader`
|
||||
# @return [String]
|
||||
attr_accessor :proxy_header
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TargetSslProxiesSetSslCertificatesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# New set of URLs to SslCertificate resources to associate with this
|
||||
# TargetSslProxy. Currently exactly one ssl certificate must be specified.
|
||||
# Corresponds to the JSON property `sslCertificates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ssl_certificates
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
|
||||
end
|
||||
end
|
||||
|
||||
# A TargetSslProxy resource. This resource defines an SSL proxy.
|
||||
class TargetSslProxy
|
||||
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
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#targetSslProxy for target
|
||||
# SSL proxies.
|
||||
# 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
|
||||
|
||||
# Specifies the type of proxy header to append before sending data to the
|
||||
# backend, either NONE or PROXY_V1. The default is NONE.
|
||||
# Corresponds to the JSON property `proxyHeader`
|
||||
# @return [String]
|
||||
attr_accessor :proxy_header
|
||||
|
||||
# [Output Only] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# URL to the BackendService resource.
|
||||
# Corresponds to the JSON property `service`
|
||||
# @return [String]
|
||||
attr_accessor :service
|
||||
|
||||
# URLs to SslCertificate resources that are used to authenticate connections to
|
||||
# Backends. Currently exactly one SSL certificate must be specified.
|
||||
# Corresponds to the JSON property `sslCertificates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ssl_certificates
|
||||
|
||||
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)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@service = args[:service] if args.key?(:service)
|
||||
@ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains a list of TargetSslProxy resources.
|
||||
class TargetSslProxyList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# A list of TargetSslProxy resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ComputeBeta::TargetSslProxy>]
|
||||
attr_accessor :items
|
||||
|
||||
# Type of resource.
|
||||
# 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
|
||||
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents a Target VPN gateway resource.
|
||||
class TargetVpnGateway
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -166,6 +166,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ConnectionDraining
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CustomerEncryptionKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -328,6 +334,36 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Http2HealthCheck
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HttpHealthCheck
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HttpsHealthCheck
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HealthCheck
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HealthCheckList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HealthCheckReference
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -940,6 +976,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SslHealthCheck
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Scheduling
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1018,6 +1060,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TcpHealthCheck
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Tags
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1162,6 +1210,36 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetSslProxiesSetBackendServiceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetSslProxiesSetProxyHeaderRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetSslProxiesSetSslCertificatesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetSslProxy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetSslProxyList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetVpnGateway
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1542,6 +1620,8 @@ module Google
|
||||
property :capacity_scaler, as: 'capacityScaler'
|
||||
property :description, as: 'description'
|
||||
property :group, as: 'group'
|
||||
property :max_connections, as: 'maxConnections'
|
||||
property :max_connections_per_instance, as: 'maxConnectionsPerInstance'
|
||||
property :max_rate, as: 'maxRate'
|
||||
property :max_rate_per_instance, as: 'maxRatePerInstance'
|
||||
property :max_utilization, as: 'maxUtilization'
|
||||
@@ -1554,6 +1634,8 @@ module Google
|
||||
property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
|
||||
collection :backends, as: 'backends', class: Google::Apis::ComputeBeta::Backend, decorator: Google::Apis::ComputeBeta::Backend::Representation
|
||||
|
||||
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation
|
||||
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :enable_cdn, as: 'enableCDN'
|
||||
@@ -1600,6 +1682,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ConnectionDraining
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :draining_timeout_sec, as: 'drainingTimeoutSec'
|
||||
end
|
||||
end
|
||||
|
||||
class CustomerEncryptionKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1914,6 +2003,78 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Http2HealthCheck
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :host, as: 'host'
|
||||
property :port, as: 'port'
|
||||
property :port_name, as: 'portName'
|
||||
property :proxy_header, as: 'proxyHeader'
|
||||
property :request_path, as: 'requestPath'
|
||||
end
|
||||
end
|
||||
|
||||
class HttpHealthCheck
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :host, as: 'host'
|
||||
property :port, as: 'port'
|
||||
property :port_name, as: 'portName'
|
||||
property :proxy_header, as: 'proxyHeader'
|
||||
property :request_path, as: 'requestPath'
|
||||
end
|
||||
end
|
||||
|
||||
class HttpsHealthCheck
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :host, as: 'host'
|
||||
property :port, as: 'port'
|
||||
property :port_name, as: 'portName'
|
||||
property :proxy_header, as: 'proxyHeader'
|
||||
property :request_path, as: 'requestPath'
|
||||
end
|
||||
end
|
||||
|
||||
class HealthCheck
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :check_interval_sec, as: 'checkIntervalSec'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :healthy_threshold, as: 'healthyThreshold'
|
||||
property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeBeta::Http2HealthCheck, decorator: Google::Apis::ComputeBeta::Http2HealthCheck::Representation
|
||||
|
||||
property :http_health_check, as: 'httpHealthCheck', class: Google::Apis::ComputeBeta::HttpHealthCheck, decorator: Google::Apis::ComputeBeta::HttpHealthCheck::Representation
|
||||
|
||||
property :https_health_check, as: 'httpsHealthCheck', class: Google::Apis::ComputeBeta::HttpsHealthCheck, decorator: Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :ssl_health_check, as: 'sslHealthCheck', class: Google::Apis::ComputeBeta::SslHealthCheck, decorator: Google::Apis::ComputeBeta::SslHealthCheck::Representation
|
||||
|
||||
property :tcp_health_check, as: 'tcpHealthCheck', class: Google::Apis::ComputeBeta::TcpHealthCheck, decorator: Google::Apis::ComputeBeta::TcpHealthCheck::Representation
|
||||
|
||||
property :timeout_sec, as: 'timeoutSec'
|
||||
property :type, as: 'type'
|
||||
property :unhealthy_threshold, as: 'unhealthyThreshold'
|
||||
end
|
||||
end
|
||||
|
||||
class HealthCheckList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeBeta::HealthCheck, decorator: Google::Apis::ComputeBeta::HealthCheck::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class HealthCheckReference
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -3084,6 +3245,17 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SslHealthCheck
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :port, as: 'port'
|
||||
property :port_name, as: 'portName'
|
||||
property :proxy_header, as: 'proxyHeader'
|
||||
property :request, as: 'request'
|
||||
property :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Scheduling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -3243,6 +3415,17 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class TcpHealthCheck
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :port, as: 'port'
|
||||
property :port_name, as: 'portName'
|
||||
property :proxy_header, as: 'proxyHeader'
|
||||
property :request, as: 'request'
|
||||
property :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Tags
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -3494,6 +3677,54 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class TargetSslProxiesSetBackendServiceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :service, as: 'service'
|
||||
end
|
||||
end
|
||||
|
||||
class TargetSslProxiesSetProxyHeaderRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :proxy_header, as: 'proxyHeader'
|
||||
end
|
||||
end
|
||||
|
||||
class TargetSslProxiesSetSslCertificatesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :ssl_certificates, as: 'sslCertificates'
|
||||
end
|
||||
end
|
||||
|
||||
class TargetSslProxy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :proxy_header, as: 'proxyHeader'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :service, as: 'service'
|
||||
collection :ssl_certificates, as: 'sslCertificates'
|
||||
end
|
||||
end
|
||||
|
||||
class TargetSslProxyList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeBeta::TargetSslProxy, decorator: Google::Apis::ComputeBeta::TargetSslProxy::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class TargetVpnGateway
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -3281,6 +3281,326 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified HealthCheck resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] health_check
|
||||
# Name of the HealthCheck resource to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::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 delete_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/healthChecks/{healthCheck}', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['healthCheck'] = health_check unless health_check.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified HealthCheck resource. Get a list of available health
|
||||
# checks by making a list() request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] health_check
|
||||
# Name of the HealthCheck resource to return.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::HealthCheck]
|
||||
#
|
||||
# @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_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/healthChecks/{healthCheck}', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::HealthCheck
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['healthCheck'] = health_check unless health_check.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 a HealthCheck resource in the specified project using the data
|
||||
# included in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::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 insert_health_check(project, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/healthChecks', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
||||
command.request_object = health_check_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.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
|
||||
|
||||
# Retrieves the list of HealthCheck resources available to the specified project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
|
||||
# filter on nested fields. For example, you could filter on instances that have
|
||||
# set the scheduling.automaticRestart field to true. Use filtering on nested
|
||||
# fields to take advantage of labels to organize and search for results based on
|
||||
# label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::HealthCheckList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::HealthCheckList]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/healthChecks', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::HealthCheckList::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::HealthCheckList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a HealthCheck resource in the specified project using the data
|
||||
# included in the request. This method supports patch semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] health_check
|
||||
# Name of the HealthCheck resource to update.
|
||||
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{project}/global/healthChecks/{healthCheck}', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
||||
command.request_object = health_check_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['healthCheck'] = health_check unless health_check.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
||||
#
|
||||
# @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 test_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/healthChecks/{resource}/testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
||||
command.request_object = test_permissions_request_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['resource'] = resource unless resource.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
|
||||
|
||||
# Updates a HealthCheck resource in the specified project using the data
|
||||
# included in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] health_check
|
||||
# Name of the HealthCheck resource to update.
|
||||
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::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 update_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, '{project}/global/healthChecks/{healthCheck}', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
||||
command.request_object = health_check_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['healthCheck'] = health_check unless health_check.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
|
||||
|
||||
# Deletes the specified HttpHealthCheck resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -10843,6 +11163,366 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified TargetSslProxy resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] target_ssl_proxy
|
||||
# Name of the TargetSslProxy resource to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::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 delete_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/targetSslProxies/{targetSslProxy}', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified TargetSslProxy resource. Get a list of available target
|
||||
# SSL proxies by making a list() request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] target_ssl_proxy
|
||||
# Name of the TargetSslProxy resource to return.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::TargetSslProxy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::TargetSslProxy]
|
||||
#
|
||||
# @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_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/targetSslProxies/{targetSslProxy}', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::TargetSslProxy::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::TargetSslProxy
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.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 a TargetSslProxy resource in the specified project using the data
|
||||
# included in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TargetSslProxy] target_ssl_proxy_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::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 insert_target_ssl_proxy(project, target_ssl_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/targetSslProxies', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::TargetSslProxy::Representation
|
||||
command.request_object = target_ssl_proxy_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.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
|
||||
|
||||
# Retrieves the list of TargetSslProxy resources available to the specified
|
||||
# project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
|
||||
# filter on nested fields. For example, you could filter on instances that have
|
||||
# set the scheduling.automaticRestart field to true. Use filtering on nested
|
||||
# fields to take advantage of labels to organize and search for results based on
|
||||
# label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::TargetSslProxyList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::TargetSslProxyList]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_target_ssl_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/targetSslProxies', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::TargetSslProxyList::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::TargetSslProxyList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Changes the BackendService for TargetSslProxy.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] target_ssl_proxy
|
||||
# Name of the TargetSslProxy resource whose BackendService resource is to be set.
|
||||
# @param [Google::Apis::ComputeBeta::TargetSslProxiesSetBackendServiceRequest] target_ssl_proxies_set_backend_service_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_target_ssl_proxy_backend_service(project, target_ssl_proxy, target_ssl_proxies_set_backend_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetBackendServiceRequest::Representation
|
||||
command.request_object = target_ssl_proxies_set_backend_service_request_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.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
|
||||
|
||||
# Changes the ProxyHeaderType for TargetSslProxy.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] target_ssl_proxy
|
||||
# Name of the TargetSslProxy resource whose ProxyHeader is to be set.
|
||||
# @param [Google::Apis::ComputeBeta::TargetSslProxiesSetProxyHeaderRequest] target_ssl_proxies_set_proxy_header_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_target_ssl_proxy_proxy_header(project, target_ssl_proxy, target_ssl_proxies_set_proxy_header_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetProxyHeaderRequest::Representation
|
||||
command.request_object = target_ssl_proxies_set_proxy_header_request_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.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
|
||||
|
||||
# Changes SslCertificates for TargetSslProxy.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] target_ssl_proxy
|
||||
# Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
|
||||
# @param [Google::Apis::ComputeBeta::TargetSslProxiesSetSslCertificatesRequest] target_ssl_proxies_set_ssl_certificates_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_target_ssl_proxy_ssl_certificates(project, target_ssl_proxy, target_ssl_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetSslCertificatesRequest::Representation
|
||||
command.request_object = target_ssl_proxies_set_ssl_certificates_request_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
||||
#
|
||||
# @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 test_target_ssl_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/targetSslProxies/{resource}/testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
||||
command.request_object = test_permissions_request_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['resource'] = resource unless resource.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
|
||||
|
||||
# Retrieves an aggregated list of target VPN gateways.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
|
||||
Reference in new issue
Block a user