diff --git a/generated/google/apis/accesscontextmanager_v1.rb b/generated/google/apis/accesscontextmanager_v1.rb index 0dcf457ed..151b09d8f 100644 --- a/generated/google/apis/accesscontextmanager_v1.rb +++ b/generated/google/apis/accesscontextmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1 VERSION = 'V1' - REVISION = '20190507' + REVISION = '20190529' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/accesscontextmanager_v1/classes.rb b/generated/google/apis/accesscontextmanager_v1/classes.rb index c8d336287..04e48cd9f 100644 --- a/generated/google/apis/accesscontextmanager_v1/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1/classes.rb @@ -446,43 +446,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::AccesscontextmanagerV1::Status] attr_accessor :error @@ -681,43 +648,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/accesscontextmanager_v1beta.rb b/generated/google/apis/accesscontextmanager_v1beta.rb index b148f8e18..de5b66610 100644 --- a/generated/google/apis/accesscontextmanager_v1beta.rb +++ b/generated/google/apis/accesscontextmanager_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1beta VERSION = 'V1beta' - REVISION = '20190507' + REVISION = '20190529' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/accesscontextmanager_v1beta/classes.rb b/generated/google/apis/accesscontextmanager_v1beta/classes.rb index 734990163..e5fbb13fb 100644 --- a/generated/google/apis/accesscontextmanager_v1beta/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1beta/classes.rb @@ -389,43 +389,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::AccesscontextmanagerV1beta::Status] attr_accessor :error @@ -634,43 +601,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index cb9a4bf9a..e2f43600d 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20190506' + REVISION = '20190529' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb index ee83ce336..014d2533f 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb @@ -117,6 +117,50 @@ module Google 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] + 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. class AddDealAssociationRequest include Google::Apis::Core::Hashable @@ -638,6 +682,11 @@ module Google # @return [String] 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. # Corresponds to the JSON property `advertiserName` # @return [String] @@ -793,6 +842,7 @@ module Google def update!(**args) @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_technology_providers = args[:ad_technology_providers] if args.key?(:ad_technology_providers) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @agency_id = args[:agency_id] if args.key?(:agency_id) @api_update_time = args[:api_update_time] if args.key?(:api_update_time) diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb index 9888f0b36..532748fd5 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AdTechnologyProviders + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AddDealAssociationRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -672,6 +678,14 @@ module Google 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 # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -820,6 +834,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' 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 :agency_id, :numeric_string => true, as: 'agencyId' property :api_update_time, as: 'apiUpdateTime' diff --git a/generated/google/apis/cloudidentity_v1.rb b/generated/google/apis/cloudidentity_v1.rb index c07980012..94a89e8dc 100644 --- a/generated/google/apis/cloudidentity_v1.rb +++ b/generated/google/apis/cloudidentity_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1 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 AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' diff --git a/generated/google/apis/cloudidentity_v1/classes.rb b/generated/google/apis/cloudidentity_v1/classes.rb index 3aef0a4cf..4327feec5 100644 --- a/generated/google/apis/cloudidentity_v1/classes.rb +++ b/generated/google/apis/cloudidentity_v1/classes.rb @@ -311,43 +311,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::CloudidentityV1::Status] attr_accessor :error @@ -421,43 +388,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index bb9692097..004f111bd 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 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 AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' diff --git a/generated/google/apis/cloudidentity_v1beta1/classes.rb b/generated/google/apis/cloudidentity_v1beta1/classes.rb index 1edb6e886..bd2436fe3 100644 --- a/generated/google/apis/cloudidentity_v1beta1/classes.rb +++ b/generated/google/apis/cloudidentity_v1beta1/classes.rb @@ -291,43 +291,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::CloudidentityV1beta1::Status] attr_accessor :error @@ -401,43 +368,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 648f90874..5cd9cd385 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20190416' + REVISION = '20190528' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 35d33ed6d..ec40eb99e 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -4964,14 +4964,14 @@ module Google attr_accessor :storage_type # 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/ - # diskTypes/pd-standard or pd-ssd + # disk. Provide this when creating the disk. For example: projects/project/zones/ + # zone/diskTypes/pd-standard or pd-ssd # Corresponds to the JSON property `type` # @return [String] attr_accessor :type # [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` # @return [Array] attr_accessor :users @@ -9714,6 +9714,18 @@ module Google # @return [Google::Apis::ComputeAlpha::HttpRouteAction] 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. # Corresponds to the JSON property `urlRedirect` # @return [Google::Apis::ComputeAlpha::HttpRedirectAction] @@ -9728,6 +9740,7 @@ module Google @header_action = args[:header_action] if args.key?(:header_action) @match_rules = args[:match_rules] if args.key?(:match_rules) @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) end end @@ -10301,8 +10314,8 @@ module Google # @return [String] attr_accessor :container_type - # An optional SHA1 checksum of the disk image before unpackaging provided by the - # client when the disk image is created. + # [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk + # image before unpackaging provided by the client when the disk image is created. # Corresponds to the JSON property `sha1Checksum` # @return [String] attr_accessor :sha1_checksum @@ -13965,8 +13978,11 @@ module Google # @return [Array] attr_accessor :interconnect_attachments - # Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of " - # DEDICATED" + # Type of interconnect, which can take one of the following values: + # - 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` # @return [String] attr_accessor :interconnect_type @@ -13997,8 +14013,11 @@ module Google # @return [Hash] attr_accessor :labels - # Type of link requested. This field indicates speed of each of the links in the - # bundle, not the entire bundle. + # Type of link requested, which can take one of the following values: + # - 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` # @return [String] attr_accessor :link_type @@ -14027,8 +14046,14 @@ module Google # @return [String] attr_accessor :noc_contact_email - # [Output Only] The current status of whether or not this Interconnect is - # functional. + # [Output Only] The current status of this Interconnect's functionality, which + # 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` # @return [String] attr_accessor :operational_status @@ -14061,8 +14086,14 @@ module Google # @return [String] attr_accessor :self_link_with_id - # [Output Only] The current state of whether or not this Interconnect is - # functional. + # [Output Only] The current state of Interconnect functionality, which can take + # 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` # @return [String] attr_accessor :state @@ -14114,9 +14145,21 @@ module Google attr_accessor :admin_enabled alias_method :admin_enabled?, :admin_enabled - # Provisioned bandwidth capacity for the interconnectAttachment. Can be set by - # the partner to update the customer's provisioned bandwidth. Output only for - # PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED. + # Provisioned bandwidth capacity for the interconnect attachment. For + # attachments of type DEDICATED, the user can set the bandwidth. For attachments + # 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` # @return [String] attr_accessor :bandwidth @@ -14155,11 +14198,14 @@ module Google attr_accessor :description # Desired availability domain for the attachment. Only available for type - # PARTNER, at creation time. For improved reliability, customers should - # configure a pair of attachments with 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. + # PARTNER, at creation time, and can take one of the following values: + # - AVAILABILITY_DOMAIN_ANY + # - AVAILABILITY_DOMAIN_1 + # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a + # 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` # @return [String] attr_accessor :edge_availability_domain @@ -14219,7 +14265,10 @@ module Google attr_accessor :name # [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` # @return [String] attr_accessor :operational_status @@ -14232,9 +14281,9 @@ module Google # @return [String] attr_accessor :pairing_key - # Optional BGP ASN for the router that should be supplied by a layer 3 Partner - # if they configured BGP on behalf of the customer. Output only for PARTNER type, - # input only for PARTNER_PROVIDER, not available for DEDICATED. + # Optional BGP ASN for the router supplied by a Layer 3 Partner if they + # configured BGP on behalf of the customer. Output only for PARTNER type, input + # only for PARTNER_PROVIDER, not available for DEDICATED. # Corresponds to the JSON property `partnerAsn` # @return [Fixnum] attr_accessor :partner_asn @@ -14277,12 +14326,35 @@ module Google # @return [String] 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` # @return [String] 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` # @return [String] attr_accessor :type @@ -14586,7 +14658,7 @@ module Google attr_accessor :partner_name # 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. # Corresponds to the JSON property `portalUrl` # @return [String] @@ -14824,7 +14896,10 @@ module Google # @return [String] 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` # @return [String] attr_accessor :state @@ -15070,7 +15145,13 @@ module Google # @return [String] 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` # @return [String] attr_accessor :continent @@ -15136,9 +15217,12 @@ module Google # @return [String] attr_accessor :self_link_with_id - # [Output Only] The status of this InterconnectLocation. If the status is - # AVAILABLE, new Interconnects may be provisioned in this InterconnectLocation. - # Otherwise, no new Interconnects may be provisioned. + # [Output Only] The status of this InterconnectLocation, which can take one of + # the following values: + # - 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` # @return [String] attr_accessor :status @@ -15339,8 +15423,13 @@ module Google # @return [Fixnum] attr_accessor :end_time - # Form this outage is expected to take. Note that the "IT_" versions of this - # enum have been deprecated in favor of the unprefixed values. + # Form this outage is expected to take, which can take one of the following + # 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` # @return [String] attr_accessor :issue_type @@ -15350,8 +15439,10 @@ module Google # @return [String] attr_accessor :name - # The party that generated this notification. Note that "NSRC_GOOGLE" has been - # deprecated in favor of "GOOGLE" + # The party that generated this notification, which can take the following value: + # + # - 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` # @return [String] attr_accessor :source @@ -15361,8 +15452,12 @@ module Google # @return [Fixnum] attr_accessor :start_time - # State of this notification. Note that the "NS_" versions of this enum have - # been deprecated in favor of the unprefixed values. + # State of this notification, which can take one of the following 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` # @return [String] attr_accessor :state @@ -16272,10 +16367,6 @@ module Google # Whether Gin logging should happen in a fail-closed manner at the caller. This # 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` # @return [String] attr_accessor :log_mode @@ -16358,12 +16449,13 @@ module Google # @return [Google::Apis::ComputeAlpha::SourceInstanceProperties] 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` # @return [String] 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` # @return [Array] attr_accessor :storage_locations @@ -17561,6 +17653,12 @@ module Google # @return [String] 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 # within a zone. If set to DISABLED, multicast is disabled for this network. The # default is DISABLED. @@ -17621,6 +17719,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @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) @name = args[:name] if args.key?(:name) @peerings = args[:peerings] if args.key?(:peerings) @@ -18695,6 +18794,11 @@ module Google # @return [String] 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. # Corresponds to the JSON property `state` # @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) @name = args[:name] if args.key?(:name) @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_details = args[:state_details] if args.key?(:state_details) end @@ -23969,7 +24074,9 @@ module Google class ReservationAffinity 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` # @return [String] attr_accessor :consume_reservation_type @@ -25518,9 +25625,9 @@ module Google # @return [Google::Apis::ComputeAlpha::RouterBgp] attr_accessor :bgp - # BGP information that needs to be configured into the routing stack to - # establish the BGP peering. It must specify peer ASN and either interface name, - # IP, or peer IP. Please refer to RFC4273. + # BGP information that must be configured into the routing stack to establish + # BGP peering. This information must specify the peer ASN and either the + # interface name, IP address, or peer IP address. Please refer to RFC4273. # Corresponds to the JSON property `bgpPeers` # @return [Array] attr_accessor :bgp_peers @@ -25542,8 +25649,9 @@ module Google # @return [Fixnum] attr_accessor :id - # Router interfaces. Each interface requires either one linked resource (e.g. - # linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. + # Router interfaces. Each interface requires either one linked resource, (for + # example, linkedVpnTunnel), or IP address and IP address range (for example, + # ipRange), or both. # Corresponds to the JSON property `interfaces` # @return [Array] attr_accessor :interfaces @@ -25563,7 +25671,7 @@ module Google # @return [String] 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` # @return [Array] attr_accessor :nats @@ -25758,7 +25866,8 @@ module Google class RouterBgp 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` # @return [String] attr_accessor :advertise_mode @@ -25820,27 +25929,31 @@ module Google # @return [String] attr_accessor :advertise_mode - # User-specified list of prefix groups to advertise in custom mode. This field - # can only be populated if advertise_mode is CUSTOM and overrides the list - # defined for the router (in Bgp message). These groups will be advertised in - # addition to any specified prefixes. Leave this field blank to advertise no - # custom groups. + # User-specified list of prefix groups to advertise in custom mode, which can + # take one of the following options: + # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. + # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. + # - 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` # @return [Array] attr_accessor :advertised_groups # 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 - # defined for the router (in Bgp message). These IP ranges will be advertised in - # addition to any specified groups. Leave this field blank to advertise no + # defined for the router (in the "bgp" message). These IP ranges are advertised + # in addition to any specified groups. Leave this field blank to advertise no # custom IP ranges. # Corresponds to the JSON property `advertisedIpRanges` # @return [Array] attr_accessor :advertised_ip_ranges - # The priority of routes advertised to this BGP peer. In the case where there is - # more than one matching route of maximum length, the routes with lowest - # priority value win. + # The priority of routes advertised to this BGP peer. Where there is more than + # one matching route of maximum length, the routes with the lowest priority + # value win. # Corresponds to the JSON property `advertisedRoutePriority` # @return [Fixnum] attr_accessor :advertised_route_priority @@ -25870,11 +25983,12 @@ module Google attr_accessor :ip_address # [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_ATTACHMENT is a BGP peer that is configured and managed by Cloud + # - MANAGED_BY_USER is the default value and can be managed by you or other + # users + # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud # Interconnect, specifically by an InterconnectAttachment of type PARTNER. - # Google will automatically create, update, and delete this type of BGP peer - # when the PARTNER InterconnectAttachment is created, updated, or deleted. + # Google automatically creates, updates, and deletes this type of BGP peer when + # the PARTNER InterconnectAttachment is created, updated, or deleted. # Corresponds to the JSON property `managementType` # @return [String] attr_accessor :management_type @@ -25885,13 +25999,14 @@ module Google # @return [String] attr_accessor :name - # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be - # different for every tunnel. + # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a + # different value. # Corresponds to the JSON property `peerAsn` # @return [Fixnum] 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` # @return [String] attr_accessor :peer_ip_address @@ -25973,6 +26088,15 @@ module Google # @return [String] 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 # 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 @@ -25994,6 +26118,7 @@ module Google @mode = args[:mode] if args.key?(:mode) @multiplier = args[:multiplier] if args.key?(:multiplier) @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) end end @@ -26003,32 +26128,32 @@ module Google include Google::Apis::Core::Hashable # 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: - # 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP - # address of the interface. + # link-local IP address space. The value must be a CIDR-formatted string, for + # example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents + # the IP address of the interface. # Corresponds to the JSON property `ipRange` # @return [String] attr_accessor :ip_range - # 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 - # either be a VPN Tunnel or an interconnect attachment. + # URI of the linked Interconnect attachment. It must be in the same region as + # the router. Each interface can have one linked resource, which can be either + # be a VPN tunnel or an Interconnect attachment. # Corresponds to the JSON property `linkedInterconnectAttachment` # @return [String] attr_accessor :linked_interconnect_attachment - # URI of the linked VPN tunnel. It must be in the same region as the router. - # Each interface can have at most one linked resource and it could either be a - # VPN Tunnel or an interconnect attachment. + # URI of the linked VPN tunnel, which must be in the same region as the router. + # Each interface can have one linked resource, which can be either a VPN tunnel + # or an Interconnect attachment. # Corresponds to the JSON property `linkedVpnTunnel` # @return [String] attr_accessor :linked_vpn_tunnel # [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_ATTACHMENT is an interface that is configured and managed by Cloud - # Interconnect, specifically by an InterconnectAttachment of type PARTNER. - # Google will automatically create, update, and delete this type of interface + # - 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 Interconnect, specifically, by an InterconnectAttachment of type PARTNER. + # Google automatically creates, updates, and deletes this type of interface # when the PARTNER InterconnectAttachment is created, updated, or deleted. # Corresponds to the JSON property `managementType` # @return [String] @@ -26197,9 +26322,9 @@ module Google attr_accessor :log_config # 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 - # nearest power of 2. Eg. if the value of this field is 50, at least 64 ports - # will be allocated to a VM. + # default number of ports is allocated to a VM. This is rounded up to the + # nearest power of 2. For example, if the value of this field is 50, at least 64 + # ports are allocated to a VM. # Corresponds to the JSON property `minPortsPerVm` # @return [Fixnum] attr_accessor :min_ports_per_vm @@ -26210,21 +26335,31 @@ module Google # @return [String] attr_accessor :name - # Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should be - # empty. + # Specify the NatIpAllocateOption, which can take one of the following values: + # - 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` # @return [String] attr_accessor :nat_ip_allocate_option - # A list of URLs of the IP resources used for this Nat service. These IPs must - # be valid static external IP addresses assigned to the project. max_length is - # subject to change post alpha. + # A list of URLs of the IP resources used for this Nat service. These IP + # addresses must be valid static external IP addresses assigned to the project. # Corresponds to the JSON property `natIps` # @return [Array] attr_accessor :nat_ips - # Specify the Nat option. If this field contains ALL_SUBNETWORKS_ALL_IP_RANGES - # or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other + # Specify the Nat option, which can take one of the following values: + # - 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. # Corresponds to the JSON property `sourceSubnetworkIpRangesToNat` # @return [String] @@ -26306,7 +26441,7 @@ module Google class RouterNatSubnetworkToNat 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` # @return [String] attr_accessor :name @@ -26318,7 +26453,7 @@ module Google # @return [Array] 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 # with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] # Default: [ALL_IP_RANGES] @@ -26807,13 +26942,7 @@ module Google attr_accessor :boot alias_method :boot?, :boot - # Specifies a unique device name of your choice that is reflected into the /dev/ - # 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. + # Specifies the name of the disk attached to the source instance. # Corresponds to the JSON property `deviceName` # @return [String] attr_accessor :device_name @@ -26823,8 +26952,7 @@ module Google # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] attr_accessor :disk_encryption_key - # The size of the disk in base-2 GB. This supersedes disk_size_gb in - # InitializeParams. + # The size of the disk in base-2 GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb @@ -26836,27 +26964,13 @@ module Google # @return [Array] attr_accessor :guest_os_features - # [Output Only] A zero-based index to this disk, where 0 is reserved for the - # boot disk. If you have many disks attached to an instance, each disk would - # have a unique index number. + # Specifies zero-based index of the disk that is attached to the source instance. # Corresponds to the JSON property `index` # @return [Fixnum] 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 - # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and - # 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. + # SCSI or NVME. # Corresponds to the JSON property `interface` # @return [String] attr_accessor :interface @@ -26872,32 +26986,19 @@ module Google # @return [Array] attr_accessor :licenses - # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not - # specified, the default is to attach the disk in READ_WRITE mode. + # The mode in which this disk is attached to the source instance, either + # READ_WRITE or READ_ONLY. # Corresponds to the JSON property `mode` # @return [String] attr_accessor :mode - # For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field - # 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. + # Specifies a URL of the disk attached to the source instance. # Corresponds to the JSON property `source` # @return [String] 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` # @return [Fixnum] attr_accessor :storage_bytes @@ -26910,8 +27011,7 @@ module Google # @return [String] attr_accessor :storage_bytes_status - # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, - # the default is PERSISTENT. + # Specifies the type of the attached disk, either SCRATCH or PERSISTENT. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -26929,12 +27029,10 @@ module Google @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) @index = args[:index] if args.key?(:index) - @initialize_params = args[:initialize_params] if args.key?(:initialize_params) @interface = args[:interface] if args.key?(:interface) @kind = args[:kind] if args.key?(:kind) @licenses = args[:licenses] if args.key?(:licenses) @mode = args[:mode] if args.key?(:mode) - @saved_state = args[:saved_state] if args.key?(:saved_state) @source = args[:source] if args.key?(:source) @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes) @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status) @@ -28450,7 +28548,7 @@ module Google attr_accessor :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. # Corresponds to the JSON property `deletionProtection` # @return [Boolean] @@ -28470,7 +28568,7 @@ module Google attr_accessor :disks # 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` # @return [Array] attr_accessor :guest_accelerators @@ -28490,11 +28588,11 @@ module Google # @return [Google::Apis::ComputeAlpha::Metadata] attr_accessor :metadata - # Minimum cpu/platform to be used by this instance. The instance may be - # scheduled on the specified or newer cpu/platform. Applicable values are the - # friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or - # minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a - # Minimum CPU Platform. + # Minimum cpu/platform to be used by instances created from this machine image. + # The instance may be scheduled on the specified or newer cpu/platform. + # Applicable values are the friendly names of CPU platforms, such as + # minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For + # more information, read Specifying a Minimum CPU Platform. # Corresponds to the JSON property `minCpuPlatform` # @return [String] attr_accessor :min_cpu_platform @@ -29506,10 +29604,12 @@ module Google class Subnetwork include Google::Apis::Core::Hashable - # Can only be specified if VPC flow logging for this subnetwork is enabled. - # Toggles the aggregation interval for collecting flow logs. Increasing the - # interval time will reduce the amount of generated flow logs for long lasting - # connections. Default is an interval of 5 seconds per connection. + # Can only be specified if VPC flow logging for this subnetwork is enabled. Sets + # the aggregation interval for collecting flow logs. Increasing the interval + # time reduces the amount of generated flow logs for long-lasting connections. + # 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` # @return [String] attr_accessor :aggregation_interval @@ -29571,7 +29671,7 @@ module Google # 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 # 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. # Corresponds to the JSON property `flowSampling` # @return [Float] @@ -30010,7 +30110,7 @@ module Google # 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 # 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. # Corresponds to the JSON property `flowSampling` # @return [Float] diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index e27743097..9d57375a5 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -7319,6 +7319,7 @@ module Google 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 end @@ -9324,6 +9325,7 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :load_balancer_vm_encryption, as: 'loadBalancerVmEncryption' + property :mtu, as: 'mtu' property :multicast_mode, as: 'multicastMode' property :name, as: 'name' 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 :name, as: 'name' property :network, as: 'network' + property :peer_mtu, as: 'peerMtu' property :state, as: 'state' property :state_details, as: 'stateDetails' end @@ -11544,6 +11547,7 @@ module Google property :mode, as: 'mode' property :multiplier, as: 'multiplier' property :packet_mode, as: 'packetMode' + property :session_initialization_mode, as: 'sessionInitializationMode' property :slow_timer_interval, as: 'slowTimerInterval' 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 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 :kind, as: 'kind' collection :licenses, as: 'licenses' property :mode, as: 'mode' - property :saved_state, as: 'savedState' property :source, as: 'source' property :storage_bytes, :numeric_string => true, as: 'storageBytes' property :storage_bytes_status, as: 'storageBytesStatus' diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 40c8db09d..b96e06b29 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://compute.googleapis.com/', 'compute/alpha/projects/') + super('https://www.googleapis.com/', 'compute/alpha/projects/') @batch_path = 'batch/compute/alpha' end @@ -2534,7 +2534,9 @@ module Google # Name of the persistent disk to snapshot. # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object # @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 # 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 @@ -12188,6 +12190,8 @@ module Google # accidentally creating duplicate commitments. # The request ID must be a valid UUID with the exception that zero UUID is not # supported (00000000-0000-0000-0000-000000000000). + # @param [Boolean] validate_only + # If true, the request will not be committed. # @param [String] fields # Selector specifying which fields to include in a partial response. # @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::ClientError] The request is invalid and should not be retried without modification # @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.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachment::Representation command.request_object = interconnect_attachment_object @@ -12216,6 +12220,7 @@ module Google command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.query['requestId'] = request_id unless request_id.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -19398,7 +19403,9 @@ module Google # Name of the regional persistent disk to snapshot. # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object # @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 # 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 diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 7ea7c0c3f..ec8d342c8 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20190416' + REVISION = '20190528' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 9c8ce60ae..ee93600ee 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -2512,11 +2512,21 @@ module Google # @return [Google::Apis::ComputeBeta::BackendServiceCdnPolicy] attr_accessor :cdn_policy + # Settings controlling the volume of connections to a backend service. + # Corresponds to the JSON property `circuitBreakers` + # @return [Google::Apis::ComputeBeta::CircuitBreakers] + attr_accessor :circuit_breakers + # Message containing connection draining configuration. # Corresponds to the JSON property `connectionDraining` # @return [Google::Apis::ComputeBeta::ConnectionDraining] attr_accessor :connection_draining + # This message defines settings for a consistent hash style load balancer. + # Corresponds to the JSON property `consistentHash` + # @return [Google::Apis::ComputeBeta::ConsistentHashLoadBalancerSettings] + attr_accessor :consistent_hash + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -2592,6 +2602,33 @@ module Google # @return [String] attr_accessor :load_balancing_scheme + # The load balancing algorithm used within the scope of the locality. The + # possible values are: + # - ROUND_ROBIN: This is a simple policy in which each healthy backend is + # selected in round robin order. This is the default. + # - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and + # picks the host which has fewer active requests. + # - RING_HASH: The ring/modulo hash load balancer implements consistent hashing + # to backends. The algorithm has the property that the addition/removal of a + # host from a set of N hosts only affects 1/N of the requests. + # - RANDOM: The load balancer selects a random healthy host. + # - ORIGINAL_DESTINATION: Backend host is selected based on the client + # connection metadata, i.e., connections are opened to the same address as the + # destination address of the incoming connection before the connection was + # redirected to the load balancer. + # - MAGLEV: used as a drop in replacement for the ring hash load balancer. + # Maglev is not as stable as ring hash but has faster table lookup build times + # and host selection times. For more information about Maglev, refer to https:// + # ai.google/research/pubs/pub44824 + # This field is applicable to either: + # - A regional backend service with the service_protocol set to HTTP, HTTPS, or + # HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. + # - A global backend service with the load_balancing_scheme set to + # INTERNAL_SELF_MANAGED. + # Corresponds to the JSON property `localityLbPolicy` + # @return [String] + attr_accessor :locality_lb_policy + # The available logging options for the load balancer traffic served by this # backend service. # Corresponds to the JSON property `logConfig` @@ -2608,6 +2645,11 @@ module Google # @return [String] attr_accessor :name + # Settings controlling eviction of unhealthy hosts from the load balancing pool. + # Corresponds to the JSON property `outlierDetection` + # @return [Google::Apis::ComputeBeta::OutlierDetection] + attr_accessor :outlier_detection + # Deprecated in favor of portName. The TCP port to connect on the backend. The # default value is 80. # This cannot be used for internal load balancing. @@ -2675,7 +2717,9 @@ module Google @affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec) @backends = args[:backends] if args.key?(:backends) @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy) + @circuit_breakers = args[:circuit_breakers] if args.key?(:circuit_breakers) @connection_draining = args[:connection_draining] if args.key?(:connection_draining) + @consistent_hash = args[:consistent_hash] if args.key?(:consistent_hash) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers) @description = args[:description] if args.key?(:description) @@ -2687,8 +2731,10 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme) + @locality_lb_policy = args[:locality_lb_policy] if args.key?(:locality_lb_policy) @log_config = args[:log_config] if args.key?(:log_config) @name = args[:name] if args.key?(:name) + @outlier_detection = args[:outlier_detection] if args.key?(:outlier_detection) @port = args[:port] if args.key?(:port) @port_name = args[:port_name] if args.key?(:port_name) @protocol = args[:protocol] if args.key?(:protocol) @@ -3358,6 +3404,64 @@ module Google end end + # Settings controlling the volume of connections to a backend service. + class CircuitBreakers + include Google::Apis::Core::Hashable + + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `connectTimeout` + # @return [Google::Apis::ComputeBeta::Duration] + attr_accessor :connect_timeout + + # The maximum number of connections to the backend cluster. If not specified, + # the default is 1024. + # Corresponds to the JSON property `maxConnections` + # @return [Fixnum] + attr_accessor :max_connections + + # The maximum number of pending requests allowed to the backend cluster. If not + # specified, the default is 1024. + # Corresponds to the JSON property `maxPendingRequests` + # @return [Fixnum] + attr_accessor :max_pending_requests + + # The maximum number of parallel requests that allowed to the backend cluster. + # If not specified, the default is 1024. + # Corresponds to the JSON property `maxRequests` + # @return [Fixnum] + attr_accessor :max_requests + + # Maximum requests for a single backend connection. This parameter is respected + # by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no + # limit. Setting this parameter to 1 will effectively disable keep alive. + # Corresponds to the JSON property `maxRequestsPerConnection` + # @return [Fixnum] + attr_accessor :max_requests_per_connection + + # The maximum number of parallel retries allowed to the backend cluster. If not + # specified, the default is 3. + # Corresponds to the JSON property `maxRetries` + # @return [Fixnum] + attr_accessor :max_retries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @connect_timeout = args[:connect_timeout] if args.key?(:connect_timeout) + @max_connections = args[:max_connections] if args.key?(:max_connections) + @max_pending_requests = args[:max_pending_requests] if args.key?(:max_pending_requests) + @max_requests = args[:max_requests] if args.key?(:max_requests) + @max_requests_per_connection = args[:max_requests_per_connection] if args.key?(:max_requests_per_connection) + @max_retries = args[:max_retries] if args.key?(:max_retries) + end + end + # Represents a Commitment resource. Creating a Commitment resource means that # you are purchasing a committed use contract with an explicit start and end # time. You can create commitments based on vCPUs and memory usage and receive @@ -3867,6 +3971,150 @@ module Google end end + # This message defines settings for a consistent hash style load balancer. + class ConsistentHashLoadBalancerSettings + include Google::Apis::Core::Hashable + + # The information about the HTTP Cookie on which the hash function is based for + # load balancing policies that use a consistent hash. + # Corresponds to the JSON property `httpCookie` + # @return [Google::Apis::ComputeBeta::ConsistentHashLoadBalancerSettingsHttpCookie] + attr_accessor :http_cookie + + # The hash based on the value of the specified header field. This field is + # applicable if the sessionAffinity is set to HEADER_FIELD. + # Corresponds to the JSON property `httpHeaderName` + # @return [String] + attr_accessor :http_header_name + + # The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. + # Larger ring sizes result in more granular load distributions. If the number + # of hosts in the load balancing pool is larger than the ring size, each host + # will be assigned a single virtual node. + # Corresponds to the JSON property `minimumRingSize` + # @return [Fixnum] + attr_accessor :minimum_ring_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @http_cookie = args[:http_cookie] if args.key?(:http_cookie) + @http_header_name = args[:http_header_name] if args.key?(:http_header_name) + @minimum_ring_size = args[:minimum_ring_size] if args.key?(:minimum_ring_size) + end + end + + # The information about the HTTP Cookie on which the hash function is based for + # load balancing policies that use a consistent hash. + class ConsistentHashLoadBalancerSettingsHttpCookie + include Google::Apis::Core::Hashable + + # Name of the cookie. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Path to set for the cookie. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `ttl` + # @return [Google::Apis::ComputeBeta::Duration] + attr_accessor :ttl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @path = args[:path] if args.key?(:path) + @ttl = args[:ttl] if args.key?(:ttl) + end + end + + # The specification for allowing client side cross-origin requests. Please see + # W3C Recommendation for Cross Origin Resource Sharing + class CorsPolicy + include Google::Apis::Core::Hashable + + # In response to a preflight request, setting this to true indicates that the + # actual request can include user credentials. This translates to the Access- + # Control-Allow-Credentials header. + # Default is false. + # Corresponds to the JSON property `allowCredentials` + # @return [Boolean] + attr_accessor :allow_credentials + alias_method :allow_credentials?, :allow_credentials + + # Specifies the content for the Access-Control-Allow-Headers header. + # Corresponds to the JSON property `allowHeaders` + # @return [Array] + attr_accessor :allow_headers + + # Specifies the content for the Access-Control-Allow-Methods header. + # Corresponds to the JSON property `allowMethods` + # @return [Array] + attr_accessor :allow_methods + + # Specifies the regualar expression patterns that match allowed origins. For + # regular expression grammar please see en.cppreference.com/w/cpp/regex/ + # ecmascript + # An origin is allowed if it matches either allow_origins or allow_origin_regex. + # Corresponds to the JSON property `allowOriginRegexes` + # @return [Array] + attr_accessor :allow_origin_regexes + + # Specifies the list of origins that will be allowed to do CORS requests. + # An origin is allowed if it matches either allow_origins or allow_origin_regex. + # Corresponds to the JSON property `allowOrigins` + # @return [Array] + attr_accessor :allow_origins + + # If true, specifies the CORS policy is disabled. The default value of false, + # which indicates that the CORS policy is in effect. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + # Specifies the content for the Access-Control-Expose-Headers header. + # Corresponds to the JSON property `exposeHeaders` + # @return [Array] + attr_accessor :expose_headers + + # Specifies how long the results of a preflight request can be cached. This + # translates to the content for the Access-Control-Max-Age header. + # Corresponds to the JSON property `maxAge` + # @return [Fixnum] + attr_accessor :max_age + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_credentials = args[:allow_credentials] if args.key?(:allow_credentials) + @allow_headers = args[:allow_headers] if args.key?(:allow_headers) + @allow_methods = args[:allow_methods] if args.key?(:allow_methods) + @allow_origin_regexes = args[:allow_origin_regexes] if args.key?(:allow_origin_regexes) + @allow_origins = args[:allow_origins] if args.key?(:allow_origins) + @disabled = args[:disabled] if args.key?(:disabled) + @expose_headers = args[:expose_headers] if args.key?(:expose_headers) + @max_age = args[:max_age] if args.key?(:max_age) + end + end + # Represents a customer-supplied encryption key class CustomerEncryptionKey include Google::Apis::Core::Hashable @@ -4196,14 +4444,14 @@ module Google attr_accessor :storage_type # 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/ - # diskTypes/pd-standard or pd-ssd + # disk. Provide this when creating the disk. For example: projects/project/zones/ + # zone/diskTypes/pd-standard or pd-ssd # Corresponds to the JSON property `type` # @return [String] attr_accessor :type # [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` # @return [Array] attr_accessor :users @@ -5195,6 +5443,38 @@ module Google end end + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + class Duration + include Google::Apis::Core::Hashable + + # Span of time that's a fraction of a second at nanosecond resolution. Durations + # less than one second are represented with a 0 `seconds` field and a positive ` + # nanos` field. Must be from 0 to 999,999,999 inclusive. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 + # inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 + # hr/day * 365.25 days/year * 10000 years + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @nanos = args[:nanos] if args.key?(:nanos) + @seconds = args[:seconds] if args.key?(:seconds) + end + end + # class ExchangedPeeringRoute include Google::Apis::Core::Hashable @@ -6236,6 +6516,23 @@ module Google # @return [String] attr_accessor :load_balancing_scheme + # Opaque filter criteria used by Loadbalancer to restrict routing configuration + # to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, + # xDS clients present node metadata. If a match takes place, the relevant + # routing configuration is made available to those proxies. + # For each metadataFilter in this list, if its filterMatchCriteria is set to + # MATCH_ANY, at least one of the filterLabels must match the corresponding label + # provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then + # all of its filterLabels must match with corresponding labels in the provided + # metadata. + # metadataFilters specified here can be overridden by those specified in the + # UrlMap that this ForwardingRule references. + # metadataFilters only applies to Loadbalancers that have their + # loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # Corresponds to the JSON property `metadataFilters` + # @return [Array] + attr_accessor :metadata_filters + # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression `[a-z]([-a- @@ -6364,6 +6661,7 @@ module Google @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme) + @metadata_filters = args[:metadata_filters] if args.key?(:metadata_filters) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_tier = args[:network_tier] if args.key?(:network_tier) @@ -7226,6 +7524,12 @@ module Google # @return [String] attr_accessor :name + # [Output Only] Region where the health check resides. Not applicable to global + # health checks. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -7277,6 +7581,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @ssl_health_check = args[:ssl_health_check] if args.key?(:ssl_health_check) @tcp_health_check = args[:tcp_health_check] if args.key?(:tcp_health_check) @@ -7427,6 +7732,214 @@ module Google end end + # + class HealthChecksAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of HealthChecksScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::HealthChecksAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class HealthChecksScopedList + include Google::Apis::Core::Hashable + + # A list of HealthChecks contained in this scope. + # Corresponds to the JSON property `healthChecks` + # @return [Array] + attr_accessor :health_checks + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::HealthChecksScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class HealthStatus include Google::Apis::Core::Hashable @@ -7545,6 +8058,258 @@ module Google end end + # Specification for how requests are aborted as part of fault injection. + class HttpFaultAbort + include Google::Apis::Core::Hashable + + # The HTTP status code used to abort the request. + # The value must be between 200 and 599 inclusive. + # Corresponds to the JSON property `httpStatus` + # @return [Fixnum] + attr_accessor :http_status + + # The percentage of traffic (connections/operations/requests) which will be + # aborted as part of fault injection. + # The value must be between 0.0 and 100.0 inclusive. + # Corresponds to the JSON property `percentage` + # @return [Float] + attr_accessor :percentage + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @http_status = args[:http_status] if args.key?(:http_status) + @percentage = args[:percentage] if args.key?(:percentage) + end + end + + # Specifies the delay introduced by Loadbalancer before forwarding the request + # to the backend service as part of fault injection. + class HttpFaultDelay + include Google::Apis::Core::Hashable + + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `fixedDelay` + # @return [Google::Apis::ComputeBeta::Duration] + attr_accessor :fixed_delay + + # The percentage of traffic (connections/operations/requests) on which delay + # will be introduced as part of fault injection. + # The value must be between 0.0 and 100.0 inclusive. + # Corresponds to the JSON property `percentage` + # @return [Float] + attr_accessor :percentage + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fixed_delay = args[:fixed_delay] if args.key?(:fixed_delay) + @percentage = args[:percentage] if args.key?(:percentage) + end + end + + # The specification for fault injection introduced into traffic to test the + # resiliency of clients to backend service failure. As part of fault injection, + # when clients send requests to a backend service, delays can be introduced by + # Loadbalancer on a percentage of requests before sending those request to the + # backend service. Similarly requests from clients can be aborted by the + # Loadbalancer for a percentage of requests. + class HttpFaultInjection + include Google::Apis::Core::Hashable + + # Specification for how requests are aborted as part of fault injection. + # Corresponds to the JSON property `abort` + # @return [Google::Apis::ComputeBeta::HttpFaultAbort] + attr_accessor :abort + + # Specifies the delay introduced by Loadbalancer before forwarding the request + # to the backend service as part of fault injection. + # Corresponds to the JSON property `delay` + # @return [Google::Apis::ComputeBeta::HttpFaultDelay] + attr_accessor :delay + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @abort = args[:abort] if args.key?(:abort) + @delay = args[:delay] if args.key?(:delay) + end + end + + # The request and response header transformations that take effect before the + # request is passed along to the selected backendService. + class HttpHeaderAction + include Google::Apis::Core::Hashable + + # Headers to add to a matching request prior to forwarding the request to the + # backendService. + # Corresponds to the JSON property `requestHeadersToAdd` + # @return [Array] + attr_accessor :request_headers_to_add + + # A list of header names for headers that need to be removed from the request + # prior to forwarding the request to the backendService. + # Corresponds to the JSON property `requestHeadersToRemove` + # @return [Array] + attr_accessor :request_headers_to_remove + + # Headers to add the response prior to sending the response back to the client. + # Corresponds to the JSON property `responseHeadersToAdd` + # @return [Array] + attr_accessor :response_headers_to_add + + # A list of header names for headers that need to be removed from the response + # prior to sending the response back to the client. + # Corresponds to the JSON property `responseHeadersToRemove` + # @return [Array] + attr_accessor :response_headers_to_remove + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_headers_to_add = args[:request_headers_to_add] if args.key?(:request_headers_to_add) + @request_headers_to_remove = args[:request_headers_to_remove] if args.key?(:request_headers_to_remove) + @response_headers_to_add = args[:response_headers_to_add] if args.key?(:response_headers_to_add) + @response_headers_to_remove = args[:response_headers_to_remove] if args.key?(:response_headers_to_remove) + end + end + + # matchRule criteria for request header matches. + class HttpHeaderMatch + include Google::Apis::Core::Hashable + + # The value should exactly match contents of exactMatch. + # Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or + # rangeMatch must be set. + # Corresponds to the JSON property `exactMatch` + # @return [String] + attr_accessor :exact_match + + # The name of the HTTP header to match. + # For matching against the HTTP request's authority, use a headerMatch with the + # header name ":authority". + # For matching a request's method, use the headerName ":method". + # Corresponds to the JSON property `headerName` + # @return [String] + attr_accessor :header_name + + # If set to false, the headerMatch is considered a match if the match criteria + # above are met. If set to true, the headerMatch is considered a match if the + # match criteria above are NOT met. + # The default setting is false. + # Corresponds to the JSON property `invertMatch` + # @return [Boolean] + attr_accessor :invert_match + alias_method :invert_match?, :invert_match + + # The value of the header must start with the contents of prefixMatch. + # Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or + # rangeMatch must be set. + # Corresponds to the JSON property `prefixMatch` + # @return [String] + attr_accessor :prefix_match + + # A header with the contents of headerName must exist. The match takes place + # whether or not the request's header has a value or not. + # Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or + # rangeMatch must be set. + # Corresponds to the JSON property `presentMatch` + # @return [Boolean] + attr_accessor :present_match + alias_method :present_match?, :present_match + + # HttpRouteRuleMatch criteria for field values that must stay within the + # specified integer range. + # Corresponds to the JSON property `rangeMatch` + # @return [Google::Apis::ComputeBeta::Int64RangeMatch] + attr_accessor :range_match + + # The value of the header must match the regualar expression specified in + # regexMatch. For regular expression grammar, please see: en.cppreference.com/w/ + # cpp/regex/ecmascript + # For matching against a port specified in the HTTP request, use a headerMatch + # with headerName set to PORT and a regular expression that satisfies the + # RFC2616 Host header's port specifier. + # Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or + # rangeMatch must be set. + # Corresponds to the JSON property `regexMatch` + # @return [String] + attr_accessor :regex_match + + # The value of the header must end with the contents of suffixMatch. + # Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or + # rangeMatch must be set. + # Corresponds to the JSON property `suffixMatch` + # @return [String] + attr_accessor :suffix_match + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exact_match = args[:exact_match] if args.key?(:exact_match) + @header_name = args[:header_name] if args.key?(:header_name) + @invert_match = args[:invert_match] if args.key?(:invert_match) + @prefix_match = args[:prefix_match] if args.key?(:prefix_match) + @present_match = args[:present_match] if args.key?(:present_match) + @range_match = args[:range_match] if args.key?(:range_match) + @regex_match = args[:regex_match] if args.key?(:regex_match) + @suffix_match = args[:suffix_match] if args.key?(:suffix_match) + end + end + + # Specification determining how headers are added to requests or responses. + class HttpHeaderOption + include Google::Apis::Core::Hashable + + # The name of the header. + # Corresponds to the JSON property `headerName` + # @return [String] + attr_accessor :header_name + + # The value of the header to add. + # Corresponds to the JSON property `headerValue` + # @return [String] + attr_accessor :header_value + + # If false, headerValue is appended to any values that already exist for the + # header. If true, headerValue is set for the header, discarding any values that + # were set for that header. + # The default value is false. + # Corresponds to the JSON property `replace` + # @return [Boolean] + attr_accessor :replace + alias_method :replace?, :replace + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @header_name = args[:header_name] if args.key?(:header_name) + @header_value = args[:header_value] if args.key?(:header_value) + @replace = args[:replace] if args.key?(:replace) + end + end + # An HttpHealthCheck resource. This resource defines a template for how # individual instances should be checked for health, via HTTP. class HttpHealthCheck @@ -7768,6 +8533,400 @@ module Google end end + # HttpRouteRuleMatch criteria for a request's query parameter. + class HttpQueryParameterMatch + include Google::Apis::Core::Hashable + + # The queryParameterMatch matches if the value of the parameter exactly matches + # the contents of exactMatch. + # Only one of presentMatch, exactMatch and regexMatch must be set. + # Corresponds to the JSON property `exactMatch` + # @return [String] + attr_accessor :exact_match + + # The name of the query parameter to match. The query parameter must exist in + # the request, in the absence of which the request match fails. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Specifies that the queryParameterMatch matches if the request contains the + # query parameter, irrespective of whether the parameter has a value or not. + # Only one of presentMatch, exactMatch and regexMatch must be set. + # Corresponds to the JSON property `presentMatch` + # @return [Boolean] + attr_accessor :present_match + alias_method :present_match?, :present_match + + # The queryParameterMatch matches if the value of the parameter matches the + # regular expression specified by regexMatch. For the regular expression grammar, + # please see en.cppreference.com/w/cpp/regex/ecmascript + # Only one of presentMatch, exactMatch and regexMatch must be set. + # Corresponds to the JSON property `regexMatch` + # @return [String] + attr_accessor :regex_match + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exact_match = args[:exact_match] if args.key?(:exact_match) + @name = args[:name] if args.key?(:name) + @present_match = args[:present_match] if args.key?(:present_match) + @regex_match = args[:regex_match] if args.key?(:regex_match) + end + end + + # Specifies settings for an HTTP redirect. + class HttpRedirectAction + include Google::Apis::Core::Hashable + + # The host that will be used in the redirect response instead of the one that + # was supplied in the request. + # The value must be between 1 and 255 characters. + # Corresponds to the JSON property `hostRedirect` + # @return [String] + attr_accessor :host_redirect + + # If set to true, the URL scheme in the redirected request is set to https. If + # set to false, the URL scheme of the redirected request will remain the same as + # that of the request. + # This must only be set for UrlMaps used in TargetHttpProxys. Setting this true + # for TargetHttpsProxy is not permitted. + # The default is set to false. + # Corresponds to the JSON property `httpsRedirect` + # @return [Boolean] + attr_accessor :https_redirect + alias_method :https_redirect?, :https_redirect + + # The path that will be used in the redirect response instead of the one that + # was supplied in the request. + # Only one of pathRedirect or prefixRedirect must be specified. + # The value must be between 1 and 1024 characters. + # Corresponds to the JSON property `pathRedirect` + # @return [String] + attr_accessor :path_redirect + + # The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, + # retaining the remaining portion of the URL before redirecting the request. + # Corresponds to the JSON property `prefixRedirect` + # @return [String] + attr_accessor :prefix_redirect + + # The HTTP Status code to use for this RedirectAction. + # Supported values are: + # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. + # + # - FOUND, which corresponds to 302. + # - SEE_OTHER which corresponds to 303. + # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request + # method will be retained. + # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + # method will be retained. + # Corresponds to the JSON property `redirectResponseCode` + # @return [String] + attr_accessor :redirect_response_code + + # If set to true, any accompanying query portion of the original URL is removed + # prior to redirecting the request. If set to false, the query portion of the + # original URL is retained. + # The default is set to false. + # Corresponds to the JSON property `stripQuery` + # @return [Boolean] + attr_accessor :strip_query + alias_method :strip_query?, :strip_query + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @host_redirect = args[:host_redirect] if args.key?(:host_redirect) + @https_redirect = args[:https_redirect] if args.key?(:https_redirect) + @path_redirect = args[:path_redirect] if args.key?(:path_redirect) + @prefix_redirect = args[:prefix_redirect] if args.key?(:prefix_redirect) + @redirect_response_code = args[:redirect_response_code] if args.key?(:redirect_response_code) + @strip_query = args[:strip_query] if args.key?(:strip_query) + end + end + + # The retry policy associates with HttpRouteRule + class HttpRetryPolicy + include Google::Apis::Core::Hashable + + # Specifies the allowed number retries. This number must be > 0. + # Corresponds to the JSON property `numRetries` + # @return [Fixnum] + attr_accessor :num_retries + + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `perTryTimeout` + # @return [Google::Apis::ComputeBeta::Duration] + attr_accessor :per_try_timeout + + # Specfies one or more conditions when this retry rule applies. Valid values are: + # + # - 5xx: Loadbalancer will attempt a retry if the backend service responds with + # any 5xx response code, or if the backend service does not respond at all, + # example: disconnects, reset, read timeout, connection failure, and refused + # streams. + # - gateway-error: Similar to 5xx, but only applies to response codes 502, 503 + # or 504. + # - + # - connect-failure: Loadbalancer will retry on failures connecting to backend + # services, for example due to connection timeouts. + # - retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. + # Currently the only retriable error supported is 409. + # - refused-stream:Loadbalancer will retry if the backend service resets the + # stream with a REFUSED_STREAM error code. This reset type indicates that it is + # safe to retry. + # - cancelledLoadbalancer will retry if the gRPC status code in the response + # header is set to cancelled + # - deadline-exceeded: Loadbalancer will retry if the gRPC status code in the + # response header is set to deadline-exceeded + # - resource-exhausted: Loadbalancer will retry if the gRPC status code in the + # response header is set to resource-exhausted + # - unavailable: Loadbalancer will retry if the gRPC status code in the response + # header is set to unavailable + # Corresponds to the JSON property `retryConditions` + # @return [Array] + attr_accessor :retry_conditions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_retries = args[:num_retries] if args.key?(:num_retries) + @per_try_timeout = args[:per_try_timeout] if args.key?(:per_try_timeout) + @retry_conditions = args[:retry_conditions] if args.key?(:retry_conditions) + end + end + + # + class HttpRouteAction + include Google::Apis::Core::Hashable + + # The specification for allowing client side cross-origin requests. Please see + # W3C Recommendation for Cross Origin Resource Sharing + # Corresponds to the JSON property `corsPolicy` + # @return [Google::Apis::ComputeBeta::CorsPolicy] + attr_accessor :cors_policy + + # The specification for fault injection introduced into traffic to test the + # resiliency of clients to backend service failure. As part of fault injection, + # when clients send requests to a backend service, delays can be introduced by + # Loadbalancer on a percentage of requests before sending those request to the + # backend service. Similarly requests from clients can be aborted by the + # Loadbalancer for a percentage of requests. + # Corresponds to the JSON property `faultInjectionPolicy` + # @return [Google::Apis::ComputeBeta::HttpFaultInjection] + attr_accessor :fault_injection_policy + + # A policy that specifies how requests intended for the route's backends are + # shadowed to a separate mirrored backend service. Loadbalancer does not wait + # for responses from the shadow service. Prior to sending traffic to the shadow + # service, the host / authority header is suffixed with -shadow. + # Corresponds to the JSON property `requestMirrorPolicy` + # @return [Google::Apis::ComputeBeta::RequestMirrorPolicy] + attr_accessor :request_mirror_policy + + # The retry policy associates with HttpRouteRule + # Corresponds to the JSON property `retryPolicy` + # @return [Google::Apis::ComputeBeta::HttpRetryPolicy] + attr_accessor :retry_policy + + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `timeout` + # @return [Google::Apis::ComputeBeta::Duration] + attr_accessor :timeout + + # The spec for modifying the path before sending the request to the matched + # backend service. + # Corresponds to the JSON property `urlRewrite` + # @return [Google::Apis::ComputeBeta::UrlRewrite] + attr_accessor :url_rewrite + + # A list of weighted backend services to send traffic to when a route match + # occurs. The weights determine the fraction of traffic that flows to their + # corresponding backend service. If all traffic needs to go to a single backend + # service, there must be one weightedBackendService with weight set to a non 0 + # number. + # Once a backendService is identified and before forwarding the request to the + # backend service, advanced routing actions like Url rewrites and header + # transformations are applied depending on additional settings specified in this + # HttpRouteAction. + # Corresponds to the JSON property `weightedBackendServices` + # @return [Array] + attr_accessor :weighted_backend_services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cors_policy = args[:cors_policy] if args.key?(:cors_policy) + @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy) + @request_mirror_policy = args[:request_mirror_policy] if args.key?(:request_mirror_policy) + @retry_policy = args[:retry_policy] if args.key?(:retry_policy) + @timeout = args[:timeout] if args.key?(:timeout) + @url_rewrite = args[:url_rewrite] if args.key?(:url_rewrite) + @weighted_backend_services = args[:weighted_backend_services] if args.key?(:weighted_backend_services) + end + end + + # An HttpRouteRule specifies how to match an HTTP request and the corresponding + # routing action that load balancing proxies will perform. + class HttpRouteRule + include Google::Apis::Core::Hashable + + # The request and response header transformations that take effect before the + # request is passed along to the selected backendService. + # Corresponds to the JSON property `headerAction` + # @return [Google::Apis::ComputeBeta::HttpHeaderAction] + attr_accessor :header_action + + # + # Corresponds to the JSON property `matchRules` + # @return [Array] + attr_accessor :match_rules + + # In response to a matching matchRule, the load balancer performs advanced + # routing actions like URL rewrites, header transformations, etc. prior to + # forwarding the request to the selected backend. If routeAction specifies any + # weightedBackendServices, service must not be set. Conversely if service is set, + # routeAction cannot contain any weightedBackendServices. + # Only one of routeAction or urlRedirect must be set. + # Corresponds to the JSON property `routeAction` + # @return [Google::Apis::ComputeBeta::HttpRouteAction] + 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. + # Corresponds to the JSON property `urlRedirect` + # @return [Google::Apis::ComputeBeta::HttpRedirectAction] + attr_accessor :url_redirect + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @header_action = args[:header_action] if args.key?(:header_action) + @match_rules = args[:match_rules] if args.key?(:match_rules) + @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) + end + end + + # HttpRouteRuleMatch specifies a set of criteria for matching requests to an + # HttpRouteRule. All specified criteria must be satisfied for a match to occur. + class HttpRouteRuleMatch + include Google::Apis::Core::Hashable + + # For satifying the matchRule condition, the path of the request must exactly + # match the value specified in fullPathMatch after removing any query parameters + # and anchor that may be part of the original URL. + # FullPathMatch must be between 1 and 1024 characters. + # Only one of prefixMatch, fullPathMatch or regexMatch must be specified. + # Corresponds to the JSON property `fullPathMatch` + # @return [String] + attr_accessor :full_path_match + + # Specifies a list of header match criteria, all of which must match + # corresponding headers in the request. + # Corresponds to the JSON property `headerMatches` + # @return [Array] + attr_accessor :header_matches + + # Specifies that prefixMatch and fullPathMatch matches are case sensitive. + # The default value is false. + # caseSensitive must not be used with regexMatch. + # Corresponds to the JSON property `ignoreCase` + # @return [Boolean] + attr_accessor :ignore_case + alias_method :ignore_case?, :ignore_case + + # Opaque filter criteria used by Loadbalancer to restrict routing configuration + # to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, + # xDS clients present node metadata. If a match takes place, the relevant + # routing configuration is made available to those proxies. + # For each metadataFilter in this list, if its filterMatchCriteria is set to + # MATCH_ANY, at least one of the filterLabels must match the corresponding label + # provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then + # all of its filterLabels must match with corresponding labels in the provided + # metadata. + # metadataFilters specified here can be overrides those specified in + # ForwardingRule that refers to this UrlMap. + # metadataFilters only applies to Loadbalancers that have their + # loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # Corresponds to the JSON property `metadataFilters` + # @return [Array] + attr_accessor :metadata_filters + + # For satifying the matchRule condition, the request's path must begin with the + # specified prefixMatch. prefixMatch must begin with a /. + # The value must be between 1 and 1024 characters. + # Only one of prefixMatch, fullPathMatch or regexMatch must be specified. + # Corresponds to the JSON property `prefixMatch` + # @return [String] + attr_accessor :prefix_match + + # Specifies a list of query parameter match criteria, all of which must match + # corresponding query parameters in the request. + # Corresponds to the JSON property `queryParameterMatches` + # @return [Array] + attr_accessor :query_parameter_matches + + # For satifying the matchRule condition, the path of the request must satisfy + # the regular expression specified in regexMatch after removing any query + # parameters and anchor supplied with the original URL. For regular expression + # grammar please see en.cppreference.com/w/cpp/regex/ecmascript + # Only one of prefixMatch, fullPathMatch or regexMatch must be specified. + # Corresponds to the JSON property `regexMatch` + # @return [String] + attr_accessor :regex_match + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_path_match = args[:full_path_match] if args.key?(:full_path_match) + @header_matches = args[:header_matches] if args.key?(:header_matches) + @ignore_case = args[:ignore_case] if args.key?(:ignore_case) + @metadata_filters = args[:metadata_filters] if args.key?(:metadata_filters) + @prefix_match = args[:prefix_match] if args.key?(:prefix_match) + @query_parameter_matches = args[:query_parameter_matches] if args.key?(:query_parameter_matches) + @regex_match = args[:regex_match] if args.key?(:regex_match) + end + end + # An HttpsHealthCheck resource. This resource defines a template for how # individual instances should be checked for health, via HTTPS. class HttpsHealthCheck @@ -8181,6 +9340,11 @@ module Google # @return [String] attr_accessor :status + # GCS bucket storage location of the image (regional or multi-regional). + # Corresponds to the JSON property `storageLocations` + # @return [Array] + attr_accessor :storage_locations + def initialize(**args) update!(**args) end @@ -8215,6 +9379,7 @@ module Google @source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id) @source_type = args[:source_type] if args.key?(:source_type) @status = args[:status] if args.key?(:status) + @storage_locations = args[:storage_locations] if args.key?(:storage_locations) end # The parameters of the raw disk image. @@ -8228,8 +9393,8 @@ module Google # @return [String] attr_accessor :container_type - # An optional SHA1 checksum of the disk image before unpackaging provided by the - # client when the disk image is created. + # [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk + # image before unpackaging provided by the client when the disk image is created. # Corresponds to the JSON property `sha1Checksum` # @return [String] attr_accessor :sha1_checksum @@ -11365,6 +12530,32 @@ module Google end end + # HttpRouteRuleMatch criteria for field values that must stay within the + # specified integer range. + class Int64RangeMatch + include Google::Apis::Core::Hashable + + # The end of the range (exclusive) in signed long integer format. + # Corresponds to the JSON property `rangeEnd` + # @return [Fixnum] + attr_accessor :range_end + + # The start of the range (inclusive) in signed long integer format. + # Corresponds to the JSON property `rangeStart` + # @return [Fixnum] + attr_accessor :range_start + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @range_end = args[:range_end] if args.key?(:range_end) + @range_start = args[:range_start] if args.key?(:range_start) + end + end + # Represents an Interconnects resource. The Interconnects resource is a # dedicated connection between Google's network and your on-premises network. # For more information, see the Dedicated overview page. (== resource_for v1. @@ -11433,8 +12624,11 @@ module Google # @return [Array] attr_accessor :interconnect_attachments - # Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of " - # DEDICATED" + # Type of interconnect, which can take one of the following values: + # - 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` # @return [String] attr_accessor :interconnect_type @@ -11465,8 +12659,11 @@ module Google # @return [Hash] attr_accessor :labels - # Type of link requested. This field indicates speed of each of the links in the - # bundle, not the entire bundle. + # Type of link requested, which can take one of the following values: + # - 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` # @return [String] attr_accessor :link_type @@ -11495,8 +12692,14 @@ module Google # @return [String] attr_accessor :noc_contact_email - # [Output Only] The current status of whether or not this Interconnect is - # functional. + # [Output Only] The current status of this Interconnect's functionality, which + # 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` # @return [String] attr_accessor :operational_status @@ -11524,8 +12727,14 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] The current state of whether or not this Interconnect is - # functional. + # [Output Only] The current state of Interconnect functionality, which can take + # 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` # @return [String] attr_accessor :state @@ -11576,9 +12785,21 @@ module Google attr_accessor :admin_enabled alias_method :admin_enabled?, :admin_enabled - # Provisioned bandwidth capacity for the interconnectAttachment. Can be set by - # the partner to update the customer's provisioned bandwidth. Output only for - # PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED. + # Provisioned bandwidth capacity for the interconnect attachment. For + # attachments of type DEDICATED, the user can set the bandwidth. For attachments + # 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` # @return [String] attr_accessor :bandwidth @@ -11617,11 +12838,14 @@ module Google attr_accessor :description # Desired availability domain for the attachment. Only available for type - # PARTNER, at creation time. For improved reliability, customers should - # configure a pair of attachments with 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. + # PARTNER, at creation time, and can take one of the following values: + # - AVAILABILITY_DOMAIN_ANY + # - AVAILABILITY_DOMAIN_1 + # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a + # 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` # @return [String] attr_accessor :edge_availability_domain @@ -11681,7 +12905,10 @@ module Google attr_accessor :name # [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` # @return [String] attr_accessor :operational_status @@ -11694,9 +12921,9 @@ module Google # @return [String] attr_accessor :pairing_key - # Optional BGP ASN for the router that should be supplied by a layer 3 Partner - # if they configured BGP on behalf of the customer. Output only for PARTNER type, - # input only for PARTNER_PROVIDER, not available for DEDICATED. + # Optional BGP ASN for the router supplied by a Layer 3 Partner if they + # configured BGP on behalf of the customer. Output only for PARTNER type, input + # only for PARTNER_PROVIDER, not available for DEDICATED. # Corresponds to the JSON property `partnerAsn` # @return [Fixnum] attr_accessor :partner_asn @@ -11734,12 +12961,35 @@ module Google # @return [String] 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` # @return [String] 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` # @return [String] attr_accessor :type @@ -12042,7 +13292,7 @@ module Google attr_accessor :partner_name # 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. # Corresponds to the JSON property `portalUrl` # @return [String] @@ -12280,7 +13530,10 @@ module Google # @return [String] 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` # @return [String] attr_accessor :state @@ -12526,7 +13779,13 @@ module Google # @return [String] 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` # @return [String] attr_accessor :continent @@ -12587,9 +13846,12 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] The status of this InterconnectLocation. If the status is - # AVAILABLE, new Interconnects may be provisioned in this InterconnectLocation. - # Otherwise, no new Interconnects may be provisioned. + # [Output Only] The status of this InterconnectLocation, which can take one of + # the following values: + # - 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` # @return [String] attr_accessor :status @@ -12789,8 +14051,13 @@ module Google # @return [Fixnum] attr_accessor :end_time - # Form this outage is expected to take. Note that the "IT_" versions of this - # enum have been deprecated in favor of the unprefixed values. + # Form this outage is expected to take, which can take one of the following + # 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` # @return [String] attr_accessor :issue_type @@ -12800,8 +14067,10 @@ module Google # @return [String] attr_accessor :name - # The party that generated this notification. Note that "NSRC_GOOGLE" has been - # deprecated in favor of "GOOGLE" + # The party that generated this notification, which can take the following value: + # + # - 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` # @return [String] attr_accessor :source @@ -12811,8 +14080,12 @@ module Google # @return [Fixnum] attr_accessor :start_time - # State of this notification. Note that the "NS_" versions of this enum have - # been deprecated in favor of the unprefixed values. + # State of this notification, which can take one of the following 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` # @return [String] attr_accessor :state @@ -13287,10 +14560,6 @@ module Google # Whether Gin logging should happen in a fail-closed manner at the caller. This # 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` # @return [String] attr_accessor :log_mode @@ -13970,6 +15239,82 @@ module Google end end + # Opaque filter criteria used by loadbalancers to restrict routing configuration + # to a limited set of loadbalancing proxies. Proxies and sidecars involved in + # loadbalancing would typically present metadata to the loadbalancers which need + # to match criteria specified here. If a match takes place, the relevant routing + # configuration is made available to those proxies. + # For each metadataFilter in this list, if its filterMatchCriteria is set to + # MATCH_ANY, at least one of the filterLabels must match the corresponding label + # provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then + # all of its filterLabels must match with corresponding labels in the provided + # metadata. + # An example for using metadataFilters would be: if loadbalancing involves + # Envoys, they will only receive routing configuration when values in + # metadataFilters match values supplied in ] + attr_accessor :filter_labels + + # Specifies how individual filterLabel matches within the list of filterLabels + # contribute towards the overall metadataFilter match. + # Supported values are: + # - MATCH_ANY: At least one of the filterLabels must have a matching label in + # the provided metadata. + # - MATCH_ALL: All filterLabels must have matching labels in the provided + # metadata. + # Corresponds to the JSON property `filterMatchCriteria` + # @return [String] + attr_accessor :filter_match_criteria + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter_labels = args[:filter_labels] if args.key?(:filter_labels) + @filter_match_criteria = args[:filter_match_criteria] if args.key?(:filter_match_criteria) + end + end + + # MetadataFilter label name value pairs that are expected to match corresponding + # labels presented as metadata to the loadbalancer. + class MetadataFilterLabelMatch + include Google::Apis::Core::Hashable + + # Name of metadata label. + # The name can have a maximum length of 1024 characters and must be at least 1 + # character long. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The value of the label must match the specified value. + # value can have a maximum length of 1024 characters. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # The named port. For example: . class NamedPort include Google::Apis::Core::Hashable @@ -17348,12 +18693,131 @@ module Google end end + # Settings controlling eviction of unhealthy hosts from the load balancing pool. + class OutlierDetection + include Google::Apis::Core::Hashable + + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `baseEjectionTime` + # @return [Google::Apis::ComputeBeta::Duration] + attr_accessor :base_ejection_time + + # Number of errors before a host is ejected from the connection pool. When the + # backend host is accessed over HTTP, a 5xx return code qualifies as an error. + # Defaults to 5. + # Corresponds to the JSON property `consecutiveErrors` + # @return [Fixnum] + attr_accessor :consecutive_errors + + # The number of consecutive gateway failures (502, 503, 504 status or connection + # errors that are mapped to one of those status codes) before a consecutive + # gateway failure ejection occurs. Defaults to 5. + # Corresponds to the JSON property `consecutiveGatewayFailure` + # @return [Fixnum] + attr_accessor :consecutive_gateway_failure + + # The percentage chance that a host will be actually ejected when an outlier + # status is detected through consecutive 5xx. This setting can be used to + # disable ejection or to ramp it up slowly. Defaults to 100. + # Corresponds to the JSON property `enforcingConsecutiveErrors` + # @return [Fixnum] + attr_accessor :enforcing_consecutive_errors + + # The percentage chance that a host will be actually ejected when an outlier + # status is detected through consecutive gateway failures. This setting can be + # used to disable ejection or to ramp it up slowly. Defaults to 0. + # Corresponds to the JSON property `enforcingConsecutiveGatewayFailure` + # @return [Fixnum] + attr_accessor :enforcing_consecutive_gateway_failure + + # The percentage chance that a host will be actually ejected when an outlier + # status is detected through success rate statistics. This setting can be used + # to disable ejection or to ramp it up slowly. Defaults to 100. + # Corresponds to the JSON property `enforcingSuccessRate` + # @return [Fixnum] + attr_accessor :enforcing_success_rate + + # A Duration represents a fixed-length span of time represented as a count of + # seconds and fractions of seconds at nanosecond resolution. It is independent + # of any calendar and concepts like "day" or "month". Range is approximately 10, + # 000 years. + # Corresponds to the JSON property `interval` + # @return [Google::Apis::ComputeBeta::Duration] + attr_accessor :interval + + # Maximum percentage of hosts in the load balancing pool for the backend service + # that can be ejected. Defaults to 10%. + # Corresponds to the JSON property `maxEjectionPercent` + # @return [Fixnum] + attr_accessor :max_ejection_percent + + # The number of hosts in a cluster that must have enough request volume to + # detect success rate outliers. If the number of hosts is less than this setting, + # outlier detection via success rate statistics is not performed for any host + # in the cluster. Defaults to 5. + # Corresponds to the JSON property `successRateMinimumHosts` + # @return [Fixnum] + attr_accessor :success_rate_minimum_hosts + + # The minimum number of total requests that must be collected in one interval ( + # as defined by the interval duration above) to include this host in success + # rate based outlier detection. If the volume is lower than this setting, + # outlier detection via success rate statistics is not performed for that host. + # Defaults to 100. + # Corresponds to the JSON property `successRateRequestVolume` + # @return [Fixnum] + attr_accessor :success_rate_request_volume + + # This factor is used to determine the ejection threshold for success rate + # outlier ejection. The ejection threshold is the difference between the mean + # success rate, and the product of this factor and the standard deviation of the + # mean success rate: mean - (stdev * success_rate_stdev_factor). This factor is + # divided by a thousand to get a double. That is, if the desired factor is 1.9, + # the runtime value should be 1900. Defaults to 1900. + # Corresponds to the JSON property `successRateStdevFactor` + # @return [Fixnum] + attr_accessor :success_rate_stdev_factor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @base_ejection_time = args[:base_ejection_time] if args.key?(:base_ejection_time) + @consecutive_errors = args[:consecutive_errors] if args.key?(:consecutive_errors) + @consecutive_gateway_failure = args[:consecutive_gateway_failure] if args.key?(:consecutive_gateway_failure) + @enforcing_consecutive_errors = args[:enforcing_consecutive_errors] if args.key?(:enforcing_consecutive_errors) + @enforcing_consecutive_gateway_failure = args[:enforcing_consecutive_gateway_failure] if args.key?(:enforcing_consecutive_gateway_failure) + @enforcing_success_rate = args[:enforcing_success_rate] if args.key?(:enforcing_success_rate) + @interval = args[:interval] if args.key?(:interval) + @max_ejection_percent = args[:max_ejection_percent] if args.key?(:max_ejection_percent) + @success_rate_minimum_hosts = args[:success_rate_minimum_hosts] if args.key?(:success_rate_minimum_hosts) + @success_rate_request_volume = args[:success_rate_request_volume] if args.key?(:success_rate_request_volume) + @success_rate_stdev_factor = args[:success_rate_stdev_factor] if args.key?(:success_rate_stdev_factor) + end + end + # A matcher for the path portion of the URL. The BackendService from the longest- # matched rule will serve the URL. If no rule was matched, the default service # will be used. class PathMatcher include Google::Apis::Core::Hashable + # defaultRouteAction takes effect when none of the pathRules or routeRules + # match. The load balancer performs advanced routing actions like URL rewrites, + # header transformations, etc. prior to forwarding the request to the selected + # backend. If defaultRouteAction specifies any weightedBackendServices, + # defaultService must not be set. Conversely if defaultService is set, + # defaultRouteAction cannot contain any weightedBackendServices. + # Only one of defaultRouteAction or defaultUrlRedirect must be set. + # Corresponds to the JSON property `defaultRouteAction` + # @return [Google::Apis::ComputeBeta::HttpRouteAction] + attr_accessor :default_route_action + # The full or partial URL to the BackendService resource. This will be used if # none of the pathRules or routeRules defined by this PathMatcher are matched. # For example, the following are all valid URLs to a BackendService resource: @@ -17376,12 +18840,23 @@ module Google # @return [String] attr_accessor :default_service + # Specifies settings for an HTTP redirect. + # Corresponds to the JSON property `defaultUrlRedirect` + # @return [Google::Apis::ComputeBeta::HttpRedirectAction] + attr_accessor :default_url_redirect + # An optional description of this resource. Provide this property when you # create the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description + # The request and response header transformations that take effect before the + # request is passed along to the selected backendService. + # Corresponds to the JSON property `headerAction` + # @return [Google::Apis::ComputeBeta::HttpHeaderAction] + attr_accessor :header_action + # The name to which this PathMatcher is referred by the HostRule. # Corresponds to the JSON property `name` # @return [String] @@ -17398,16 +18873,29 @@ module Google # @return [Array] attr_accessor :path_rules + # The list of ordered HTTP route rules. Use this list instead of pathRules when + # advanced route matching and routing actions are desired. The order of + # specifying routeRules matters: the first rule that matches will cause its + # specified routing action to take effect. + # Only one of pathRules or routeRules must be set. + # Corresponds to the JSON property `routeRules` + # @return [Array] + attr_accessor :route_rules + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @default_route_action = args[:default_route_action] if args.key?(:default_route_action) @default_service = args[:default_service] if args.key?(:default_service) + @default_url_redirect = args[:default_url_redirect] if args.key?(:default_url_redirect) @description = args[:description] if args.key?(:description) + @header_action = args[:header_action] if args.key?(:header_action) @name = args[:name] if args.key?(:name) @path_rules = args[:path_rules] if args.key?(:path_rules) + @route_rules = args[:route_rules] if args.key?(:route_rules) end end @@ -17424,6 +18912,16 @@ module Google # @return [Array] attr_accessor :paths + # In response to a matching path, the load balancer performs advanced routing + # actions like URL rewrites, header transformations, etc. prior to forwarding + # the request to the selected backend. If routeAction specifies any + # weightedBackendServices, service must not be set. Conversely if service is set, + # routeAction cannot contain any weightedBackendServices. + # Only one of routeAction or urlRedirect must be set. + # Corresponds to the JSON property `routeAction` + # @return [Google::Apis::ComputeBeta::HttpRouteAction] + 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 @@ -17436,6 +18934,11 @@ module Google # @return [String] attr_accessor :service + # Specifies settings for an HTTP redirect. + # Corresponds to the JSON property `urlRedirect` + # @return [Google::Apis::ComputeBeta::HttpRedirectAction] + attr_accessor :url_redirect + def initialize(**args) update!(**args) end @@ -17443,7 +18946,9 @@ module Google # Update properties of this object def update!(**args) @paths = args[:paths] if args.key?(:paths) + @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) end end @@ -19027,6 +20532,69 @@ module Google end end + # + class RegionTargetHttpsProxiesSetSslCertificatesRequest + include Google::Apis::Core::Hashable + + # New set of SslCertificate resources to associate with this TargetHttpsProxy + # resource. Currently exactly one SslCertificate resource must be specified. + # Corresponds to the JSON property `sslCertificates` + # @return [Array] + attr_accessor :ssl_certificates + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) + end + end + + # + class RegionUrlMapsValidateRequest + include Google::Apis::Core::Hashable + + # A UrlMap resource. This resource defines the mapping from URL to the + # BackendService resource, based on the "longest-match" of the URL's host and + # path. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::ComputeBeta::UrlMap] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource = args[:resource] if args.key?(:resource) + end + end + + # A policy that specifies how requests intended for the route's backends are + # shadowed to a separate mirrored backend service. Loadbalancer does not wait + # for responses from the shadow service. Prior to sending traffic to the shadow + # service, the host / authority header is suffixed with -shadow. + class RequestMirrorPolicy + include Google::Apis::Core::Hashable + + # The full or partial URL to the BackendService resource being mirrored to. + # Corresponds to the JSON property `backendService` + # @return [String] + attr_accessor :backend_service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backend_service = args[:backend_service] if args.key?(:backend_service) + end + end + # Reservation resource class Reservation include Google::Apis::Core::Hashable @@ -19119,7 +20687,9 @@ module Google class ReservationAffinity 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` # @return [String] attr_accessor :consume_reservation_type @@ -20564,9 +22134,9 @@ module Google # @return [Google::Apis::ComputeBeta::RouterBgp] attr_accessor :bgp - # BGP information that needs to be configured into the routing stack to - # establish the BGP peering. It must specify peer ASN and either interface name, - # IP, or peer IP. Please refer to RFC4273. + # BGP information that must be configured into the routing stack to establish + # BGP peering. This information must specify the peer ASN and either the + # interface name, IP address, or peer IP address. Please refer to RFC4273. # Corresponds to the JSON property `bgpPeers` # @return [Array] attr_accessor :bgp_peers @@ -20588,8 +22158,9 @@ module Google # @return [Fixnum] attr_accessor :id - # Router interfaces. Each interface requires either one linked resource (e.g. - # linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. + # Router interfaces. Each interface requires either one linked resource, (for + # example, linkedVpnTunnel), or IP address and IP address range (for example, + # ipRange), or both. # Corresponds to the JSON property `interfaces` # @return [Array] attr_accessor :interfaces @@ -20609,7 +22180,7 @@ module Google # @return [String] 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` # @return [Array] attr_accessor :nats @@ -20798,7 +22369,8 @@ module Google class RouterBgp 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` # @return [String] attr_accessor :advertise_mode @@ -20848,27 +22420,31 @@ module Google # @return [String] attr_accessor :advertise_mode - # User-specified list of prefix groups to advertise in custom mode. This field - # can only be populated if advertise_mode is CUSTOM and overrides the list - # defined for the router (in Bgp message). These groups will be advertised in - # addition to any specified prefixes. Leave this field blank to advertise no - # custom groups. + # User-specified list of prefix groups to advertise in custom mode, which can + # take one of the following options: + # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. + # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. + # - 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` # @return [Array] attr_accessor :advertised_groups # 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 - # defined for the router (in Bgp message). These IP ranges will be advertised in - # addition to any specified groups. Leave this field blank to advertise no + # defined for the router (in the "bgp" message). These IP ranges are advertised + # in addition to any specified groups. Leave this field blank to advertise no # custom IP ranges. # Corresponds to the JSON property `advertisedIpRanges` # @return [Array] attr_accessor :advertised_ip_ranges - # The priority of routes advertised to this BGP peer. In the case where there is - # more than one matching route of maximum length, the routes with lowest - # priority value win. + # The priority of routes advertised to this BGP peer. Where there is more than + # one matching route of maximum length, the routes with the lowest priority + # value win. # Corresponds to the JSON property `advertisedRoutePriority` # @return [Fixnum] attr_accessor :advertised_route_priority @@ -20885,11 +22461,12 @@ module Google attr_accessor :ip_address # [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_ATTACHMENT is a BGP peer that is configured and managed by Cloud + # - MANAGED_BY_USER is the default value and can be managed by you or other + # users + # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud # Interconnect, specifically by an InterconnectAttachment of type PARTNER. - # Google will automatically create, update, and delete this type of BGP peer - # when the PARTNER InterconnectAttachment is created, updated, or deleted. + # Google automatically creates, updates, and deletes this type of BGP peer when + # the PARTNER InterconnectAttachment is created, updated, or deleted. # Corresponds to the JSON property `managementType` # @return [String] attr_accessor :management_type @@ -20900,13 +22477,14 @@ module Google # @return [String] attr_accessor :name - # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be - # different for every tunnel. + # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a + # different value. # Corresponds to the JSON property `peerAsn` # @return [Fixnum] 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` # @return [String] attr_accessor :peer_ip_address @@ -20935,32 +22513,32 @@ module Google include Google::Apis::Core::Hashable # 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: - # 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP - # address of the interface. + # link-local IP address space. The value must be a CIDR-formatted string, for + # example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents + # the IP address of the interface. # Corresponds to the JSON property `ipRange` # @return [String] attr_accessor :ip_range - # 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 - # either be a VPN Tunnel or an interconnect attachment. + # URI of the linked Interconnect attachment. It must be in the same region as + # the router. Each interface can have one linked resource, which can be either + # be a VPN tunnel or an Interconnect attachment. # Corresponds to the JSON property `linkedInterconnectAttachment` # @return [String] attr_accessor :linked_interconnect_attachment - # URI of the linked VPN tunnel. It must be in the same region as the router. - # Each interface can have at most one linked resource and it could either be a - # VPN Tunnel or an interconnect attachment. + # URI of the linked VPN tunnel, which must be in the same region as the router. + # Each interface can have one linked resource, which can be either a VPN tunnel + # or an Interconnect attachment. # Corresponds to the JSON property `linkedVpnTunnel` # @return [String] attr_accessor :linked_vpn_tunnel # [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_ATTACHMENT is an interface that is configured and managed by Cloud - # Interconnect, specifically by an InterconnectAttachment of type PARTNER. - # Google will automatically create, update, and delete this type of interface + # - 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 Interconnect, specifically, by an InterconnectAttachment of type PARTNER. + # Google automatically creates, updates, and deletes this type of interface # when the PARTNER InterconnectAttachment is created, updated, or deleted. # Corresponds to the JSON property `managementType` # @return [String] @@ -21122,9 +22700,9 @@ module Google attr_accessor :log_config # 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 - # nearest power of 2. Eg. if the value of this field is 50, at least 64 ports - # will be allocated to a VM. + # default number of ports is allocated to a VM. This is rounded up to the + # nearest power of 2. For example, if the value of this field is 50, at least 64 + # ports are allocated to a VM. # Corresponds to the JSON property `minPortsPerVm` # @return [Fixnum] attr_accessor :min_ports_per_vm @@ -21135,21 +22713,31 @@ module Google # @return [String] attr_accessor :name - # Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should be - # empty. + # Specify the NatIpAllocateOption, which can take one of the following values: + # - 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` # @return [String] attr_accessor :nat_ip_allocate_option - # A list of URLs of the IP resources used for this Nat service. These IPs must - # be valid static external IP addresses assigned to the project. max_length is - # subject to change post alpha. + # A list of URLs of the IP resources used for this Nat service. These IP + # addresses must be valid static external IP addresses assigned to the project. # Corresponds to the JSON property `natIps` # @return [Array] attr_accessor :nat_ips - # Specify the Nat option. If this field contains ALL_SUBNETWORKS_ALL_IP_RANGES - # or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other + # Specify the Nat option, which can take one of the following values: + # - 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. # Corresponds to the JSON property `sourceSubnetworkIpRangesToNat` # @return [String] @@ -21230,7 +22818,7 @@ module Google class RouterNatSubnetworkToNat 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` # @return [String] attr_accessor :name @@ -21242,7 +22830,7 @@ module Google # @return [Array] 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 # with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] # Default: [ALL_IP_RANGES] @@ -22881,6 +24469,12 @@ module Google # @return [String] attr_accessor :private_key + # [Output Only] URL of the region where the regional SSL Certificate resides. + # This field is not applicable to global SSL Certificate. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -22919,6 +24513,7 @@ module Google @managed = args[:managed] if args.key?(:managed) @name = args[:name] if args.key?(:name) @private_key = args[:private_key] if args.key?(:private_key) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @self_managed = args[:self_managed] if args.key?(:self_managed) @subject_alternative_names = args[:subject_alternative_names] if args.key?(:subject_alternative_names) @@ -22926,6 +24521,124 @@ module Google end end + # + class SslCertificateAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of SslCertificatesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#sslCertificateAggregatedList + # for lists of SSL Certificates. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::SslCertificateAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # Contains a list of SslCertificate resources. class SslCertificateList include Google::Apis::Core::Hashable @@ -23104,6 +24817,97 @@ module Google end end + # + class SslCertificatesScopedList + include Google::Apis::Core::Hashable + + # List of SslCertificates contained in this scope. + # Corresponds to the JSON property `sslCertificates` + # @return [Array] + attr_accessor :ssl_certificates + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::SslCertificatesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class SslPoliciesList include Google::Apis::Core::Hashable @@ -23542,12 +25346,31 @@ module Google attr_accessor :private_ip_google_access alias_method :private_ip_google_access?, :private_ip_google_access + # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or + # INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to + # INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for + # Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to + # PRIVATE_RFC_1918. + # Corresponds to the JSON property `purpose` + # @return [String] + attr_accessor :purpose + # URL of the region where the Subnetwork resides. This field can be set only at # resource creation time. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region + # The role of subnetwork. Currenly, this field is only used when purpose = + # INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An + # ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) + # Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to + # ACTIVE or is currently draining. This field can be updated with a patch + # request. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + # An array of configurations for secondary IP ranges for VM instances contained # in this subnetwork. The primary IP of such VM must belong to the primary # ipCidrRange of the subnetwork. The alias IPs may belong to either primary or @@ -23561,6 +25384,16 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] The state of the subnetwork, which can be one of READY or + # DRAINING. A subnetwork that is READY is ready to be used. The state of + # DRAINING is only applicable to subnetworks that have the purpose set to + # INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load + # balancer are being drained. A subnetwork that is draining cannot be used or + # modified until it reaches a status of READY. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + def initialize(**args) update!(**args) end @@ -23580,9 +25413,12 @@ module Google @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access) + @purpose = args[:purpose] if args.key?(:purpose) @region = args[:region] if args.key?(:region) + @role = args[:role] if args.key?(:role) @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) @self_link = args[:self_link] if args.key?(:self_link) + @state = args[:state] if args.key?(:state) end end @@ -23845,7 +25681,7 @@ module Google # 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 # 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. # Corresponds to the JSON property `flowSampling` # @return [Float] @@ -24136,6 +25972,97 @@ module Google end end + # + class TargetHttpProxiesScopedList + include Google::Apis::Core::Hashable + + # A list of TargetHttpProxies contained in this scope. + # Corresponds to the JSON property `targetHttpProxies` + # @return [Array] + attr_accessor :target_http_proxies + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::TargetHttpProxiesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_http_proxies = args[:target_http_proxies] if args.key?(:target_http_proxies) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # A TargetHttpProxy resource. This resource defines an HTTP proxy. (== # resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies = # =) @@ -24175,6 +26102,12 @@ module Google # @return [String] attr_accessor :name + # [Output Only] URL of the region where the regional Target HTTP Proxy resides. + # This field is not applicable to global Target HTTP Proxies. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -24197,11 +26130,130 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @url_map = args[:url_map] if args.key?(:url_map) end end + # + class TargetHttpProxyAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of TargetHttpProxiesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#targetHttpProxyAggregatedList + # for lists of Target HTTP Proxies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # A list of TargetHttpProxy resources. class TargetHttpProxyList include Google::Apis::Core::Hashable @@ -24320,6 +26372,97 @@ module Google end end + # + class TargetHttpsProxiesScopedList + include Google::Apis::Core::Hashable + + # A list of TargetHttpsProxies contained in this scope. + # Corresponds to the JSON property `targetHttpsProxies` + # @return [Array] + attr_accessor :target_https_proxies + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::TargetHttpsProxiesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_https_proxies = args[:target_https_proxies] if args.key?(:target_https_proxies) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class TargetHttpsProxiesSetQuicOverrideRequest include Google::Apis::Core::Hashable @@ -24409,6 +26552,12 @@ module Google # @return [String] attr_accessor :quic_override + # [Output Only] URL of the region where the regional TargetHttpsProxy resides. + # This field is not applicable to global TargetHttpsProxies. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -24450,6 +26599,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @quic_override = args[:quic_override] if args.key?(:quic_override) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) @ssl_policy = args[:ssl_policy] if args.key?(:ssl_policy) @@ -24457,6 +26607,124 @@ module Google end end + # + class TargetHttpsProxyAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of TargetHttpsProxiesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#targetHttpsProxyAggregatedList + # for lists of Target HTTP Proxies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # Contains a list of TargetHttpsProxy resources. class TargetHttpsProxyList include Google::Apis::Core::Hashable @@ -26590,6 +28858,17 @@ module Google # @return [String] attr_accessor :creation_timestamp + # defaultRouteAction takes effect when none of the hostRules match. The load + # balancer performs advanced routing actions like URL rewrites, header + # transformations, etc. prior to forwarding the request to the selected backend. + # If defaultRouteAction specifies any weightedBackendServices, defaultService + # must not be set. Conversely if defaultService is set, defaultRouteAction + # cannot contain any weightedBackendServices. + # Only one of defaultRouteAction or defaultUrlRedirect must be set. + # Corresponds to the JSON property `defaultRouteAction` + # @return [Google::Apis::ComputeBeta::HttpRouteAction] + attr_accessor :default_route_action + # The full or partial URL of the defaultService resource to which traffic is # directed if none of the hostRules match. If defaultRouteAction is additionally # specified, advanced routing actions like URL Rewrites, etc. take effect prior @@ -26603,6 +28882,11 @@ module Google # @return [String] attr_accessor :default_service + # Specifies settings for an HTTP redirect. + # Corresponds to the JSON property `defaultUrlRedirect` + # @return [Google::Apis::ComputeBeta::HttpRedirectAction] + attr_accessor :default_url_redirect + # An optional description of this resource. Provide this property when you # create the resource. # Corresponds to the JSON property `description` @@ -26620,6 +28904,12 @@ module Google # @return [String] attr_accessor :fingerprint + # The request and response header transformations that take effect before the + # request is passed along to the selected backendService. + # Corresponds to the JSON property `headerAction` + # @return [Google::Apis::ComputeBeta::HttpHeaderAction] + attr_accessor :header_action + # The list of HostRules to use against the URL. # Corresponds to the JSON property `hostRules` # @return [Array] @@ -26651,6 +28941,13 @@ module Google # @return [Array] attr_accessor :path_matchers + # [Output Only] URL of the region where the regional URL map resides. This field + # is not applicable to global URL maps. You must specify this field as part of + # the HTTP request URL. It is not settable as a field in the request body. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -26670,14 +28967,18 @@ module Google # Update properties of this object def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_route_action = args[:default_route_action] if args.key?(:default_route_action) @default_service = args[:default_service] if args.key?(:default_service) + @default_url_redirect = args[:default_url_redirect] if args.key?(:default_url_redirect) @description = args[:description] if args.key?(:description) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @header_action = args[:header_action] if args.key?(:header_action) @host_rules = args[:host_rules] if args.key?(:host_rules) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @path_matchers = args[:path_matchers] if args.key?(:path_matchers) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @tests = args[:tests] if args.key?(:tests) end @@ -26897,6 +29198,214 @@ module Google end end + # + class UrlMapsAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of UrlMapsScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::UrlMapsAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class UrlMapsScopedList + include Google::Apis::Core::Hashable + + # A list of UrlMaps contained in this scope. + # Corresponds to the JSON property `urlMaps` + # @return [Array] + attr_accessor :url_maps + + # Informational warning which replaces the list of backend services when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::UrlMapsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url_maps = args[:url_maps] if args.key?(:url_maps) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of backend services when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class ValidateUrlMapsRequest include Google::Apis::Core::Hashable @@ -26937,6 +29446,36 @@ module Google end end + # The spec for modifying the path before sending the request to the matched + # backend service. + class UrlRewrite + include Google::Apis::Core::Hashable + + # Prior to forwarding the request to the selected service, the request's host + # header is replaced with contents of hostRewrite. + # The value must be between 1 and 255 characters. + # Corresponds to the JSON property `hostRewrite` + # @return [String] + attr_accessor :host_rewrite + + # Prior to forwarding the request to the selected backend service, the matching + # portion of the request's path is replaced by pathPrefixRewrite. + # The value must be between 1 and 1024 characters. + # Corresponds to the JSON property `pathPrefixRewrite` + # @return [String] + attr_accessor :path_prefix_rewrite + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @host_rewrite = args[:host_rewrite] if args.key?(:host_rewrite) + @path_prefix_rewrite = args[:path_prefix_rewrite] if args.key?(:path_prefix_rewrite) + end + end + # Subnetwork which the current user has compute.subnetworks.use permission on. class UsableSubnetwork include Google::Apis::Core::Hashable @@ -28514,6 +31053,50 @@ module Google end end + # In contrast to a single BackendService in HttpRouteAction to which all + # matching traffic is directed to, WeightedBackendService allows traffic to be + # split across multiple BackendServices. The volume of traffic for each + # BackendService is proportional to the weight specified in each + # WeightedBackendService + class WeightedBackendService + include Google::Apis::Core::Hashable + + # The full or partial URL to the default BackendService resource. Before + # forwarding the request to backendService, the loadbalancer applies any + # relevant headerActions specified as part of this backendServiceWeight. + # Corresponds to the JSON property `backendService` + # @return [String] + attr_accessor :backend_service + + # The request and response header transformations that take effect before the + # request is passed along to the selected backendService. + # Corresponds to the JSON property `headerAction` + # @return [Google::Apis::ComputeBeta::HttpHeaderAction] + attr_accessor :header_action + + # Specifies the fraction of traffic sent to backendService, computed as weight / + # (sum of all weightedBackendService weights in routeAction) . + # The selection of a backend service is determined only for new traffic. Once a + # user's request has been directed to a backendService, subsequent requests will + # be sent to the same backendService as determined by the BackendService's + # session affinity policy. + # The value must be between 0 and 1000 + # Corresponds to the JSON property `weight` + # @return [Fixnum] + attr_accessor :weight + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backend_service = args[:backend_service] if args.key?(:backend_service) + @header_action = args[:header_action] if args.key?(:header_action) + @weight = args[:weight] if args.key?(:weight) + end + end + # class XpnHostList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index d43004bf5..b1a870daf 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -448,6 +448,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CircuitBreakers + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Commitment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -520,6 +526,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ConsistentHashLoadBalancerSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConsistentHashLoadBalancerSettingsHttpCookie + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CorsPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CustomerEncryptionKey class Representation < Google::Apis::Core::JsonRepresentation; end @@ -706,6 +730,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Duration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExchangedPeeringRoute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -964,6 +994,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HealthChecksAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class HealthChecksScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class HealthStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -982,6 +1048,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HttpFaultAbort + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpFaultDelay + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpFaultInjection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpHeaderAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpHeaderMatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpHeaderOption + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HttpHealthCheck class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1006,6 +1108,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HttpQueryParameterMatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpRedirectAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpRetryPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpRouteAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpRouteRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HttpRouteRuleMatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HttpsHealthCheck class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1486,6 +1624,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Int64RangeMatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Interconnect class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1828,6 +1972,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MetadataFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetadataFilterLabelMatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NamedPort class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2320,6 +2476,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OutlierDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PathMatcher class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2602,6 +2764,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionTargetHttpsProxiesSetSslCertificatesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegionUrlMapsValidateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RequestMirrorPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Reservation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3154,6 +3334,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SslCertificateAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class SslCertificateList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3184,6 +3382,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SslCertificatesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class SslPoliciesList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3328,12 +3544,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetHttpProxiesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpProxy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class TargetHttpProxyAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpProxyList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3352,6 +3604,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetHttpsProxiesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpsProxiesSetQuicOverrideRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3370,6 +3640,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetHttpsProxyAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpsProxyList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3742,6 +4030,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UrlMapsAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class UrlMapsScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class ValidateUrlMapsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3754,6 +4078,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UrlRewrite + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UsableSubnetwork class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3988,6 +4318,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WeightedBackendService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class XpnHostList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4641,8 +4977,12 @@ module Google property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicy::Representation + property :circuit_breakers, as: 'circuitBreakers', class: Google::Apis::ComputeBeta::CircuitBreakers, decorator: Google::Apis::ComputeBeta::CircuitBreakers::Representation + property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation + property :consistent_hash, as: 'consistentHash', class: Google::Apis::ComputeBeta::ConsistentHashLoadBalancerSettings, decorator: Google::Apis::ComputeBeta::ConsistentHashLoadBalancerSettings::Representation + property :creation_timestamp, as: 'creationTimestamp' collection :custom_request_headers, as: 'customRequestHeaders' property :description, as: 'description' @@ -4656,9 +4996,12 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :load_balancing_scheme, as: 'loadBalancingScheme' + property :locality_lb_policy, as: 'localityLbPolicy' property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::BackendServiceLogConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLogConfig::Representation property :name, as: 'name' + property :outlier_detection, as: 'outlierDetection', class: Google::Apis::ComputeBeta::OutlierDetection, decorator: Google::Apis::ComputeBeta::OutlierDetection::Representation + property :port, as: 'port' property :port_name, as: 'portName' property :protocol, as: 'protocol' @@ -4844,6 +5187,19 @@ module Google end end + class CircuitBreakers + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :connect_timeout, as: 'connectTimeout', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation + + property :max_connections, as: 'maxConnections' + property :max_pending_requests, as: 'maxPendingRequests' + property :max_requests, as: 'maxRequests' + property :max_requests_per_connection, as: 'maxRequestsPerConnection' + property :max_retries, as: 'maxRetries' + end + end + class Commitment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4976,6 +5332,40 @@ module Google end end + class ConsistentHashLoadBalancerSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :http_cookie, as: 'httpCookie', class: Google::Apis::ComputeBeta::ConsistentHashLoadBalancerSettingsHttpCookie, decorator: Google::Apis::ComputeBeta::ConsistentHashLoadBalancerSettingsHttpCookie::Representation + + property :http_header_name, as: 'httpHeaderName' + property :minimum_ring_size, :numeric_string => true, as: 'minimumRingSize' + end + end + + class ConsistentHashLoadBalancerSettingsHttpCookie + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :path, as: 'path' + property :ttl, as: 'ttl', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation + + end + end + + class CorsPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_credentials, as: 'allowCredentials' + collection :allow_headers, as: 'allowHeaders' + collection :allow_methods, as: 'allowMethods' + collection :allow_origin_regexes, as: 'allowOriginRegexes' + collection :allow_origins, as: 'allowOrigins' + property :disabled, as: 'disabled' + collection :expose_headers, as: 'exposeHeaders' + property :max_age, as: 'maxAge' + end + end + class CustomerEncryptionKey # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5310,6 +5700,14 @@ module Google end end + class Duration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :nanos, as: 'nanos' + property :seconds, :numeric_string => true, as: 'seconds' + end + end + class ExchangedPeeringRoute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5531,6 +5929,8 @@ module Google property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' property :load_balancing_scheme, as: 'loadBalancingScheme' + collection :metadata_filters, as: 'metadataFilters', class: Google::Apis::ComputeBeta::MetadataFilter, decorator: Google::Apis::ComputeBeta::MetadataFilter::Representation + property :name, as: 'name' property :network, as: 'network' property :network_tier, as: 'networkTier' @@ -5755,6 +6155,7 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :region, as: 'region' property :self_link, as: 'selfLink' property :ssl_health_check, as: 'sslHealthCheck', class: Google::Apis::ComputeBeta::SslHealthCheck, decorator: Google::Apis::ComputeBeta::SslHealthCheck::Representation @@ -5805,6 +6206,66 @@ module Google end end + class HealthChecksAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::HealthChecksScopedList, decorator: Google::Apis::ComputeBeta::HealthChecksScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::HealthChecksAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::HealthChecksAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::HealthChecksAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::HealthChecksAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class HealthChecksScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :health_checks, as: 'healthChecks', class: Google::Apis::ComputeBeta::HealthCheck, decorator: Google::Apis::ComputeBeta::HealthCheck::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::HealthChecksScopedList::Warning, decorator: Google::Apis::ComputeBeta::HealthChecksScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::HealthChecksScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::HealthChecksScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class HealthStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5837,6 +6298,69 @@ module Google end end + class HttpFaultAbort + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :http_status, as: 'httpStatus' + property :percentage, as: 'percentage' + end + end + + class HttpFaultDelay + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fixed_delay, as: 'fixedDelay', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation + + property :percentage, as: 'percentage' + end + end + + class HttpFaultInjection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :abort, as: 'abort', class: Google::Apis::ComputeBeta::HttpFaultAbort, decorator: Google::Apis::ComputeBeta::HttpFaultAbort::Representation + + property :delay, as: 'delay', class: Google::Apis::ComputeBeta::HttpFaultDelay, decorator: Google::Apis::ComputeBeta::HttpFaultDelay::Representation + + end + end + + class HttpHeaderAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :request_headers_to_add, as: 'requestHeadersToAdd', class: Google::Apis::ComputeBeta::HttpHeaderOption, decorator: Google::Apis::ComputeBeta::HttpHeaderOption::Representation + + collection :request_headers_to_remove, as: 'requestHeadersToRemove' + collection :response_headers_to_add, as: 'responseHeadersToAdd', class: Google::Apis::ComputeBeta::HttpHeaderOption, decorator: Google::Apis::ComputeBeta::HttpHeaderOption::Representation + + collection :response_headers_to_remove, as: 'responseHeadersToRemove' + end + end + + class HttpHeaderMatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exact_match, as: 'exactMatch' + property :header_name, as: 'headerName' + property :invert_match, as: 'invertMatch' + property :prefix_match, as: 'prefixMatch' + property :present_match, as: 'presentMatch' + property :range_match, as: 'rangeMatch', class: Google::Apis::ComputeBeta::Int64RangeMatch, decorator: Google::Apis::ComputeBeta::Int64RangeMatch::Representation + + property :regex_match, as: 'regexMatch' + property :suffix_match, as: 'suffixMatch' + end + end + + class HttpHeaderOption + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :header_name, as: 'headerName' + property :header_value, as: 'headerValue' + property :replace, as: 'replace' + end + end + class HttpHealthCheck # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5888,6 +6412,89 @@ module Google end end + class HttpQueryParameterMatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :exact_match, as: 'exactMatch' + property :name, as: 'name' + property :present_match, as: 'presentMatch' + property :regex_match, as: 'regexMatch' + end + end + + class HttpRedirectAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :host_redirect, as: 'hostRedirect' + property :https_redirect, as: 'httpsRedirect' + property :path_redirect, as: 'pathRedirect' + property :prefix_redirect, as: 'prefixRedirect' + property :redirect_response_code, as: 'redirectResponseCode' + property :strip_query, as: 'stripQuery' + end + end + + class HttpRetryPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_retries, as: 'numRetries' + property :per_try_timeout, as: 'perTryTimeout', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation + + collection :retry_conditions, as: 'retryConditions' + end + end + + class HttpRouteAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cors_policy, as: 'corsPolicy', class: Google::Apis::ComputeBeta::CorsPolicy, decorator: Google::Apis::ComputeBeta::CorsPolicy::Representation + + property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::ComputeBeta::HttpFaultInjection, decorator: Google::Apis::ComputeBeta::HttpFaultInjection::Representation + + property :request_mirror_policy, as: 'requestMirrorPolicy', class: Google::Apis::ComputeBeta::RequestMirrorPolicy, decorator: Google::Apis::ComputeBeta::RequestMirrorPolicy::Representation + + property :retry_policy, as: 'retryPolicy', class: Google::Apis::ComputeBeta::HttpRetryPolicy, decorator: Google::Apis::ComputeBeta::HttpRetryPolicy::Representation + + property :timeout, as: 'timeout', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation + + property :url_rewrite, as: 'urlRewrite', class: Google::Apis::ComputeBeta::UrlRewrite, decorator: Google::Apis::ComputeBeta::UrlRewrite::Representation + + collection :weighted_backend_services, as: 'weightedBackendServices', class: Google::Apis::ComputeBeta::WeightedBackendService, decorator: Google::Apis::ComputeBeta::WeightedBackendService::Representation + + end + end + + class HttpRouteRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :header_action, as: 'headerAction', class: Google::Apis::ComputeBeta::HttpHeaderAction, decorator: Google::Apis::ComputeBeta::HttpHeaderAction::Representation + + collection :match_rules, as: 'matchRules', class: Google::Apis::ComputeBeta::HttpRouteRuleMatch, decorator: Google::Apis::ComputeBeta::HttpRouteRuleMatch::Representation + + property :route_action, as: 'routeAction', class: Google::Apis::ComputeBeta::HttpRouteAction, decorator: Google::Apis::ComputeBeta::HttpRouteAction::Representation + + property :service, as: 'service' + property :url_redirect, as: 'urlRedirect', class: Google::Apis::ComputeBeta::HttpRedirectAction, decorator: Google::Apis::ComputeBeta::HttpRedirectAction::Representation + + end + end + + class HttpRouteRuleMatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :full_path_match, as: 'fullPathMatch' + collection :header_matches, as: 'headerMatches', class: Google::Apis::ComputeBeta::HttpHeaderMatch, decorator: Google::Apis::ComputeBeta::HttpHeaderMatch::Representation + + property :ignore_case, as: 'ignoreCase' + collection :metadata_filters, as: 'metadataFilters', class: Google::Apis::ComputeBeta::MetadataFilter, decorator: Google::Apis::ComputeBeta::MetadataFilter::Representation + + property :prefix_match, as: 'prefixMatch' + collection :query_parameter_matches, as: 'queryParameterMatches', class: Google::Apis::ComputeBeta::HttpQueryParameterMatch, decorator: Google::Apis::ComputeBeta::HttpQueryParameterMatch::Representation + + property :regex_match, as: 'regexMatch' + end + end + class HttpsHealthCheck # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5977,6 +6584,7 @@ module Google property :source_snapshot_id, as: 'sourceSnapshotId' property :source_type, as: 'sourceType' property :status, as: 'status' + collection :storage_locations, as: 'storageLocations' end class RawDisk @@ -6807,6 +7415,14 @@ module Google end end + class Int64RangeMatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :range_end, :numeric_string => true, as: 'rangeEnd' + property :range_start, :numeric_string => true, as: 'rangeStart' + end + end + class Interconnect # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7452,6 +8068,23 @@ module Google end end + class MetadataFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :filter_labels, as: 'filterLabels', class: Google::Apis::ComputeBeta::MetadataFilterLabelMatch, decorator: Google::Apis::ComputeBeta::MetadataFilterLabelMatch::Representation + + property :filter_match_criteria, as: 'filterMatchCriteria' + end + end + + class MetadataFilterLabelMatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + class NamedPort # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8334,14 +8967,41 @@ module Google end end + class OutlierDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :base_ejection_time, as: 'baseEjectionTime', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation + + property :consecutive_errors, as: 'consecutiveErrors' + property :consecutive_gateway_failure, as: 'consecutiveGatewayFailure' + property :enforcing_consecutive_errors, as: 'enforcingConsecutiveErrors' + property :enforcing_consecutive_gateway_failure, as: 'enforcingConsecutiveGatewayFailure' + property :enforcing_success_rate, as: 'enforcingSuccessRate' + property :interval, as: 'interval', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation + + property :max_ejection_percent, as: 'maxEjectionPercent' + property :success_rate_minimum_hosts, as: 'successRateMinimumHosts' + property :success_rate_request_volume, as: 'successRateRequestVolume' + property :success_rate_stdev_factor, as: 'successRateStdevFactor' + end + end + class PathMatcher # @private class Representation < Google::Apis::Core::JsonRepresentation + property :default_route_action, as: 'defaultRouteAction', class: Google::Apis::ComputeBeta::HttpRouteAction, decorator: Google::Apis::ComputeBeta::HttpRouteAction::Representation + property :default_service, as: 'defaultService' + property :default_url_redirect, as: 'defaultUrlRedirect', class: Google::Apis::ComputeBeta::HttpRedirectAction, decorator: Google::Apis::ComputeBeta::HttpRedirectAction::Representation + property :description, as: 'description' + property :header_action, as: 'headerAction', class: Google::Apis::ComputeBeta::HttpHeaderAction, decorator: Google::Apis::ComputeBeta::HttpHeaderAction::Representation + property :name, as: 'name' collection :path_rules, as: 'pathRules', class: Google::Apis::ComputeBeta::PathRule, decorator: Google::Apis::ComputeBeta::PathRule::Representation + collection :route_rules, as: 'routeRules', class: Google::Apis::ComputeBeta::HttpRouteRule, decorator: Google::Apis::ComputeBeta::HttpRouteRule::Representation + end end @@ -8349,7 +9009,11 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :paths, as: 'paths' + property :route_action, as: 'routeAction', class: Google::Apis::ComputeBeta::HttpRouteAction, decorator: Google::Apis::ComputeBeta::HttpRouteAction::Representation + property :service, as: 'service' + property :url_redirect, as: 'urlRedirect', class: Google::Apis::ComputeBeta::HttpRedirectAction, decorator: Google::Apis::ComputeBeta::HttpRedirectAction::Representation + end end @@ -8795,6 +9459,28 @@ module Google end end + class RegionTargetHttpsProxiesSetSslCertificatesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ssl_certificates, as: 'sslCertificates' + end + end + + class RegionUrlMapsValidateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource, as: 'resource', class: Google::Apis::ComputeBeta::UrlMap, decorator: Google::Apis::ComputeBeta::UrlMap::Representation + + end + end + + class RequestMirrorPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backend_service, as: 'backendService' + end + end + class Reservation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9790,6 +10476,7 @@ module Google property :name, as: 'name' property :private_key, as: 'privateKey' + property :region, as: 'region' property :self_link, as: 'selfLink' property :self_managed, as: 'selfManaged', class: Google::Apis::ComputeBeta::SslCertificateSelfManagedSslCertificate, decorator: Google::Apis::ComputeBeta::SslCertificateSelfManagedSslCertificate::Representation @@ -9798,6 +10485,38 @@ module Google end end + class SslCertificateAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::SslCertificatesScopedList, decorator: Google::Apis::ComputeBeta::SslCertificatesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::SslCertificateAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::SslCertificateAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::SslCertificateAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::SslCertificateAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class SslCertificateList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9847,6 +10566,34 @@ module Google end end + class SslCertificatesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ssl_certificates, as: 'sslCertificates', class: Google::Apis::ComputeBeta::SslCertificate, decorator: Google::Apis::ComputeBeta::SslCertificate::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::SslCertificatesScopedList::Warning, decorator: Google::Apis::ComputeBeta::SslCertificatesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::SslCertificatesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::SslCertificatesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class SslPoliciesList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9947,10 +10694,13 @@ module Google property :name, as: 'name' property :network, as: 'network' property :private_ip_google_access, as: 'privateIpGoogleAccess' + property :purpose, as: 'purpose' property :region, as: 'region' + property :role, as: 'role' collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeBeta::SubnetworkSecondaryRange, decorator: Google::Apis::ComputeBeta::SubnetworkSecondaryRange::Representation property :self_link, as: 'selfLink' + property :state, as: 'state' end end @@ -10098,6 +10848,34 @@ module Google end end + class TargetHttpProxiesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :target_http_proxies, as: 'targetHttpProxies', class: Google::Apis::ComputeBeta::TargetHttpProxy, decorator: Google::Apis::ComputeBeta::TargetHttpProxy::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::TargetHttpProxiesScopedList::Warning, decorator: Google::Apis::ComputeBeta::TargetHttpProxiesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::TargetHttpProxiesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::TargetHttpProxiesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpProxy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10106,11 +10884,44 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :region, as: 'region' property :self_link, as: 'selfLink' property :url_map, as: 'urlMap' end end + class TargetHttpProxyAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::TargetHttpProxiesScopedList, decorator: Google::Apis::ComputeBeta::TargetHttpProxiesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpProxyList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10143,6 +10954,34 @@ module Google end end + class TargetHttpsProxiesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :target_https_proxies, as: 'targetHttpsProxies', class: Google::Apis::ComputeBeta::TargetHttpsProxy, decorator: Google::Apis::ComputeBeta::TargetHttpsProxy::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::TargetHttpsProxiesScopedList::Warning, decorator: Google::Apis::ComputeBeta::TargetHttpsProxiesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::TargetHttpsProxiesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::TargetHttpsProxiesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpsProxiesSetQuicOverrideRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10166,6 +11005,7 @@ module Google property :kind, as: 'kind' property :name, as: 'name' property :quic_override, as: 'quicOverride' + property :region, as: 'region' property :self_link, as: 'selfLink' collection :ssl_certificates, as: 'sslCertificates' property :ssl_policy, as: 'sslPolicy' @@ -10173,6 +11013,38 @@ module Google end end + class TargetHttpsProxyAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::TargetHttpsProxiesScopedList, decorator: Google::Apis::ComputeBeta::TargetHttpsProxiesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpsProxyList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10738,9 +11610,15 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :creation_timestamp, as: 'creationTimestamp' + property :default_route_action, as: 'defaultRouteAction', class: Google::Apis::ComputeBeta::HttpRouteAction, decorator: Google::Apis::ComputeBeta::HttpRouteAction::Representation + property :default_service, as: 'defaultService' + property :default_url_redirect, as: 'defaultUrlRedirect', class: Google::Apis::ComputeBeta::HttpRedirectAction, decorator: Google::Apis::ComputeBeta::HttpRedirectAction::Representation + property :description, as: 'description' property :fingerprint, :base64 => true, as: 'fingerprint' + property :header_action, as: 'headerAction', class: Google::Apis::ComputeBeta::HttpHeaderAction, decorator: Google::Apis::ComputeBeta::HttpHeaderAction::Representation + collection :host_rules, as: 'hostRules', class: Google::Apis::ComputeBeta::HostRule, decorator: Google::Apis::ComputeBeta::HostRule::Representation property :id, :numeric_string => true, as: 'id' @@ -10748,6 +11626,7 @@ module Google property :name, as: 'name' collection :path_matchers, as: 'pathMatchers', class: Google::Apis::ComputeBeta::PathMatcher, decorator: Google::Apis::ComputeBeta::PathMatcher::Representation + property :region, as: 'region' property :self_link, as: 'selfLink' collection :tests, as: 'tests', class: Google::Apis::ComputeBeta::UrlMapTest, decorator: Google::Apis::ComputeBeta::UrlMapTest::Representation @@ -10814,6 +11693,66 @@ module Google end end + class UrlMapsAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::UrlMapsScopedList, decorator: Google::Apis::ComputeBeta::UrlMapsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::UrlMapsAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::UrlMapsAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::UrlMapsAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::UrlMapsAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class UrlMapsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :url_maps, as: 'urlMaps', class: Google::Apis::ComputeBeta::UrlMap, decorator: Google::Apis::ComputeBeta::UrlMap::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::UrlMapsScopedList::Warning, decorator: Google::Apis::ComputeBeta::UrlMapsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::UrlMapsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::UrlMapsScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class ValidateUrlMapsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10830,6 +11769,14 @@ module Google end end + class UrlRewrite + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :host_rewrite, as: 'hostRewrite' + property :path_prefix_rewrite, as: 'pathPrefixRewrite' + end + end + class UsableSubnetwork # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -11242,6 +12189,16 @@ module Google end end + class WeightedBackendService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backend_service, as: 'backendService' + property :header_action, as: 'headerAction', class: Google::Apis::ComputeBeta::HttpHeaderAction, decorator: Google::Apis::ComputeBeta::HttpHeaderAction::Representation + + property :weight, as: 'weight' + end + end + class XpnHostList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 19bd91d71..2043be568 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://compute.googleapis.com/', 'compute/beta/projects/') + super('https://www.googleapis.com/', 'compute/beta/projects/') @batch_path = 'batch/compute/beta' end @@ -2418,7 +2418,9 @@ module Google # Name of the persistent disk to snapshot. # @param [Google::Apis::ComputeBeta::Snapshot] snapshot_object # @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 # 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 @@ -4995,6 +4997,78 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all HealthCheck resources, regional and global, + # available to the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::HealthChecksAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::HealthChecksAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_health_check_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/healthChecks', options) + command.response_representation = Google::Apis::ComputeBeta::HealthChecksAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::HealthChecksAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified HealthCheck resource. # @param [String] project # Project ID for this request. @@ -16963,6 +17037,334 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified HealthCheck resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified HealthCheck resource. Gets a list of available health + # checks by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::HealthCheck] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation + command.response_class = Google::Apis::ComputeBeta::HealthCheck + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a HealthCheck resource in the specified project using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_region_health_check(project, region, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/healthChecks', options) + command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation + command.request_object = health_check_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of HealthCheck resources available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::HealthCheckList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::HealthCheckList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_region_health_checks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/healthChecks', options) + command.response_representation = Google::Apis::ComputeBeta::HealthCheckList::Representation + command.response_class = Google::Apis::ComputeBeta::HealthCheckList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a HealthCheck resource in the specified project using the data + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to patch. + # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation + command.request_object = health_check_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a HealthCheck resource in the specified project using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check + # Name of the HealthCheck resource to update. + # @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation + command.request_object = health_check_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheck'] = health_check unless health_check.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Flags the specified instances to be immediately removed from the managed # instance group. Abandoning an instance does not delete the instance, but it # does remove the instance from any target pools that are applied by the managed @@ -18327,6 +18729,1203 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified SslCertificate resource in the region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] ssl_certificate + # Name of the SslCertificate resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_region_ssl_certificate(project, region, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/sslCertificates/{sslCertificate}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified SslCertificate resource in the specified region. Get a + # list of available SSL certificates by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] ssl_certificate + # Name of the SslCertificate resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::SslCertificate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::SslCertificate] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_ssl_certificate(project, region, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/sslCertificates/{sslCertificate}', options) + command.response_representation = Google::Apis::ComputeBeta::SslCertificate::Representation + command.response_class = Google::Apis::ComputeBeta::SslCertificate + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a SslCertificate resource in the specified project and region using + # the data included in the request + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeBeta::SslCertificate] ssl_certificate_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_region_ssl_certificate(project, region, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/sslCertificates', options) + command.request_representation = Google::Apis::ComputeBeta::SslCertificate::Representation + command.request_object = ssl_certificate_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of SslCertificate resources available to the specified + # project in the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::SslCertificateList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_region_ssl_certificates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/sslCertificates', options) + command.response_representation = Google::Apis::ComputeBeta::SslCertificateList::Representation + command.response_class = Google::Apis::ComputeBeta::SslCertificateList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified TargetHttpProxy resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_http_proxy + # Name of the TargetHttpProxy resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_region_target_http_proxy(project, region, target_http_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified TargetHttpProxy resource in the specified region. Gets a + # list of available target HTTP proxies by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_http_proxy + # Name of the TargetHttpProxy resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpProxy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetHttpProxy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_target_http_proxy(project, region, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation + command.response_class = Google::Apis::ComputeBeta::TargetHttpProxy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a TargetHttpProxy resource in the specified project and region using + # the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeBeta::TargetHttpProxy] target_http_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_region_target_http_proxy(project, region, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies', options) + command.request_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation + command.request_object = target_http_proxy_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of TargetHttpProxy resources available to the specified + # project in the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpProxyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetHttpProxyList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_region_target_http_proxies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/targetHttpProxies', options) + command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxyList::Representation + command.response_class = Google::Apis::ComputeBeta::TargetHttpProxyList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Changes the URL map for TargetHttpProxy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_http_proxy + # Name of the TargetHttpProxy to set a URL map for. + # @param [Google::Apis::ComputeBeta::UrlMapReference] url_map_reference_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_region_target_http_proxy_url_map(project, region, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) + command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation + command.request_object = url_map_reference_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified TargetHttpsProxy resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_region_target_https_proxy(project, region, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified TargetHttpsProxy resource in the specified region. Gets + # a list of available target HTTP proxies by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetHttpsProxy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) + command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation + command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a TargetHttpsProxy resource in the specified project and region using + # the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeBeta::TargetHttpsProxy] target_https_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_region_target_https_proxy(project, region, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies', options) + command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation + command.request_object = target_https_proxy_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of TargetHttpsProxy resources available to the specified + # project in the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetHttpsProxyList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_region_target_https_proxies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/targetHttpsProxies', options) + command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyList::Representation + command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Replaces SslCertificates for TargetHttpsProxy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + # @param [Google::Apis::ComputeBeta::RegionTargetHttpsProxiesSetSslCertificatesRequest] region_target_https_proxies_set_ssl_certificates_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_region_target_https_proxy_ssl_certificates(project, region, target_https_proxy, region_target_https_proxies_set_ssl_certificates_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) + command.request_representation = Google::Apis::ComputeBeta::RegionTargetHttpsProxiesSetSslCertificatesRequest::Representation + command.request_object = region_target_https_proxies_set_ssl_certificates_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Changes the URL map for TargetHttpsProxy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy to set a URL map for. + # @param [Google::Apis::ComputeBeta::UrlMapReference] url_map_reference_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_region_target_https_proxy_url_map(project, region, target_https_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) + command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation + command.request_object = url_map_reference_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified UrlMap resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to delete. + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_region_url_map(project, region, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified UrlMap resource. Gets a list of available URL maps by + # making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::UrlMap] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::UrlMap] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_region_url_map(project, region, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.response_representation = Google::Apis::ComputeBeta::UrlMap::Representation + command.response_class = Google::Apis::ComputeBeta::UrlMap + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a UrlMap resource in the specified project using the data included in + # the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeBeta::UrlMap] url_map_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_region_url_map(project, region, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/urlMaps', options) + command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation + command.request_object = url_map_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Initiates a cache invalidation operation, invalidating the specified path, + # scoped to the specified UrlMap. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap scoping this request. + # @param [Google::Apis::ComputeBeta::CacheInvalidationRule] cache_invalidation_rule_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def invalidate_region_url_map_cache(project, region, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache', options) + command.request_representation = Google::Apis::ComputeBeta::CacheInvalidationRule::Representation + command.request_object = cache_invalidation_rule_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of UrlMap resources available to the specified project in + # the specified region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::UrlMapList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::UrlMapList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_region_url_maps(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/urlMaps', options) + command.response_representation = Google::Apis::ComputeBeta::UrlMapList::Representation + command.response_class = Google::Apis::ComputeBeta::UrlMapList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified UrlMap resource with the data included in the request. + # This method supports PATCH semantics and uses JSON merge patch format and + # processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to patch. + # @param [Google::Apis::ComputeBeta::UrlMap] url_map_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_region_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation + command.request_object = url_map_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified UrlMap resource with the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to update. + # @param [Google::Apis::ComputeBeta::UrlMap] url_map_object + # @param [String] request_id + # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_region_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation + command.request_object = url_map_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Runs static validation for the UrlMap. In particular, the tests of the + # provided UrlMap will be run. Calling this method does NOT create the UrlMap. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] url_map + # Name of the UrlMap resource to be validated as. + # @param [Google::Apis::ComputeBeta::RegionUrlMapsValidateRequest] region_url_maps_validate_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::ValidateUrlMapsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ValidateUrlMapsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def validate_region_url_map(project, region, url_map, region_url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/validate', options) + command.request_representation = Google::Apis::ComputeBeta::RegionUrlMapsValidateRequest::Representation + command.request_object = region_url_maps_validate_request_object + command.response_representation = Google::Apis::ComputeBeta::ValidateUrlMapsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::ValidateUrlMapsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['urlMap'] = url_map unless url_map.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns the specified Region resource. Gets a list of available regions by # making a list() request. # @param [String] project @@ -20965,6 +22564,78 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all SslCertificate resources, regional and global, + # available to the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::SslCertificateAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::SslCertificateAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_ssl_certificate_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/sslCertificates', options) + command.response_representation = Google::Apis::ComputeBeta::SslCertificateAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::SslCertificateAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified SslCertificate resource. # @param [String] project # Project ID for this request. @@ -22044,6 +23715,14 @@ module Google # @param [String] subnetwork # Name of the Subnetwork resource to patch. # @param [Google::Apis::ComputeBeta::Subnetwork] subnetwork_object + # @param [Fixnum] drain_timeout_seconds + # The drain timeout specifies the upper bound in seconds on the amount of time + # allowed to drain connections from the current ACTIVE subnetwork to the current + # BACKUP subnetwork. The drain timeout is only applicable when the following + # conditions are true: - the subnetwork being patched has purpose = + # INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - + # the patch request is setting the role to ACTIVE. Note that after this patch + # operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the @@ -22074,7 +23753,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, drain_timeout_seconds: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options) command.request_representation = Google::Apis::ComputeBeta::Subnetwork::Representation command.request_object = subnetwork_object @@ -22083,6 +23762,7 @@ module Google command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['subnetwork'] = subnetwork unless subnetwork.nil? + command.query['drainTimeoutSeconds'] = drain_timeout_seconds unless drain_timeout_seconds.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -22230,6 +23910,78 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all TargetHttpProxy resources, regional and global, + # available to the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_target_http_proxy_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/targetHttpProxies', options) + command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified TargetHttpProxy resource. # @param [String] project # Project ID for this request. @@ -22526,6 +24278,78 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all TargetHttpsProxy resources, regional and global, + # available to the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_target_https_proxy_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/targetHttpsProxies', options) + command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified TargetHttpsProxy resource. # @param [String] project # Project ID for this request. @@ -25104,6 +26928,78 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves the list of all UrlMap resources, regional and global, available to + # the specified project. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::UrlMapsAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::UrlMapsAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_url_map_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/urlMaps', options) + command.response_representation = Google::Apis::ComputeBeta::UrlMapsAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::UrlMapsAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified UrlMap resource. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index bb7b6eca3..4d93d7e7a 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20190416' + REVISION = '20190528' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index e8fe5111c..069fe58f8 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -1216,6 +1216,22 @@ module Google # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] 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) update!(**args) end @@ -1229,6 +1245,8 @@ module Google @labels = args[:labels] if args.key?(:labels) @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_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 @@ -3863,14 +3881,14 @@ module Google attr_accessor :status # 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/ - # diskTypes/pd-standard or pd-ssd + # disk. Provide this when creating the disk. For example: projects/project/zones/ + # zone/diskTypes/pd-standard or pd-ssd # Corresponds to the JSON property `type` # @return [String] attr_accessor :type # [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` # @return [Array] attr_accessor :users @@ -7267,8 +7285,8 @@ module Google # @return [String] attr_accessor :container_type - # An optional SHA1 checksum of the disk image before unpackaging provided by the - # client when the disk image is created. + # [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk + # image before unpackaging provided by the client when the disk image is created. # Corresponds to the JSON property `sha1Checksum` # @return [String] attr_accessor :sha1_checksum @@ -10173,8 +10191,11 @@ module Google # @return [Array] attr_accessor :interconnect_attachments - # Type of interconnect. Note that "IT_PRIVATE" has been deprecated in favor of " - # DEDICATED" + # Type of interconnect, which can take one of the following values: + # - 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` # @return [String] attr_accessor :interconnect_type @@ -10185,8 +10206,11 @@ module Google # @return [String] attr_accessor :kind - # Type of link requested. This field indicates speed of each of the links in the - # bundle, not the entire bundle. + # Type of link requested, which can take one of the following values: + # - 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` # @return [String] attr_accessor :link_type @@ -10215,8 +10239,14 @@ module Google # @return [String] attr_accessor :noc_contact_email - # [Output Only] The current status of whether or not this Interconnect is - # functional. + # [Output Only] The current status of this Interconnect's functionality, which + # 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` # @return [String] attr_accessor :operational_status @@ -10244,8 +10274,14 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] The current state of whether or not this Interconnect is - # functional. + # [Output Only] The current state of Interconnect functionality, which can take + # 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` # @return [String] attr_accessor :state @@ -10294,9 +10330,21 @@ module Google attr_accessor :admin_enabled alias_method :admin_enabled?, :admin_enabled - # Provisioned bandwidth capacity for the interconnectAttachment. Can be set by - # the partner to update the customer's provisioned bandwidth. Output only for - # PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED. + # Provisioned bandwidth capacity for the interconnect attachment. For + # attachments of type DEDICATED, the user can set the bandwidth. For attachments + # 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` # @return [String] attr_accessor :bandwidth @@ -10335,11 +10383,14 @@ module Google attr_accessor :description # Desired availability domain for the attachment. Only available for type - # PARTNER, at creation time. For improved reliability, customers should - # configure a pair of attachments with 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. + # PARTNER, at creation time, and can take one of the following values: + # - AVAILABILITY_DOMAIN_ANY + # - AVAILABILITY_DOMAIN_1 + # - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a + # 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` # @return [String] attr_accessor :edge_availability_domain @@ -10379,7 +10430,10 @@ module Google attr_accessor :name # [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` # @return [String] attr_accessor :operational_status @@ -10392,9 +10446,9 @@ module Google # @return [String] attr_accessor :pairing_key - # Optional BGP ASN for the router that should be supplied by a layer 3 Partner - # if they configured BGP on behalf of the customer. Output only for PARTNER type, - # input only for PARTNER_PROVIDER, not available for DEDICATED. + # Optional BGP ASN for the router supplied by a Layer 3 Partner if they + # configured BGP on behalf of the customer. Output only for PARTNER type, input + # only for PARTNER_PROVIDER, not available for DEDICATED. # Corresponds to the JSON property `partnerAsn` # @return [Fixnum] attr_accessor :partner_asn @@ -10432,12 +10486,35 @@ module Google # @return [String] 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` # @return [String] 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` # @return [String] attr_accessor :type @@ -10738,7 +10815,7 @@ module Google attr_accessor :partner_name # 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. # Corresponds to the JSON property `portalUrl` # @return [String] @@ -10976,7 +11053,10 @@ module Google # @return [String] 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` # @return [String] attr_accessor :state @@ -11222,7 +11302,13 @@ module Google # @return [String] 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` # @return [String] attr_accessor :continent @@ -11283,9 +11369,12 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] The status of this InterconnectLocation. If the status is - # AVAILABLE, new Interconnects may be provisioned in this InterconnectLocation. - # Otherwise, no new Interconnects may be provisioned. + # [Output Only] The status of this InterconnectLocation, which can take one of + # the following values: + # - 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` # @return [String] attr_accessor :status @@ -11485,8 +11574,13 @@ module Google # @return [Fixnum] attr_accessor :end_time - # Form this outage is expected to take. Note that the "IT_" versions of this - # enum have been deprecated in favor of the unprefixed values. + # Form this outage is expected to take, which can take one of the following + # 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` # @return [String] attr_accessor :issue_type @@ -11496,8 +11590,10 @@ module Google # @return [String] attr_accessor :name - # The party that generated this notification. Note that "NSRC_GOOGLE" has been - # deprecated in favor of "GOOGLE" + # The party that generated this notification, which can take the following value: + # + # - 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` # @return [String] attr_accessor :source @@ -11507,8 +11603,12 @@ module Google # @return [Fixnum] attr_accessor :start_time - # State of this notification. Note that the "NS_" versions of this enum have - # been deprecated in favor of the unprefixed values. + # State of this notification, which can take one of the following 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` # @return [String] attr_accessor :state @@ -11983,10 +12083,6 @@ module Google # Whether Gin logging should happen in a fail-closed manner at the caller. This # 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` # @return [String] attr_accessor :log_mode @@ -17908,9 +18004,9 @@ module Google # @return [Google::Apis::ComputeV1::RouterBgp] attr_accessor :bgp - # BGP information that needs to be configured into the routing stack to - # establish the BGP peering. It must specify peer ASN and either interface name, - # IP, or peer IP. Please refer to RFC4273. + # BGP information that must be configured into the routing stack to establish + # BGP peering. This information must specify the peer ASN and either the + # interface name, IP address, or peer IP address. Please refer to RFC4273. # Corresponds to the JSON property `bgpPeers` # @return [Array] attr_accessor :bgp_peers @@ -17932,8 +18028,9 @@ module Google # @return [Fixnum] attr_accessor :id - # Router interfaces. Each interface requires either one linked resource (e.g. - # linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. + # Router interfaces. Each interface requires either one linked resource, (for + # example, linkedVpnTunnel), or IP address and IP address range (for example, + # ipRange), or both. # Corresponds to the JSON property `interfaces` # @return [Array] attr_accessor :interfaces @@ -17953,7 +18050,7 @@ module Google # @return [String] 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` # @return [Array] attr_accessor :nats @@ -18142,7 +18239,8 @@ module Google class RouterBgp 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` # @return [String] attr_accessor :advertise_mode @@ -18192,27 +18290,31 @@ module Google # @return [String] attr_accessor :advertise_mode - # User-specified list of prefix groups to advertise in custom mode. This field - # can only be populated if advertise_mode is CUSTOM and overrides the list - # defined for the router (in Bgp message). These groups will be advertised in - # addition to any specified prefixes. Leave this field blank to advertise no - # custom groups. + # User-specified list of prefix groups to advertise in custom mode, which can + # take one of the following options: + # - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. + # - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. + # - 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` # @return [Array] attr_accessor :advertised_groups # 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 - # defined for the router (in Bgp message). These IP ranges will be advertised in - # addition to any specified groups. Leave this field blank to advertise no + # defined for the router (in the "bgp" message). These IP ranges are advertised + # in addition to any specified groups. Leave this field blank to advertise no # custom IP ranges. # Corresponds to the JSON property `advertisedIpRanges` # @return [Array] attr_accessor :advertised_ip_ranges - # The priority of routes advertised to this BGP peer. In the case where there is - # more than one matching route of maximum length, the routes with lowest - # priority value win. + # The priority of routes advertised to this BGP peer. Where there is more than + # one matching route of maximum length, the routes with the lowest priority + # value win. # Corresponds to the JSON property `advertisedRoutePriority` # @return [Fixnum] attr_accessor :advertised_route_priority @@ -18229,11 +18331,12 @@ module Google attr_accessor :ip_address # [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_ATTACHMENT is a BGP peer that is configured and managed by Cloud + # - MANAGED_BY_USER is the default value and can be managed by you or other + # users + # - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud # Interconnect, specifically by an InterconnectAttachment of type PARTNER. - # Google will automatically create, update, and delete this type of BGP peer - # when the PARTNER InterconnectAttachment is created, updated, or deleted. + # Google automatically creates, updates, and deletes this type of BGP peer when + # the PARTNER InterconnectAttachment is created, updated, or deleted. # Corresponds to the JSON property `managementType` # @return [String] attr_accessor :management_type @@ -18244,13 +18347,14 @@ module Google # @return [String] attr_accessor :name - # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be - # different for every tunnel. + # Peer BGP Autonomous System Number (ASN). Each BGP interface may use a + # different value. # Corresponds to the JSON property `peerAsn` # @return [Fixnum] 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` # @return [String] attr_accessor :peer_ip_address @@ -18279,32 +18383,32 @@ module Google include Google::Apis::Core::Hashable # 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: - # 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP - # address of the interface. + # link-local IP address space. The value must be a CIDR-formatted string, for + # example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents + # the IP address of the interface. # Corresponds to the JSON property `ipRange` # @return [String] attr_accessor :ip_range - # 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 - # either be a VPN Tunnel or an interconnect attachment. + # URI of the linked Interconnect attachment. It must be in the same region as + # the router. Each interface can have one linked resource, which can be either + # be a VPN tunnel or an Interconnect attachment. # Corresponds to the JSON property `linkedInterconnectAttachment` # @return [String] attr_accessor :linked_interconnect_attachment - # URI of the linked VPN tunnel. It must be in the same region as the router. - # Each interface can have at most one linked resource and it could either be a - # VPN Tunnel or an interconnect attachment. + # URI of the linked VPN tunnel, which must be in the same region as the router. + # Each interface can have one linked resource, which can be either a VPN tunnel + # or an Interconnect attachment. # Corresponds to the JSON property `linkedVpnTunnel` # @return [String] attr_accessor :linked_vpn_tunnel # [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_ATTACHMENT is an interface that is configured and managed by Cloud - # Interconnect, specifically by an InterconnectAttachment of type PARTNER. - # Google will automatically create, update, and delete this type of interface + # - 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 Interconnect, specifically, by an InterconnectAttachment of type PARTNER. + # Google automatically creates, updates, and deletes this type of interface # when the PARTNER InterconnectAttachment is created, updated, or deleted. # Corresponds to the JSON property `managementType` # @return [String] @@ -18460,10 +18564,15 @@ module Google # @return [Fixnum] 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 - # default number of ports is allocated to a VM. This gets rounded up to the - # nearest power of 2. Eg. if the value of this field is 50, at least 64 ports - # will be allocated to a VM. + # default number of ports is allocated to a VM. This is rounded up to the + # nearest power of 2. For example, if the value of this field is 50, at least 64 + # ports are allocated to a VM. # Corresponds to the JSON property `minPortsPerVm` # @return [Fixnum] attr_accessor :min_ports_per_vm @@ -18474,21 +18583,31 @@ module Google # @return [String] attr_accessor :name - # Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should be - # empty. + # Specify the NatIpAllocateOption, which can take one of the following values: + # - 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` # @return [String] attr_accessor :nat_ip_allocate_option - # A list of URLs of the IP resources used for this Nat service. These IPs must - # be valid static external IP addresses assigned to the project. max_length is - # subject to change post alpha. + # A list of URLs of the IP resources used for this Nat service. These IP + # addresses must be valid static external IP addresses assigned to the project. # Corresponds to the JSON property `natIps` # @return [Array] attr_accessor :nat_ips - # Specify the Nat option. If this field contains ALL_SUBNETWORKS_ALL_IP_RANGES - # or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other + # Specify the Nat option, which can take one of the following values: + # - 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. # Corresponds to the JSON property `sourceSubnetworkIpRangesToNat` # @return [String] @@ -18525,6 +18644,7 @@ module Google # Update properties of this object def update!(**args) @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) @name = args[:name] if args.key?(:name) @nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option) @@ -18537,11 +18657,38 @@ module Google 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. class RouterNatSubnetworkToNat 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` # @return [String] attr_accessor :name @@ -18553,7 +18700,7 @@ module Google # @return [Array] 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 # with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] # Default: [ALL_IP_RANGES] diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 7797efc67..c38d49dea 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -2524,6 +2524,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RouterNatLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RouterNatSubnetworkToNat class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3781,6 +3787,9 @@ module Google 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_snapshot, as: 'sourceSnapshot' + property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + end end @@ -8102,6 +8111,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation 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 :name, as: 'name' property :nat_ip_allocate_option, as: 'natIpAllocateOption' @@ -8115,6 +8126,14 @@ module Google end end + class RouterNatLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable, as: 'enable' + property :filter, as: 'filter' + end + end + class RouterNatSubnetworkToNat # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 34ed430ae..96b7a10d0 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://compute.googleapis.com/', 'compute/v1/projects/') + super('https://www.googleapis.com/', 'compute/v1/projects/') @batch_path = 'batch/compute/v1' end @@ -2185,7 +2185,9 @@ module Google # Name of the persistent disk to snapshot. # @param [Google::Apis::ComputeV1::Snapshot] snapshot_object # @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 # 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 diff --git a/generated/google/apis/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index d30ef7d05..18b45c9f9 100644 --- a/generated/google/apis/containeranalysis_v1beta1.rb +++ b/generated/google/apis/containeranalysis_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1beta1 VERSION = 'V1beta1' - REVISION = '20190419' + REVISION = '20190524' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/containeranalysis_v1beta1/classes.rb b/generated/google/apis/containeranalysis_v1beta1/classes.rb index 70b1d5f44..2048de3d5 100644 --- a/generated/google/apis/containeranalysis_v1beta1/classes.rb +++ b/generated/google/apis/containeranalysis_v1beta1/classes.rb @@ -2405,6 +2405,7 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::HashProp] attr_accessor :content_hash + # Deprecated, do not use. Use uri instead. # The name of the resource. For example, the name of a Docker image - # "Debian". # Corresponds to the JSON property `name` diff --git a/generated/google/apis/healthcare_v1alpha2.rb b/generated/google/apis/healthcare_v1alpha2.rb index c7b6eabd0..4df42fb0a 100644 --- a/generated/google/apis/healthcare_v1alpha2.rb +++ b/generated/google/apis/healthcare_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1alpha2 VERSION = 'V1alpha2' - REVISION = '20190517' + REVISION = '20190527' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1alpha2/classes.rb b/generated/google/apis/healthcare_v1alpha2/classes.rb index c432ca305..b73465d31 100644 --- a/generated/google/apis/healthcare_v1alpha2/classes.rb +++ b/generated/google/apis/healthcare_v1alpha2/classes.rb @@ -1176,8 +1176,8 @@ module Google # @return [String] attr_accessor :dataset_uri - # Configuration for the FHIR BigQuery and GCS schema. Determines how the server - # generates the schema. + # Configuration for the FHIR BigQuery and Cloud Storage schema. Determines + # how the server generates the schema. # Corresponds to the JSON property `schemaConfig` # @return [Google::Apis::HealthcareV1alpha2::SchemaConfig] attr_accessor :schema_config @@ -2001,7 +2001,7 @@ module Google class Message 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` # @return [String] attr_accessor :create_time @@ -2273,7 +2273,8 @@ module Google alias_method :allow_null_header?, :allow_null_header # 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` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2477,8 +2478,8 @@ module Google end end - # Configuration for the FHIR BigQuery and GCS schema. Determines how the server - # generates the schema. + # Configuration for the FHIR BigQuery and Cloud Storage schema. Determines + # how the server generates the schema. class SchemaConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 4e5f4bc62..5166a5e02 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20190517' + REVISION = '20190527' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index 9240c585e..258b12744 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -1688,7 +1688,7 @@ module Google class Message 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` # @return [String] attr_accessor :create_time diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index fec40f847..e97c076cd 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20190522' + REVISION = '20190529' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 73a874254..5ede4464b 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -368,8 +368,8 @@ module Google attr_accessor :create_time # 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 - # detected. + # represents an open firewall it would capture the time the detector believes + # the firewall became open. The accuracy is determined by the detector. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time @@ -1065,43 +1065,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::SecuritycenterV1::Status] attr_accessor :error @@ -1509,43 +1476,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index fbe387493..315bf4c19 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20190522' + REVISION = '20190529' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index f65488b41..4f9f03424 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -373,8 +373,8 @@ module Google attr_accessor :create_time # 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 - # detected. + # represents an open firewall it would capture the time the detector believes + # the firewall became open. The accuracy is determined by the detector. # Corresponds to the JSON property `eventTime` # @return [String] attr_accessor :event_time @@ -952,43 +952,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::SecuritycenterV1beta1::Status] attr_accessor :error @@ -1396,43 +1363,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/streetviewpublish_v1.rb b/generated/google/apis/streetviewpublish_v1.rb index 4ad483f77..2fe6920fa 100644 --- a/generated/google/apis/streetviewpublish_v1.rb +++ b/generated/google/apis/streetviewpublish_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/streetview/publish/ module StreetviewpublishV1 VERSION = 'V1' - REVISION = '20190503' + REVISION = '20190529' # Publish and manage your 360 photos on Google Street View AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish' diff --git a/generated/google/apis/streetviewpublish_v1/classes.rb b/generated/google/apis/streetviewpublish_v1/classes.rb index c845b3adf..45a320925 100644 --- a/generated/google/apis/streetviewpublish_v1/classes.rb +++ b/generated/google/apis/streetviewpublish_v1/classes.rb @@ -268,43 +268,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::StreetviewpublishV1::Status] attr_accessor :error @@ -478,43 +445,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::StreetviewpublishV1::Status] attr_accessor :status @@ -638,43 +572,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # 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: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # 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. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable