Autogenerated update (2019-05-31)

Update:
- accesscontextmanager_v1
- accesscontextmanager_v1beta
- adexchangebuyer2_v2beta1
- cloudidentity_v1
- cloudidentity_v1beta1
- compute_alpha
- compute_beta
- compute_v1
- containeranalysis_v1beta1
- healthcare_v1alpha2
- healthcare_v1beta1
- securitycenter_v1
- securitycenter_v1beta1
- streetviewpublish_v1
This commit is contained in:
Google APIs 2019-05-31 00:37:37 +00:00
parent 3a41d1089d
commit 5bd1de6305
35 changed files with 6218 additions and 933 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/ # @see https://cloud.google.com/access-context-manager/docs/reference/rest/
module AccesscontextmanagerV1 module AccesscontextmanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190507' REVISION = '20190529'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -446,43 +446,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::AccesscontextmanagerV1::Status] # @return [Google::Apis::AccesscontextmanagerV1::Status]
attr_accessor :error attr_accessor :error
@ -681,43 +648,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/ # @see https://cloud.google.com/access-context-manager/docs/reference/rest/
module AccesscontextmanagerV1beta module AccesscontextmanagerV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20190507' REVISION = '20190529'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -389,43 +389,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::AccesscontextmanagerV1beta::Status] # @return [Google::Apis::AccesscontextmanagerV1beta::Status]
attr_accessor :error attr_accessor :error
@ -634,43 +601,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/ # @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1 module Adexchangebuyer2V2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20190506' REVISION = '20190529'
# Manage your Ad Exchange buyer account configuration # Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -117,6 +117,50 @@ module Google
end end
end end
# Detected ad technology provider information.
class AdTechnologyProviders
include Google::Apis::Core::Hashable
# The detected ad technology provider IDs for this creative.
# See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
# mapping of provider ID to provided name, a privacy policy URL, and a list
# of domains which can be attributed to the provider.
# If the creative contains provider IDs that are outside of those listed in
# the `BidRequest.adslot.consented_providers_settings.consented_providers`
# field on the (Google bid
# protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/
# realtime-bidding-proto]
# and the
# `BidRequest.user.ext.consented_providers_settings.consented_providers`
# field on the (OpenRTB
# protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/
# openrtb-adx-proto],
# and a bid is submitted with that creative for an impression that will
# serve to an EEA user, the bid will be filtered before the auction.
# Corresponds to the JSON property `detectedProviderIds`
# @return [Array<Fixnum>]
attr_accessor :detected_provider_ids
# Whether the creative contains an unidentified ad technology provider.
# If true for a given creative, any bid submitted with that creative for an
# impression that will serve to an EEA user will be filtered before the
# auction.
# Corresponds to the JSON property `hasUnidentifiedProvider`
# @return [Boolean]
attr_accessor :has_unidentified_provider
alias_method :has_unidentified_provider?, :has_unidentified_provider
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@detected_provider_ids = args[:detected_provider_ids] if args.key?(:detected_provider_ids)
@has_unidentified_provider = args[:has_unidentified_provider] if args.key?(:has_unidentified_provider)
end
end
# A request for associating a deal and a creative. # A request for associating a deal and a creative.
class AddDealAssociationRequest class AddDealAssociationRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -638,6 +682,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :ad_choices_destination_url attr_accessor :ad_choices_destination_url
# Detected ad technology provider information.
# Corresponds to the JSON property `adTechnologyProviders`
# @return [Google::Apis::Adexchangebuyer2V2beta1::AdTechnologyProviders]
attr_accessor :ad_technology_providers
# The name of the company being advertised in the creative. # The name of the company being advertised in the creative.
# Corresponds to the JSON property `advertiserName` # Corresponds to the JSON property `advertiserName`
# @return [String] # @return [String]
@ -793,6 +842,7 @@ module Google
def update!(**args) def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id) @account_id = args[:account_id] if args.key?(:account_id)
@ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url) @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
@ad_technology_providers = args[:ad_technology_providers] if args.key?(:ad_technology_providers)
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
@agency_id = args[:agency_id] if args.key?(:agency_id) @agency_id = args[:agency_id] if args.key?(:agency_id)
@api_update_time = args[:api_update_time] if args.key?(:api_update_time) @api_update_time = args[:api_update_time] if args.key?(:api_update_time)

View File

@ -40,6 +40,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AdTechnologyProviders
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDealAssociationRequest class AddDealAssociationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -672,6 +678,14 @@ module Google
end end
end end
class AdTechnologyProviders
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :detected_provider_ids, as: 'detectedProviderIds'
property :has_unidentified_provider, as: 'hasUnidentifiedProvider'
end
end
class AddDealAssociationRequest class AddDealAssociationRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -820,6 +834,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId' property :account_id, as: 'accountId'
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl' property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
property :ad_technology_providers, as: 'adTechnologyProviders', class: Google::Apis::Adexchangebuyer2V2beta1::AdTechnologyProviders, decorator: Google::Apis::Adexchangebuyer2V2beta1::AdTechnologyProviders::Representation
property :advertiser_name, as: 'advertiserName' property :advertiser_name, as: 'advertiserName'
property :agency_id, :numeric_string => true, as: 'agencyId' property :agency_id, :numeric_string => true, as: 'agencyId'
property :api_update_time, as: 'apiUpdateTime' property :api_update_time, as: 'apiUpdateTime'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1 module CloudidentityV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190503' REVISION = '20190529'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -311,43 +311,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::CloudidentityV1::Status] # @return [Google::Apis::CloudidentityV1::Status]
attr_accessor :error attr_accessor :error
@ -421,43 +388,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1beta1 module CloudidentityV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20190503' REVISION = '20190529'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -291,43 +291,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::CloudidentityV1beta1::Status] # @return [Google::Apis::CloudidentityV1beta1::Status]
attr_accessor :error attr_accessor :error
@ -401,43 +368,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

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

View File

@ -4964,14 +4964,14 @@ module Google
attr_accessor :storage_type attr_accessor :storage_type
# URL of the disk type resource describing which disk type to use to create the # URL of the disk type resource describing which disk type to use to create the
# disk. Provide this when creating the disk. For example: project/zones/zone/ # disk. Provide this when creating the disk. For example: projects/project/zones/
# diskTypes/pd-standard or pd-ssd # zone/diskTypes/pd-standard or pd-ssd
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# [Output Only] Links to the users of the disk (attached instances) in form: # [Output Only] Links to the users of the disk (attached instances) in form:
# project/zones/zone/instances/instance # projects/project/zones/zone/instances/instance
# Corresponds to the JSON property `users` # Corresponds to the JSON property `users`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :users attr_accessor :users
@ -9714,6 +9714,18 @@ module Google
# @return [Google::Apis::ComputeAlpha::HttpRouteAction] # @return [Google::Apis::ComputeAlpha::HttpRouteAction]
attr_accessor :route_action attr_accessor :route_action
# The full or partial URL of the backend service resource to which traffic is
# directed if this rule is matched. If routeAction is additionally specified,
# advanced routing actions like URL Rewrites, etc. take effect prior to sending
# the request to the backend. However, if service is specified, routeAction
# cannot contain any weightedBackendService s. Conversely, if routeAction
# specifies any weightedBackendServices, service must not be specified.
# Only one of urlRedirect, service or routeAction.weightedBackendService must be
# set.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# Specifies settings for an HTTP redirect. # Specifies settings for an HTTP redirect.
# Corresponds to the JSON property `urlRedirect` # Corresponds to the JSON property `urlRedirect`
# @return [Google::Apis::ComputeAlpha::HttpRedirectAction] # @return [Google::Apis::ComputeAlpha::HttpRedirectAction]
@ -9728,6 +9740,7 @@ module Google
@header_action = args[:header_action] if args.key?(:header_action) @header_action = args[:header_action] if args.key?(:header_action)
@match_rules = args[:match_rules] if args.key?(:match_rules) @match_rules = args[:match_rules] if args.key?(:match_rules)
@route_action = args[:route_action] if args.key?(:route_action) @route_action = args[:route_action] if args.key?(:route_action)
@service = args[:service] if args.key?(:service)
@url_redirect = args[:url_redirect] if args.key?(:url_redirect) @url_redirect = args[:url_redirect] if args.key?(:url_redirect)
end end
end end
@ -10301,8 +10314,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :container_type attr_accessor :container_type
# An optional SHA1 checksum of the disk image before unpackaging provided by the # [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk
# client when the disk image is created. # image before unpackaging provided by the client when the disk image is created.
# Corresponds to the JSON property `sha1Checksum` # Corresponds to the JSON property `sha1Checksum`
# @return [String] # @return [String]
attr_accessor :sha1_checksum attr_accessor :sha1_checksum
@ -13965,8 +13978,11 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :interconnect_attachments attr_accessor :interconnect_attachments
# Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of " # Type of interconnect, which can take one of the following values:
# DEDICATED" # - PARTNER: A partner-managed interconnection shared between customers though a
# partner.
# - DEDICATED: A dedicated physical interconnection with the customer. Note that
# a value IT_PRIVATE has been deprecated in favor of DEDICATED.
# Corresponds to the JSON property `interconnectType` # Corresponds to the JSON property `interconnectType`
# @return [String] # @return [String]
attr_accessor :interconnect_type attr_accessor :interconnect_type
@ -13997,8 +14013,11 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# Type of link requested. This field indicates speed of each of the links in the # Type of link requested, which can take one of the following values:
# bundle, not the entire bundle. # - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics
# - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this
# field indicates the speed of each of the links in the bundle, not the speed of
# the entire bundle.
# Corresponds to the JSON property `linkType` # Corresponds to the JSON property `linkType`
# @return [String] # @return [String]
attr_accessor :link_type attr_accessor :link_type
@ -14027,8 +14046,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :noc_contact_email attr_accessor :noc_contact_email
# [Output Only] The current status of whether or not this Interconnect is # [Output Only] The current status of this Interconnect's functionality, which
# functional. # can take one of the following values:
# - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use.
# Attachments may be provisioned on this Interconnect.
# - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No
# attachments may be provisioned on this Interconnect.
# - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal
# maintenance. No attachments may be provisioned or updated on this Interconnect.
# Corresponds to the JSON property `operationalStatus` # Corresponds to the JSON property `operationalStatus`
# @return [String] # @return [String]
attr_accessor :operational_status attr_accessor :operational_status
@ -14061,8 +14086,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link_with_id attr_accessor :self_link_with_id
# [Output Only] The current state of whether or not this Interconnect is # [Output Only] The current state of Interconnect functionality, which can take
# functional. # one of the following values:
# - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments
# may be provisioned on this Interconnect.
# - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may
# be provisioned on this Interconnect.
# - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No
# attachments may be provisioned or updated on this Interconnect.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -14114,9 +14145,21 @@ module Google
attr_accessor :admin_enabled attr_accessor :admin_enabled
alias_method :admin_enabled?, :admin_enabled alias_method :admin_enabled?, :admin_enabled
# Provisioned bandwidth capacity for the interconnectAttachment. Can be set by # Provisioned bandwidth capacity for the interconnect attachment. For
# the partner to update the customer's provisioned bandwidth. Output only for # attachments of type DEDICATED, the user can set the bandwidth. For attachments
# PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED. # of type PARTNER, the Google Partner that is operating the interconnect must
# set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER
# and DEDICATED, and can take one of the following values:
# - BPS_50M: 50 Mbit/s
# - BPS_100M: 100 Mbit/s
# - BPS_200M: 200 Mbit/s
# - BPS_300M: 300 Mbit/s
# - BPS_400M: 400 Mbit/s
# - BPS_500M: 500 Mbit/s
# - BPS_1G: 1 Gbit/s
# - BPS_2G: 2 Gbit/s
# - BPS_5G: 5 Gbit/s
# - BPS_10G: 10 Gbit/s
# Corresponds to the JSON property `bandwidth` # Corresponds to the JSON property `bandwidth`
# @return [String] # @return [String]
attr_accessor :bandwidth attr_accessor :bandwidth
@ -14155,11 +14198,14 @@ module Google
attr_accessor :description attr_accessor :description
# Desired availability domain for the attachment. Only available for type # Desired availability domain for the attachment. Only available for type
# PARTNER, at creation time. For improved reliability, customers should # PARTNER, at creation time, and can take one of the following values:
# configure a pair of attachments with one per availability domain. The selected # - AVAILABILITY_DOMAIN_ANY
# availability domain will be provided to the Partner via the pairing key so # - AVAILABILITY_DOMAIN_1
# that the provisioned circuit will lie in the specified domain. If not # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a
# specified, the value will default to AVAILABILITY_DOMAIN_ANY. # pair of attachments, one per availability domain. The selected availability
# domain will be provided to the Partner via the pairing key, so that the
# provisioned circuit will lie in the specified domain. If not specified, the
# value will default to AVAILABILITY_DOMAIN_ANY.
# Corresponds to the JSON property `edgeAvailabilityDomain` # Corresponds to the JSON property `edgeAvailabilityDomain`
# @return [String] # @return [String]
attr_accessor :edge_availability_domain attr_accessor :edge_availability_domain
@ -14219,7 +14265,10 @@ module Google
attr_accessor :name attr_accessor :name
# [Output Only] The current status of whether or not this interconnect # [Output Only] The current status of whether or not this interconnect
# attachment is functional. # attachment is functional, which can take one of the following values:
# - OS_ACTIVE: The attachment has been turned up and is ready to use.
# - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is
# not complete.
# Corresponds to the JSON property `operationalStatus` # Corresponds to the JSON property `operationalStatus`
# @return [String] # @return [String]
attr_accessor :operational_status attr_accessor :operational_status
@ -14232,9 +14281,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :pairing_key attr_accessor :pairing_key
# Optional BGP ASN for the router that should be supplied by a layer 3 Partner # Optional BGP ASN for the router supplied by a Layer 3 Partner if they
# if they configured BGP on behalf of the customer. Output only for PARTNER type, # configured BGP on behalf of the customer. Output only for PARTNER type, input
# input only for PARTNER_PROVIDER, not available for DEDICATED. # only for PARTNER_PROVIDER, not available for DEDICATED.
# Corresponds to the JSON property `partnerAsn` # Corresponds to the JSON property `partnerAsn`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :partner_asn attr_accessor :partner_asn
@ -14277,12 +14326,35 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link_with_id attr_accessor :self_link_with_id
# [Output Only] The current state of this attachment's functionality. # [Output Only] The current state of this attachment's functionality. Enum
# values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and
# PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER,
# PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and
# PARTNER_PROVIDER interconnect attachments. This state can take one of the
# following values:
# - ACTIVE: The attachment has been turned up and is ready to use.
# - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not
# complete.
# - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been
# configured on the Partner side.
# - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of
# provisioning after a PARTNER_PROVIDER attachment was created that references
# it.
# - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting
# for a customer to activate it.
# - DEFUNCT: The attachment was deleted externally and is no longer functional.
# This could be because the associated Interconnect was removed, or because the
# other side of a Partner attachment was deleted.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# # The type of interconnect attachment this is, which can take one of the
# following values:
# - DEDICATED: an attachment to a Dedicated Interconnect.
# - PARTNER: an attachment to a Partner Interconnect, created by the customer.
# - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the
# partner.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -14586,7 +14658,7 @@ module Google
attr_accessor :partner_name attr_accessor :partner_name
# URL of the Partner?s portal for this Attachment. Partners may customise this # URL of the Partner?s portal for this Attachment. Partners may customise this
# to be a deep-link to the specific resource on the Partner portal. This value # to be a deep link to the specific resource on the Partner portal. This value
# may be validated to match approved Partner values. # may be validated to match approved Partner values.
# Corresponds to the JSON property `portalUrl` # Corresponds to the JSON property `portalUrl`
# @return [String] # @return [String]
@ -14824,7 +14896,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :neighbor_system_id attr_accessor :neighbor_system_id
# # The state of a LACP link, which can take one of the following values:
# - ACTIVE: The link is configured and active within the bundle.
# - DETACHED: The link is not configured within the bundle. This means that the
# rest of the object should be empty.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -15070,7 +15145,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :city attr_accessor :city
# [Output Only] Continent for this location. # [Output Only] Continent for this location, which can take one of the following
# values:
# - AFRICA
# - ASIA_PAC
# - EUROPE
# - NORTH_AMERICA
# - SOUTH_AMERICA
# Corresponds to the JSON property `continent` # Corresponds to the JSON property `continent`
# @return [String] # @return [String]
attr_accessor :continent attr_accessor :continent
@ -15136,9 +15217,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link_with_id attr_accessor :self_link_with_id
# [Output Only] The status of this InterconnectLocation. If the status is # [Output Only] The status of this InterconnectLocation, which can take one of
# AVAILABLE, new Interconnects may be provisioned in this InterconnectLocation. # the following values:
# Otherwise, no new Interconnects may be provisioned. # - CLOSED: The InterconnectLocation is closed and is unavailable for
# provisioning new Interconnects.
# - AVAILABLE: The InterconnectLocation is available for provisioning new
# Interconnects.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -15339,8 +15423,13 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :end_time attr_accessor :end_time
# Form this outage is expected to take. Note that the "IT_" versions of this # Form this outage is expected to take, which can take one of the following
# enum have been deprecated in favor of the unprefixed values. # values:
# - OUTAGE: The Interconnect may be completely out of service for some or all of
# the specified window.
# - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should
# remain up, but with reduced bandwidth. Note that the versions of this enum
# prefixed with "IT_" have been deprecated in favor of the unprefixed values.
# Corresponds to the JSON property `issueType` # Corresponds to the JSON property `issueType`
# @return [String] # @return [String]
attr_accessor :issue_type attr_accessor :issue_type
@ -15350,8 +15439,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The party that generated this notification. Note that "NSRC_GOOGLE" has been # The party that generated this notification, which can take the following value:
# deprecated in favor of "GOOGLE" #
# - GOOGLE: this notification as generated by Google. Note that the value of
# NSRC_GOOGLE has been deprecated in favor of GOOGLE.
# Corresponds to the JSON property `source` # Corresponds to the JSON property `source`
# @return [String] # @return [String]
attr_accessor :source attr_accessor :source
@ -15361,8 +15452,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :start_time attr_accessor :start_time
# State of this notification. Note that the "NS_" versions of this enum have # State of this notification, which can take one of the following values:
# been deprecated in favor of the unprefixed values. # - ACTIVE: This outage notification is active. The event could be in the past,
# present, or future. See start_time and end_time for scheduling.
# - CANCELLED: The outage associated with this notification was cancelled before
# the outage was due to start. Note that the versions of this enum prefixed with
# "NS_" have been deprecated in favor of the unprefixed values.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -16272,10 +16367,6 @@ module Google
# Whether Gin logging should happen in a fail-closed manner at the caller. This # Whether Gin logging should happen in a fail-closed manner at the caller. This
# is relevant only in the LocalIAM implementation, for now. # is relevant only in the LocalIAM implementation, for now.
# NOTE: Logging to Gin in a fail-closed manner is currently unsupported while
# work is being done to satisfy the requirements of go/345. Currently, setting
# LOG_FAIL_CLOSED mode will have no effect, but still exists because there is
# active work being done to support it (b/115874152).
# Corresponds to the JSON property `logMode` # Corresponds to the JSON property `logMode`
# @return [String] # @return [String]
attr_accessor :log_mode attr_accessor :log_mode
@ -16358,12 +16449,13 @@ module Google
# @return [Google::Apis::ComputeAlpha::SourceInstanceProperties] # @return [Google::Apis::ComputeAlpha::SourceInstanceProperties]
attr_accessor :source_instance_properties attr_accessor :source_instance_properties
# [Output Only] The status of disk creation. # [Output Only] The status of the machine image. One of the following values:
# INVALID, CREATING, READY, DELETING, and UPLOADING.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# GCS bucket storage location of the snapshot (regional or multi-regional). # GCS bucket storage location of the machine image (regional or multi-regional).
# Corresponds to the JSON property `storageLocations` # Corresponds to the JSON property `storageLocations`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :storage_locations attr_accessor :storage_locations
@ -17561,6 +17653,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :load_balancer_vm_encryption attr_accessor :load_balancer_vm_encryption
# Maximum Transmission Unit in bytes. The minimum value for this field is 1460
# and the maximum value is 1600 bytes.
# Corresponds to the JSON property `mtu`
# @return [Fixnum]
attr_accessor :mtu
# The multicast mode for this network. If set to ZONAL, multicast is allowed # The multicast mode for this network. If set to ZONAL, multicast is allowed
# within a zone. If set to DISABLED, multicast is disabled for this network. The # within a zone. If set to DISABLED, multicast is disabled for this network. The
# default is DISABLED. # default is DISABLED.
@ -17621,6 +17719,7 @@ module Google
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@load_balancer_vm_encryption = args[:load_balancer_vm_encryption] if args.key?(:load_balancer_vm_encryption) @load_balancer_vm_encryption = args[:load_balancer_vm_encryption] if args.key?(:load_balancer_vm_encryption)
@mtu = args[:mtu] if args.key?(:mtu)
@multicast_mode = args[:multicast_mode] if args.key?(:multicast_mode) @multicast_mode = args[:multicast_mode] if args.key?(:multicast_mode)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@peerings = args[:peerings] if args.key?(:peerings) @peerings = args[:peerings] if args.key?(:peerings)
@ -18695,6 +18794,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# Maximum Transmission Unit in bytes.
# Corresponds to the JSON property `peerMtu`
# @return [Fixnum]
attr_accessor :peer_mtu
# [Output Only] State for the peering. # [Output Only] State for the peering.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
@ -18720,6 +18824,7 @@ module Google
@import_subnet_routes_with_public_ip = args[:import_subnet_routes_with_public_ip] if args.key?(:import_subnet_routes_with_public_ip) @import_subnet_routes_with_public_ip = args[:import_subnet_routes_with_public_ip] if args.key?(:import_subnet_routes_with_public_ip)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network) @network = args[:network] if args.key?(:network)
@peer_mtu = args[:peer_mtu] if args.key?(:peer_mtu)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
@state_details = args[:state_details] if args.key?(:state_details) @state_details = args[:state_details] if args.key?(:state_details)
end end
@ -23969,7 +24074,9 @@ module Google
class ReservationAffinity class ReservationAffinity
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# # Specifies the type of reservation from which this instance can consume
# resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
# See Consuming reserved instances for examples.
# Corresponds to the JSON property `consumeReservationType` # Corresponds to the JSON property `consumeReservationType`
# @return [String] # @return [String]
attr_accessor :consume_reservation_type attr_accessor :consume_reservation_type
@ -25518,9 +25625,9 @@ module Google
# @return [Google::Apis::ComputeAlpha::RouterBgp] # @return [Google::Apis::ComputeAlpha::RouterBgp]
attr_accessor :bgp attr_accessor :bgp
# BGP information that needs to be configured into the routing stack to # BGP information that must be configured into the routing stack to establish
# establish the BGP peering. It must specify peer ASN and either interface name, # BGP peering. This information must specify the peer ASN and either the
# IP, or peer IP. Please refer to RFC4273. # interface name, IP address, or peer IP address. Please refer to RFC4273.
# Corresponds to the JSON property `bgpPeers` # Corresponds to the JSON property `bgpPeers`
# @return [Array<Google::Apis::ComputeAlpha::RouterBgpPeer>] # @return [Array<Google::Apis::ComputeAlpha::RouterBgpPeer>]
attr_accessor :bgp_peers attr_accessor :bgp_peers
@ -25542,8 +25649,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# Router interfaces. Each interface requires either one linked resource (e.g. # Router interfaces. Each interface requires either one linked resource, (for
# linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. # example, linkedVpnTunnel), or IP address and IP address range (for example,
# ipRange), or both.
# Corresponds to the JSON property `interfaces` # Corresponds to the JSON property `interfaces`
# @return [Array<Google::Apis::ComputeAlpha::RouterInterface>] # @return [Array<Google::Apis::ComputeAlpha::RouterInterface>]
attr_accessor :interfaces attr_accessor :interfaces
@ -25563,7 +25671,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# A list of Nat services created in this router. # A list of NAT services created in this router.
# Corresponds to the JSON property `nats` # Corresponds to the JSON property `nats`
# @return [Array<Google::Apis::ComputeAlpha::RouterNat>] # @return [Array<Google::Apis::ComputeAlpha::RouterNat>]
attr_accessor :nats attr_accessor :nats
@ -25758,7 +25866,8 @@ module Google
class RouterBgp class RouterBgp
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# User-specified flag to indicate which mode to use for advertisement. # User-specified flag to indicate which mode to use for advertisement. The
# options are DEFAULT or CUSTOM.
# Corresponds to the JSON property `advertiseMode` # Corresponds to the JSON property `advertiseMode`
# @return [String] # @return [String]
attr_accessor :advertise_mode attr_accessor :advertise_mode
@ -25820,27 +25929,31 @@ module Google
# @return [String] # @return [String]
attr_accessor :advertise_mode attr_accessor :advertise_mode
# User-specified list of prefix groups to advertise in custom mode. This field # User-specified list of prefix groups to advertise in custom mode, which can
# can only be populated if advertise_mode is CUSTOM and overrides the list # take one of the following options:
# defined for the router (in Bgp message). These groups will be advertised in # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets.
# addition to any specified prefixes. Leave this field blank to advertise no # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets.
# custom groups. # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network.
# Note that this field can only be populated if advertise_mode is CUSTOM and
# overrides the list defined for the router (in the "bgp" message). These groups
# are advertised in addition to any specified prefixes. Leave this field blank
# to advertise no custom groups.
# Corresponds to the JSON property `advertisedGroups` # Corresponds to the JSON property `advertisedGroups`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :advertised_groups attr_accessor :advertised_groups
# User-specified list of individual IP ranges to advertise in custom mode. This # User-specified list of individual IP ranges to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and overrides the list # field can only be populated if advertise_mode is CUSTOM and overrides the list
# defined for the router (in Bgp message). These IP ranges will be advertised in # defined for the router (in the "bgp" message). These IP ranges are advertised
# addition to any specified groups. Leave this field blank to advertise no # in addition to any specified groups. Leave this field blank to advertise no
# custom IP ranges. # custom IP ranges.
# Corresponds to the JSON property `advertisedIpRanges` # Corresponds to the JSON property `advertisedIpRanges`
# @return [Array<Google::Apis::ComputeAlpha::RouterAdvertisedIpRange>] # @return [Array<Google::Apis::ComputeAlpha::RouterAdvertisedIpRange>]
attr_accessor :advertised_ip_ranges attr_accessor :advertised_ip_ranges
# The priority of routes advertised to this BGP peer. In the case where there is # The priority of routes advertised to this BGP peer. Where there is more than
# more than one matching route of maximum length, the routes with lowest # one matching route of maximum length, the routes with the lowest priority
# priority value win. # value win.
# Corresponds to the JSON property `advertisedRoutePriority` # Corresponds to the JSON property `advertisedRoutePriority`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :advertised_route_priority attr_accessor :advertised_route_priority
@ -25870,11 +25983,12 @@ module Google
attr_accessor :ip_address attr_accessor :ip_address
# [Output Only] The resource that configures and manages this BGP peer. # [Output Only] The resource that configures and manages this BGP peer.
# MANAGED_BY_USER is the default value and can be managed by you or other users; # - MANAGED_BY_USER is the default value and can be managed by you or other
# MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud # users
# - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud
# Interconnect, specifically by an InterconnectAttachment of type PARTNER. # Interconnect, specifically by an InterconnectAttachment of type PARTNER.
# Google will automatically create, update, and delete this type of BGP peer # Google automatically creates, updates, and deletes this type of BGP peer when
# when the PARTNER InterconnectAttachment is created, updated, or deleted. # the PARTNER InterconnectAttachment is created, updated, or deleted.
# Corresponds to the JSON property `managementType` # Corresponds to the JSON property `managementType`
# @return [String] # @return [String]
attr_accessor :management_type attr_accessor :management_type
@ -25885,13 +25999,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a
# different for every tunnel. # different value.
# Corresponds to the JSON property `peerAsn` # Corresponds to the JSON property `peerAsn`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :peer_asn attr_accessor :peer_asn
# IP address of the BGP interface outside Google cloud. Only IPv4 is supported. # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is
# supported.
# Corresponds to the JSON property `peerIpAddress` # Corresponds to the JSON property `peerIpAddress`
# @return [String] # @return [String]
attr_accessor :peer_ip_address attr_accessor :peer_ip_address
@ -25973,6 +26088,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :packet_mode attr_accessor :packet_mode
# The BFD session initialization mode for this BGP peer. If set to ACTIVE, the
# Cloud Router will initiate the BFD session for this BGP peer. If set to
# PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD
# session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP
# peer. The default is PASSIVE.
# Corresponds to the JSON property `sessionInitializationMode`
# @return [String]
attr_accessor :session_initialization_mode
# The minimum interval, in milliseconds, between BFD control packets transmitted # The minimum interval, in milliseconds, between BFD control packets transmitted
# to and received from the peer router when BFD echo mode is enabled on both # to and received from the peer router when BFD echo mode is enabled on both
# routers. The actual transmit and receive intervals are negotiated between the # routers. The actual transmit and receive intervals are negotiated between the
@ -25994,6 +26118,7 @@ module Google
@mode = args[:mode] if args.key?(:mode) @mode = args[:mode] if args.key?(:mode)
@multiplier = args[:multiplier] if args.key?(:multiplier) @multiplier = args[:multiplier] if args.key?(:multiplier)
@packet_mode = args[:packet_mode] if args.key?(:packet_mode) @packet_mode = args[:packet_mode] if args.key?(:packet_mode)
@session_initialization_mode = args[:session_initialization_mode] if args.key?(:session_initialization_mode)
@slow_timer_interval = args[:slow_timer_interval] if args.key?(:slow_timer_interval) @slow_timer_interval = args[:slow_timer_interval] if args.key?(:slow_timer_interval)
end end
end end
@ -26003,32 +26128,32 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# IP address and range of the interface. The IP range must be in the RFC3927 # IP address and range of the interface. The IP range must be in the RFC3927
# link-local IP space. The value must be a CIDR-formatted string, for example: # link-local IP address space. The value must be a CIDR-formatted string, for
# 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP # example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents
# address of the interface. # the IP address of the interface.
# Corresponds to the JSON property `ipRange` # Corresponds to the JSON property `ipRange`
# @return [String] # @return [String]
attr_accessor :ip_range attr_accessor :ip_range
# URI of the linked interconnect attachment. It must be in the same region as # URI of the linked Interconnect attachment. It must be in the same region as
# the router. Each interface can have at most one linked resource and it could # the router. Each interface can have one linked resource, which can be either
# either be a VPN Tunnel or an interconnect attachment. # be a VPN tunnel or an Interconnect attachment.
# Corresponds to the JSON property `linkedInterconnectAttachment` # Corresponds to the JSON property `linkedInterconnectAttachment`
# @return [String] # @return [String]
attr_accessor :linked_interconnect_attachment attr_accessor :linked_interconnect_attachment
# URI of the linked VPN tunnel. It must be in the same region as the router. # URI of the linked VPN tunnel, which must be in the same region as the router.
# Each interface can have at most one linked resource and it could either be a # Each interface can have one linked resource, which can be either a VPN tunnel
# VPN Tunnel or an interconnect attachment. # or an Interconnect attachment.
# Corresponds to the JSON property `linkedVpnTunnel` # Corresponds to the JSON property `linkedVpnTunnel`
# @return [String] # @return [String]
attr_accessor :linked_vpn_tunnel attr_accessor :linked_vpn_tunnel
# [Output Only] The resource that configures and manages this interface. # [Output Only] The resource that configures and manages this interface.
# MANAGED_BY_USER is the default value and can be managed by you or other users; # - MANAGED_BY_USER is the default value and can be managed directly by users.
# MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by
# Interconnect, specifically by an InterconnectAttachment of type PARTNER. # Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER.
# Google will automatically create, update, and delete this type of interface # Google automatically creates, updates, and deletes this type of interface
# when the PARTNER InterconnectAttachment is created, updated, or deleted. # when the PARTNER InterconnectAttachment is created, updated, or deleted.
# Corresponds to the JSON property `managementType` # Corresponds to the JSON property `managementType`
# @return [String] # @return [String]
@ -26197,9 +26322,9 @@ module Google
attr_accessor :log_config attr_accessor :log_config
# Minimum number of ports allocated to a VM from this NAT config. If not set, a # Minimum number of ports allocated to a VM from this NAT config. If not set, a
# default number of ports is allocated to a VM. This gets rounded up to the # default number of ports is allocated to a VM. This is rounded up to the
# nearest power of 2. Eg. if the value of this field is 50, at least 64 ports # nearest power of 2. For example, if the value of this field is 50, at least 64
# will be allocated to a VM. # ports are allocated to a VM.
# Corresponds to the JSON property `minPortsPerVm` # Corresponds to the JSON property `minPortsPerVm`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_ports_per_vm attr_accessor :min_ports_per_vm
@ -26210,21 +26335,31 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should be # Specify the NatIpAllocateOption, which can take one of the following values:
# empty. # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there
# are not enough specified Nat IPs, the Nat service fails for new VMs.
# - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't
# specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty.
# Corresponds to the JSON property `natIpAllocateOption` # Corresponds to the JSON property `natIpAllocateOption`
# @return [String] # @return [String]
attr_accessor :nat_ip_allocate_option attr_accessor :nat_ip_allocate_option
# A list of URLs of the IP resources used for this Nat service. These IPs must # A list of URLs of the IP resources used for this Nat service. These IP
# be valid static external IP addresses assigned to the project. max_length is # addresses must be valid static external IP addresses assigned to the project.
# subject to change post alpha.
# Corresponds to the JSON property `natIps` # Corresponds to the JSON property `natIps`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :nat_ips attr_accessor :nat_ips
# Specify the Nat option. If this field contains ALL_SUBNETWORKS_ALL_IP_RANGES # Specify the Nat option, which can take one of the following values:
# or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are
# allowed to Nat.
# - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every
# Subnetwork are allowed to Nat.
# - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in
# the field subnetwork below) The default is
# SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field
# contains ALL_SUBNETWORKS_ALL_IP_RANGES or
# ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other
# Router.Nat section in any Router for this network in this region. # Router.Nat section in any Router for this network in this region.
# Corresponds to the JSON property `sourceSubnetworkIpRangesToNat` # Corresponds to the JSON property `sourceSubnetworkIpRangesToNat`
# @return [String] # @return [String]
@ -26306,7 +26441,7 @@ module Google
class RouterNatSubnetworkToNat class RouterNatSubnetworkToNat
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# URL for the subnetwork resource to use NAT. # URL for the subnetwork resource that will use NAT.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -26318,7 +26453,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :secondary_ip_range_names attr_accessor :secondary_ip_range_names
# Specify the options for NAT ranges in the Subnetwork. All usages of single # Specify the options for NAT ranges in the Subnetwork. All options of a single
# value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option # value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option
# with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] # with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"]
# Default: [ALL_IP_RANGES] # Default: [ALL_IP_RANGES]
@ -26807,13 +26942,7 @@ module Google
attr_accessor :boot attr_accessor :boot
alias_method :boot?, :boot alias_method :boot?, :boot
# Specifies a unique device name of your choice that is reflected into the /dev/ # Specifies the name of the disk attached to the source instance.
# disk/by-id/google-* tree of a Linux operating system running within the
# instance. This name can be used to reference the device for mounting, resizing,
# and so on, from within the instance.
# If not specified, the server chooses a default device name to apply to this
# disk, in the form persistent-disks-x, where x is a number assigned by Google
# Compute Engine. This field is only applicable for persistent disks.
# Corresponds to the JSON property `deviceName` # Corresponds to the JSON property `deviceName`
# @return [String] # @return [String]
attr_accessor :device_name attr_accessor :device_name
@ -26823,8 +26952,7 @@ module Google
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :disk_encryption_key attr_accessor :disk_encryption_key
# The size of the disk in base-2 GB. This supersedes disk_size_gb in # The size of the disk in base-2 GB.
# InitializeParams.
# Corresponds to the JSON property `diskSizeGb` # Corresponds to the JSON property `diskSizeGb`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :disk_size_gb attr_accessor :disk_size_gb
@ -26836,27 +26964,13 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>] # @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
attr_accessor :guest_os_features attr_accessor :guest_os_features
# [Output Only] A zero-based index to this disk, where 0 is reserved for the # Specifies zero-based index of the disk that is attached to the source instance.
# boot disk. If you have many disks attached to an instance, each disk would
# have a unique index number.
# Corresponds to the JSON property `index` # Corresponds to the JSON property `index`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :index attr_accessor :index
# [Input Only] Specifies the parameters for a new disk that will be created
# alongside the new instance. Use initialization parameters to create boot disks
# or local SSDs attached to the new instance.
# This property is mutually exclusive with the source property; you can only
# define one or the other, but not both.
# Corresponds to the JSON property `initializeParams`
# @return [Google::Apis::ComputeAlpha::AttachedDiskInitializeParams]
attr_accessor :initialize_params
# Specifies the disk interface to use for attaching this disk, which is either # Specifies the disk interface to use for attaching this disk, which is either
# SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and # SCSI or NVME.
# the request will fail if you attempt to attach a persistent disk in any other
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
# characteristics of SCSI over NVMe, see Local SSD performance.
# Corresponds to the JSON property `interface` # Corresponds to the JSON property `interface`
# @return [String] # @return [String]
attr_accessor :interface attr_accessor :interface
@ -26872,32 +26986,19 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :licenses attr_accessor :licenses
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not # The mode in which this disk is attached to the source instance, either
# specified, the default is to attach the disk in READ_WRITE mode. # READ_WRITE or READ_ONLY.
# Corresponds to the JSON property `mode` # Corresponds to the JSON property `mode`
# @return [String] # @return [String]
attr_accessor :mode attr_accessor :mode
# For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field # Specifies a URL of the disk attached to the source instance.
# is set to PRESERVED if the LocalSSD data has been saved to a persistent
# location by customer request. (see the discard_local_ssd option on Stop/
# Suspend). Read-only in the api.
# Corresponds to the JSON property `savedState`
# @return [String]
attr_accessor :saved_state
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
# When creating a new instance, one of initializeParams.sourceImage or disks.
# source is required except for local SSD.
# If desired, you can also attach existing non-root persistent disks using this
# property. This field is only applicable for persistent disks.
# Note that for sourceMachineImage, specify the disk name, not the URL for the
# disk.
# Corresponds to the JSON property `source` # Corresponds to the JSON property `source`
# @return [String] # @return [String]
attr_accessor :source attr_accessor :source
# [Output Only] A size of the storage used by the disk's snapshot. # [Output Only] A size of the storage used by the disk's snapshot by this
# machine image.
# Corresponds to the JSON property `storageBytes` # Corresponds to the JSON property `storageBytes`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :storage_bytes attr_accessor :storage_bytes
@ -26910,8 +27011,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :storage_bytes_status attr_accessor :storage_bytes_status
# Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, # Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
# the default is PERSISTENT.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -26929,12 +27029,10 @@ module Google
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@index = args[:index] if args.key?(:index) @index = args[:index] if args.key?(:index)
@initialize_params = args[:initialize_params] if args.key?(:initialize_params)
@interface = args[:interface] if args.key?(:interface) @interface = args[:interface] if args.key?(:interface)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@licenses = args[:licenses] if args.key?(:licenses) @licenses = args[:licenses] if args.key?(:licenses)
@mode = args[:mode] if args.key?(:mode) @mode = args[:mode] if args.key?(:mode)
@saved_state = args[:saved_state] if args.key?(:saved_state)
@source = args[:source] if args.key?(:source) @source = args[:source] if args.key?(:source)
@storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes) @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
@storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status) @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status)
@ -28450,7 +28548,7 @@ module Google
attr_accessor :can_ip_forward attr_accessor :can_ip_forward
alias_method :can_ip_forward?, :can_ip_forward alias_method :can_ip_forward?, :can_ip_forward
# Whether the instance created from the machine image should be protected # Whether the instance created from this machine image should be protected
# against deletion. # against deletion.
# Corresponds to the JSON property `deletionProtection` # Corresponds to the JSON property `deletionProtection`
# @return [Boolean] # @return [Boolean]
@ -28470,7 +28568,7 @@ module Google
attr_accessor :disks attr_accessor :disks
# A list of guest accelerator cards' type and count to use for instances created # A list of guest accelerator cards' type and count to use for instances created
# from the machine image. # from this machine image.
# Corresponds to the JSON property `guestAccelerators` # Corresponds to the JSON property `guestAccelerators`
# @return [Array<Google::Apis::ComputeAlpha::AcceleratorConfig>] # @return [Array<Google::Apis::ComputeAlpha::AcceleratorConfig>]
attr_accessor :guest_accelerators attr_accessor :guest_accelerators
@ -28490,11 +28588,11 @@ module Google
# @return [Google::Apis::ComputeAlpha::Metadata] # @return [Google::Apis::ComputeAlpha::Metadata]
attr_accessor :metadata attr_accessor :metadata
# Minimum cpu/platform to be used by this instance. The instance may be # Minimum cpu/platform to be used by instances created from this machine image.
# scheduled on the specified or newer cpu/platform. Applicable values are the # The instance may be scheduled on the specified or newer cpu/platform.
# friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or # Applicable values are the friendly names of CPU platforms, such as
# minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a # minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For
# Minimum CPU Platform. # more information, read Specifying a Minimum CPU Platform.
# Corresponds to the JSON property `minCpuPlatform` # Corresponds to the JSON property `minCpuPlatform`
# @return [String] # @return [String]
attr_accessor :min_cpu_platform attr_accessor :min_cpu_platform
@ -29506,10 +29604,12 @@ module Google
class Subnetwork class Subnetwork
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Can only be specified if VPC flow logging for this subnetwork is enabled. # Can only be specified if VPC flow logging for this subnetwork is enabled. Sets
# Toggles the aggregation interval for collecting flow logs. Increasing the # the aggregation interval for collecting flow logs. Increasing the interval
# interval time will reduce the amount of generated flow logs for long lasting # time reduces the amount of generated flow logs for long-lasting connections.
# connections. Default is an interval of 5 seconds per connection. # Default is an interval of 5 seconds per connection. Valid values:
# INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN,
# INTERVAL_10_MIN, INTERVAL_15_MIN.
# Corresponds to the JSON property `aggregationInterval` # Corresponds to the JSON property `aggregationInterval`
# @return [String] # @return [String]
attr_accessor :aggregation_interval attr_accessor :aggregation_interval
@ -29571,7 +29671,7 @@ module Google
# Can only be specified if VPC flow logging for this subnetwork is enabled. The # Can only be specified if VPC flow logging for this subnetwork is enabled. The
# value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs # value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs
# within the subnetwork where 1.0 means all collected logs are reported and 0.0 # within the subnetwork where 1.0 means all collected logs are reported and 0.0
# means no logs are reported. Default is 0.5 which means half of all collected # means no logs are reported. Default is 0.5, which means half of all collected
# logs are reported. # logs are reported.
# Corresponds to the JSON property `flowSampling` # Corresponds to the JSON property `flowSampling`
# @return [Float] # @return [Float]
@ -30010,7 +30110,7 @@ module Google
# Can only be specified if VPC flow logging for this subnetwork is enabled. The # Can only be specified if VPC flow logging for this subnetwork is enabled. The
# value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs # value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs
# within the subnetwork where 1.0 means all collected logs are reported and 0.0 # within the subnetwork where 1.0 means all collected logs are reported and 0.0
# means no logs are reported. Default is 0.5 which means half of all collected # means no logs are reported. Default is 0.5, which means half of all collected
# logs are reported. # logs are reported.
# Corresponds to the JSON property `flowSampling` # Corresponds to the JSON property `flowSampling`
# @return [Float] # @return [Float]

View File

@ -7319,6 +7319,7 @@ module Google
property :route_action, as: 'routeAction', class: Google::Apis::ComputeAlpha::HttpRouteAction, decorator: Google::Apis::ComputeAlpha::HttpRouteAction::Representation property :route_action, as: 'routeAction', class: Google::Apis::ComputeAlpha::HttpRouteAction, decorator: Google::Apis::ComputeAlpha::HttpRouteAction::Representation
property :service, as: 'service'
property :url_redirect, as: 'urlRedirect', class: Google::Apis::ComputeAlpha::HttpRedirectAction, decorator: Google::Apis::ComputeAlpha::HttpRedirectAction::Representation property :url_redirect, as: 'urlRedirect', class: Google::Apis::ComputeAlpha::HttpRedirectAction, decorator: Google::Apis::ComputeAlpha::HttpRedirectAction::Representation
end end
@ -9324,6 +9325,7 @@ module Google
property :id, :numeric_string => true, as: 'id' property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :load_balancer_vm_encryption, as: 'loadBalancerVmEncryption' property :load_balancer_vm_encryption, as: 'loadBalancerVmEncryption'
property :mtu, as: 'mtu'
property :multicast_mode, as: 'multicastMode' property :multicast_mode, as: 'multicastMode'
property :name, as: 'name' property :name, as: 'name'
collection :peerings, as: 'peerings', class: Google::Apis::ComputeAlpha::NetworkPeering, decorator: Google::Apis::ComputeAlpha::NetworkPeering::Representation collection :peerings, as: 'peerings', class: Google::Apis::ComputeAlpha::NetworkPeering, decorator: Google::Apis::ComputeAlpha::NetworkPeering::Representation
@ -9607,6 +9609,7 @@ module Google
property :import_subnet_routes_with_public_ip, as: 'importSubnetRoutesWithPublicIp' property :import_subnet_routes_with_public_ip, as: 'importSubnetRoutesWithPublicIp'
property :name, as: 'name' property :name, as: 'name'
property :network, as: 'network' property :network, as: 'network'
property :peer_mtu, as: 'peerMtu'
property :state, as: 'state' property :state, as: 'state'
property :state_details, as: 'stateDetails' property :state_details, as: 'stateDetails'
end end
@ -11544,6 +11547,7 @@ module Google
property :mode, as: 'mode' property :mode, as: 'mode'
property :multiplier, as: 'multiplier' property :multiplier, as: 'multiplier'
property :packet_mode, as: 'packetMode' property :packet_mode, as: 'packetMode'
property :session_initialization_mode, as: 'sessionInitializationMode'
property :slow_timer_interval, as: 'slowTimerInterval' property :slow_timer_interval, as: 'slowTimerInterval'
end end
end end
@ -11758,13 +11762,10 @@ module Google
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
property :index, as: 'index' property :index, as: 'index'
property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams::Representation
property :interface, as: 'interface' property :interface, as: 'interface'
property :kind, as: 'kind' property :kind, as: 'kind'
collection :licenses, as: 'licenses' collection :licenses, as: 'licenses'
property :mode, as: 'mode' property :mode, as: 'mode'
property :saved_state, as: 'savedState'
property :source, as: 'source' property :source, as: 'source'
property :storage_bytes, :numeric_string => true, as: 'storageBytes' property :storage_bytes, :numeric_string => true, as: 'storageBytes'
property :storage_bytes_status, as: 'storageBytesStatus' property :storage_bytes_status, as: 'storageBytesStatus'

View File

@ -47,7 +47,7 @@ module Google
attr_accessor :user_ip attr_accessor :user_ip
def initialize def initialize
super('https://compute.googleapis.com/', 'compute/alpha/projects/') super('https://www.googleapis.com/', 'compute/alpha/projects/')
@batch_path = 'batch/compute/alpha' @batch_path = 'batch/compute/alpha'
end end
@ -2534,7 +2534,9 @@ module Google
# Name of the persistent disk to snapshot. # Name of the persistent disk to snapshot.
# @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
# @param [Boolean] guest_flush # @param [Boolean] guest_flush
# Application consistent snapshot (ie. VSS). # [Input Only] Specifies to create an application consistent snapshot by
# informing the OS to prepare for the snapshot process. Currently only supported
# on Windows instances using the Volume Shadow Copy Service (VSS).
# @param [String] request_id # @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so # 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 # that if you must retry your request, the server will know to ignore the
@ -12188,6 +12190,8 @@ module Google
# accidentally creating duplicate commitments. # accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not # The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000). # supported (00000000-0000-0000-0000-000000000000).
# @param [Boolean] validate_only
# If true, the request will not be committed.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -12207,7 +12211,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments', options) command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments', options)
command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachment::Representation command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachment::Representation
command.request_object = interconnect_attachment_object command.request_object = interconnect_attachment_object
@ -12216,6 +12220,7 @@ module Google
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_id.nil? command.query['requestId'] = request_id unless request_id.nil?
command.query['validateOnly'] = validate_only unless validate_only.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?
@ -19398,7 +19403,9 @@ module Google
# Name of the regional persistent disk to snapshot. # Name of the regional persistent disk to snapshot.
# @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
# @param [Boolean] guest_flush # @param [Boolean] guest_flush
# Application consistent snapshot (ie. VSS). # [Input Only] Specifies to create an application consistent snapshot by
# informing the OS to prepare for the snapshot process. Currently only supported
# on Windows instances using the Volume Shadow Copy Service (VSS).
# @param [String] request_id # @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so # 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 # that if you must retry your request, the server will know to ignore the

View File

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -1216,6 +1216,22 @@ module Google
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey] # @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key attr_accessor :source_image_encryption_key
# The source snapshot to create this disk. When creating a new instance, one of
# initializeParams.sourceSnapshot or disks.source is required except for local
# SSD.
# To create a disk with a snapshot that you created, specify the snapshot name
# in the following format:
# global/snapshots/my-backup
# If the source snapshot is deleted later, this field will not be set.
# Corresponds to the JSON property `sourceSnapshot`
# @return [String]
attr_accessor :source_snapshot
# Represents a customer-supplied encryption key
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :source_snapshot_encryption_key
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1229,6 +1245,8 @@ module Google
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@source_image = args[:source_image] if args.key?(:source_image) @source_image = args[:source_image] if args.key?(:source_image)
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
@source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key)
end end
end end
@ -3863,14 +3881,14 @@ module Google
attr_accessor :status attr_accessor :status
# URL of the disk type resource describing which disk type to use to create the # URL of the disk type resource describing which disk type to use to create the
# disk. Provide this when creating the disk. For example: project/zones/zone/ # disk. Provide this when creating the disk. For example: projects/project/zones/
# diskTypes/pd-standard or pd-ssd # zone/diskTypes/pd-standard or pd-ssd
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# [Output Only] Links to the users of the disk (attached instances) in form: # [Output Only] Links to the users of the disk (attached instances) in form:
# project/zones/zone/instances/instance # projects/project/zones/zone/instances/instance
# Corresponds to the JSON property `users` # Corresponds to the JSON property `users`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :users attr_accessor :users
@ -7267,8 +7285,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :container_type attr_accessor :container_type
# An optional SHA1 checksum of the disk image before unpackaging provided by the # [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk
# client when the disk image is created. # image before unpackaging provided by the client when the disk image is created.
# Corresponds to the JSON property `sha1Checksum` # Corresponds to the JSON property `sha1Checksum`
# @return [String] # @return [String]
attr_accessor :sha1_checksum attr_accessor :sha1_checksum
@ -10173,8 +10191,11 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :interconnect_attachments attr_accessor :interconnect_attachments
# Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of " # Type of interconnect, which can take one of the following values:
# DEDICATED" # - PARTNER: A partner-managed interconnection shared between customers though a
# partner.
# - DEDICATED: A dedicated physical interconnection with the customer. Note that
# a value IT_PRIVATE has been deprecated in favor of DEDICATED.
# Corresponds to the JSON property `interconnectType` # Corresponds to the JSON property `interconnectType`
# @return [String] # @return [String]
attr_accessor :interconnect_type attr_accessor :interconnect_type
@ -10185,8 +10206,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Type of link requested. This field indicates speed of each of the links in the # Type of link requested, which can take one of the following values:
# bundle, not the entire bundle. # - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics
# - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this
# field indicates the speed of each of the links in the bundle, not the speed of
# the entire bundle.
# Corresponds to the JSON property `linkType` # Corresponds to the JSON property `linkType`
# @return [String] # @return [String]
attr_accessor :link_type attr_accessor :link_type
@ -10215,8 +10239,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :noc_contact_email attr_accessor :noc_contact_email
# [Output Only] The current status of whether or not this Interconnect is # [Output Only] The current status of this Interconnect's functionality, which
# functional. # can take one of the following values:
# - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use.
# Attachments may be provisioned on this Interconnect.
# - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No
# attachments may be provisioned on this Interconnect.
# - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal
# maintenance. No attachments may be provisioned or updated on this Interconnect.
# Corresponds to the JSON property `operationalStatus` # Corresponds to the JSON property `operationalStatus`
# @return [String] # @return [String]
attr_accessor :operational_status attr_accessor :operational_status
@ -10244,8 +10274,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
# [Output Only] The current state of whether or not this Interconnect is # [Output Only] The current state of Interconnect functionality, which can take
# functional. # one of the following values:
# - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments
# may be provisioned on this Interconnect.
# - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may
# be provisioned on this Interconnect.
# - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No
# attachments may be provisioned or updated on this Interconnect.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -10294,9 +10330,21 @@ module Google
attr_accessor :admin_enabled attr_accessor :admin_enabled
alias_method :admin_enabled?, :admin_enabled alias_method :admin_enabled?, :admin_enabled
# Provisioned bandwidth capacity for the interconnectAttachment. Can be set by # Provisioned bandwidth capacity for the interconnect attachment. For
# the partner to update the customer's provisioned bandwidth. Output only for # attachments of type DEDICATED, the user can set the bandwidth. For attachments
# PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED. # of type PARTNER, the Google Partner that is operating the interconnect must
# set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER
# and DEDICATED, and can take one of the following values:
# - BPS_50M: 50 Mbit/s
# - BPS_100M: 100 Mbit/s
# - BPS_200M: 200 Mbit/s
# - BPS_300M: 300 Mbit/s
# - BPS_400M: 400 Mbit/s
# - BPS_500M: 500 Mbit/s
# - BPS_1G: 1 Gbit/s
# - BPS_2G: 2 Gbit/s
# - BPS_5G: 5 Gbit/s
# - BPS_10G: 10 Gbit/s
# Corresponds to the JSON property `bandwidth` # Corresponds to the JSON property `bandwidth`
# @return [String] # @return [String]
attr_accessor :bandwidth attr_accessor :bandwidth
@ -10335,11 +10383,14 @@ module Google
attr_accessor :description attr_accessor :description
# Desired availability domain for the attachment. Only available for type # Desired availability domain for the attachment. Only available for type
# PARTNER, at creation time. For improved reliability, customers should # PARTNER, at creation time, and can take one of the following values:
# configure a pair of attachments with one per availability domain. The selected # - AVAILABILITY_DOMAIN_ANY
# availability domain will be provided to the Partner via the pairing key so # - AVAILABILITY_DOMAIN_1
# that the provisioned circuit will lie in the specified domain. If not # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a
# specified, the value will default to AVAILABILITY_DOMAIN_ANY. # pair of attachments, one per availability domain. The selected availability
# domain will be provided to the Partner via the pairing key, so that the
# provisioned circuit will lie in the specified domain. If not specified, the
# value will default to AVAILABILITY_DOMAIN_ANY.
# Corresponds to the JSON property `edgeAvailabilityDomain` # Corresponds to the JSON property `edgeAvailabilityDomain`
# @return [String] # @return [String]
attr_accessor :edge_availability_domain attr_accessor :edge_availability_domain
@ -10379,7 +10430,10 @@ module Google
attr_accessor :name attr_accessor :name
# [Output Only] The current status of whether or not this interconnect # [Output Only] The current status of whether or not this interconnect
# attachment is functional. # attachment is functional, which can take one of the following values:
# - OS_ACTIVE: The attachment has been turned up and is ready to use.
# - OS_UNPROVISIONED: The attachment is not ready to use yet, because turnup is
# not complete.
# Corresponds to the JSON property `operationalStatus` # Corresponds to the JSON property `operationalStatus`
# @return [String] # @return [String]
attr_accessor :operational_status attr_accessor :operational_status
@ -10392,9 +10446,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :pairing_key attr_accessor :pairing_key
# Optional BGP ASN for the router that should be supplied by a layer 3 Partner # Optional BGP ASN for the router supplied by a Layer 3 Partner if they
# if they configured BGP on behalf of the customer. Output only for PARTNER type, # configured BGP on behalf of the customer. Output only for PARTNER type, input
# input only for PARTNER_PROVIDER, not available for DEDICATED. # only for PARTNER_PROVIDER, not available for DEDICATED.
# Corresponds to the JSON property `partnerAsn` # Corresponds to the JSON property `partnerAsn`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :partner_asn attr_accessor :partner_asn
@ -10432,12 +10486,35 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
# [Output Only] The current state of this attachment's functionality. # [Output Only] The current state of this attachment's functionality. Enum
# values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and
# PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER,
# PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and
# PARTNER_PROVIDER interconnect attachments. This state can take one of the
# following values:
# - ACTIVE: The attachment has been turned up and is ready to use.
# - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not
# complete.
# - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been
# configured on the Partner side.
# - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of
# provisioning after a PARTNER_PROVIDER attachment was created that references
# it.
# - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting
# for a customer to activate it.
# - DEFUNCT: The attachment was deleted externally and is no longer functional.
# This could be because the associated Interconnect was removed, or because the
# other side of a Partner attachment was deleted.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# # The type of interconnect attachment this is, which can take one of the
# following values:
# - DEDICATED: an attachment to a Dedicated Interconnect.
# - PARTNER: an attachment to a Partner Interconnect, created by the customer.
# - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the
# partner.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -10738,7 +10815,7 @@ module Google
attr_accessor :partner_name attr_accessor :partner_name
# URL of the Partner?s portal for this Attachment. Partners may customise this # URL of the Partner?s portal for this Attachment. Partners may customise this
# to be a deep-link to the specific resource on the Partner portal. This value # to be a deep link to the specific resource on the Partner portal. This value
# may be validated to match approved Partner values. # may be validated to match approved Partner values.
# Corresponds to the JSON property `portalUrl` # Corresponds to the JSON property `portalUrl`
# @return [String] # @return [String]
@ -10976,7 +11053,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :neighbor_system_id attr_accessor :neighbor_system_id
# # The state of a LACP link, which can take one of the following values:
# - ACTIVE: The link is configured and active within the bundle.
# - DETACHED: The link is not configured within the bundle. This means that the
# rest of the object should be empty.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -11222,7 +11302,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :city attr_accessor :city
# [Output Only] Continent for this location. # [Output Only] Continent for this location, which can take one of the following
# values:
# - AFRICA
# - ASIA_PAC
# - EUROPE
# - NORTH_AMERICA
# - SOUTH_AMERICA
# Corresponds to the JSON property `continent` # Corresponds to the JSON property `continent`
# @return [String] # @return [String]
attr_accessor :continent attr_accessor :continent
@ -11283,9 +11369,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
# [Output Only] The status of this InterconnectLocation. If the status is # [Output Only] The status of this InterconnectLocation, which can take one of
# AVAILABLE, new Interconnects may be provisioned in this InterconnectLocation. # the following values:
# Otherwise, no new Interconnects may be provisioned. # - CLOSED: The InterconnectLocation is closed and is unavailable for
# provisioning new Interconnects.
# - AVAILABLE: The InterconnectLocation is available for provisioning new
# Interconnects.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -11485,8 +11574,13 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :end_time attr_accessor :end_time
# Form this outage is expected to take. Note that the "IT_" versions of this # Form this outage is expected to take, which can take one of the following
# enum have been deprecated in favor of the unprefixed values. # values:
# - OUTAGE: The Interconnect may be completely out of service for some or all of
# the specified window.
# - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should
# remain up, but with reduced bandwidth. Note that the versions of this enum
# prefixed with "IT_" have been deprecated in favor of the unprefixed values.
# Corresponds to the JSON property `issueType` # Corresponds to the JSON property `issueType`
# @return [String] # @return [String]
attr_accessor :issue_type attr_accessor :issue_type
@ -11496,8 +11590,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The party that generated this notification. Note that "NSRC_GOOGLE" has been # The party that generated this notification, which can take the following value:
# deprecated in favor of "GOOGLE" #
# - GOOGLE: this notification as generated by Google. Note that the value of
# NSRC_GOOGLE has been deprecated in favor of GOOGLE.
# Corresponds to the JSON property `source` # Corresponds to the JSON property `source`
# @return [String] # @return [String]
attr_accessor :source attr_accessor :source
@ -11507,8 +11603,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :start_time attr_accessor :start_time
# State of this notification. Note that the "NS_" versions of this enum have # State of this notification, which can take one of the following values:
# been deprecated in favor of the unprefixed values. # - ACTIVE: This outage notification is active. The event could be in the past,
# present, or future. See start_time and end_time for scheduling.
# - CANCELLED: The outage associated with this notification was cancelled before
# the outage was due to start. Note that the versions of this enum prefixed with
# "NS_" have been deprecated in favor of the unprefixed values.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -11983,10 +12083,6 @@ module Google
# Whether Gin logging should happen in a fail-closed manner at the caller. This # Whether Gin logging should happen in a fail-closed manner at the caller. This
# is relevant only in the LocalIAM implementation, for now. # is relevant only in the LocalIAM implementation, for now.
# NOTE: Logging to Gin in a fail-closed manner is currently unsupported while
# work is being done to satisfy the requirements of go/345. Currently, setting
# LOG_FAIL_CLOSED mode will have no effect, but still exists because there is
# active work being done to support it (b/115874152).
# Corresponds to the JSON property `logMode` # Corresponds to the JSON property `logMode`
# @return [String] # @return [String]
attr_accessor :log_mode attr_accessor :log_mode
@ -17908,9 +18004,9 @@ module Google
# @return [Google::Apis::ComputeV1::RouterBgp] # @return [Google::Apis::ComputeV1::RouterBgp]
attr_accessor :bgp attr_accessor :bgp
# BGP information that needs to be configured into the routing stack to # BGP information that must be configured into the routing stack to establish
# establish the BGP peering. It must specify peer ASN and either interface name, # BGP peering. This information must specify the peer ASN and either the
# IP, or peer IP. Please refer to RFC4273. # interface name, IP address, or peer IP address. Please refer to RFC4273.
# Corresponds to the JSON property `bgpPeers` # Corresponds to the JSON property `bgpPeers`
# @return [Array<Google::Apis::ComputeV1::RouterBgpPeer>] # @return [Array<Google::Apis::ComputeV1::RouterBgpPeer>]
attr_accessor :bgp_peers attr_accessor :bgp_peers
@ -17932,8 +18028,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# Router interfaces. Each interface requires either one linked resource (e.g. # Router interfaces. Each interface requires either one linked resource, (for
# linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. # example, linkedVpnTunnel), or IP address and IP address range (for example,
# ipRange), or both.
# Corresponds to the JSON property `interfaces` # Corresponds to the JSON property `interfaces`
# @return [Array<Google::Apis::ComputeV1::RouterInterface>] # @return [Array<Google::Apis::ComputeV1::RouterInterface>]
attr_accessor :interfaces attr_accessor :interfaces
@ -17953,7 +18050,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# A list of Nat services created in this router. # A list of NAT services created in this router.
# Corresponds to the JSON property `nats` # Corresponds to the JSON property `nats`
# @return [Array<Google::Apis::ComputeV1::RouterNat>] # @return [Array<Google::Apis::ComputeV1::RouterNat>]
attr_accessor :nats attr_accessor :nats
@ -18142,7 +18239,8 @@ module Google
class RouterBgp class RouterBgp
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# User-specified flag to indicate which mode to use for advertisement. # User-specified flag to indicate which mode to use for advertisement. The
# options are DEFAULT or CUSTOM.
# Corresponds to the JSON property `advertiseMode` # Corresponds to the JSON property `advertiseMode`
# @return [String] # @return [String]
attr_accessor :advertise_mode attr_accessor :advertise_mode
@ -18192,27 +18290,31 @@ module Google
# @return [String] # @return [String]
attr_accessor :advertise_mode attr_accessor :advertise_mode
# User-specified list of prefix groups to advertise in custom mode. This field # User-specified list of prefix groups to advertise in custom mode, which can
# can only be populated if advertise_mode is CUSTOM and overrides the list # take one of the following options:
# defined for the router (in Bgp message). These groups will be advertised in # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets.
# addition to any specified prefixes. Leave this field blank to advertise no # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets.
# custom groups. # - ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router's VPC network.
# Note that this field can only be populated if advertise_mode is CUSTOM and
# overrides the list defined for the router (in the "bgp" message). These groups
# are advertised in addition to any specified prefixes. Leave this field blank
# to advertise no custom groups.
# Corresponds to the JSON property `advertisedGroups` # Corresponds to the JSON property `advertisedGroups`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :advertised_groups attr_accessor :advertised_groups
# User-specified list of individual IP ranges to advertise in custom mode. This # User-specified list of individual IP ranges to advertise in custom mode. This
# field can only be populated if advertise_mode is CUSTOM and overrides the list # field can only be populated if advertise_mode is CUSTOM and overrides the list
# defined for the router (in Bgp message). These IP ranges will be advertised in # defined for the router (in the "bgp" message). These IP ranges are advertised
# addition to any specified groups. Leave this field blank to advertise no # in addition to any specified groups. Leave this field blank to advertise no
# custom IP ranges. # custom IP ranges.
# Corresponds to the JSON property `advertisedIpRanges` # Corresponds to the JSON property `advertisedIpRanges`
# @return [Array<Google::Apis::ComputeV1::RouterAdvertisedIpRange>] # @return [Array<Google::Apis::ComputeV1::RouterAdvertisedIpRange>]
attr_accessor :advertised_ip_ranges attr_accessor :advertised_ip_ranges
# The priority of routes advertised to this BGP peer. In the case where there is # The priority of routes advertised to this BGP peer. Where there is more than
# more than one matching route of maximum length, the routes with lowest # one matching route of maximum length, the routes with the lowest priority
# priority value win. # value win.
# Corresponds to the JSON property `advertisedRoutePriority` # Corresponds to the JSON property `advertisedRoutePriority`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :advertised_route_priority attr_accessor :advertised_route_priority
@ -18229,11 +18331,12 @@ module Google
attr_accessor :ip_address attr_accessor :ip_address
# [Output Only] The resource that configures and manages this BGP peer. # [Output Only] The resource that configures and manages this BGP peer.
# MANAGED_BY_USER is the default value and can be managed by you or other users; # - MANAGED_BY_USER is the default value and can be managed by you or other
# MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud # users
# - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud
# Interconnect, specifically by an InterconnectAttachment of type PARTNER. # Interconnect, specifically by an InterconnectAttachment of type PARTNER.
# Google will automatically create, update, and delete this type of BGP peer # Google automatically creates, updates, and deletes this type of BGP peer when
# when the PARTNER InterconnectAttachment is created, updated, or deleted. # the PARTNER InterconnectAttachment is created, updated, or deleted.
# Corresponds to the JSON property `managementType` # Corresponds to the JSON property `managementType`
# @return [String] # @return [String]
attr_accessor :management_type attr_accessor :management_type
@ -18244,13 +18347,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a
# different for every tunnel. # different value.
# Corresponds to the JSON property `peerAsn` # Corresponds to the JSON property `peerAsn`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :peer_asn attr_accessor :peer_asn
# IP address of the BGP interface outside Google cloud. Only IPv4 is supported. # IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is
# supported.
# Corresponds to the JSON property `peerIpAddress` # Corresponds to the JSON property `peerIpAddress`
# @return [String] # @return [String]
attr_accessor :peer_ip_address attr_accessor :peer_ip_address
@ -18279,32 +18383,32 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# IP address and range of the interface. The IP range must be in the RFC3927 # IP address and range of the interface. The IP range must be in the RFC3927
# link-local IP space. The value must be a CIDR-formatted string, for example: # link-local IP address space. The value must be a CIDR-formatted string, for
# 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP # example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents
# address of the interface. # the IP address of the interface.
# Corresponds to the JSON property `ipRange` # Corresponds to the JSON property `ipRange`
# @return [String] # @return [String]
attr_accessor :ip_range attr_accessor :ip_range
# URI of the linked interconnect attachment. It must be in the same region as # URI of the linked Interconnect attachment. It must be in the same region as
# the router. Each interface can have at most one linked resource and it could # the router. Each interface can have one linked resource, which can be either
# either be a VPN Tunnel or an interconnect attachment. # be a VPN tunnel or an Interconnect attachment.
# Corresponds to the JSON property `linkedInterconnectAttachment` # Corresponds to the JSON property `linkedInterconnectAttachment`
# @return [String] # @return [String]
attr_accessor :linked_interconnect_attachment attr_accessor :linked_interconnect_attachment
# URI of the linked VPN tunnel. It must be in the same region as the router. # URI of the linked VPN tunnel, which must be in the same region as the router.
# Each interface can have at most one linked resource and it could either be a # Each interface can have one linked resource, which can be either a VPN tunnel
# VPN Tunnel or an interconnect attachment. # or an Interconnect attachment.
# Corresponds to the JSON property `linkedVpnTunnel` # Corresponds to the JSON property `linkedVpnTunnel`
# @return [String] # @return [String]
attr_accessor :linked_vpn_tunnel attr_accessor :linked_vpn_tunnel
# [Output Only] The resource that configures and manages this interface. # [Output Only] The resource that configures and manages this interface.
# MANAGED_BY_USER is the default value and can be managed by you or other users; # - MANAGED_BY_USER is the default value and can be managed directly by users.
# MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud # - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by
# Interconnect, specifically by an InterconnectAttachment of type PARTNER. # Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER.
# Google will automatically create, update, and delete this type of interface # Google automatically creates, updates, and deletes this type of interface
# when the PARTNER InterconnectAttachment is created, updated, or deleted. # when the PARTNER InterconnectAttachment is created, updated, or deleted.
# Corresponds to the JSON property `managementType` # Corresponds to the JSON property `managementType`
# @return [String] # @return [String]
@ -18460,10 +18564,15 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :icmp_idle_timeout_sec attr_accessor :icmp_idle_timeout_sec
# Configuration of logging on a NAT.
# Corresponds to the JSON property `logConfig`
# @return [Google::Apis::ComputeV1::RouterNatLogConfig]
attr_accessor :log_config
# Minimum number of ports allocated to a VM from this NAT config. If not set, a # Minimum number of ports allocated to a VM from this NAT config. If not set, a
# default number of ports is allocated to a VM. This gets rounded up to the # default number of ports is allocated to a VM. This is rounded up to the
# nearest power of 2. Eg. if the value of this field is 50, at least 64 ports # nearest power of 2. For example, if the value of this field is 50, at least 64
# will be allocated to a VM. # ports are allocated to a VM.
# Corresponds to the JSON property `minPortsPerVm` # Corresponds to the JSON property `minPortsPerVm`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :min_ports_per_vm attr_accessor :min_ports_per_vm
@ -18474,21 +18583,31 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should be # Specify the NatIpAllocateOption, which can take one of the following values:
# empty. # - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there
# are not enough specified Nat IPs, the Nat service fails for new VMs.
# - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't
# specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty.
# Corresponds to the JSON property `natIpAllocateOption` # Corresponds to the JSON property `natIpAllocateOption`
# @return [String] # @return [String]
attr_accessor :nat_ip_allocate_option attr_accessor :nat_ip_allocate_option
# A list of URLs of the IP resources used for this Nat service. These IPs must # A list of URLs of the IP resources used for this Nat service. These IP
# be valid static external IP addresses assigned to the project. max_length is # addresses must be valid static external IP addresses assigned to the project.
# subject to change post alpha.
# Corresponds to the JSON property `natIps` # Corresponds to the JSON property `natIps`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :nat_ips attr_accessor :nat_ips
# Specify the Nat option. If this field contains ALL_SUBNETWORKS_ALL_IP_RANGES # Specify the Nat option, which can take one of the following values:
# or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other # - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are
# allowed to Nat.
# - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every
# Subnetwork are allowed to Nat.
# - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in
# the field subnetwork below) The default is
# SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field
# contains ALL_SUBNETWORKS_ALL_IP_RANGES or
# ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other
# Router.Nat section in any Router for this network in this region. # Router.Nat section in any Router for this network in this region.
# Corresponds to the JSON property `sourceSubnetworkIpRangesToNat` # Corresponds to the JSON property `sourceSubnetworkIpRangesToNat`
# @return [String] # @return [String]
@ -18525,6 +18644,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec) @icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec)
@log_config = args[:log_config] if args.key?(:log_config)
@min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm) @min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option) @nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option)
@ -18537,11 +18657,38 @@ module Google
end end
end end
# Configuration of logging on a NAT.
class RouterNatLogConfig
include Google::Apis::Core::Hashable
# Indicates whether or not to export logs. This is false by default.
# Corresponds to the JSON property `enable`
# @return [Boolean]
attr_accessor :enable
alias_method :enable?, :enable
# Specifies the desired filtering of logs on this NAT. If unspecified, logs are
# exported for all connections handled by this NAT.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable = args[:enable] if args.key?(:enable)
@filter = args[:filter] if args.key?(:filter)
end
end
# Defines the IP ranges that want to use NAT for a subnetwork. # Defines the IP ranges that want to use NAT for a subnetwork.
class RouterNatSubnetworkToNat class RouterNatSubnetworkToNat
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# URL for the subnetwork resource to use NAT. # URL for the subnetwork resource that will use NAT.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -18553,7 +18700,7 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :secondary_ip_range_names attr_accessor :secondary_ip_range_names
# Specify the options for NAT ranges in the Subnetwork. All usages of single # Specify the options for NAT ranges in the Subnetwork. All options of a single
# value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option # value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option
# with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] # with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"]
# Default: [ALL_IP_RANGES] # Default: [ALL_IP_RANGES]

View File

@ -2524,6 +2524,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RouterNatLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterNatSubnetworkToNat class RouterNatSubnetworkToNat
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3781,6 +3787,9 @@ module Google
property :source_image, as: 'sourceImage' property :source_image, as: 'sourceImage'
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
property :source_snapshot, as: 'sourceSnapshot'
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
end end
end end
@ -8102,6 +8111,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec' property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeV1::RouterNatLogConfig, decorator: Google::Apis::ComputeV1::RouterNatLogConfig::Representation
property :min_ports_per_vm, as: 'minPortsPerVm' property :min_ports_per_vm, as: 'minPortsPerVm'
property :name, as: 'name' property :name, as: 'name'
property :nat_ip_allocate_option, as: 'natIpAllocateOption' property :nat_ip_allocate_option, as: 'natIpAllocateOption'
@ -8115,6 +8126,14 @@ module Google
end end
end end
class RouterNatLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable, as: 'enable'
property :filter, as: 'filter'
end
end
class RouterNatSubnetworkToNat class RouterNatSubnetworkToNat
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -47,7 +47,7 @@ module Google
attr_accessor :user_ip attr_accessor :user_ip
def initialize def initialize
super('https://compute.googleapis.com/', 'compute/v1/projects/') super('https://www.googleapis.com/', 'compute/v1/projects/')
@batch_path = 'batch/compute/v1' @batch_path = 'batch/compute/v1'
end end
@ -2185,7 +2185,9 @@ module Google
# Name of the persistent disk to snapshot. # Name of the persistent disk to snapshot.
# @param [Google::Apis::ComputeV1::Snapshot] snapshot_object # @param [Google::Apis::ComputeV1::Snapshot] snapshot_object
# @param [Boolean] guest_flush # @param [Boolean] guest_flush
# Application consistent snapshot (ie. VSS). # [Input Only] Specifies to create an application consistent snapshot by
# informing the OS to prepare for the snapshot process. Currently only supported
# on Windows instances using the Volume Shadow Copy Service (VSS).
# @param [String] request_id # @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so # 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 # that if you must retry your request, the server will know to ignore the

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-analysis/api/reference/rest/ # @see https://cloud.google.com/container-analysis/api/reference/rest/
module ContaineranalysisV1beta1 module ContaineranalysisV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20190419' REVISION = '20190524'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2405,6 +2405,7 @@ module Google
# @return [Google::Apis::ContaineranalysisV1beta1::HashProp] # @return [Google::Apis::ContaineranalysisV1beta1::HashProp]
attr_accessor :content_hash attr_accessor :content_hash
# Deprecated, do not use. Use uri instead.
# The name of the resource. For example, the name of a Docker image - # The name of the resource. For example, the name of a Docker image -
# "Debian". # "Debian".
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare # @see https://cloud.google.com/healthcare
module HealthcareV1alpha2 module HealthcareV1alpha2
VERSION = 'V1alpha2' VERSION = 'V1alpha2'
REVISION = '20190517' REVISION = '20190527'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1176,8 +1176,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :dataset_uri attr_accessor :dataset_uri
# Configuration for the FHIR BigQuery and GCS schema. Determines how the server # Configuration for the FHIR BigQuery and Cloud Storage schema. Determines
# generates the schema. # how the server generates the schema.
# Corresponds to the JSON property `schemaConfig` # Corresponds to the JSON property `schemaConfig`
# @return [Google::Apis::HealthcareV1alpha2::SchemaConfig] # @return [Google::Apis::HealthcareV1alpha2::SchemaConfig]
attr_accessor :schema_config attr_accessor :schema_config
@ -2001,7 +2001,7 @@ module Google
class Message class Message
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The datetime when the message was created. Set by the server. # Output only. The datetime when the message was created. Set by the server.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
@ -2273,7 +2273,8 @@ module Google
alias_method :allow_null_header?, :allow_null_header alias_method :allow_null_header?, :allow_null_header
# Byte(s) to be used as the segment terminator. If this is unset, '\r' will # Byte(s) to be used as the segment terminator. If this is unset, '\r' will
# be used as segment terminator. # be used as the segment terminator, matching the HL7 version 2
# specification.
# Corresponds to the JSON property `segmentTerminator` # Corresponds to the JSON property `segmentTerminator`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -2477,8 +2478,8 @@ module Google
end end
end end
# Configuration for the FHIR BigQuery and GCS schema. Determines how the server # Configuration for the FHIR BigQuery and Cloud Storage schema. Determines
# generates the schema. # how the server generates the schema.
class SchemaConfig class SchemaConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare # @see https://cloud.google.com/healthcare
module HealthcareV1beta1 module HealthcareV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20190517' REVISION = '20190527'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1688,7 +1688,7 @@ module Google
class Message class Message
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The datetime when the message was created. Set by the server. # Output only. The datetime when the message was created. Set by the server.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1 module SecuritycenterV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190522' REVISION = '20190529'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -368,8 +368,8 @@ module Google
attr_accessor :create_time attr_accessor :create_time
# The time at which the event took place. For example, if the finding # The time at which the event took place. For example, if the finding
# represents an open firewall it would capture the time the open firewall was # represents an open firewall it would capture the time the detector believes
# detected. # the firewall became open. The accuracy is determined by the detector.
# Corresponds to the JSON property `eventTime` # Corresponds to the JSON property `eventTime`
# @return [String] # @return [String]
attr_accessor :event_time attr_accessor :event_time
@ -1065,43 +1065,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::SecuritycenterV1::Status] # @return [Google::Apis::SecuritycenterV1::Status]
attr_accessor :error attr_accessor :error
@ -1509,43 +1476,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1 module SecuritycenterV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20190522' REVISION = '20190529'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -373,8 +373,8 @@ module Google
attr_accessor :create_time attr_accessor :create_time
# The time at which the event took place. For example, if the finding # The time at which the event took place. For example, if the finding
# represents an open firewall it would capture the time the open firewall was # represents an open firewall it would capture the time the detector believes
# detected. # the firewall became open. The accuracy is determined by the detector.
# Corresponds to the JSON property `eventTime` # Corresponds to the JSON property `eventTime`
# @return [String] # @return [String]
attr_accessor :event_time attr_accessor :event_time
@ -952,43 +952,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::SecuritycenterV1beta1::Status] # @return [Google::Apis::SecuritycenterV1beta1::Status]
attr_accessor :error attr_accessor :error
@ -1396,43 +1363,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/streetview/publish/ # @see https://developers.google.com/streetview/publish/
module StreetviewpublishV1 module StreetviewpublishV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190503' REVISION = '20190529'
# Publish and manage your 360 photos on Google Street View # Publish and manage your 360 photos on Google Street View
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish' AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'

View File

@ -268,43 +268,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::StreetviewpublishV1::Status] # @return [Google::Apis::StreetviewpublishV1::Status]
attr_accessor :error attr_accessor :error
@ -478,43 +445,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [Google::Apis::StreetviewpublishV1::Status] # @return [Google::Apis::StreetviewpublishV1::Status]
attr_accessor :status attr_accessor :status
@ -638,43 +572,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable