Autogenerated update (2019-02-28)
Update: - compute_alpha - compute_beta - compute_v1 - containeranalysis_v1alpha1 - games_management_v1management - games_v1 - logging_v2 - logging_v2beta1 - oauth2_v1 - oauth2_v2 - plus_domains_v1 - plus_v1 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - remotebuildexecution_v2 - servicemanagement_v1 - testing_v1
This commit is contained in:
1 parent
ca22914882
commit
463abfaad2
38 files changed
+2167
-150
No files matched your search
@@ -5769,6 +5769,257 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# External VPN gateway is the on-premises VPN gateway(s) or another cloud
|
||||
# provider?s VPN gateway that connects to your Google Cloud VPN gateway. To
|
||||
# create a highly available VPN from Google Cloud to your on-premises side or
|
||||
# another Cloud provider's VPN gateway, you must create a external VPN gateway
|
||||
# resource in GCP, which provides the information to GCP about your external VPN
|
||||
# gateway.
|
||||
class ExternalVpnGateway
|
||||
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 [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# List of interfaces for this external VPN gateway.
|
||||
# Corresponds to the JSON property `interfaces`
|
||||
# @return [Array<Google::Apis::ComputeBeta::ExternalVpnGatewayInterface>]
|
||||
attr_accessor :interfaces
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#externalVpnGateway for
|
||||
# externalVpnGateways.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# A fingerprint for the labels being applied to this ExternalVpnGateway, which
|
||||
# is essentially a hash of the labels set used for optimistic locking. The
|
||||
# fingerprint is initially generated by Compute Engine and changes after every
|
||||
# request to modify or update labels. You must always provide an up-to-date
|
||||
# fingerprint hash in order to update or change labels, otherwise the request
|
||||
# will fail with error 412 conditionNotMet.
|
||||
# To see the latest fingerprint, make a get() request to retrieve an
|
||||
# ExternalVpnGateway.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this ExternalVpnGateway resource. These can be later
|
||||
# modified by the setLabels method. Each label key/value must comply with
|
||||
# RFC1035. Label values may be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# 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
|
||||
|
||||
# Indicates the user-supplied redundancy type of this external VPN gateway.
|
||||
# Corresponds to the JSON property `redundancyType`
|
||||
# @return [String]
|
||||
attr_accessor :redundancy_type
|
||||
|
||||
# [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)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@interfaces = args[:interfaces] if args.key?(:interfaces)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@redundancy_type = args[:redundancy_type] if args.key?(:redundancy_type)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
# The interface for the external VPN gateway.
|
||||
class ExternalVpnGatewayInterface
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The numeric ID of this interface. The allowed input values for this id for
|
||||
# different redundancy types of external VPN gateway:
|
||||
# SINGLE_IP_INTERNALLY_REDUNDANT - 0 TWO_IPS_REDUNDANCY - 0, 1
|
||||
# FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# IP address of the interface in the external VPN gateway. Only IPv4 is
|
||||
# supported. This IP address can be either from your on-premise gateway or
|
||||
# another Cloud provider?s VPN gateway, it cannot be an IP address from Google
|
||||
# Compute Engine.
|
||||
# Corresponds to the JSON property `ipAddress`
|
||||
# @return [String]
|
||||
attr_accessor :ip_address
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
||||
end
|
||||
end
|
||||
|
||||
# Response to the list request, and contains a list of externalVpnGateways.
|
||||
class ExternalVpnGatewayList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# [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 ExternalVpnGateway resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ComputeBeta::ExternalVpnGateway>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always compute#externalVpnGatewayList for
|
||||
# lists of externalVpnGateways.
|
||||
# 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::ExternalVpnGatewayList::Warning]
|
||||
attr_accessor :warning
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@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::ExternalVpnGatewayList::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 a Firewall resource.
|
||||
class Firewall
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -6291,6 +6542,18 @@ module Google
|
||||
# @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 ForwardingRule. Include the fingerprint in patch request to ensure
|
||||
# that you do not overwrite changes that were applied from another concurrent
|
||||
# request.
|
||||
# To see the latest fingerprint, make a get() request to retrieve a
|
||||
# ForwardingRule.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
@@ -6461,6 +6724,7 @@ module Google
|
||||
@backend_service = args[:backend_service] if args.key?(:backend_service)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@ip_version = args[:ip_version] if args.key?(:ip_version)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@@ -8331,8 +8595,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :container_type
|
||||
|
||||
# An optional SHA1 checksum of the disk image before unpackaging; provided by
|
||||
# the client when the disk image is created.
|
||||
# An optional SHA1 checksum of the disk image before unpackaging provided by the
|
||||
# client when the disk image is created.
|
||||
# Corresponds to the JSON property `sha1Checksum`
|
||||
# @return [String]
|
||||
attr_accessor :sha1_checksum
|
||||
@@ -11435,8 +11699,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :google_ip_address
|
||||
|
||||
# [Output Only] Google reference ID; to be used when raising support tickets
|
||||
# with Google or otherwise to debug backend connectivity issues.
|
||||
# [Output Only] Google reference ID to be used when raising support tickets with
|
||||
# Google or otherwise to debug backend connectivity issues.
|
||||
# Corresponds to the JSON property `googleReferenceId`
|
||||
# @return [String]
|
||||
attr_accessor :google_reference_id
|
||||
@@ -26784,6 +27048,452 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Represents a VPN gateway resource.
|
||||
class VpnGateway
|
||||
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 [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# A fingerprint for the labels being applied to this VpnGateway, which is
|
||||
# essentially a hash of the labels set used for optimistic locking. The
|
||||
# fingerprint is initially generated by Compute Engine and changes after every
|
||||
# request to modify or update labels. You must always provide an up-to-date
|
||||
# fingerprint hash in order to update or change labels, otherwise the request
|
||||
# will fail with error 412 conditionNotMet.
|
||||
# To see the latest fingerprint, make a get() request to retrieve an VpnGateway.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this VpnGateway resource. These can be later modified by
|
||||
# the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# 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
|
||||
|
||||
# URL of the network to which this VPN gateway is attached. Provided by the
|
||||
# client when the VPN gateway is created.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# [Output Only] URL of the region where the VPN gateway resides.
|
||||
# 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
|
||||
|
||||
# [Output Only] A list of interfaces on this VPN gateway.
|
||||
# Corresponds to the JSON property `vpnInterfaces`
|
||||
# @return [Array<Google::Apis::ComputeBeta::VpnGatewayVpnGatewayInterface>]
|
||||
attr_accessor :vpn_interfaces
|
||||
|
||||
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)
|
||||
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@region = args[:region] if args.key?(:region)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@vpn_interfaces = args[:vpn_interfaces] if args.key?(:vpn_interfaces)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class VpnGatewayAggregatedList
|
||||
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 VpnGateway resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Hash<String,Google::Apis::ComputeBeta::VpnGatewaysScopedList>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways.
|
||||
# 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::VpnGatewayAggregatedList::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::VpnGatewayAggregatedList::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
|
||||
|
||||
# Contains a list of VpnGateway resources.
|
||||
class VpnGatewayList
|
||||
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 VpnGateway resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ComputeBeta::VpnGateway>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways.
|
||||
# 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::VpnGatewayList::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::VpnGatewayList::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
|
||||
|
||||
# A VPN gateway interface.
|
||||
class VpnGatewayVpnGatewayInterface
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The numeric ID of this VPN gateway interface.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# The external IP address for this VPN gateway interface.
|
||||
# Corresponds to the JSON property `ipAddress`
|
||||
# @return [String]
|
||||
attr_accessor :ip_address
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class VpnGatewaysScopedList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A list of VPN gateways contained in this scope.
|
||||
# Corresponds to the JSON property `vpnGateways`
|
||||
# @return [Array<Google::Apis::ComputeBeta::VpnGateway>]
|
||||
attr_accessor :vpn_gateways
|
||||
|
||||
# [Output Only] Informational warning which replaces the list of addresses when
|
||||
# the list is empty.
|
||||
# Corresponds to the JSON property `warning`
|
||||
# @return [Google::Apis::ComputeBeta::VpnGatewaysScopedList::Warning]
|
||||
attr_accessor :warning
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@vpn_gateways = args[:vpn_gateways] if args.key?(:vpn_gateways)
|
||||
@warning = args[:warning] if args.key?(:warning)
|
||||
end
|
||||
|
||||
# [Output Only] Informational warning which replaces the list of addresses when
|
||||
# the list is empty.
|
||||
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::VpnGatewaysScopedList::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
|
||||
|
||||
# VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1.
|
||||
# vpnTunnels ==)
|
||||
class VpnTunnel
|
||||
@@ -26932,6 +27642,18 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :target_vpn_gateway
|
||||
|
||||
# URL of the VPN gateway with which this VPN tunnel is associated. Provided by
|
||||
# the client when the VPN tunnel is created. This must be used (instead of
|
||||
# target_vpn_gateway) if a High Availability VPN gateway resource is created.
|
||||
# Corresponds to the JSON property `vpnGateway`
|
||||
# @return [String]
|
||||
attr_accessor :vpn_gateway
|
||||
|
||||
# The interface ID of the VPN gateway with which this VPN tunnel is associated.
|
||||
# Corresponds to the JSON property `vpnGatewayInterface`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :vpn_gateway_interface
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -26960,6 +27682,8 @@ module Google
|
||||
@shared_secret_hash = args[:shared_secret_hash] if args.key?(:shared_secret_hash)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@target_vpn_gateway = args[:target_vpn_gateway] if args.key?(:target_vpn_gateway)
|
||||
@vpn_gateway = args[:vpn_gateway] if args.key?(:vpn_gateway)
|
||||
@vpn_gateway_interface = args[:vpn_gateway_interface] if args.key?(:vpn_gateway_interface)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -802,6 +802,36 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExternalVpnGateway
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExternalVpnGatewayInterface
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExternalVpnGatewayList
|
||||
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 Firewall
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -3760,6 +3790,72 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VpnGateway
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VpnGatewayAggregatedList
|
||||
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 VpnGatewayList
|
||||
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 VpnGatewayVpnGatewayInterface
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VpnGatewaysScopedList
|
||||
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 VpnTunnel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -5315,6 +5411,64 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ExternalVpnGateway
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeBeta::ExternalVpnGatewayInterface, decorator: Google::Apis::ComputeBeta::ExternalVpnGatewayInterface::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :redundancy_type, as: 'redundancyType'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class ExternalVpnGatewayInterface
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :ip_address, as: 'ipAddress'
|
||||
end
|
||||
end
|
||||
|
||||
class ExternalVpnGatewayList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, as: 'etag'
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeBeta::ExternalVpnGateway, decorator: Google::Apis::ComputeBeta::ExternalVpnGateway::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ExternalVpnGatewayList::Warning, decorator: Google::Apis::ComputeBeta::ExternalVpnGatewayList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeBeta::ExternalVpnGatewayList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ExternalVpnGatewayList::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 Firewall
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -5418,6 +5572,7 @@ module Google
|
||||
property :backend_service, as: 'backendService'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :ip_version, as: 'ipVersion'
|
||||
property :kind, as: 'kind'
|
||||
@@ -10666,6 +10821,124 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class VpnGateway
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :network, as: 'network'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
collection :vpn_interfaces, as: 'vpnInterfaces', class: Google::Apis::ComputeBeta::VpnGatewayVpnGatewayInterface, decorator: Google::Apis::ComputeBeta::VpnGatewayVpnGatewayInterface::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class VpnGatewayAggregatedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
hash :items, as: 'items', class: Google::Apis::ComputeBeta::VpnGatewaysScopedList, decorator: Google::Apis::ComputeBeta::VpnGatewaysScopedList::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::VpnGatewayAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::VpnGatewayAggregatedList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeBeta::VpnGatewayAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::VpnGatewayAggregatedList::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 VpnGatewayList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeBeta::VpnGateway, decorator: Google::Apis::ComputeBeta::VpnGateway::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::VpnGatewayList::Warning, decorator: Google::Apis::ComputeBeta::VpnGatewayList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeBeta::VpnGatewayList::Warning::Datum, decorator: Google::Apis::ComputeBeta::VpnGatewayList::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 VpnGatewayVpnGatewayInterface
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :ip_address, as: 'ipAddress'
|
||||
end
|
||||
end
|
||||
|
||||
class VpnGatewaysScopedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :vpn_gateways, as: 'vpnGateways', class: Google::Apis::ComputeBeta::VpnGateway, decorator: Google::Apis::ComputeBeta::VpnGateway::Representation
|
||||
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::VpnGatewaysScopedList::Warning, decorator: Google::Apis::ComputeBeta::VpnGatewaysScopedList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeBeta::VpnGatewaysScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::VpnGatewaysScopedList::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 VpnTunnel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -10691,6 +10964,8 @@ module Google
|
||||
property :shared_secret_hash, as: 'sharedSecretHash'
|
||||
property :status, as: 'status'
|
||||
property :target_vpn_gateway, as: 'targetVpnGateway'
|
||||
property :vpn_gateway, as: 'vpnGateway'
|
||||
property :vpn_gateway_interface, as: 'vpnGatewayInterface'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -3444,6 +3444,290 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified externalVpnGateway.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] external_vpn_gateway
|
||||
# Name of the externalVpnGateways to delete.
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# 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::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_external_vpn_gateway(project, external_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/externalVpnGateways/{externalVpnGateway}', 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['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified externalVpnGateway. Get a list of available
|
||||
# externalVpnGateways by making a list() request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] external_vpn_gateway
|
||||
# Name of the externalVpnGateway to return.
|
||||
# @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::ComputeBeta::ExternalVpnGateway] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::ExternalVpnGateway]
|
||||
#
|
||||
# @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_external_vpn_gateway(project, external_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/externalVpnGateways/{externalVpnGateway}', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::ExternalVpnGateway::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::ExternalVpnGateway
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.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 ExternalVpnGateway in the specified project using the data included
|
||||
# in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ComputeBeta::ExternalVpnGateway] external_vpn_gateway_object
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# 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::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_external_vpn_gateway(project, external_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/externalVpnGateways', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::ExternalVpnGateway::Representation
|
||||
command.request_object = external_vpn_gateway_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['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the list of ExternalVpnGateway available to the specified project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# A filter expression that filters resources listed in the response. The
|
||||
# expression must specify the field name, a comparison operator, and the value
|
||||
# that you want to use for filtering. The value must be a string, a number, or a
|
||||
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||
# instances named example-instance by specifying name != example-instance.
|
||||
# You can also filter nested fields. For example, you could specify scheduling.
|
||||
# automaticRestart = false to include instances only if they are not scheduled
|
||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||
# on resource labels.
|
||||
# To filter on multiple expressions, provide each separate expression within
|
||||
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||
# automaticRestart = true).
|
||||
# @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. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||
# @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
|
||||
# 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::ComputeBeta::ExternalVpnGatewayList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::ExternalVpnGatewayList]
|
||||
#
|
||||
# @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_external_vpn_gateways(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/externalVpnGateways', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::ExternalVpnGatewayList::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::ExternalVpnGatewayList
|
||||
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
|
||||
|
||||
# Sets the labels on an ExternalVpnGateway. To learn more about labels, read the
|
||||
# Labeling Resources documentation.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_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::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_external_vpn_gateway_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/setLabels', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
|
||||
command.request_object = global_set_labels_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['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
|
||||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name or id 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
|
||||
# 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::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_external_vpn_gateway_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/externalVpnGateways/{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
|
||||
|
||||
# Deletes the specified firewall.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -4081,6 +4365,62 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the specified forwarding rule with the data included in the request.
|
||||
# This method supports PATCH semantics and uses the JSON merge patch format and
|
||||
# processing rules. Currently, you can only patch the network_tier field.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region scoping this request.
|
||||
# @param [String] forwarding_rule
|
||||
# Name of the ForwardingRule resource to patch.
|
||||
# @param [Google::Apis::ComputeBeta::ForwardingRule] forwarding_rule_object
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# 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::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_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation
|
||||
command.request_object = forwarding_rule_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['region'] = region unless region.nil?
|
||||
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the labels on the specified resource. To learn more about labels, read
|
||||
# the Labeling Resources documentation.
|
||||
# @param [String] project
|
||||
@@ -4723,6 +5063,59 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the specified forwarding rule with the data included in the request.
|
||||
# This method supports PATCH semantics and uses the JSON merge patch format and
|
||||
# processing rules. Currently, you can only patch the network_tier field.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] forwarding_rule
|
||||
# Name of the ForwardingRule resource to patch.
|
||||
# @param [Google::Apis::ComputeBeta::ForwardingRule] forwarding_rule_object
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# 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::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_global_forwarding_rule(project, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{project}/global/forwardingRules/{forwardingRule}', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation
|
||||
command.request_object = forwarding_rule_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['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the labels on the specified resource. To learn more about labels, read
|
||||
# the Labeling Resources documentation.
|
||||
# @param [String] project
|
||||
@@ -9335,7 +9728,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Performs a reset on the instance. This is a hard reset; the VM does not do a
|
||||
# Performs a reset on the instance. This is a hard reset the VM does not do a
|
||||
# graceful shutdown. For more information, see Resetting an instance.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -25064,6 +25457,349 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves an aggregated list of VPN gateways.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# A filter expression that filters resources listed in the response. The
|
||||
# expression must specify the field name, a comparison operator, and the value
|
||||
# that you want to use for filtering. The value must be a string, a number, or a
|
||||
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||
# instances named example-instance by specifying name != example-instance.
|
||||
# You can also filter nested fields. For example, you could specify scheduling.
|
||||
# automaticRestart = false to include instances only if they are not scheduled
|
||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||
# on resource labels.
|
||||
# To filter on multiple expressions, provide each separate expression within
|
||||
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||
# automaticRestart = true).
|
||||
# @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. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||
# @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
|
||||
# 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::ComputeBeta::VpnGatewayAggregatedList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::VpnGatewayAggregatedList]
|
||||
#
|
||||
# @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 aggregated_vpn_gateway_list(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}/aggregated/vpnGateways', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::VpnGatewayAggregatedList::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::VpnGatewayAggregatedList
|
||||
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
|
||||
|
||||
# Deletes the specified VPN gateway.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region for this request.
|
||||
# @param [String] vpn_gateway
|
||||
# Name of the VPN gateway to delete.
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# 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::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_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/regions/{region}/vpnGateways/{vpnGateway}', 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['region'] = region unless region.nil?
|
||||
command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified VPN gateway. Gets a list of available VPN gateways by
|
||||
# making a list() request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region for this request.
|
||||
# @param [String] vpn_gateway
|
||||
# Name of the VPN gateway to return.
|
||||
# @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::ComputeBeta::VpnGateway] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::VpnGateway]
|
||||
#
|
||||
# @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_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::VpnGateway::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::VpnGateway
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.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 VPN gateway in the specified project and region using the data
|
||||
# included in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region for this request.
|
||||
# @param [Google::Apis::ComputeBeta::VpnGateway] vpn_gateway_object
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# 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::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_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::VpnGateway::Representation
|
||||
command.request_object = vpn_gateway_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['region'] = region unless region.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of VPN gateways available to the specified project and region.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region for this request.
|
||||
# @param [String] filter
|
||||
# A filter expression that filters resources listed in the response. The
|
||||
# expression must specify the field name, a comparison operator, and the value
|
||||
# that you want to use for filtering. The value must be a string, a number, or a
|
||||
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||
# instances named example-instance by specifying name != example-instance.
|
||||
# You can also filter nested fields. For example, you could specify scheduling.
|
||||
# automaticRestart = false to include instances only if they are not scheduled
|
||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||
# on resource labels.
|
||||
# To filter on multiple expressions, provide each separate expression within
|
||||
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||
# automaticRestart = true).
|
||||
# @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. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||
# @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
|
||||
# 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::ComputeBeta::VpnGatewayList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::VpnGatewayList]
|
||||
#
|
||||
# @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_vpn_gateways(project, region, 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}/regions/{region}/vpnGateways', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::VpnGatewayList::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::VpnGatewayList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.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
|
||||
|
||||
# Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
|
||||
# Resources documentation.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# The region for this request.
|
||||
# @param [String] resource
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# 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::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_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
|
||||
command.request_object = region_set_labels_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['region'] = region unless region.nil?
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves an aggregated list of VPN tunnels.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
|
||||
Reference in new issue
Block a user