From a92f643d80cc253696d398d6922f23145446a3b1 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 25 Jan 2020 00:37:19 +0000 Subject: [PATCH] Autogenerated update (2020-01-25) Update: - accesscontextmanager_v1 - accesscontextmanager_v1beta - androidenterprise_v1 - androidpublisher_v2 - androidpublisher_v3 - appengine_v1beta - cloudtasks_v2beta3 - compute_alpha - compute_beta - compute_v1 - dialogflow_v2 - dialogflow_v2beta1 - doubleclickbidmanager_v1_1 - drive_v2 - jobs_v3p1beta1 - ml_v1 - secretmanager_v1beta1 - servicemanagement_v1 - sheets_v4 --- .../google/apis/accesscontextmanager_v1.rb | 2 +- .../apis/accesscontextmanager_v1/classes.rb | 64 +- .../apis/accesscontextmanager_v1beta.rb | 2 +- .../accesscontextmanager_v1beta/classes.rb | 64 +- generated/google/apis/androidenterprise_v1.rb | 2 +- .../apis/androidenterprise_v1/classes.rb | 8 +- .../androidenterprise_v1/representations.rb | 1 + generated/google/apis/androidpublisher_v2.rb | 2 +- .../apis/androidpublisher_v2/classes.rb | 1 + generated/google/apis/androidpublisher_v3.rb | 2 +- .../apis/androidpublisher_v3/classes.rb | 18 + .../androidpublisher_v3/representations.rb | 2 + generated/google/apis/appengine_v1beta.rb | 2 +- .../google/apis/appengine_v1beta/classes.rb | 38 - .../apis/appengine_v1beta/representations.rb | 17 - generated/google/apis/cloudtasks_v2beta3.rb | 2 +- .../google/apis/cloudtasks_v2beta3/classes.rb | 64 +- generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 590 +++++---- .../apis/compute_alpha/representations.rb | 25 +- .../google/apis/compute_alpha/service.rb | 74 +- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 673 +++++++--- .../apis/compute_beta/representations.rb | 82 ++ generated/google/apis/compute_beta/service.rb | 442 ++++++- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 1119 ++++++++++++++--- .../google/apis/compute_v1/representations.rb | 283 +++++ generated/google/apis/compute_v1/service.rb | 550 +++++++- generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 18 +- generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 18 +- .../google/apis/doubleclickbidmanager_v1_1.rb | 2 +- .../doubleclickbidmanager_v1_1/classes.rb | 6 + .../representations.rb | 1 + generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 3 +- generated/google/apis/jobs_v3p1beta1.rb | 2 +- .../google/apis/jobs_v3p1beta1/classes.rb | 9 +- generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/classes.rb | 64 +- .../google/apis/secretmanager_v1beta1.rb | 5 +- .../apis/secretmanager_v1beta1/classes.rb | 64 +- .../apis/secretmanager_v1beta1/service.rb | 3 +- generated/google/apis/servicemanagement_v1.rb | 2 +- .../apis/servicemanagement_v1/classes.rb | 119 +- .../servicemanagement_v1/representations.rb | 17 + generated/google/apis/sheets_v4.rb | 2 +- generated/google/apis/sheets_v4/classes.rb | 142 ++- .../google/apis/sheets_v4/representations.rb | 28 + generated/google/apis/sheets_v4/service.rb | 20 +- 52 files changed, 3671 insertions(+), 997 deletions(-) diff --git a/generated/google/apis/accesscontextmanager_v1.rb b/generated/google/apis/accesscontextmanager_v1.rb index 7976a8b10..eb9c8ce54 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 = '20200110' + REVISION = '20200120' # 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 2bdbd53f4..bcaafbeae 100644 --- a/generated/google/apis/accesscontextmanager_v1/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1/classes.rb @@ -261,10 +261,28 @@ module Google class CustomLevel include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `expr` # @return [Google::Apis::AccesscontextmanagerV1::Expr] attr_accessor :expr @@ -360,34 +378,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` diff --git a/generated/google/apis/accesscontextmanager_v1beta.rb b/generated/google/apis/accesscontextmanager_v1beta.rb index 8c15f3f2e..d6de65b1b 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 = '20200110' + REVISION = '20200120' # 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 5d9c46e8b..eebacb0ac 100644 --- a/generated/google/apis/accesscontextmanager_v1beta/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1beta/classes.rb @@ -248,10 +248,28 @@ module Google class CustomLevel include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `expr` # @return [Google::Apis::AccesscontextmanagerV1beta::Expr] attr_accessor :expr @@ -328,34 +346,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index 970ff71b9..39002d2de 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20191211' + REVISION = '20200115' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index 6a23ef885..46394c4b8 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -1433,7 +1433,7 @@ module Google # @return [Google::Apis::AndroidenterpriseV1::ConfigurationVariables] attr_accessor :configuration_variables - # + # Deprecated. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2055,6 +2055,11 @@ module Google # @return [String] attr_accessor :distribution_channel + # Noteworthy features (if any) of this product. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + # A link to an image that can be used as an icon for the product. This image is # suitable for use at up to 512px x 512px. # Corresponds to the JSON property `iconUrl` @@ -2149,6 +2154,7 @@ module Google @description = args[:description] if args.key?(:description) @details_url = args[:details_url] if args.key?(:details_url) @distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel) + @features = args[:features] if args.key?(:features) @icon_url = args[:icon_url] if args.key?(:icon_url) @kind = args[:kind] if args.key?(:kind) @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis) diff --git a/generated/google/apis/androidenterprise_v1/representations.rb b/generated/google/apis/androidenterprise_v1/representations.rb index 3e0c89b05..34d11146f 100644 --- a/generated/google/apis/androidenterprise_v1/representations.rb +++ b/generated/google/apis/androidenterprise_v1/representations.rb @@ -1077,6 +1077,7 @@ module Google property :description, as: 'description' property :details_url, as: 'detailsUrl' property :distribution_channel, as: 'distributionChannel' + collection :features, as: 'features' property :icon_url, as: 'iconUrl' property :kind, as: 'kind' property :last_updated_timestamp_millis, :numeric_string => true, as: 'lastUpdatedTimestampMillis' diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 07eca1d70..223fb2de2 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20200112' + REVISION = '20200115' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v2/classes.rb b/generated/google/apis/androidpublisher_v2/classes.rb index 001707339..b6ae1e621 100644 --- a/generated/google/apis/androidpublisher_v2/classes.rb +++ b/generated/google/apis/androidpublisher_v2/classes.rb @@ -1465,6 +1465,7 @@ module Google # purchase was not made using the standard in-app billing flow. Possible values # are: # - Test (i.e. purchased from a license testing account) + # - Promo (i.e. purchased using a promo code) # Corresponds to the JSON property `purchaseType` # @return [Fixnum] attr_accessor :purchase_type diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index cba5a951f..aaa5c68a1 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20200112' + REVISION = '20200115' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb index acaa0bab3..b653d4612 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -1716,10 +1716,26 @@ module Google # @return [String] attr_accessor :profile_name + # The promotion code applied on this purchase. This field is only set if a + # vanity code promotion is applied when the subscription was purchased. + # Corresponds to the JSON property `promotionCode` + # @return [String] + attr_accessor :promotion_code + + # The type of promotion applied on this purchase. This field is only set if a + # promotion is applied when the subscription was purchased. Possible values are: + # + # - One time code + # - Vanity code + # Corresponds to the JSON property `promotionType` + # @return [Fixnum] + attr_accessor :promotion_type + # The type of purchase of the subscription. This field is only set if this # purchase was not made using the standard in-app billing flow. Possible values # are: # - Test (i.e. purchased from a license testing account) + # - Promo (i.e. purchased using a promo code) # Corresponds to the JSON property `purchaseType` # @return [Fixnum] attr_accessor :purchase_type @@ -1762,6 +1778,8 @@ module Google @price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code) @profile_id = args[:profile_id] if args.key?(:profile_id) @profile_name = args[:profile_name] if args.key?(:profile_name) + @promotion_code = args[:promotion_code] if args.key?(:promotion_code) + @promotion_type = args[:promotion_type] if args.key?(:promotion_type) @purchase_type = args[:purchase_type] if args.key?(:purchase_type) @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) @user_cancellation_time_millis = args[:user_cancellation_time_millis] if args.key?(:user_cancellation_time_millis) diff --git a/generated/google/apis/androidpublisher_v3/representations.rb b/generated/google/apis/androidpublisher_v3/representations.rb index c6d8bb051..60f730332 100644 --- a/generated/google/apis/androidpublisher_v3/representations.rb +++ b/generated/google/apis/androidpublisher_v3/representations.rb @@ -880,6 +880,8 @@ module Google property :price_currency_code, as: 'priceCurrencyCode' property :profile_id, as: 'profileId' property :profile_name, as: 'profileName' + property :promotion_code, as: 'promotionCode' + property :promotion_type, as: 'promotionType' property :purchase_type, as: 'purchaseType' property :start_time_millis, :numeric_string => true, as: 'startTimeMillis' property :user_cancellation_time_millis, :numeric_string => true, as: 'userCancellationTimeMillis' diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb index 8c3daf14c..2dcf81b25 100644 --- a/generated/google/apis/appengine_v1beta.rb +++ b/generated/google/apis/appengine_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1beta VERSION = 'V1beta' - REVISION = '20191114' + REVISION = '20200122' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1beta/classes.rb b/generated/google/apis/appengine_v1beta/classes.rb index 328c13660..d3e8dad7f 100644 --- a/generated/google/apis/appengine_v1beta/classes.rb +++ b/generated/google/apis/appengine_v1beta/classes.rb @@ -1184,11 +1184,6 @@ module Google # @return [String] attr_accessor :oauth2_client_id - # InputOnly OAuth client info required to generate client id to be used for IAP. - # Corresponds to the JSON property `oauth2ClientInfo` - # @return [Google::Apis::AppengineV1beta::OAuth2ClientInfo] - attr_accessor :oauth2_client_info - # OAuth2 client secret to use for the authentication flow.For security reasons, # this value cannot be retrieved via the API. Instead, the SHA-256 hash of the # value is returned in the oauth2_client_secret_sha256 field.@InputOnly @@ -1209,7 +1204,6 @@ module Google def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) - @oauth2_client_info = args[:oauth2_client_info] if args.key?(:oauth2_client_info) @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret) @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256) end @@ -1867,38 +1861,6 @@ module Google end end - # - class OAuth2ClientInfo - include Google::Apis::Core::Hashable - - # Application name to be used in OAuth consent screen. - # Corresponds to the JSON property `applicationName` - # @return [String] - attr_accessor :application_name - - # Nameof the client to be generated. Optional - If not provided, the name will - # be autogenerated by the backend. - # Corresponds to the JSON property `clientName` - # @return [String] - attr_accessor :client_name - - # Developer's information to be used in OAuth consent screen. - # Corresponds to the JSON property `developerEmailAddress` - # @return [String] - attr_accessor :developer_email_address - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @application_name = args[:application_name] if args.key?(:application_name) - @client_name = args[:client_name] if args.key?(:client_name) - @developer_email_address = args[:developer_email_address] if args.key?(:developer_email_address) - end - end - # This resource represents a long-running operation that is the result of a # network API call. class Operation diff --git a/generated/google/apis/appengine_v1beta/representations.rb b/generated/google/apis/appengine_v1beta/representations.rb index e6637f299..9282b07bc 100644 --- a/generated/google/apis/appengine_v1beta/representations.rb +++ b/generated/google/apis/appengine_v1beta/representations.rb @@ -316,12 +316,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class OAuth2ClientInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -761,8 +755,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :enabled, as: 'enabled' property :oauth2_client_id, as: 'oauth2ClientId' - property :oauth2_client_info, as: 'oauth2ClientInfo', class: Google::Apis::AppengineV1beta::OAuth2ClientInfo, decorator: Google::Apis::AppengineV1beta::OAuth2ClientInfo::Representation - property :oauth2_client_secret, as: 'oauth2ClientSecret' property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256' end @@ -947,15 +939,6 @@ module Google end end - class OAuth2ClientInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :application_name, as: 'applicationName' - property :client_name, as: 'clientName' - property :developer_email_address, as: 'developerEmailAddress' - end - end - class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudtasks_v2beta3.rb b/generated/google/apis/cloudtasks_v2beta3.rb index 61d8b2d80..f01a9c96b 100644 --- a/generated/google/apis/cloudtasks_v2beta3.rb +++ b/generated/google/apis/cloudtasks_v2beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta3 VERSION = 'V2beta3' - REVISION = '20191202' + REVISION = '20200117' # 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/cloudtasks_v2beta3/classes.rb b/generated/google/apis/cloudtasks_v2beta3/classes.rb index ae3239c45..bf55d5f1c 100644 --- a/generated/google/apis/cloudtasks_v2beta3/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta3/classes.rb @@ -376,10 +376,28 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::CloudtasksV2beta3::Expr] attr_accessor :condition @@ -490,34 +508,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index dae954b2c..09068ddc2 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 = '20191125' + REVISION = '20200104' # 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 000e9d0ad..d0a84b0e2 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -56,8 +56,7 @@ module Google # Google Cloud Platform provides graphics processing units (accelerators) that # you can add to VM instances to improve or accelerate performance when working # with intensive workloads. For more information, read GPUs on Compute Engine. (= - # = resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes = - # =) + # = resource_for `$api_version`.acceleratorTypes ==) class AcceleratorType include Google::Apis::Core::Hashable @@ -510,7 +509,7 @@ module Google # @return [String] attr_accessor :public_ptr_domain_name - # Specifies whether a public DNS ?A? record should be created for the external + # Specifies whether a public DNS 'A' record should be created for the external # IP address of this access configuration. # Corresponds to the JSON property `setPublicDns` # @return [Boolean] @@ -547,21 +546,22 @@ module Google end end - # Represents an IP Address resource. - # An address resource represents a regional internal IP address. Regional - # internal IP addresses are RFC 1918 addresses that come from either a primary - # or secondary IP range of a subnet in a VPC network. Regional external IP - # addresses can be assigned to GCP VM instances, Cloud VPN gateways, regional - # external forwarding rules for network load balancers (in either Standard or - # Premium Tier), and regional external forwarding rules for HTTP(S), SSL Proxy, - # and TCP Proxy load balancers in Standard Tier. For more information, read IP - # addresses. - # A globalAddresses resource represent a global external IP address. Global - # external IP addresses are IPv4 or IPv6 addresses. They can only be assigned to - # global forwarding rules for HTTP(S), SSL Proxy, or TCP Proxy load balancers in - # Premium Tier. For more information, read Global resources. (== resource_for - # beta.addresses ==) (== resource_for v1.addresses ==) (== resource_for beta. - # globalAddresses ==) (== resource_for v1.globalAddresses ==) + # Use global external addresses for GFE-based external HTTP(S) load balancers in + # Premium Tier. + # Use global internal addresses for reserved peering network range. + # Use regional external addresses for the following resources: + # - External IP addresses for VM instances - Regional external forwarding rules - + # Cloud NAT external IP addresses - GFE based LBs in Standard Tier - Network + # LBs in Premium or Standard Tier - Cloud VPN gateways (both Classic and HA) + # Use regional internal IP addresses for subnet IP ranges (primary and secondary) + # . This includes: + # - Internal IP addresses for VM instances - Alias IP ranges of VM instances (/ + # 32 only) - Regional internal forwarding rules - Internal TCP/UDP load balancer + # addresses - Internal HTTP(S) load balancer addresses - Cloud DNS inbound + # forwarding IP addresses + # For more information, read reserved IP address. + # (== resource_for `$api_version`.addresses ==) (== resource_for `$api_version`. + # globalAddresses ==) class Address include Google::Apis::Core::Hashable @@ -1222,8 +1222,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 GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb @@ -1654,14 +1653,16 @@ module Google end # Represents an Autoscaler resource. + # Google Compute Engine has two Autoscaler resources: + # * [Global](/compute/docs/reference/rest/latest/autoscalers) * [Regional](/ + # compute/docs/reference/rest/latest/regionAutoscalers) # Use autoscalers to automatically add or delete instances from a managed # instance group according to your defined autoscaling policy. For more # information, read Autoscaling Groups of Instances. # For zonal managed instance groups resource, use the autoscaler resource. # For regional managed instance groups, use the regionAutoscalers resource. (== - # resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== - # resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers = - # =) + # resource_for `$api_version`.autoscalers ==) (== resource_for `$api_version`. + # regionAutoscalers ==) class Autoscaler include Google::Apis::Core::Hashable @@ -2463,6 +2464,40 @@ module Google # @return [Google::Apis::ComputeAlpha::FixedOrPercent] attr_accessor :max_scaled_down_replicas + # A Duration represents a signed, 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". It is related + # to Timestamp in that the difference between two Timestamp values is a Duration + # and it can be added or subtracted from a Timestamp. Range is approximately +- + # 10,000 years. + # # Examples + # Example 1: Compute Duration from two Timestamps in pseudo code. + # Timestamp start = ...; Timestamp end = ...; Duration duration = ...; + # duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - + # start.nanos; + # if (duration.seconds 0) ` duration.seconds += 1; duration.nanos -= 1000000000; + # ` else if (duration.seconds > 0 && duration.nanos < 0) ` duration.seconds -= + # 1; duration.nanos += 1000000000; ` + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # Timestamp start = ...; Duration duration = ...; Timestamp end = ...; + # end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + + # duration.nanos; + # if (end.nanos = 1000000000) ` end.seconds += 1; end.nanos -= 1000000000; ` + # Example 3: Compute Duration from datetime.timedelta in Python. + # td = datetime.timedelta(days=3, minutes=10) duration = Duration() duration. + # FromTimedelta(td) + # # JSON Mapping + # In JSON format, the Duration type is encoded as a string rather than an object, + # where the string ends in the suffix "s" (indicating seconds) and is preceded + # by the number of seconds, with nanoseconds expressed as fractional seconds. + # For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as " + # 3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3. + # 000000001s", and 3 seconds and 1 microsecond should be expressed in JSON + # format as "3.000001s". + # Corresponds to the JSON property `timeWindow` + # @return [Google::Apis::ComputeAlpha::GoogleDuration] + attr_accessor :time_window + # How long back autoscaling should look when computing recommendations to # include directives regarding slower scale down, as described above. # Corresponds to the JSON property `timeWindowSec` @@ -2476,6 +2511,7 @@ module Google # Update properties of this object def update!(**args) @max_scaled_down_replicas = args[:max_scaled_down_replicas] if args.key?(:max_scaled_down_replicas) + @time_window = args[:time_window] if args.key?(:time_window) @time_window_sec = args[:time_window_sec] if args.key?(:time_window_sec) end end @@ -2891,8 +2927,12 @@ module Google # Represents a Backend Service resource. # A backend service contains configuration values for Google Cloud Platform load # balancing services. + # Backend services in Google Compute Engine can be either regionally or globally + # scoped. + # * [Global](/compute/docs/reference/rest/latest/backendServices) * [Regional](/ + # compute/docs/reference/rest/latest/regionBackendServices) # For more information, read Backend Services. - # (== resource_for v1.backendService ==) (== resource_for beta.backendService ==) + # (== resource_for `$api_version`.backendService ==) class BackendService include Google::Apis::Core::Hashable @@ -2970,9 +3010,11 @@ module Google # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for # health checking this BackendService. Currently at most one health check can be - # specified, and a health check is required for Compute Engine backend services. - # A health check must not be specified for App Engine backend and Cloud Function - # backend. + # specified. Health check is optional for Compute Engine backend services if + # there is no backend. A health check must not be specified when adding Internet + # Network Endpoint Group or Serverless Network Endpoint Group as backends. In + # all other cases, a health check is required for Compute Engine backend + # services. # For internal load balancing, a URL to a HealthCheck resource must be specified # instead. # Corresponds to the JSON property `healthChecks` @@ -4048,7 +4090,7 @@ module Google # * `group:`emailid``: An email address that represents a Google group. For # example, `admins@example.com`. # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For example,` + # identifier) representing a user that has been recently deleted. For example, ` # alice@example.com?uid=123456789012345678901`. If the user is recovered, this # value reverts to `user:`emailid`` and the recovered user retains the role in # the binding. @@ -4336,8 +4378,8 @@ module Google # 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 discounted rates. For full details, read - # Signing Up for Committed Use Discounts. (== resource_for beta. - # regionCommitments ==) (== resource_for v1.regionCommitments ==) + # Signing Up for Committed Use Discounts. (== resource_for `$api_version`. + # regionCommitments ==) class Commitment include Google::Apis::Core::Hashable @@ -4377,10 +4419,10 @@ module Google # @return [String] attr_accessor :kind - # A list of commitment amounts for particular licenses. - # Corresponds to the JSON property `licenseResources` - # @return [Array] - attr_accessor :license_resources + # Commitment for a particular license resource. + # Corresponds to the JSON property `licenseResource` + # @return [Google::Apis::ComputeAlpha::LicenseResourceCommitment] + attr_accessor :license_resource # 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 @@ -4461,7 +4503,7 @@ module Google @end_timestamp = args[:end_timestamp] if args.key?(:end_timestamp) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) - @license_resources = args[:license_resources] if args.key?(:license_resources) + @license_resource = args[:license_resource] if args.key?(:license_resource) @name = args[:name] if args.key?(:name) @plan = args[:plan] if args.key?(:plan) @region = args[:region] if args.key?(:region) @@ -5009,8 +5051,8 @@ module Google # @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. + # Specifies how long results of a preflight request can be cached in seconds. + # This translates to the Access-Control-Max-Age header. # Corresponds to the JSON property `maxAge` # @return [Fixnum] attr_accessor :max_age @@ -5168,15 +5210,17 @@ module Google end # Represents a Persistent Disk resource. + # Google Compute Engine has two Disk resources: + # * [Global](/compute/docs/reference/rest/latest/disks) * [Regional](/compute/ + # docs/reference/rest/latest/regionDisks) # Persistent disks are required for running your VM instances. Create both boot # and non-boot (data) persistent disks. For more information, read Persistent # Disks. For more storage options, read Storage options. # The disks resource represents a zonal persistent disk. For more information, # read Zonal persistent disks. # The regionDisks resource represents a regional persistent disk. For more - # information, read Regional resources. (== resource_for beta.disks ==) (== - # resource_for v1.disks ==) (== resource_for v1.regionDisks ==) (== resource_for - # beta.regionDisks ==) + # information, read Regional resources. (== resource_for `$api_version`.disks == + # ) (== resource_for `$api_version`.regionDisks ==) class Disk include Google::Apis::Core::Hashable @@ -5811,14 +5855,16 @@ module Google end # Represents a Disk Type resource. + # Google Compute Engine has two Disk Type resources: + # * [Global](/compute/docs/reference/rest/latest/diskTypes) * [Regional](/ + # compute/docs/reference/rest/latest/regionDiskTypes) # You can choose from a variety of disk types based on your needs. For more # information, read Storage options. # The diskTypes resource represents disk types for a zonal persistent disk. For # more information, read Zonal persistent disks. # The regionDiskTypes resource represents disk types for a regional persistent - # disk. For more information, read Regional persistent disks. (== resource_for - # beta.diskTypes ==) (== resource_for v1.diskTypes ==) (== resource_for v1. - # regionDiskTypes ==) (== resource_for beta.regionDiskTypes ==) + # disk. For more information, read Regional persistent disks. (== resource_for `$ + # api_version`.diskTypes ==) (== resource_for `$api_version`.regionDiskTypes ==) class DiskType include Google::Apis::Core::Hashable @@ -6697,7 +6743,7 @@ module Google end # External VPN gateway is the on-premises VPN gateway(s) or another cloud - # provider?s VPN gateway that connects to your Google Cloud VPN gateway. To + # provider's VPN gateway that connects to your Google Cloud VPN gateway. To # create a highly available VPN from Google Cloud to your on-premises side or # another Cloud provider's VPN gateway, you must create a external VPN gateway # resource in GCP, which provides the information to GCP about your external VPN @@ -6806,7 +6852,7 @@ module Google # IP address of the interface in the external VPN gateway. Only IPv4 is # supported. This IP address can be either from your on-premise gateway or - # another Cloud provider?s VPN gateway, it cannot be an IP address from Google + # another Cloud provider's VPN gateway, it cannot be an IP address from Google # Compute Engine. # Corresponds to the JSON property `ipAddress` # @return [String] @@ -7432,16 +7478,18 @@ module Google end # Represents a Forwarding Rule resource. + # Forwarding rule resources in GCP can be either regional or global in scope: + # * [Global](/compute/docs/reference/rest/latest/globalForwardingRules) * [ + # Regional](/compute/docs/reference/rest/latest/forwardingRules) # A forwarding rule and its corresponding IP address represent the frontend # configuration of a Google Cloud Platform load balancer. Forwarding rules can # also reference target instances and Cloud VPN Classic gateways ( # targetVpnGateway). # For more information, read Forwarding rule concepts and Using protocol # forwarding. - # (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules = - # =) (== resource_for beta.globalForwardingRules ==) (== resource_for v1. - # globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== - # resource_for v1.regionForwardingRules ==) + # (== resource_for `$api_version`.forwardingRules ==) (== resource_for `$ + # api_version`.globalForwardingRules ==) (== resource_for `$api_version`. + # regionForwardingRules ==) class ForwardingRule include Google::Apis::Core::Hashable @@ -7576,13 +7624,20 @@ module Google # @return [Hash] attr_accessor :labels - # Specifies the forwarding rule type. EXTERNAL is used for: - Classic Cloud VPN - # gateways - Protocol forwarding to VMs from an external IP address - The - # following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP. - # INTERNAL is used for: - Protocol forwarding to VMs from an internal IP address + # Specifies the forwarding rule type. + # + # - EXTERNAL is used for: + # - Classic Cloud VPN gateways + # - Protocol forwarding to VMs from an external IP address + # - The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/ + # UDP + # - INTERNAL is used for: + # - Protocol forwarding to VMs from an internal IP address # - Internal TCP/UDP load balancers - # INTERNAL_MANAGED is used for: - Internal HTTP(S) load balancers - # INTERNAL_SELF_MANAGED is used for: - Traffic Director + # - INTERNAL_MANAGED is used for: + # - Internal HTTP(S) load balancers + # - >INTERNAL_SELF_MANAGED is used for: + # - Traffic Director # For more information about forwarding rules, refer to Forwarding rule concepts. # Corresponds to the JSON property `loadBalancingScheme` # @return [String] @@ -7721,8 +7776,8 @@ module Google # forwarding rules, this target must live in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets - # are valid. + # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy is + # valid, not targetHttpsProxy. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -8245,6 +8300,66 @@ module Google end end + # A Duration represents a signed, 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". It is related + # to Timestamp in that the difference between two Timestamp values is a Duration + # and it can be added or subtracted from a Timestamp. Range is approximately +- + # 10,000 years. + # # Examples + # Example 1: Compute Duration from two Timestamps in pseudo code. + # Timestamp start = ...; Timestamp end = ...; Duration duration = ...; + # duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - + # start.nanos; + # if (duration.seconds 0) ` duration.seconds += 1; duration.nanos -= 1000000000; + # ` else if (duration.seconds > 0 && duration.nanos < 0) ` duration.seconds -= + # 1; duration.nanos += 1000000000; ` + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # Timestamp start = ...; Duration duration = ...; Timestamp end = ...; + # end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + + # duration.nanos; + # if (end.nanos = 1000000000) ` end.seconds += 1; end.nanos -= 1000000000; ` + # Example 3: Compute Duration from datetime.timedelta in Python. + # td = datetime.timedelta(days=3, minutes=10) duration = Duration() duration. + # FromTimedelta(td) + # # JSON Mapping + # In JSON format, the Duration type is encoded as a string rather than an object, + # where the string ends in the suffix "s" (indicating seconds) and is preceded + # by the number of seconds, with nanoseconds expressed as fractional seconds. + # For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as " + # 3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3. + # 000000001s", and 3 seconds and 1 microsecond should be expressed in JSON + # format as "3.000001s". + class GoogleDuration + include Google::Apis::Core::Hashable + + # Signed fractions of a second at nanosecond resolution of the span of time. + # Durations less than one second are represented with a 0 `seconds` field and a + # positive or negative `nanos` field. For durations of one second or more, a non- + # zero value for the `nanos` field must be of the same sign as the `seconds` + # field. Must be from -999,999,999 to +999,999,999 inclusive. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # Signed seconds of the span of time. Must be from -315,576,000,000 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 + # gRPC config to access the SDS server. class GrpcServiceConfig include Google::Apis::Core::Hashable @@ -8422,20 +8537,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTP2 health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTP2 health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -8499,20 +8607,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTP health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTP health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -8576,20 +8677,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTPS health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTPS health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -8629,8 +8723,12 @@ module Google end # Represents a Health Check resource. - # Health checks are used for most GCP load balancers and managed instance group - # auto-healing. For more information, read Health Check Concepts. + # Google Compute Engine has two Health Check resources: + # * [Global](/compute/docs/reference/rest/latest/healthChecks) * [Regional](/ + # compute/docs/reference/rest/latest/regionHealthChecks) + # Internal HTTP(S) load balancers use regional health checks. All other types of + # GCP load balancers and managed instance group auto-healing use global health + # checks. For more information, read Health Check Concepts. # To perform health checks on network load balancers, you must use either # httpHealthChecks or httpsHealthChecks. class HealthCheck @@ -10111,7 +10209,9 @@ module Google # 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. + # pathRedirect cannot be supplied together with prefixRedirect. Supply one alone + # or neither. If neither is supplied, the path of the original request will be + # used for the redirect. # The value must be between 1 and 1024 characters. # Corresponds to the JSON property `pathRedirect` # @return [String] @@ -10119,6 +10219,10 @@ module Google # The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, # retaining the remaining portion of the URL before redirecting the request. + # prefixRedirect cannot be supplied together with pathRedirect. Supply one alone + # or neither. If neither is supplied, the path of the original request will be + # used for the redirect. + # The value must be between 1 and 1024 characters. # Corresponds to the JSON property `prefixRedirect` # @return [String] attr_accessor :prefix_redirect @@ -10693,8 +10797,7 @@ module Google # Represents an Image resource. # You can use images to create boot disks for your VM instances. For more - # information, read Images. (== resource_for beta.images ==) (== resource_for v1. - # images ==) + # information, read Images. (== resource_for `$api_version`.images ==) class Image include Google::Apis::Core::Hashable @@ -11132,8 +11235,8 @@ module Google # Represents an Instance resource. # An instance is a virtual machine that is hosted on Google Cloud Platform. For - # more information, read Virtual Machine Instances. (== resource_for beta. - # instances ==) (== resource_for v1.instances ==) + # more information, read Virtual Machine Instances. (== resource_for `$ + # api_version`.instances ==) class Instance include Google::Apis::Core::Hashable @@ -11578,9 +11681,8 @@ module Google # groups of heterogeneous instances or if you need to manage the instances # yourself. You cannot create regional unmanaged instance groups. # For more information, read Instance groups. - # (== resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) - # (== resource_for beta.regionInstanceGroups ==) (== resource_for v1. - # regionInstanceGroups ==) + # (== resource_for `$api_version`.instanceGroups ==) (== resource_for `$ + # api_version`.regionInstanceGroups ==) class InstanceGroup include Google::Apis::Core::Hashable @@ -11933,9 +12035,8 @@ module Google # single entity. For more information, read Instance groups. # For zonal Managed Instance Group, use the instanceGroupManagers resource. # For regional Managed Instance Group, use the regionInstanceGroupManagers - # resource. (== resource_for beta.instanceGroupManagers ==) (== resource_for v1. - # instanceGroupManagers ==) (== resource_for beta.regionInstanceGroupManagers ==) - # (== resource_for v1.regionInstanceGroupManagers ==) + # resource. (== resource_for `$api_version`.instanceGroupManagers ==) (== + # resource_for `$api_version`.regionInstanceGroupManagers ==) class InstanceGroupManager include Google::Apis::Core::Hashable @@ -14144,8 +14245,8 @@ module Google # Represents an Instance Template resource. # You can use instance templates to create VM instances and managed instance - # groups. For more information, read Instance Templates. (== resource_for beta. - # instanceTemplates ==) (== resource_for v1.instanceTemplates ==) + # groups. For more information, read Instance Templates. (== resource_for `$ + # api_version`.instanceTemplates ==) class InstanceTemplate include Google::Apis::Core::Hashable @@ -14789,8 +14890,7 @@ module Google # Represents an Interconnect resource. # An Interconnect resource is a dedicated connection between the GCP network and # your on-premises network. For more information, read the Dedicated - # Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for - # beta.interconnects ==) + # Interconnect Overview. (== resource_for `$api_version`.interconnects ==) class Interconnect include Google::Apis::Core::Hashable @@ -15012,8 +15112,8 @@ module Google # Represents an Interconnect Attachment (VLAN) resource. # You can use Interconnect attachments (VLANS) to connect your Virtual Private # Cloud networks to your on-premises networks through an Interconnect. For more - # information, read Creating VLAN Attachments. (== resource_for beta. - # interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) + # information, read Creating VLAN Attachments. (== resource_for `$api_version`. + # interconnectAttachments ==) class InterconnectAttachment include Google::Apis::Core::Hashable @@ -15050,7 +15150,7 @@ module Google # prefixes must be within link-local address space (169.254.0.0/16) and must be / # 29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 # from the supplied candidate prefix(es). The request will fail if all possible / - # 29s are in use on Google?s edge. If not supplied, Google will randomly select + # 29s are in use on Google's edge. If not supplied, Google will randomly select # an unused /29 from all of link-local space. # Corresponds to the JSON property `candidateSubnets` # @return [Array] @@ -15535,7 +15635,7 @@ module Google include Google::Apis::Core::Hashable # Plain text name of the Interconnect this attachment is connected to, as - # displayed in the Partner?s portal. For instance "Chicago 1". This value may be + # displayed in the Partner's portal. For instance "Chicago 1". This value may be # validated to match approved Partner values. # Corresponds to the JSON property `interconnectName` # @return [String] @@ -15547,7 +15647,7 @@ module Google # @return [String] attr_accessor :partner_name - # URL of the Partner?s portal for this Attachment. Partners may customise this + # URL of the Partner's portal for this Attachment. Partners may customise this # to be a deep link to the specific resource on the Partner portal. This value # may be validated to match approved Partner values. # Corresponds to the JSON property `portalUrl` @@ -15713,7 +15813,7 @@ module Google end # Diagnostics information about interconnect, contains detailed and current - # technical information about Google?s side of the connection. + # technical information about Google's side of the connection. class InterconnectDiagnostics include Google::Apis::Core::Hashable @@ -15776,12 +15876,12 @@ module Google class InterconnectDiagnosticsLinkLacpStatus include Google::Apis::Core::Hashable - # System ID of the port on Google?s side of the LACP exchange. + # System ID of the port on Google's side of the LACP exchange. # Corresponds to the JSON property `googleSystemId` # @return [String] attr_accessor :google_system_id - # System ID of the port on the neighbor?s side of the LACP exchange. + # System ID of the port on the neighbor's side of the LACP exchange. # Corresponds to the JSON property `neighborSystemId` # @return [String] attr_accessor :neighbor_system_id @@ -16375,7 +16475,7 @@ module Google include Google::Apis::Core::Hashable # Diagnostics information about interconnect, contains detailed and current - # technical information about Google?s side of the connection. + # technical information about Google's side of the connection. # Corresponds to the JSON property `result` # @return [Google::Apis::ComputeAlpha::InterconnectDiagnostics] attr_accessor :result @@ -16719,7 +16819,7 @@ module Google # @return [String] attr_accessor :issuer - # The provider?s public key set to validate the signature of the JWT. + # The provider's public key set to validate the signature of the JWT. # Corresponds to the JSON property `jwksPublicKeys` # @return [String] attr_accessor :jwks_public_keys @@ -16970,8 +17070,7 @@ module Google end end - # Commitment for a particular license resource (a License Commitment is composed - # of one or more of these). + # Commitment for a particular license resource. class LicenseResourceCommitment include Google::Apis::Core::Hashable @@ -17582,7 +17681,7 @@ module Google # Represents a Machine Type resource. # You can use specific machine types for your VM instances based on performance # and pricing requirements. For more information, read Machine Types. (== - # resource_for v1.machineTypes ==) (== resource_for beta.machineTypes ==) + # resource_for `$api_version`.machineTypes ==) class MachineType include Google::Apis::Core::Hashable @@ -18469,8 +18568,8 @@ module Google # Represents a VPC Network resource. # Networks connect resources to each other and to the internet. For more - # information, read Virtual Private Cloud (VPC) Network. (== resource_for v1. - # networks ==) (== resource_for beta.networks ==) + # information, read Virtual Private Cloud (VPC) Network. (== resource_for `$ + # api_version`.networks ==) class Network include Google::Apis::Core::Hashable @@ -18495,11 +18594,6 @@ module Google # @return [String] attr_accessor :creation_timestamp - # [Output Only] Type of VM-to-VM traffic encryption for this network. - # Corresponds to the JSON property `crossVmEncryption` - # @return [String] - attr_accessor :cross_vm_encryption - # An optional description of this resource. Provide this field when you create # the resource. # Corresponds to the JSON property `description` @@ -18523,11 +18617,6 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] Type of LB-to-VM traffic encryption for this network. - # Corresponds to the JSON property `loadBalancerVmEncryption` - # @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 1500 bytes. # Corresponds to the JSON property `mtu` @@ -18588,12 +18677,10 @@ module Google @i_pv4_range = args[:i_pv4_range] if args.key?(:i_pv4_range) @auto_create_subnetworks = args[:auto_create_subnetworks] if args.key?(:auto_create_subnetworks) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) - @cross_vm_encryption = args[:cross_vm_encryption] if args.key?(:cross_vm_encryption) @description = args[:description] if args.key?(:description) @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4) @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) @@ -18660,8 +18747,7 @@ module Google # Represents a collection of network endpoints. # For more information read Setting up network endpoint groups in load balancing. - # (== resource_for v1.networkEndpointGroups ==) (== resource_for beta. - # networkEndpointGroups ==) Next ID: 21 + # (== resource_for `$api_version`.networkEndpointGroups ==) Next ID: 21 class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -18993,7 +19079,7 @@ module Google include Google::Apis::Core::Hashable # A user-defined name of the Cloud Function. - # The service name must be 1-63 characters long, and comply with RFC1035. + # The function name is case-sensitive and must be 1-63 characters long. # Example value: "func1". # Corresponds to the JSON property `function` # @return [String] @@ -19030,7 +19116,7 @@ module Google include Google::Apis::Core::Hashable # Cloud Run service is the main resource of Cloud Run. - # The tag must be 1-63 characters long, and comply with RFC1035. + # The service must be 1-63 characters long, and comply with RFC1035. # Example value: "run-service". # Corresponds to the JSON property `service` # @return [String] @@ -20055,8 +20141,7 @@ module Google # instances only for your specific project. Use sole-tenant nodes to keep your # instances physically separated from instances in other projects, or to group # your instances together on the same host hardware. For more information, read - # Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1. - # nodeGroups ==) + # Sole-tenant nodes. (== resource_for `$api_version`.nodeGroups ==) class NodeGroup include Google::Apis::Core::Hashable @@ -20436,6 +20521,11 @@ module Google class NodeGroupNode include Google::Apis::Core::Hashable + # Accelerators for this node. + # Corresponds to the JSON property `accelerators` + # @return [Array] + attr_accessor :accelerators + # Local disk configurations. # Corresponds to the JSON property `disks` # @return [Array] @@ -20477,6 +20567,7 @@ module Google # Update properties of this object def update!(**args) + @accelerators = args[:accelerators] if args.key?(:accelerators) @disks = args[:disks] if args.key?(:disks) @instances = args[:instances] if args.key?(:instances) @name = args[:name] if args.key?(:name) @@ -20775,11 +20866,16 @@ module Google # Represent a sole-tenant Node Template resource. # You can use a template to define properties for nodes in a node group. For - # more information, read Creating node groups and instances. (== resource_for - # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) + # more information, read Creating node groups and instances. (== resource_for `$ + # api_version`.nodeTemplates ==) (== NextID: 18 ==) class NodeTemplate include Google::Apis::Core::Hashable + # + # Corresponds to the JSON property `accelerators` + # @return [Array] + attr_accessor :accelerators + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -20880,6 +20976,7 @@ module Google # Update properties of this object def update!(**args) + @accelerators = args[:accelerators] if args.key?(:accelerators) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) @@ -21261,7 +21358,7 @@ module Google # total amount of cores and memory for that node. Currently, the only available # node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, # available in multiple zones. For more information read Node types. (== - # resource_for beta.nodeTypes ==) (== resource_for v1.nodeTypes ==) + # resource_for `$api_version`.nodeTypes ==) class NodeType include Google::Apis::Core::Hashable @@ -21928,6 +22025,10 @@ module Google end # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/latest/globalOperations) * [Regional](/ + # compute/docs/reference/rest/latest/regionOperations) * [Zonal](/compute/docs/ + # reference/rest/latest/zoneOperations) # You can use an operation resource to manage asynchronous API requests. For # more information, read Handling API responses. # Operations can be global, regional or zonal. @@ -21935,10 +22036,9 @@ module Google # - For regional operations, use the regionOperations resource. # - For zonal operations, use the zonalOperations resource. # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) class Operation include Google::Apis::Core::Hashable @@ -23956,8 +24056,8 @@ module Google # Represents a Project resource. # A project is used to organize resources in a Google Cloud Platform environment. - # For more information, read about the Resource Hierarchy. (== resource_for v1. - # projects ==) (== resource_for beta.projects ==) + # For more information, read about the Resource Hierarchy. (== resource_for `$ + # api_version`.projects ==) class Project include Google::Apis::Core::Hashable @@ -25065,8 +25165,8 @@ module Google # Represents a Region resource. # A region is a geographical area where a resource is located. For more - # information, read Regions and Zones. (== resource_for beta.regions ==) (== - # resource_for v1.regions ==) + # information, read Regions and Zones. (== resource_for `$api_version`.regions == + # ) class Region include Google::Apis::Core::Hashable @@ -26522,12 +26622,19 @@ module Google include Google::Apis::Core::Hashable # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeAlpha::UrlMap] attr_accessor :resource @@ -26566,8 +26673,8 @@ module Google # Represents a reservation resource. A reservation ensures that capacity is held # in a specific zone even if the reserved VMs are not running. For more - # information, read Reserving zonal resources. (== resource_for beta. - # reservations ==) (== resource_for v1.reservations ==) + # information, read Reserving zonal resources. (== resource_for `$api_version`. + # reservations ==) class Reservation include Google::Apis::Core::Hashable @@ -27754,7 +27861,7 @@ module Google class ResourcePolicySnapshotSchedulePolicySnapshotProperties include Google::Apis::Core::Hashable - # Indication to perform a ?guest aware? snapshot. + # Indication to perform a 'guest aware' snapshot. # Corresponds to the JSON property `guestFlush` # @return [Boolean] attr_accessor :guest_flush @@ -27912,8 +28019,8 @@ module Google # Represents a Route resource. # A route defines a path from VM instances in the VPC network to a specific # destination. This destination can be inside or outside the VPC network. For - # more information, read the Routes overview. (== resource_for beta.routes ==) (= - # = resource_for v1.routes ==) + # more information, read the Routes overview. (== resource_for `$api_version`. + # routes ==) class Route include Google::Apis::Core::Hashable @@ -28537,7 +28644,7 @@ module Google # peer. Hold time is three times the interval at which keepalive messages are # sent, and the hold time is the maximum number of seconds allowed to elapse # between successive keepalive messages that BGP receives from a peer. BGP will - # use the smaller of either the local hold time value or the peer?s hold time + # use the smaller of either the local hold time value or the peer's hold time # value as the hold time for the BGP connection between the two peers. If set, # this value must be between 1 and 120. The default is 20. # Corresponds to the JSON property `keepaliveInterval` @@ -29521,20 +29628,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, SSL health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, SSL health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -29864,8 +29964,7 @@ module Google # Represents a Cloud Armor Security Policy resource. # Only external backend services that use load balancers can reference a # Security Policy. For more information, read Cloud Armor Security Policy - # Concepts. (== resource_for v1.securityPolicies ==) (== resource_for beta. - # securityPolicies ==) + # Concepts. (== resource_for `$api_version`.securityPolicies ==) class SecurityPolicy include Google::Apis::Core::Hashable @@ -30251,7 +30350,7 @@ module Google attr_accessor :rule_tuple_count # A list of network resource URLs to which this rule applies. This field allows - # you to control which network?s VMs get this rule. If this field is left blank, + # you to control which network's VMs get this rule. If this field is left blank, # all VMs within the organization will receive the rule. # This field may only be specified when versioned_expr is set to FIREWALL. # Corresponds to the JSON property `targetResources` @@ -30854,8 +30953,8 @@ module Google # Represents a Persistent Disk Snapshot resource. # You can use snapshots to back up data on a regular interval. For more - # information, read Creating persistent disk snapshots. (== resource_for beta. - # snapshots ==) (== resource_for v1.snapshots ==) + # information, read Creating persistent disk snapshots. (== resource_for `$ + # api_version`.snapshots ==) class Snapshot include Google::Apis::Core::Hashable @@ -31316,12 +31415,17 @@ module Google end # Represents an SSL Certificate resource. + # Google Compute Engine has two SSL Certificate resources: + # * [Global](/compute/docs/reference/rest/latest/sslCertificates) * [Regional](/ + # compute/docs/reference/rest/latest/regionSslCertificates) + # - sslCertificates are used by: - external HTTPS load balancers - SSL proxy + # load balancers + # - regionSslCertificates are used by: - internal HTTPS load balancers # This SSL certificate resource also contains a private key. You can use SSL # keys and certificates to secure connections to a load balancer. For more - # information, read Creating and Using SSL Certificates. (== resource_for beta. - # sslCertificates ==) (== resource_for v1.sslCertificates ==) (== resource_for - # beta.regionSslCertificates ==) (== resource_for v1.regionSslCertificates ==) - # Next ID: 17 + # information, read Creating and Using SSL Certificates. (== resource_for `$ + # api_version`.sslCertificates ==) (== resource_for `$api_version`. + # regionSslCertificates ==) Next ID: 17 class SslCertificate include Google::Apis::Core::Hashable @@ -31966,8 +32070,7 @@ module Google # Represents a Cloud Armor Security Policy resource. # Only external backend services used by HTTP or HTTPS load balancers can # reference a Security Policy. For more information, read read Cloud Armor - # Security Policy Concepts. (== resource_for beta.sslPolicies ==) (== - # resource_for v1.sslPolicies ==) + # Security Policy Concepts. (== resource_for `$api_version`.sslPolicies ==) class SslPolicy include Google::Apis::Core::Hashable @@ -32235,7 +32338,7 @@ module Google # A subnetwork (also known as a subnet) is a logical partition of a Virtual # Private Cloud network with one primary IP range and zero or more secondary IP # ranges. For more information, read Virtual Private Cloud (VPC) Network. (== - # resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==) + # resource_for `$api_version`.subnetworks ==) class Subnetwork include Google::Apis::Core::Hashable @@ -32390,6 +32493,7 @@ module Google # @return [String] attr_accessor :private_ipv6_google_access + # Deprecated in favor of enable PrivateIpv6GoogleAccess on instance directly. # The service accounts can be used to selectively turn on Private IPv6 Google # Access only on the VMs primary service account matching the value. This value # only takes effect when PrivateIpv6GoogleAccess is @@ -32990,20 +33094,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, TCP health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, TCP health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -33168,12 +33265,16 @@ module Google end # Represents a Target HTTP Proxy resource. - # A target HTTP proxy is a component of GCP HTTP load balancers. Forwarding - # rules reference a target HTTP proxy, and the target proxy then references a - # URL map. For more information, read Using Target Proxies and Forwarding rule - # concepts. (== resource_for beta.targetHttpProxies ==) (== resource_for v1. - # targetHttpProxies ==) (== resource_for beta.regionTargetHttpProxies ==) (== - # resource_for v1.regionTargetHttpProxies ==) + # Google Compute Engine has two Target HTTP Proxy resources: + # * [Global](/compute/docs/reference/rest/latest/targetHttpProxies) * [Regional]( + # /compute/docs/reference/rest/latest/regionTargetHttpProxies) + # A target HTTP proxy is a component of GCP HTTP load balancers. + # * targetHttpProxies are used by external HTTP load balancers and Traffic + # Director. * regionTargetHttpProxies are used by internal HTTP load balancers. + # Forwarding rules reference a target HTTP proxy, and the target proxy then + # references a URL map. For more information, read Using Target Proxies and + # Forwarding rule concepts. (== resource_for `$api_version`.targetHttpProxies ==) + # (== resource_for `$api_version`.regionTargetHttpProxies ==) class TargetHttpProxy include Google::Apis::Core::Hashable @@ -33626,12 +33727,16 @@ module Google end # Represents a Target HTTPS Proxy resource. - # A target HTTPS proxy is a component of GCP HTTPS load balancers. Forwarding - # rules reference a target HTTPS proxy, and the target proxy then references a - # URL map. For more information, read Using Target Proxies and Forwarding rule - # concepts. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1. - # targetHttpsProxies ==) (== resource_for beta.regionTargetHttpsProxies ==) (== - # resource_for v1.regionTargetHttpsProxies ==) + # Google Compute Engine has two Target HTTPS Proxy resources: + # * [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) * [Regional] + # (/compute/docs/reference/rest/latest/regionTargetHttpsProxies) + # A target HTTPS proxy is a component of GCP HTTPS load balancers. + # * targetHttpsProxies are used by external HTTPS load balancers. * + # regionTargetHttpsProxies are used by internal HTTPS load balancers. + # Forwarding rules reference a target HTTPS proxy, and the target proxy then + # references a URL map. For more information, read Using Target Proxies and + # Forwarding rule concepts. (== resource_for `$api_version`.targetHttpsProxies == + # ) (== resource_for `$api_version`.regionTargetHttpsProxies ==) class TargetHttpsProxy include Google::Apis::Core::Hashable @@ -33991,8 +34096,7 @@ module Google # You can use a target instance to handle traffic for one or more forwarding # rules, which is ideal for forwarding protocol traffic that is managed by a # single source. For example, ESP, AH, TCP, or UDP. For more information, read - # Target instances. (== resource_for beta.targetInstances ==) (== resource_for - # v1.targetInstances ==) + # Target instances. (== resource_for `$api_version`.targetInstances ==) class TargetInstance include Google::Apis::Core::Hashable @@ -34047,6 +34151,13 @@ module Google # @return [String] attr_accessor :nat_policy + # The URL of the network this target instance uses to forward traffic. If not + # specified, the traffic will be forwarded to the network that the default + # network interface belongs to. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -34077,6 +34188,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @nat_policy = args[:nat_policy] if args.key?(:nat_policy) + @network = args[:network] if args.key?(:network) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @zone = args[:zone] if args.key?(:zone) @@ -34412,8 +34524,7 @@ module Google # Target pools are used for network TCP/UDP load balancing. A target pool # references member instances, an associated legacy HttpHealthCheck resource, # and, optionally, a backup target pool. For more information, read Using target - # pools. (== resource_for beta.targetPools ==) (== resource_for v1.targetPools == - # ) + # pools. (== resource_for `$api_version`.targetPools ==) class TargetPool include Google::Apis::Core::Hashable @@ -35062,8 +35173,7 @@ module Google # A target SSL proxy is a component of a SSL Proxy load balancer. Global # forwarding rules reference a target SSL proxy, and the target proxy then # references an external backend service. For more information, read Using - # Target Proxies. (== resource_for beta.targetSslProxies ==) (== resource_for v1. - # targetSslProxies ==) + # Target Proxies. (== resource_for `$api_version`.targetSslProxies ==) class TargetSslProxy include Google::Apis::Core::Hashable @@ -35309,8 +35419,7 @@ module Google # A target TCP proxy is a component of a TCP Proxy load balancer. Global # forwarding rules reference target TCP proxy, and the target proxy then # references an external backend service. For more information, read TCP Proxy - # Load Balancing Concepts. (== resource_for beta.targetTcpProxies ==) (== - # resource_for v1.targetTcpProxies ==) + # Load Balancing Concepts. (== resource_for `$api_version`.targetTcpProxies ==) class TargetTcpProxy include Google::Apis::Core::Hashable @@ -35499,8 +35608,8 @@ module Google # Represents a Target VPN Gateway resource. # The target VPN gateway resource represents a Classic Cloud VPN gateway. For - # more information, read the the Cloud VPN Overview. (== resource_for beta. - # targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==) + # more information, read the the Cloud VPN Overview. (== resource_for `$ + # api_version`.targetVpnGateways ==) class TargetVpnGateway include Google::Apis::Core::Hashable @@ -36176,12 +36285,19 @@ module Google end # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. class UrlMap include Google::Apis::Core::Hashable @@ -36757,12 +36873,19 @@ module Google include Google::Apis::Core::Hashable # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeAlpha::UrlMap] attr_accessor :resource @@ -37834,7 +37957,7 @@ module Google # Represents a Cloud VPN Tunnel resource. # For more information about VPN, read the the Cloud VPN Overview. (== - # resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==) + # resource_for `$api_version`.vpnTunnels ==) class VpnTunnel include Google::Apis::Core::Hashable @@ -38621,8 +38744,7 @@ module Google # Represents a Zone resource. # A zone is a deployment area. These deployment areas are subsets of a region. # For example the zone us-east1-a is located in the us-east1 region. For more - # information, read Regions and Zones. (== resource_for beta.zones ==) (== - # resource_for v1.zones ==) + # information, read Regions and Zones. (== resource_for `$api_version`.zones ==) class Zone include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index a5de75f8b..4d23c1a35 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -1018,6 +1018,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDuration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GrpcServiceConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5851,6 +5857,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :max_scaled_down_replicas, as: 'maxScaledDownReplicas', class: Google::Apis::ComputeAlpha::FixedOrPercent, decorator: Google::Apis::ComputeAlpha::FixedOrPercent::Representation + property :time_window, as: 'timeWindow', class: Google::Apis::ComputeAlpha::GoogleDuration, decorator: Google::Apis::ComputeAlpha::GoogleDuration::Representation + property :time_window_sec, as: 'timeWindowSec' end end @@ -6273,7 +6281,7 @@ module Google property :end_timestamp, as: 'endTimestamp' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' - collection :license_resources, as: 'licenseResources', class: Google::Apis::ComputeAlpha::LicenseResourceCommitment, decorator: Google::Apis::ComputeAlpha::LicenseResourceCommitment::Representation + property :license_resource, as: 'licenseResource', class: Google::Apis::ComputeAlpha::LicenseResourceCommitment, decorator: Google::Apis::ComputeAlpha::LicenseResourceCommitment::Representation property :name, as: 'name' property :plan, as: 'plan' @@ -7176,6 +7184,14 @@ module Google end end + class GoogleDuration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :nanos, as: 'nanos' + property :seconds, :numeric_string => true, as: 'seconds' + end + end + class GrpcServiceConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9721,12 +9737,10 @@ module Google property :i_pv4_range, as: 'IPv4Range' property :auto_create_subnetworks, as: 'autoCreateSubnetworks' property :creation_timestamp, as: 'creationTimestamp' - property :cross_vm_encryption, as: 'crossVmEncryption' property :description, as: 'description' property :gateway_i_pv4, as: 'gatewayIPv4' 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' @@ -10201,6 +10215,8 @@ module Google class NodeGroupNode # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation + collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::LocalDisk, decorator: Google::Apis::ComputeAlpha::LocalDisk::Representation collection :instances, as: 'instances' @@ -10305,6 +10321,8 @@ module Google class NodeTemplate # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation + property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::LocalDisk, decorator: Google::Apis::ComputeAlpha::LocalDisk::Representation @@ -13683,6 +13701,7 @@ module Google property :kind, as: 'kind' property :name, as: 'name' property :nat_policy, as: 'natPolicy' + property :network, as: 'network' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' property :zone, as: 'zone' diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 7b43e2326..2df1eee34 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -5570,14 +5570,17 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified Operations resource until it is done or timeout, and - # retrieves the specified Operations resource. 1. Immediately returns when the - # operation is already done. 2. Waits for no more than the default deadline (2 - # minutes, subject to change) and then returns the current state of the - # operation, which may be DONE or still in progress. 3. Is best-effort: a. The - # server can wait less than the default deadline or zero seconds, in overload - # situations. b. There is no guarantee that the operation is actually done when - # returns. 4. User should be prepared to retry if the operation is not DONE. + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the + # operation is not DONE. # @param [String] project # Project ID for this request. # @param [String] operation @@ -5756,14 +5759,17 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified Operations resource until it is done or timeout, and - # retrieves the specified Operations resource. 1. Immediately returns when the - # operation is already done. 2. Waits for no more than the default deadline (2 - # minutes, subject to change) and then returns the current state of the - # operation, which may be DONE or still in progress. 3. Is best-effort: a. The - # server can wait less than the default deadline or zero seconds, in overload - # situations. b. There is no guarantee that the operation is actually done when - # returns. 4. User should be prepared to retry if the operation is not DONE. + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the + # operation is not DONE. # @param [String] operation # Name of the Operations resource to return. # @param [String] parent_id @@ -24513,14 +24519,16 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified region-specific Operations resource until it is done - # or timeout, and retrieves the specified Operations resource. 1. Immediately - # returns when the operation is already done. 2. Waits for no more than the - # default deadline (2 minutes, subject to change) and then returns the current - # state of the operation, which may be DONE or still in progress. 3. Is best- - # effort: a. The server can wait less than the default deadline or zero seconds, - # in overload situations. b. There is no guarantee that the operation is - # actually done when returns. 4. User should be prepared to retry if the + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the # operation is not DONE. # @param [String] project # Project ID for this request. @@ -34649,14 +34657,16 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified zone-specific Operations resource until it is done or - # timeout, and retrieves the specified Operations resource. 1. Immediately - # returns when the operation is already done. 2. Waits for no more than the - # default deadline (2 minutes, subject to change) and then returns the current - # state of the operation, which may be DONE or still in progress. 3. Is best- - # effort: a. The server can wait less than the default deadline or zero seconds, - # in overload situations. b. There is no guarantee that the operation is - # actually done when returns. 4. User should be prepared to retry if the + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the # operation is not DONE. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index e89ed4019..3a0b8242e 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 = '20191125' + REVISION = '20200104' # 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 ad14b0d63..02ed1fa4d 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -56,8 +56,7 @@ module Google # Google Cloud Platform provides graphics processing units (accelerators) that # you can add to VM instances to improve or accelerate performance when working # with intensive workloads. For more information, read GPUs on Compute Engine. (= - # = resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes = - # =) + # = resource_for `$api_version`.acceleratorTypes ==) class AcceleratorType include Google::Apis::Core::Hashable @@ -527,21 +526,22 @@ module Google end end - # Represents an IP Address resource. - # An address resource represents a regional internal IP address. Regional - # internal IP addresses are RFC 1918 addresses that come from either a primary - # or secondary IP range of a subnet in a VPC network. Regional external IP - # addresses can be assigned to GCP VM instances, Cloud VPN gateways, regional - # external forwarding rules for network load balancers (in either Standard or - # Premium Tier), and regional external forwarding rules for HTTP(S), SSL Proxy, - # and TCP Proxy load balancers in Standard Tier. For more information, read IP - # addresses. - # A globalAddresses resource represent a global external IP address. Global - # external IP addresses are IPv4 or IPv6 addresses. They can only be assigned to - # global forwarding rules for HTTP(S), SSL Proxy, or TCP Proxy load balancers in - # Premium Tier. For more information, read Global resources. (== resource_for - # beta.addresses ==) (== resource_for v1.addresses ==) (== resource_for beta. - # globalAddresses ==) (== resource_for v1.globalAddresses ==) + # Use global external addresses for GFE-based external HTTP(S) load balancers in + # Premium Tier. + # Use global internal addresses for reserved peering network range. + # Use regional external addresses for the following resources: + # - External IP addresses for VM instances - Regional external forwarding rules - + # Cloud NAT external IP addresses - GFE based LBs in Standard Tier - Network + # LBs in Premium or Standard Tier - Cloud VPN gateways (both Classic and HA) + # Use regional internal IP addresses for subnet IP ranges (primary and secondary) + # . This includes: + # - Internal IP addresses for VM instances - Alias IP ranges of VM instances (/ + # 32 only) - Regional internal forwarding rules - Internal TCP/UDP load balancer + # addresses - Internal HTTP(S) load balancer addresses - Cloud DNS inbound + # forwarding IP addresses + # For more information, read reserved IP address. + # (== resource_for `$api_version`.addresses ==) (== resource_for `$api_version`. + # globalAddresses ==) class Address include Google::Apis::Core::Hashable @@ -1196,6 +1196,11 @@ module Google # @return [Google::Apis::ComputeBeta::CustomerEncryptionKey] attr_accessor :disk_encryption_key + # The size of the disk in GB. + # Corresponds to the JSON property `diskSizeGb` + # @return [Fixnum] + attr_accessor :disk_size_gb + # A list of features to enable on the guest operating system. Applicable only # for bootable images. Read Enabling guest operating system features to see a # list of available options. @@ -1274,6 +1279,7 @@ module Google @boot = args[:boot] if args.key?(:boot) @device_name = args[:device_name] if args.key?(:device_name) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @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) @@ -1520,14 +1526,16 @@ module Google end # Represents an Autoscaler resource. + # Google Compute Engine has two Autoscaler resources: + # * [Global](/compute/docs/reference/rest/latest/autoscalers) * [Regional](/ + # compute/docs/reference/rest/latest/regionAutoscalers) # Use autoscalers to automatically add or delete instances from a managed # instance group according to your defined autoscaling policy. For more # information, read Autoscaling Groups of Instances. # For zonal managed instance groups resource, use the autoscaler resource. # For regional managed instance groups, use the regionAutoscalers resource. (== - # resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== - # resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers = - # =) + # resource_for `$api_version`.autoscalers ==) (== resource_for `$api_version`. + # regionAutoscalers ==) class Autoscaler include Google::Apis::Core::Hashable @@ -2080,6 +2088,13 @@ module Google # @return [String] attr_accessor :mode + # Configuration that allows for slower scale down so that even if Autoscaler + # recommends an abrupt scale down of a MIG, it will be throttled as specified by + # the parameters below. + # Corresponds to the JSON property `scaleDownControl` + # @return [Google::Apis::ComputeBeta::AutoscalingPolicyScaleDownControl] + attr_accessor :scale_down_control + def initialize(**args) update!(**args) end @@ -2093,6 +2108,7 @@ module Google @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) @mode = args[:mode] if args.key?(:mode) + @scale_down_control = args[:scale_down_control] if args.key?(:scale_down_control) end end @@ -2230,6 +2246,62 @@ module Google end end + # Configuration that allows for slower scale down so that even if Autoscaler + # recommends an abrupt scale down of a MIG, it will be throttled as specified by + # the parameters below. + class AutoscalingPolicyScaleDownControl + include Google::Apis::Core::Hashable + + # Encapsulates numeric value that can be either absolute or relative. + # Corresponds to the JSON property `maxScaledDownReplicas` + # @return [Google::Apis::ComputeBeta::FixedOrPercent] + attr_accessor :max_scaled_down_replicas + + # A Duration represents a signed, 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". It is related + # to Timestamp in that the difference between two Timestamp values is a Duration + # and it can be added or subtracted from a Timestamp. Range is approximately +- + # 10,000 years. + # # Examples + # Example 1: Compute Duration from two Timestamps in pseudo code. + # Timestamp start = ...; Timestamp end = ...; Duration duration = ...; + # duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - + # start.nanos; + # if (duration.seconds 0) ` duration.seconds += 1; duration.nanos -= 1000000000; + # ` else if (duration.seconds > 0 && duration.nanos < 0) ` duration.seconds -= + # 1; duration.nanos += 1000000000; ` + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # Timestamp start = ...; Duration duration = ...; Timestamp end = ...; + # end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + + # duration.nanos; + # if (end.nanos = 1000000000) ` end.seconds += 1; end.nanos -= 1000000000; ` + # Example 3: Compute Duration from datetime.timedelta in Python. + # td = datetime.timedelta(days=3, minutes=10) duration = Duration() duration. + # FromTimedelta(td) + # # JSON Mapping + # In JSON format, the Duration type is encoded as a string rather than an object, + # where the string ends in the suffix "s" (indicating seconds) and is preceded + # by the number of seconds, with nanoseconds expressed as fractional seconds. + # For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as " + # 3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3. + # 000000001s", and 3 seconds and 1 microsecond should be expressed in JSON + # format as "3.000001s". + # Corresponds to the JSON property `timeWindow` + # @return [Google::Apis::ComputeBeta::GoogleDuration] + attr_accessor :time_window + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_scaled_down_replicas = args[:max_scaled_down_replicas] if args.key?(:max_scaled_down_replicas) + @time_window = args[:time_window] if args.key?(:time_window) + end + end + # Message containing information of one individual backend. class Backend include Google::Apis::Core::Hashable @@ -2635,8 +2707,12 @@ module Google # Represents a Backend Service resource. # A backend service contains configuration values for Google Cloud Platform load # balancing services. + # Backend services in Google Compute Engine can be either regionally or globally + # scoped. + # * [Global](/compute/docs/reference/rest/latest/backendServices) * [Regional](/ + # compute/docs/reference/rest/latest/regionBackendServices) # For more information, read Backend Services. - # (== resource_for v1.backendService ==) (== resource_for beta.backendService ==) + # (== resource_for `$api_version`.backendService ==) class BackendService include Google::Apis::Core::Hashable @@ -2714,9 +2790,11 @@ module Google # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for # health checking this BackendService. Currently at most one health check can be - # specified, and a health check is required for Compute Engine backend services. - # A health check must not be specified for App Engine backend and Cloud Function - # backend. + # specified. Health check is optional for Compute Engine backend services if + # there is no backend. A health check must not be specified when adding Internet + # Network Endpoint Group or Serverless Network Endpoint Group as backends. In + # all other cases, a health check is required for Compute Engine backend + # services. # For internal load balancing, a URL to a HealthCheck resource must be specified # instead. # Corresponds to the JSON property `healthChecks` @@ -3710,7 +3788,7 @@ module Google # * `group:`emailid``: An email address that represents a Google group. For # example, `admins@example.com`. # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For example,` + # identifier) representing a user that has been recently deleted. For example, ` # alice@example.com?uid=123456789012345678901`. If the user is recovered, this # value reverts to `user:`emailid`` and the recovered user retains the role in # the binding. @@ -3894,8 +3972,8 @@ module Google # 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 discounted rates. For full details, read - # Signing Up for Committed Use Discounts. (== resource_for beta. - # regionCommitments ==) (== resource_for v1.regionCommitments ==) + # Signing Up for Committed Use Discounts. (== resource_for `$api_version`. + # regionCommitments ==) class Commitment include Google::Apis::Core::Hashable @@ -4525,8 +4603,8 @@ module Google # @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. + # Specifies how long results of a preflight request can be cached in seconds. + # This translates to the Access-Control-Max-Age header. # Corresponds to the JSON property `maxAge` # @return [Fixnum] attr_accessor :max_age @@ -4684,15 +4762,17 @@ module Google end # Represents a Persistent Disk resource. + # Google Compute Engine has two Disk resources: + # * [Global](/compute/docs/reference/rest/latest/disks) * [Regional](/compute/ + # docs/reference/rest/latest/regionDisks) # Persistent disks are required for running your VM instances. Create both boot # and non-boot (data) persistent disks. For more information, read Persistent # Disks. For more storage options, read Storage options. # The disks resource represents a zonal persistent disk. For more information, # read Zonal persistent disks. # The regionDisks resource represents a regional persistent disk. For more - # information, read Regional resources. (== resource_for beta.disks ==) (== - # resource_for v1.disks ==) (== resource_for v1.regionDisks ==) (== resource_for - # beta.regionDisks ==) + # information, read Regional resources. (== resource_for `$api_version`.disks == + # ) (== resource_for `$api_version`.regionDisks ==) class Disk include Google::Apis::Core::Hashable @@ -5284,14 +5364,16 @@ module Google end # Represents a Disk Type resource. + # Google Compute Engine has two Disk Type resources: + # * [Global](/compute/docs/reference/rest/latest/diskTypes) * [Regional](/ + # compute/docs/reference/rest/latest/regionDiskTypes) # You can choose from a variety of disk types based on your needs. For more # information, read Storage options. # The diskTypes resource represents disk types for a zonal persistent disk. For # more information, read Zonal persistent disks. # The regionDiskTypes resource represents disk types for a regional persistent - # disk. For more information, read Regional persistent disks. (== resource_for - # beta.diskTypes ==) (== resource_for v1.diskTypes ==) (== resource_for v1. - # regionDiskTypes ==) (== resource_for beta.regionDiskTypes ==) + # disk. For more information, read Regional persistent disks. (== resource_for `$ + # api_version`.diskTypes ==) (== resource_for `$api_version`.regionDiskTypes ==) class DiskType include Google::Apis::Core::Hashable @@ -6152,7 +6234,7 @@ module Google end # External VPN gateway is the on-premises VPN gateway(s) or another cloud - # provider?s VPN gateway that connects to your Google Cloud VPN gateway. To + # provider's VPN gateway that connects to your Google Cloud VPN gateway. To # create a highly available VPN from Google Cloud to your on-premises side or # another Cloud provider's VPN gateway, you must create a external VPN gateway # resource in GCP, which provides the information to GCP about your external VPN @@ -6261,7 +6343,7 @@ module Google # IP address of the interface in the external VPN gateway. Only IPv4 is # supported. This IP address can be either from your on-premise gateway or - # another Cloud provider?s VPN gateway, it cannot be an IP address from Google + # another Cloud provider's VPN gateway, it cannot be an IP address from Google # Compute Engine. # Corresponds to the JSON property `ipAddress` # @return [String] @@ -6796,6 +6878,13 @@ module Google attr_accessor :enable alias_method :enable?, :enable + # This field can only be specified for a particular firewall rule if logging is + # enabled for that rule. This field denotes whether to include or exclude + # metadata for firewall logs. + # Corresponds to the JSON property `metadata` + # @return [String] + attr_accessor :metadata + def initialize(**args) update!(**args) end @@ -6803,6 +6892,7 @@ module Google # Update properties of this object def update!(**args) @enable = args[:enable] if args.key?(:enable) + @metadata = args[:metadata] if args.key?(:metadata) end end @@ -6847,16 +6937,18 @@ module Google end # Represents a Forwarding Rule resource. + # Forwarding rule resources in GCP can be either regional or global in scope: + # * [Global](/compute/docs/reference/rest/latest/globalForwardingRules) * [ + # Regional](/compute/docs/reference/rest/latest/forwardingRules) # A forwarding rule and its corresponding IP address represent the frontend # configuration of a Google Cloud Platform load balancer. Forwarding rules can # also reference target instances and Cloud VPN Classic gateways ( # targetVpnGateway). # For more information, read Forwarding rule concepts and Using protocol # forwarding. - # (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules = - # =) (== resource_for beta.globalForwardingRules ==) (== resource_for v1. - # globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== - # resource_for v1.regionForwardingRules ==) + # (== resource_for `$api_version`.forwardingRules ==) (== resource_for `$ + # api_version`.globalForwardingRules ==) (== resource_for `$api_version`. + # regionForwardingRules ==) class ForwardingRule include Google::Apis::Core::Hashable @@ -6991,13 +7083,20 @@ module Google # @return [Hash] attr_accessor :labels - # Specifies the forwarding rule type. EXTERNAL is used for: - Classic Cloud VPN - # gateways - Protocol forwarding to VMs from an external IP address - The - # following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP. - # INTERNAL is used for: - Protocol forwarding to VMs from an internal IP address + # Specifies the forwarding rule type. + # + # - EXTERNAL is used for: + # - Classic Cloud VPN gateways + # - Protocol forwarding to VMs from an external IP address + # - The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/ + # UDP + # - INTERNAL is used for: + # - Protocol forwarding to VMs from an internal IP address # - Internal TCP/UDP load balancers - # INTERNAL_MANAGED is used for: - Internal HTTP(S) load balancers - # INTERNAL_SELF_MANAGED is used for: - Traffic Director + # - INTERNAL_MANAGED is used for: + # - Internal HTTP(S) load balancers + # - >INTERNAL_SELF_MANAGED is used for: + # - Traffic Director # For more information about forwarding rules, refer to Forwarding rule concepts. # Corresponds to the JSON property `loadBalancingScheme` # @return [String] @@ -7131,8 +7230,8 @@ module Google # forwarding rules, this target must live in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets - # are valid. + # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy is + # valid, not targetHttpsProxy. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -7518,6 +7617,44 @@ module Google end end + # + class GlobalNetworkEndpointGroupsAttachEndpointsRequest + include Google::Apis::Core::Hashable + + # The list of network endpoints to be attached. + # Corresponds to the JSON property `networkEndpoints` + # @return [Array] + attr_accessor :network_endpoints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints) + end + end + + # + class GlobalNetworkEndpointGroupsDetachEndpointsRequest + include Google::Apis::Core::Hashable + + # The list of network endpoints to be detached. + # Corresponds to the JSON property `networkEndpoints` + # @return [Array] + attr_accessor :network_endpoints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints) + end + end + # class GlobalSetLabelsRequest include Google::Apis::Core::Hashable @@ -7616,6 +7753,66 @@ module Google end end + # A Duration represents a signed, 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". It is related + # to Timestamp in that the difference between two Timestamp values is a Duration + # and it can be added or subtracted from a Timestamp. Range is approximately +- + # 10,000 years. + # # Examples + # Example 1: Compute Duration from two Timestamps in pseudo code. + # Timestamp start = ...; Timestamp end = ...; Duration duration = ...; + # duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - + # start.nanos; + # if (duration.seconds 0) ` duration.seconds += 1; duration.nanos -= 1000000000; + # ` else if (duration.seconds > 0 && duration.nanos < 0) ` duration.seconds -= + # 1; duration.nanos += 1000000000; ` + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # Timestamp start = ...; Duration duration = ...; Timestamp end = ...; + # end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + + # duration.nanos; + # if (end.nanos = 1000000000) ` end.seconds += 1; end.nanos -= 1000000000; ` + # Example 3: Compute Duration from datetime.timedelta in Python. + # td = datetime.timedelta(days=3, minutes=10) duration = Duration() duration. + # FromTimedelta(td) + # # JSON Mapping + # In JSON format, the Duration type is encoded as a string rather than an object, + # where the string ends in the suffix "s" (indicating seconds) and is preceded + # by the number of seconds, with nanoseconds expressed as fractional seconds. + # For example, 3 seconds with 0 nanoseconds should be encoded in JSON format as " + # 3s", while 3 seconds and 1 nanosecond should be expressed in JSON format as "3. + # 000000001s", and 3 seconds and 1 microsecond should be expressed in JSON + # format as "3.000001s". + class GoogleDuration + include Google::Apis::Core::Hashable + + # Signed fractions of a second at nanosecond resolution of the span of time. + # Durations less than one second are represented with a 0 `seconds` field and a + # positive or negative `nanos` field. For durations of one second or more, a non- + # zero value for the `nanos` field must be of the same sign as the `seconds` + # field. Must be from -999,999,999 to +999,999,999 inclusive. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # Signed seconds of the span of time. Must be from -315,576,000,000 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 + # A guest attributes entry. class GuestAttributes include Google::Apis::Core::Hashable @@ -7762,20 +7959,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTP2 health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTP2 health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -7839,20 +8029,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTP health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTP health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -7916,20 +8099,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTPS health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTPS health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -7969,8 +8145,12 @@ module Google end # Represents a Health Check resource. - # Health checks are used for most GCP load balancers and managed instance group - # auto-healing. For more information, read Health Check Concepts. + # Google Compute Engine has two Health Check resources: + # * [Global](/compute/docs/reference/rest/latest/healthChecks) * [Regional](/ + # compute/docs/reference/rest/latest/regionHealthChecks) + # Internal HTTP(S) load balancers use regional health checks. All other types of + # GCP load balancers and managed instance group auto-healing use global health + # checks. For more information, read Health Check Concepts. # To perform health checks on network load balancers, you must use either # httpHealthChecks or httpsHealthChecks. class HealthCheck @@ -9115,7 +9295,9 @@ module Google # 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. + # pathRedirect cannot be supplied together with prefixRedirect. Supply one alone + # or neither. If neither is supplied, the path of the original request will be + # used for the redirect. # The value must be between 1 and 1024 characters. # Corresponds to the JSON property `pathRedirect` # @return [String] @@ -9123,6 +9305,10 @@ module Google # The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, # retaining the remaining portion of the URL before redirecting the request. + # prefixRedirect cannot be supplied together with pathRedirect. Supply one alone + # or neither. If neither is supplied, the path of the original request will be + # used for the redirect. + # The value must be between 1 and 1024 characters. # Corresponds to the JSON property `prefixRedirect` # @return [String] attr_accessor :prefix_redirect @@ -9691,8 +9877,7 @@ module Google # Represents an Image resource. # You can use images to create boot disks for your VM instances. For more - # information, read Images. (== resource_for beta.images ==) (== resource_for v1. - # images ==) + # information, read Images. (== resource_for `$api_version`.images ==) class Image include Google::Apis::Core::Hashable @@ -10079,8 +10264,8 @@ module Google # Represents an Instance resource. # An instance is a virtual machine that is hosted on Google Cloud Platform. For - # more information, read Virtual Machine Instances. (== resource_for beta. - # instances ==) (== resource_for v1.instances ==) + # more information, read Virtual Machine Instances. (== resource_for `$ + # api_version`.instances ==) class Instance include Google::Apis::Core::Hashable @@ -10225,6 +10410,11 @@ module Google # @return [Google::Apis::ComputeBeta::ReservationAffinity] attr_accessor :reservation_affinity + # Resource policies applied to this instance. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] @@ -10333,6 +10523,7 @@ module Google @name = args[:name] if args.key?(:name) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @scheduling = args[:scheduling] if args.key?(:scheduling) @self_link = args[:self_link] if args.key?(:self_link) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @@ -10477,9 +10668,8 @@ module Google # groups of heterogeneous instances or if you need to manage the instances # yourself. You cannot create regional unmanaged instance groups. # For more information, read Instance groups. - # (== resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) - # (== resource_for beta.regionInstanceGroups ==) (== resource_for v1. - # regionInstanceGroups ==) + # (== resource_for `$api_version`.instanceGroups ==) (== resource_for `$ + # api_version`.regionInstanceGroups ==) class InstanceGroup include Google::Apis::Core::Hashable @@ -10826,9 +11016,8 @@ module Google # single entity. For more information, read Instance groups. # For zonal Managed Instance Group, use the instanceGroupManagers resource. # For regional Managed Instance Group, use the regionInstanceGroupManagers - # resource. (== resource_for beta.instanceGroupManagers ==) (== resource_for v1. - # instanceGroupManagers ==) (== resource_for beta.regionInstanceGroupManagers ==) - # (== resource_for v1.regionInstanceGroupManagers ==) + # resource. (== resource_for `$api_version`.instanceGroupManagers ==) (== + # resource_for `$api_version`.regionInstanceGroupManagers ==) class InstanceGroupManager include Google::Apis::Core::Hashable @@ -12992,8 +13181,8 @@ module Google # Represents an Instance Template resource. # You can use instance templates to create VM instances and managed instance - # groups. For more information, read Instance Templates. (== resource_for beta. - # instanceTemplates ==) (== resource_for v1.instanceTemplates ==) + # groups. For more information, read Instance Templates. (== resource_for `$ + # api_version`.instanceTemplates ==) class InstanceTemplate include Google::Apis::Core::Hashable @@ -13510,8 +13699,7 @@ module Google # Represents an Interconnect resource. # An Interconnect resource is a dedicated connection between the GCP network and # your on-premises network. For more information, read the Dedicated - # Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for - # beta.interconnects ==) + # Interconnect Overview. (== resource_for `$api_version`.interconnects ==) class Interconnect include Google::Apis::Core::Hashable @@ -13727,8 +13915,8 @@ module Google # Represents an Interconnect Attachment (VLAN) resource. # You can use Interconnect attachments (VLANS) to connect your Virtual Private # Cloud networks to your on-premises networks through an Interconnect. For more - # information, read Creating VLAN Attachments. (== resource_for beta. - # interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) + # information, read Creating VLAN Attachments. (== resource_for `$api_version`. + # interconnectAttachments ==) class InterconnectAttachment include Google::Apis::Core::Hashable @@ -13765,7 +13953,7 @@ module Google # prefixes must be within link-local address space (169.254.0.0/16) and must be / # 29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 # from the supplied candidate prefix(es). The request will fail if all possible / - # 29s are in use on Google?s edge. If not supplied, Google will randomly select + # 29s are in use on Google's edge. If not supplied, Google will randomly select # an unused /29 from all of link-local space. # Corresponds to the JSON property `candidateSubnets` # @return [Array] @@ -14236,7 +14424,7 @@ module Google include Google::Apis::Core::Hashable # Plain text name of the Interconnect this attachment is connected to, as - # displayed in the Partner?s portal. For instance "Chicago 1". This value may be + # displayed in the Partner's portal. For instance "Chicago 1". This value may be # validated to match approved Partner values. # Corresponds to the JSON property `interconnectName` # @return [String] @@ -14248,7 +14436,7 @@ module Google # @return [String] attr_accessor :partner_name - # URL of the Partner?s portal for this Attachment. Partners may customise this + # URL of the Partner's portal for this Attachment. Partners may customise this # to be a deep link to the specific resource on the Partner portal. This value # may be validated to match approved Partner values. # Corresponds to the JSON property `portalUrl` @@ -14414,7 +14602,7 @@ module Google end # Diagnostics information about interconnect, contains detailed and current - # technical information about Google?s side of the connection. + # technical information about Google's side of the connection. class InterconnectDiagnostics include Google::Apis::Core::Hashable @@ -14477,12 +14665,12 @@ module Google class InterconnectDiagnosticsLinkLacpStatus include Google::Apis::Core::Hashable - # System ID of the port on Google?s side of the LACP exchange. + # System ID of the port on Google's side of the LACP exchange. # Corresponds to the JSON property `googleSystemId` # @return [String] attr_accessor :google_system_id - # System ID of the port on the neighbor?s side of the LACP exchange. + # System ID of the port on the neighbor's side of the LACP exchange. # Corresponds to the JSON property `neighborSystemId` # @return [String] attr_accessor :neighbor_system_id @@ -15070,7 +15258,7 @@ module Google include Google::Apis::Core::Hashable # Diagnostics information about interconnect, contains detailed and current - # technical information about Google?s side of the connection. + # technical information about Google's side of the connection. # Corresponds to the JSON property `result` # @return [Google::Apis::ComputeBeta::InterconnectDiagnostics] attr_accessor :result @@ -15804,7 +15992,7 @@ module Google # Represents a Machine Type resource. # You can use specific machine types for your VM instances based on performance # and pricing requirements. For more information, read Machine Types. (== - # resource_for v1.machineTypes ==) (== resource_for beta.machineTypes ==) + # resource_for `$api_version`.machineTypes ==) class MachineType include Google::Apis::Core::Hashable @@ -16616,8 +16804,8 @@ module Google # Represents a VPC Network resource. # Networks connect resources to each other and to the internet. For more - # information, read Virtual Private Cloud (VPC) Network. (== resource_for v1. - # networks ==) (== resource_for beta.networks ==) + # information, read Virtual Private Cloud (VPC) Network. (== resource_for `$ + # api_version`.networks ==) class Network include Google::Apis::Core::Hashable @@ -16723,6 +16911,12 @@ module Google class NetworkEndpoint include Google::Apis::Core::Hashable + # Optional fully qualified domain name of network endpoint. This can only be + # specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT. + # Corresponds to the JSON property `fqdn` + # @return [String] + attr_accessor :fqdn + # The name for a specific VM instance that the IP address belongs to. This is # required for network endpoints of type GCE_VM_IP_PORT. The instance must be in # the same zone of network endpoint group. @@ -16753,6 +16947,7 @@ module Google # Update properties of this object def update!(**args) + @fqdn = args[:fqdn] if args.key?(:fqdn) @instance = args[:instance] if args.key?(:instance) @ip_address = args[:ip_address] if args.key?(:ip_address) @port = args[:port] if args.key?(:port) @@ -16761,8 +16956,7 @@ module Google # Represents a collection of network endpoints. # For more information read Setting up network endpoint groups in load balancing. - # (== resource_for v1.networkEndpointGroups ==) (== resource_for beta. - # networkEndpointGroups ==) Next ID: 21 + # (== resource_for `$api_version`.networkEndpointGroups ==) Next ID: 21 class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -17844,8 +18038,7 @@ module Google # instances only for your specific project. Use sole-tenant nodes to keep your # instances physically separated from instances in other projects, or to group # your instances together on the same host hardware. For more information, read - # Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1. - # nodeGroups ==) + # Sole-tenant nodes. (== resource_for `$api_version`.nodeGroups ==) class NodeGroup include Google::Apis::Core::Hashable @@ -18533,8 +18726,8 @@ module Google # Represent a sole-tenant Node Template resource. # You can use a template to define properties for nodes in a node group. For - # more information, read Creating node groups and instances. (== resource_for - # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) + # more information, read Creating node groups and instances. (== resource_for `$ + # api_version`.nodeTemplates ==) (== NextID: 18 ==) class NodeTemplate include Google::Apis::Core::Hashable @@ -19007,7 +19200,7 @@ module Google # total amount of cores and memory for that node. Currently, the only available # node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, # available in multiple zones. For more information read Node types. (== - # resource_for beta.nodeTypes ==) (== resource_for v1.nodeTypes ==) + # resource_for `$api_version`.nodeTypes ==) class NodeType include Google::Apis::Core::Hashable @@ -19423,6 +19616,10 @@ module Google end # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/latest/globalOperations) * [Regional](/ + # compute/docs/reference/rest/latest/regionOperations) * [Zonal](/compute/docs/ + # reference/rest/latest/zoneOperations) # You can use an operation resource to manage asynchronous API requests. For # more information, read Handling API responses. # Operations can be global, regional or zonal. @@ -19430,10 +19627,9 @@ module Google # - For regional operations, use the regionOperations resource. # - For zonal operations, use the zonalOperations resource. # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) class Operation include Google::Apis::Core::Hashable @@ -21202,8 +21398,8 @@ module Google # Represents a Project resource. # A project is used to organize resources in a Google Cloud Platform environment. - # For more information, read about the Resource Hierarchy. (== resource_for v1. - # projects ==) (== resource_for beta.projects ==) + # For more information, read about the Resource Hierarchy. (== resource_for `$ + # api_version`.projects ==) class Project include Google::Apis::Core::Hashable @@ -21495,8 +21691,8 @@ module Google # Represents a Region resource. # A region is a geographical area where a resource is located. For more - # information, read Regions and Zones. (== resource_for beta.regions ==) (== - # resource_for v1.regions ==) + # information, read Regions and Zones. (== resource_for `$api_version`.regions == + # ) class Region include Google::Apis::Core::Hashable @@ -22939,12 +23135,19 @@ module Google include Google::Apis::Core::Hashable # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeBeta::UrlMap] attr_accessor :resource @@ -22983,8 +23186,8 @@ module Google # Represents a reservation resource. A reservation ensures that capacity is held # in a specific zone even if the reserved VMs are not running. For more - # information, read Reserving zonal resources. (== resource_for beta. - # reservations ==) (== resource_for v1.reservations ==) + # information, read Reserving zonal resources. (== resource_for `$api_version`. + # reservations ==) class Reservation include Google::Apis::Core::Hashable @@ -23621,6 +23824,12 @@ module Google # @return [String] attr_accessor :description + # A GroupPlacementPolicy specifies resource placement configuration. It + # specifies the failure bucket separation as well as network locality + # Corresponds to the JSON property `groupPlacementPolicy` + # @return [Google::Apis::ComputeBeta::ResourcePolicyGroupPlacementPolicy] + attr_accessor :group_placement_policy + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -23674,6 +23883,7 @@ module Google def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @group_placement_policy = args[:group_placement_policy] if args.key?(:group_placement_policy) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @@ -23841,6 +24051,40 @@ module Google end end + # A GroupPlacementPolicy specifies resource placement configuration. It + # specifies the failure bucket separation as well as network locality + class ResourcePolicyGroupPlacementPolicy + include Google::Apis::Core::Hashable + + # The number of availability domains instances will be spread across. If two + # instances are in different availability domain, they will not be put in the + # same low latency network + # Corresponds to the JSON property `availabilityDomainCount` + # @return [Fixnum] + attr_accessor :availability_domain_count + + # Specifies network collocation + # Corresponds to the JSON property `collocation` + # @return [String] + attr_accessor :collocation + + # Number of vms in this placement group + # Corresponds to the JSON property `vmCount` + # @return [Fixnum] + attr_accessor :vm_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @availability_domain_count = args[:availability_domain_count] if args.key?(:availability_domain_count) + @collocation = args[:collocation] if args.key?(:collocation) + @vm_count = args[:vm_count] if args.key?(:vm_count) + end + end + # Time window specified for hourly operations. class ResourcePolicyHourlyCycle include Google::Apis::Core::Hashable @@ -24093,7 +24337,7 @@ module Google class ResourcePolicySnapshotSchedulePolicySnapshotProperties include Google::Apis::Core::Hashable - # Indication to perform a ?guest aware? snapshot. + # Indication to perform a 'guest aware' snapshot. # Corresponds to the JSON property `guestFlush` # @return [Boolean] attr_accessor :guest_flush @@ -24178,8 +24422,8 @@ module Google # Represents a Route resource. # A route defines a path from VM instances in the VPC network to a specific # destination. This destination can be inside or outside the VPC network. For - # more information, read the Routes overview. (== resource_for beta.routes ==) (= - # = resource_for v1.routes ==) + # more information, read the Routes overview. (== resource_for `$api_version`. + # routes ==) class Route include Google::Apis::Core::Hashable @@ -24791,7 +25035,7 @@ module Google # peer. Hold time is three times the interval at which keepalive messages are # sent, and the hold time is the maximum number of seconds allowed to elapse # between successive keepalive messages that BGP receives from a peer. BGP will - # use the smaller of either the local hold time value or the peer?s hold time + # use the smaller of either the local hold time value or the peer's hold time # value as the hold time for the BGP connection between the two peers. If set, # this value must be between 1 and 120. The default is 20. # Corresponds to the JSON property `keepaliveInterval` @@ -25741,20 +25985,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, SSL health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, SSL health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -26049,8 +26286,7 @@ module Google # Represents a Cloud Armor Security Policy resource. # Only external backend services that use load balancers can reference a # Security Policy. For more information, read Cloud Armor Security Policy - # Concepts. (== resource_for v1.securityPolicies ==) (== resource_for beta. - # securityPolicies ==) + # Concepts. (== resource_for `$api_version`.securityPolicies ==) class SecurityPolicy include Google::Apis::Core::Hashable @@ -26748,8 +26984,8 @@ module Google # Represents a Persistent Disk Snapshot resource. # You can use snapshots to back up data on a regular interval. For more - # information, read Creating persistent disk snapshots. (== resource_for beta. - # snapshots ==) (== resource_for v1.snapshots ==) + # information, read Creating persistent disk snapshots. (== resource_for `$ + # api_version`.snapshots ==) class Snapshot include Google::Apis::Core::Hashable @@ -26776,6 +27012,11 @@ module Google # @return [Fixnum] attr_accessor :disk_size_gb + # [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + # Corresponds to the JSON property `downloadBytes` + # @return [Fixnum] + attr_accessor :download_bytes + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -26892,6 +27133,7 @@ module Google @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @download_bytes = args[:download_bytes] if args.key?(:download_bytes) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @@ -27190,12 +27432,17 @@ module Google end # Represents an SSL Certificate resource. + # Google Compute Engine has two SSL Certificate resources: + # * [Global](/compute/docs/reference/rest/latest/sslCertificates) * [Regional](/ + # compute/docs/reference/rest/latest/regionSslCertificates) + # - sslCertificates are used by: - external HTTPS load balancers - SSL proxy + # load balancers + # - regionSslCertificates are used by: - internal HTTPS load balancers # This SSL certificate resource also contains a private key. You can use SSL # keys and certificates to secure connections to a load balancer. For more - # information, read Creating and Using SSL Certificates. (== resource_for beta. - # sslCertificates ==) (== resource_for v1.sslCertificates ==) (== resource_for - # beta.regionSslCertificates ==) (== resource_for v1.regionSslCertificates ==) - # Next ID: 17 + # information, read Creating and Using SSL Certificates. (== resource_for `$ + # api_version`.sslCertificates ==) (== resource_for `$api_version`. + # regionSslCertificates ==) Next ID: 17 class SslCertificate include Google::Apis::Core::Hashable @@ -27834,8 +28081,7 @@ module Google # Represents a Cloud Armor Security Policy resource. # Only external backend services used by HTTP or HTTPS load balancers can # reference a Security Policy. For more information, read read Cloud Armor - # Security Policy Concepts. (== resource_for beta.sslPolicies ==) (== - # resource_for v1.sslPolicies ==) + # Security Policy Concepts. (== resource_for `$api_version`.sslPolicies ==) class SslPolicy include Google::Apis::Core::Hashable @@ -28091,7 +28337,7 @@ module Google # A subnetwork (also known as a subnet) is a logical partition of a Virtual # Private Cloud network with one primary IP range and zero or more secondary IP # ranges. For more information, read Virtual Private Cloud (VPC) Network. (== - # resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==) + # resource_for `$api_version`.subnetworks ==) class Subnetwork include Google::Apis::Core::Hashable @@ -28212,6 +28458,7 @@ module Google # @return [String] attr_accessor :private_ipv6_google_access + # Deprecated in favor of enable PrivateIpv6GoogleAccess on instance directly. # The service accounts can be used to selectively turn on Private IPv6 Google # Access only on the VMs primary service account matching the value. This value # only takes effect when PrivateIpv6GoogleAccess is @@ -28764,20 +29011,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, TCP health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, TCP health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -28942,12 +29182,16 @@ module Google end # Represents a Target HTTP Proxy resource. - # A target HTTP proxy is a component of GCP HTTP load balancers. Forwarding - # rules reference a target HTTP proxy, and the target proxy then references a - # URL map. For more information, read Using Target Proxies and Forwarding rule - # concepts. (== resource_for beta.targetHttpProxies ==) (== resource_for v1. - # targetHttpProxies ==) (== resource_for beta.regionTargetHttpProxies ==) (== - # resource_for v1.regionTargetHttpProxies ==) + # Google Compute Engine has two Target HTTP Proxy resources: + # * [Global](/compute/docs/reference/rest/latest/targetHttpProxies) * [Regional]( + # /compute/docs/reference/rest/latest/regionTargetHttpProxies) + # A target HTTP proxy is a component of GCP HTTP load balancers. + # * targetHttpProxies are used by external HTTP load balancers and Traffic + # Director. * regionTargetHttpProxies are used by internal HTTP load balancers. + # Forwarding rules reference a target HTTP proxy, and the target proxy then + # references a URL map. For more information, read Using Target Proxies and + # Forwarding rule concepts. (== resource_for `$api_version`.targetHttpProxies ==) + # (== resource_for `$api_version`.regionTargetHttpProxies ==) class TargetHttpProxy include Google::Apis::Core::Hashable @@ -29385,12 +29629,16 @@ module Google end # Represents a Target HTTPS Proxy resource. - # A target HTTPS proxy is a component of GCP HTTPS load balancers. Forwarding - # rules reference a target HTTPS proxy, and the target proxy then references a - # URL map. For more information, read Using Target Proxies and Forwarding rule - # concepts. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1. - # targetHttpsProxies ==) (== resource_for beta.regionTargetHttpsProxies ==) (== - # resource_for v1.regionTargetHttpsProxies ==) + # Google Compute Engine has two Target HTTPS Proxy resources: + # * [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) * [Regional] + # (/compute/docs/reference/rest/latest/regionTargetHttpsProxies) + # A target HTTPS proxy is a component of GCP HTTPS load balancers. + # * targetHttpsProxies are used by external HTTPS load balancers. * + # regionTargetHttpsProxies are used by internal HTTPS load balancers. + # Forwarding rules reference a target HTTPS proxy, and the target proxy then + # references a URL map. For more information, read Using Target Proxies and + # Forwarding rule concepts. (== resource_for `$api_version`.targetHttpsProxies == + # ) (== resource_for `$api_version`.regionTargetHttpsProxies ==) class TargetHttpsProxy include Google::Apis::Core::Hashable @@ -29735,8 +29983,7 @@ module Google # You can use a target instance to handle traffic for one or more forwarding # rules, which is ideal for forwarding protocol traffic that is managed by a # single source. For example, ESP, AH, TCP, or UDP. For more information, read - # Target instances. (== resource_for beta.targetInstances ==) (== resource_for - # v1.targetInstances ==) + # Target instances. (== resource_for `$api_version`.targetInstances ==) class TargetInstance include Google::Apis::Core::Hashable @@ -30150,8 +30397,7 @@ module Google # Target pools are used for network TCP/UDP load balancing. A target pool # references member instances, an associated legacy HttpHealthCheck resource, # and, optionally, a backup target pool. For more information, read Using target - # pools. (== resource_for beta.targetPools ==) (== resource_for v1.targetPools == - # ) + # pools. (== resource_for `$api_version`.targetPools ==) class TargetPool include Google::Apis::Core::Hashable @@ -30794,8 +31040,7 @@ module Google # A target SSL proxy is a component of a SSL Proxy load balancer. Global # forwarding rules reference a target SSL proxy, and the target proxy then # references an external backend service. For more information, read Using - # Target Proxies. (== resource_for beta.targetSslProxies ==) (== resource_for v1. - # targetSslProxies ==) + # Target Proxies. (== resource_for `$api_version`.targetSslProxies ==) class TargetSslProxy include Google::Apis::Core::Hashable @@ -31041,8 +31286,7 @@ module Google # A target TCP proxy is a component of a TCP Proxy load balancer. Global # forwarding rules reference target TCP proxy, and the target proxy then # references an external backend service. For more information, read TCP Proxy - # Load Balancing Concepts. (== resource_for beta.targetTcpProxies ==) (== - # resource_for v1.targetTcpProxies ==) + # Load Balancing Concepts. (== resource_for `$api_version`.targetTcpProxies ==) class TargetTcpProxy include Google::Apis::Core::Hashable @@ -31231,8 +31475,8 @@ module Google # Represents a Target VPN Gateway resource. # The target VPN gateway resource represents a Classic Cloud VPN gateway. For - # more information, read the the Cloud VPN Overview. (== resource_for beta. - # targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==) + # more information, read the the Cloud VPN Overview. (== resource_for `$ + # api_version`.targetVpnGateways ==) class TargetVpnGateway include Google::Apis::Core::Hashable @@ -31752,12 +31996,19 @@ module Google end # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. class UrlMap include Google::Apis::Core::Hashable @@ -32319,12 +32570,19 @@ module Google include Google::Apis::Core::Hashable # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeBeta::UrlMap] attr_accessor :resource @@ -33396,7 +33654,7 @@ module Google # Represents a Cloud VPN Tunnel resource. # For more information about VPN, read the the Cloud VPN Overview. (== - # resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==) + # resource_for `$api_version`.vpnTunnels ==) class VpnTunnel include Google::Apis::Core::Hashable @@ -34183,8 +34441,7 @@ module Google # Represents a Zone resource. # A zone is a deployment area. These deployment areas are subsets of a region. # For example the zone us-east1-a is located in the us-east1 region. For more - # information, read Regions and Zones. (== resource_for beta.zones ==) (== - # resource_for v1.zones ==) + # information, read Regions and Zones. (== resource_for `$api_version`.zones ==) class Zone include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 4abda1267..0bea742e3 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -298,6 +298,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AutoscalingPolicyScaleDownControl + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Backend class Representation < Google::Apis::Core::JsonRepresentation; end @@ -928,6 +934,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GlobalNetworkEndpointGroupsDetachEndpointsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GlobalSetLabelsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -940,6 +958,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleDuration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GuestAttributes class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3214,6 +3238,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourcePolicyGroupPlacementPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourcePolicyHourlyCycle class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5018,6 +5048,7 @@ module Google property :device_name, as: 'deviceName' property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation + property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation property :index, as: 'index' @@ -5212,6 +5243,8 @@ module Google property :max_num_replicas, as: 'maxNumReplicas' property :min_num_replicas, as: 'minNumReplicas' property :mode, as: 'mode' + property :scale_down_control, as: 'scaleDownControl', class: Google::Apis::ComputeBeta::AutoscalingPolicyScaleDownControl, decorator: Google::Apis::ComputeBeta::AutoscalingPolicyScaleDownControl::Representation + end end @@ -5240,6 +5273,16 @@ module Google end end + class AutoscalingPolicyScaleDownControl + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_scaled_down_replicas, as: 'maxScaledDownReplicas', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation + + property :time_window, as: 'timeWindow', class: Google::Apis::ComputeBeta::GoogleDuration, decorator: Google::Apis::ComputeBeta::GoogleDuration::Representation + + end + end + class Backend # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6301,6 +6344,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :enable, as: 'enable' + property :metadata, as: 'metadata' end end @@ -6446,6 +6490,22 @@ module Google end end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::ComputeBeta::NetworkEndpoint, decorator: Google::Apis::ComputeBeta::NetworkEndpoint::Representation + + end + end + + class GlobalNetworkEndpointGroupsDetachEndpointsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::ComputeBeta::NetworkEndpoint, decorator: Google::Apis::ComputeBeta::NetworkEndpoint::Representation + + end + end + class GlobalSetLabelsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6465,6 +6525,14 @@ module Google end end + class GoogleDuration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :nanos, as: 'nanos' + property :seconds, :numeric_string => true, as: 'seconds' + end + end + class GuestAttributes # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7062,6 +7130,7 @@ module Google property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeBeta::ReservationAffinity, decorator: Google::Apis::ComputeBeta::ReservationAffinity::Representation + collection :resource_policies, as: 'resourcePolicies' property :scheduling, as: 'scheduling', class: Google::Apis::ComputeBeta::Scheduling, decorator: Google::Apis::ComputeBeta::Scheduling::Representation property :self_link, as: 'selfLink' @@ -8714,6 +8783,7 @@ module Google class NetworkEndpoint # @private class Representation < Google::Apis::Core::JsonRepresentation + property :fqdn, as: 'fqdn' property :instance, as: 'instance' property :ip_address, as: 'ipAddress' property :port, as: 'port' @@ -10544,6 +10614,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :group_placement_policy, as: 'groupPlacementPolicy', class: Google::Apis::ComputeBeta::ResourcePolicyGroupPlacementPolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicyGroupPlacementPolicy::Representation + property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' @@ -10597,6 +10669,15 @@ module Google end end + class ResourcePolicyGroupPlacementPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :availability_domain_count, as: 'availabilityDomainCount' + property :collocation, as: 'collocation' + property :vm_count, as: 'vmCount' + end + end + class ResourcePolicyHourlyCycle # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -11335,6 +11416,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :download_bytes, :numeric_string => true, as: 'downloadBytes' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 18a29b2e3..aad23dc34 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -4787,6 +4787,393 @@ module Google execute_or_queue_command(command, &block) end + # Attach a network endpoint to the specified network endpoint group. + # @param [String] project + # Project ID for this request. + # @param [String] network_endpoint_group + # The name of the network endpoint group where you are attaching network + # endpoints to. It should comply with RFC1035. + # @param [Google::Apis::ComputeBeta::GlobalNetworkEndpointGroupsAttachEndpointsRequest] global_network_endpoint_groups_attach_endpoints_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 attach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalNetworkEndpointGroupsAttachEndpointsRequest::Representation + command.request_object = global_network_endpoint_groups_attach_endpoints_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['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.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 network endpoint group.Note that the NEG cannot be + # deleted if there are backend services referencing it. + # @param [String] project + # Project ID for this request. + # @param [String] network_endpoint_group + # The name of the network endpoint group to delete. It should comply with + # RFC1035. + # @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_global_network_endpoint_group(project, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', 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['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.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 + + # Detach the network endpoint from the specified network endpoint group. + # @param [String] project + # Project ID for this request. + # @param [String] network_endpoint_group + # The name of the network endpoint group where you are removing network + # endpoints. It should comply with RFC1035. + # @param [Google::Apis::ComputeBeta::GlobalNetworkEndpointGroupsDetachEndpointsRequest] global_network_endpoint_groups_detach_endpoints_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 detach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) + command.request_representation = Google::Apis::ComputeBeta::GlobalNetworkEndpointGroupsDetachEndpointsRequest::Representation + command.request_object = global_network_endpoint_groups_detach_endpoints_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['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.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 network endpoint group. Gets a list of available network + # endpoint groups by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] network_endpoint_group + # The name of the network endpoint group. It should comply with RFC1035. + # @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::NetworkEndpointGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NetworkEndpointGroup] + # + # @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_global_network_endpoint_group(project, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) + command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation + command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup + command.params['project'] = project unless project.nil? + command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.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 network endpoint group in the specified project using the parameters + # that are included in the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeBeta::NetworkEndpointGroup] network_endpoint_group_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_global_network_endpoint_group(project, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/networkEndpointGroups', options) + command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation + command.request_object = network_endpoint_group_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of network endpoint groups that are located in the + # specified project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroupList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NetworkEndpointGroupList] + # + # @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_global_network_endpoint_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/networkEndpointGroups', options) + command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation + command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList + 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 + + # Lists the network endpoints in the specified network endpoint group. + # @param [String] project + # Project ID for this request. + # @param [String] network_endpoint_group + # The name of the network endpoint group from which you want to generate a list + # of included network endpoints. It should comply with RFC1035. + # @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::NetworkEndpointGroupsListNetworkEndpoints] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints] + # + # @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_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, 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(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) + command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints::Representation + command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints + command.params['project'] = project unless project.nil? + command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.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 + # Retrieves an aggregated list of all operations. # @param [String] project # Project ID for this request. @@ -5000,14 +5387,17 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified Operations resource until it is done or timeout, and - # retrieves the specified Operations resource. 1. Immediately returns when the - # operation is already done. 2. Waits for no more than the default deadline (2 - # minutes, subject to change) and then returns the current state of the - # operation, which may be DONE or still in progress. 3. Is best-effort: a. The - # server can wait less than the default deadline or zero seconds, in overload - # situations. b. There is no guarantee that the operation is actually done when - # returns. 4. User should be prepared to retry if the operation is not DONE. + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the + # operation is not DONE. # @param [String] project # Project ID for this request. # @param [String] operation @@ -20324,14 +20714,16 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified region-specific Operations resource until it is done - # or timeout, and retrieves the specified Operations resource. 1. Immediately - # returns when the operation is already done. 2. Waits for no more than the - # default deadline (2 minutes, subject to change) and then returns the current - # state of the operation, which may be DONE or still in progress. 3. Is best- - # effort: a. The server can wait less than the default deadline or zero seconds, - # in overload situations. b. There is no guarantee that the operation is - # actually done when returns. 4. User should be prepared to retry if the + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the # operation is not DONE. # @param [String] project # Project ID for this request. @@ -30107,14 +30499,16 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified zone-specific Operations resource until it is done or - # timeout, and retrieves the specified Operations resource. 1. Immediately - # returns when the operation is already done. 2. Waits for no more than the - # default deadline (2 minutes, subject to change) and then returns the current - # state of the operation, which may be DONE or still in progress. 3. Is best- - # effort: a. The server can wait less than the default deadline or zero seconds, - # in overload situations. b. There is no guarantee that the operation is - # actually done when returns. 4. User should be prepared to retry if the + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the # operation is not DONE. # @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 06f4e5e38..546c12d4d 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 = '20191125' + REVISION = '20200104' # 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 95b823afc..25a5fcc26 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -56,8 +56,7 @@ module Google # Google Cloud Platform provides graphics processing units (accelerators) that # you can add to VM instances to improve or accelerate performance when working # with intensive workloads. For more information, read GPUs on Compute Engine. (= - # = resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes = - # =) + # = resource_for `$api_version`.acceleratorTypes ==) class AcceleratorType include Google::Apis::Core::Hashable @@ -527,21 +526,22 @@ module Google end end - # Represents an IP Address resource. - # An address resource represents a regional internal IP address. Regional - # internal IP addresses are RFC 1918 addresses that come from either a primary - # or secondary IP range of a subnet in a VPC network. Regional external IP - # addresses can be assigned to GCP VM instances, Cloud VPN gateways, regional - # external forwarding rules for network load balancers (in either Standard or - # Premium Tier), and regional external forwarding rules for HTTP(S), SSL Proxy, - # and TCP Proxy load balancers in Standard Tier. For more information, read IP - # addresses. - # A globalAddresses resource represent a global external IP address. Global - # external IP addresses are IPv4 or IPv6 addresses. They can only be assigned to - # global forwarding rules for HTTP(S), SSL Proxy, or TCP Proxy load balancers in - # Premium Tier. For more information, read Global resources. (== resource_for - # beta.addresses ==) (== resource_for v1.addresses ==) (== resource_for beta. - # globalAddresses ==) (== resource_for v1.globalAddresses ==) + # Use global external addresses for GFE-based external HTTP(S) load balancers in + # Premium Tier. + # Use global internal addresses for reserved peering network range. + # Use regional external addresses for the following resources: + # - External IP addresses for VM instances - Regional external forwarding rules - + # Cloud NAT external IP addresses - GFE based LBs in Standard Tier - Network + # LBs in Premium or Standard Tier - Cloud VPN gateways (both Classic and HA) + # Use regional internal IP addresses for subnet IP ranges (primary and secondary) + # . This includes: + # - Internal IP addresses for VM instances - Alias IP ranges of VM instances (/ + # 32 only) - Regional internal forwarding rules - Internal TCP/UDP load balancer + # addresses - Internal HTTP(S) load balancer addresses - Cloud DNS inbound + # forwarding IP addresses + # For more information, read reserved IP address. + # (== resource_for `$api_version`.addresses ==) (== resource_for `$api_version`. + # globalAddresses ==) class Address include Google::Apis::Core::Hashable @@ -1175,6 +1175,11 @@ module Google # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] attr_accessor :disk_encryption_key + # The size of the disk in GB. + # Corresponds to the JSON property `diskSizeGb` + # @return [Fixnum] + attr_accessor :disk_size_gb + # A list of features to enable on the guest operating system. Applicable only # for bootable images. Read Enabling guest operating system features to see a # list of available options. @@ -1253,6 +1258,7 @@ module Google @boot = args[:boot] if args.key?(:boot) @device_name = args[:device_name] if args.key?(:device_name) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @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) @@ -1489,14 +1495,16 @@ module Google end # Represents an Autoscaler resource. + # Google Compute Engine has two Autoscaler resources: + # * [Global](/compute/docs/reference/rest/latest/autoscalers) * [Regional](/ + # compute/docs/reference/rest/latest/regionAutoscalers) # Use autoscalers to automatically add or delete instances from a managed # instance group according to your defined autoscaling policy. For more # information, read Autoscaling Groups of Instances. # For zonal managed instance groups resource, use the autoscaler resource. # For regional managed instance groups, use the regionAutoscalers resource. (== - # resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== - # resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers = - # =) + # resource_for `$api_version`.autoscalers ==) (== resource_for `$api_version`. + # regionAutoscalers ==) class Autoscaler include Google::Apis::Core::Hashable @@ -2549,8 +2557,12 @@ module Google # Represents a Backend Service resource. # A backend service contains configuration values for Google Cloud Platform load # balancing services. + # Backend services in Google Compute Engine can be either regionally or globally + # scoped. + # * [Global](/compute/docs/reference/rest/latest/backendServices) * [Regional](/ + # compute/docs/reference/rest/latest/regionBackendServices) # For more information, read Backend Services. - # (== resource_for v1.backendService ==) (== resource_for beta.backendService ==) + # (== resource_for `$api_version`.backendService ==) class BackendService include Google::Apis::Core::Hashable @@ -2622,9 +2634,11 @@ module Google # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for # health checking this BackendService. Currently at most one health check can be - # specified, and a health check is required for Compute Engine backend services. - # A health check must not be specified for App Engine backend and Cloud Function - # backend. + # specified. Health check is optional for Compute Engine backend services if + # there is no backend. A health check must not be specified when adding Internet + # Network Endpoint Group or Serverless Network Endpoint Group as backends. In + # all other cases, a health check is required for Compute Engine backend + # services. # For internal load balancing, a URL to a HealthCheck resource must be specified # instead. # Corresponds to the JSON property `healthChecks` @@ -3279,7 +3293,7 @@ module Google # * `group:`emailid``: An email address that represents a Google group. For # example, `admins@example.com`. # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For example,` + # identifier) representing a user that has been recently deleted. For example, ` # alice@example.com?uid=123456789012345678901`. If the user is recovered, this # value reverts to `user:`emailid`` and the recovered user retains the role in # the binding. @@ -3454,8 +3468,8 @@ module Google # 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 discounted rates. For full details, read - # Signing Up for Committed Use Discounts. (== resource_for beta. - # regionCommitments ==) (== resource_for v1.regionCommitments ==) + # Signing Up for Committed Use Discounts. (== resource_for `$api_version`. + # regionCommitments ==) class Commitment include Google::Apis::Core::Hashable @@ -4077,8 +4091,8 @@ module Google # @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. + # Specifies how long results of a preflight request can be cached in seconds. + # This translates to the Access-Control-Max-Age header. # Corresponds to the JSON property `maxAge` # @return [Fixnum] attr_accessor :max_age @@ -4216,15 +4230,17 @@ module Google end # Represents a Persistent Disk resource. + # Google Compute Engine has two Disk resources: + # * [Global](/compute/docs/reference/rest/latest/disks) * [Regional](/compute/ + # docs/reference/rest/latest/regionDisks) # Persistent disks are required for running your VM instances. Create both boot # and non-boot (data) persistent disks. For more information, read Persistent # Disks. For more storage options, read Storage options. # The disks resource represents a zonal persistent disk. For more information, # read Zonal persistent disks. # The regionDisks resource represents a regional persistent disk. For more - # information, read Regional resources. (== resource_for beta.disks ==) (== - # resource_for v1.disks ==) (== resource_for v1.regionDisks ==) (== resource_for - # beta.regionDisks ==) + # information, read Regional resources. (== resource_for `$api_version`.disks == + # ) (== resource_for `$api_version`.regionDisks ==) class Disk include Google::Apis::Core::Hashable @@ -4802,14 +4818,16 @@ module Google end # Represents a Disk Type resource. + # Google Compute Engine has two Disk Type resources: + # * [Global](/compute/docs/reference/rest/latest/diskTypes) * [Regional](/ + # compute/docs/reference/rest/latest/regionDiskTypes) # You can choose from a variety of disk types based on your needs. For more # information, read Storage options. # The diskTypes resource represents disk types for a zonal persistent disk. For # more information, read Zonal persistent disks. # The regionDiskTypes resource represents disk types for a regional persistent - # disk. For more information, read Regional persistent disks. (== resource_for - # beta.diskTypes ==) (== resource_for v1.diskTypes ==) (== resource_for v1. - # regionDiskTypes ==) (== resource_for beta.regionDiskTypes ==) + # disk. For more information, read Regional persistent disks. (== resource_for `$ + # api_version`.diskTypes ==) (== resource_for `$api_version`.regionDiskTypes ==) class DiskType include Google::Apis::Core::Hashable @@ -5670,7 +5688,7 @@ module Google end # External VPN gateway is the on-premises VPN gateway(s) or another cloud - # provider?s VPN gateway that connects to your Google Cloud VPN gateway. To + # provider's VPN gateway that connects to your Google Cloud VPN gateway. To # create a highly available VPN from Google Cloud to your on-premises side or # another Cloud provider's VPN gateway, you must create a external VPN gateway # resource in GCP, which provides the information to GCP about your external VPN @@ -5779,7 +5797,7 @@ module Google # IP address of the interface in the external VPN gateway. Only IPv4 is # supported. This IP address can be either from your on-premise gateway or - # another Cloud provider?s VPN gateway, it cannot be an IP address from Google + # another Cloud provider's VPN gateway, it cannot be an IP address from Google # Compute Engine. # Corresponds to the JSON property `ipAddress` # @return [String] @@ -6356,16 +6374,18 @@ module Google end # Represents a Forwarding Rule resource. + # Forwarding rule resources in GCP can be either regional or global in scope: + # * [Global](/compute/docs/reference/rest/latest/globalForwardingRules) * [ + # Regional](/compute/docs/reference/rest/latest/forwardingRules) # A forwarding rule and its corresponding IP address represent the frontend # configuration of a Google Cloud Platform load balancer. Forwarding rules can # also reference target instances and Cloud VPN Classic gateways ( # targetVpnGateway). # For more information, read Forwarding rule concepts and Using protocol # forwarding. - # (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules = - # =) (== resource_for beta.globalForwardingRules ==) (== resource_for v1. - # globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== - # resource_for v1.regionForwardingRules ==) + # (== resource_for `$api_version`.forwardingRules ==) (== resource_for `$ + # api_version`.globalForwardingRules ==) (== resource_for `$api_version`. + # regionForwardingRules ==) class ForwardingRule include Google::Apis::Core::Hashable @@ -6412,6 +6432,15 @@ module Google attr_accessor :all_ports alias_method :all_ports?, :all_ports + # This field is used along with the backend_service field for internal load + # balancing or with the target field for internal TargetInstance. If the field + # is set to TRUE, clients can access ILB from all regions. Otherwise only allows + # access from clients in the same region as the internal load balancer. + # Corresponds to the JSON property `allowGlobalAccess` + # @return [Boolean] + attr_accessor :allow_global_access + alias_method :allow_global_access?, :allow_global_access + # This field is only used for INTERNAL load balancing. # For internal load balancing, this field identifies the BackendService resource # to receive the matched traffic. @@ -6430,6 +6459,18 @@ module Google # @return [String] attr_accessor :description + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a ForwardingRule. Include the fingerprint in patch request to ensure + # that you do not overwrite changes that were applied from another concurrent + # request. + # To see the latest fingerprint, make a get() request to retrieve a + # ForwardingRule. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -6443,19 +6484,36 @@ module Google # @return [String] attr_accessor :ip_version + # Indicates whether or not this load balancer can be used as a collector for + # packet mirroring. To prevent mirroring loops, instances behind this load + # balancer will not have their traffic mirrored even if a PacketMirroring rule + # applies to them. This can only be set to true for load balancers that have + # their loadBalancingScheme set to INTERNAL. + # Corresponds to the JSON property `isMirroringCollector` + # @return [Boolean] + attr_accessor :is_mirroring_collector + alias_method :is_mirroring_collector?, :is_mirroring_collector + # [Output Only] Type of the resource. Always compute#forwardingRule for # Forwarding Rule resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # Specifies the forwarding rule type. EXTERNAL is used for: - Classic Cloud VPN - # gateways - Protocol forwarding to VMs from an external IP address - The - # following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP. - # INTERNAL is used for: - Protocol forwarding to VMs from an internal IP address + # Specifies the forwarding rule type. + # + # - EXTERNAL is used for: + # - Classic Cloud VPN gateways + # - Protocol forwarding to VMs from an external IP address + # - The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/ + # UDP + # - INTERNAL is used for: + # - Protocol forwarding to VMs from an internal IP address # - Internal TCP/UDP load balancers - # INTERNAL_MANAGED is used for: - Internal HTTP(S) load balancers - # INTERNAL_SELF_MANAGED is used for: - Traffic Director + # - INTERNAL_MANAGED is used for: + # - Internal HTTP(S) load balancers + # - >INTERNAL_SELF_MANAGED is used for: + # - Traffic Director # For more information about forwarding rules, refer to Forwarding rule concepts. # Corresponds to the JSON property `loadBalancingScheme` # @return [String] @@ -6589,8 +6647,8 @@ module Google # forwarding rules, this target must live in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets - # are valid. + # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy is + # valid, not targetHttpsProxy. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -6604,11 +6662,14 @@ module Google @ip_address = args[:ip_address] if args.key?(:ip_address) @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) @all_ports = args[:all_ports] if args.key?(:all_ports) + @allow_global_access = args[:allow_global_access] if args.key?(:allow_global_access) @backend_service = args[:backend_service] if args.key?(:backend_service) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @id = args[:id] if args.key?(:id) @ip_version = args[:ip_version] if args.key?(:ip_version) + @is_mirroring_collector = args[:is_mirroring_collector] if args.key?(:is_mirroring_collector) @kind = args[:kind] if args.key?(:kind) @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme) @metadata_filters = args[:metadata_filters] if args.key?(:metadata_filters) @@ -7215,20 +7276,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTP2 health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTP2 health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -7292,20 +7346,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTP health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTP health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -7369,20 +7416,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, HTTPS health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, HTTPS health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -7422,8 +7462,12 @@ module Google end # Represents a Health Check resource. - # Health checks are used for most GCP load balancers and managed instance group - # auto-healing. For more information, read Health Check Concepts. + # Google Compute Engine has two Health Check resources: + # * [Global](/compute/docs/reference/rest/latest/healthChecks) * [Regional](/ + # compute/docs/reference/rest/latest/regionHealthChecks) + # Internal HTTP(S) load balancers use regional health checks. All other types of + # GCP load balancers and managed instance group auto-healing use global health + # checks. For more information, read Health Check Concepts. # To perform health checks on network load balancers, you must use either # httpHealthChecks or httpsHealthChecks. class HealthCheck @@ -8568,7 +8612,9 @@ module Google # 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. + # pathRedirect cannot be supplied together with prefixRedirect. Supply one alone + # or neither. If neither is supplied, the path of the original request will be + # used for the redirect. # The value must be between 1 and 1024 characters. # Corresponds to the JSON property `pathRedirect` # @return [String] @@ -8576,6 +8622,10 @@ module Google # The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, # retaining the remaining portion of the URL before redirecting the request. + # prefixRedirect cannot be supplied together with pathRedirect. Supply one alone + # or neither. If neither is supplied, the path of the original request will be + # used for the redirect. + # The value must be between 1 and 1024 characters. # Corresponds to the JSON property `prefixRedirect` # @return [String] attr_accessor :prefix_redirect @@ -9144,8 +9194,7 @@ module Google # Represents an Image resource. # You can use images to create boot disks for your VM instances. For more - # information, read Images. (== resource_for beta.images ==) (== resource_for v1. - # images ==) + # information, read Images. (== resource_for `$api_version`.images ==) class Image include Google::Apis::Core::Hashable @@ -9532,8 +9581,8 @@ module Google # Represents an Instance resource. # An instance is a virtual machine that is hosted on Google Cloud Platform. For - # more information, read Virtual Machine Instances. (== resource_for beta. - # instances ==) (== resource_for v1.instances ==) + # more information, read Virtual Machine Instances. (== resource_for `$ + # api_version`.instances ==) class Instance include Google::Apis::Core::Hashable @@ -9897,9 +9946,8 @@ module Google # groups of heterogeneous instances or if you need to manage the instances # yourself. You cannot create regional unmanaged instance groups. # For more information, read Instance groups. - # (== resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) - # (== resource_for beta.regionInstanceGroups ==) (== resource_for v1. - # regionInstanceGroups ==) + # (== resource_for `$api_version`.instanceGroups ==) (== resource_for `$ + # api_version`.regionInstanceGroups ==) class InstanceGroup include Google::Apis::Core::Hashable @@ -10246,9 +10294,8 @@ module Google # single entity. For more information, read Instance groups. # For zonal Managed Instance Group, use the instanceGroupManagers resource. # For regional Managed Instance Group, use the regionInstanceGroupManagers - # resource. (== resource_for beta.instanceGroupManagers ==) (== resource_for v1. - # instanceGroupManagers ==) (== resource_for beta.regionInstanceGroupManagers ==) - # (== resource_for v1.regionInstanceGroupManagers ==) + # resource. (== resource_for `$api_version`.instanceGroupManagers ==) (== + # resource_for `$api_version`.regionInstanceGroupManagers ==) class InstanceGroupManager include Google::Apis::Core::Hashable @@ -11868,8 +11915,8 @@ module Google # Represents an Instance Template resource. # You can use instance templates to create VM instances and managed instance - # groups. For more information, read Instance Templates. (== resource_for beta. - # instanceTemplates ==) (== resource_for v1.instanceTemplates ==) + # groups. For more information, read Instance Templates. (== resource_for `$ + # api_version`.instanceTemplates ==) class InstanceTemplate include Google::Apis::Core::Hashable @@ -12356,8 +12403,7 @@ module Google # Represents an Interconnect resource. # An Interconnect resource is a dedicated connection between the GCP network and # your on-premises network. For more information, read the Dedicated - # Interconnect Overview. (== resource_for v1.interconnects ==) (== resource_for - # beta.interconnects ==) + # Interconnect Overview. (== resource_for `$api_version`.interconnects ==) class Interconnect include Google::Apis::Core::Hashable @@ -12551,8 +12597,8 @@ module Google # Represents an Interconnect Attachment (VLAN) resource. # You can use Interconnect attachments (VLANS) to connect your Virtual Private # Cloud networks to your on-premises networks through an Interconnect. For more - # information, read Creating VLAN Attachments. (== resource_for beta. - # interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) + # information, read Creating VLAN Attachments. (== resource_for `$api_version`. + # interconnectAttachments ==) class InterconnectAttachment include Google::Apis::Core::Hashable @@ -12589,7 +12635,7 @@ module Google # prefixes must be within link-local address space (169.254.0.0/16) and must be / # 29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 # from the supplied candidate prefix(es). The request will fail if all possible / - # 29s are in use on Google?s edge. If not supplied, Google will randomly select + # 29s are in use on Google's edge. If not supplied, Google will randomly select # an unused /29 from all of link-local space. # Corresponds to the JSON property `candidateSubnets` # @return [Array] @@ -13038,7 +13084,7 @@ module Google include Google::Apis::Core::Hashable # Plain text name of the Interconnect this attachment is connected to, as - # displayed in the Partner?s portal. For instance "Chicago 1". This value may be + # displayed in the Partner's portal. For instance "Chicago 1". This value may be # validated to match approved Partner values. # Corresponds to the JSON property `interconnectName` # @return [String] @@ -13050,7 +13096,7 @@ module Google # @return [String] attr_accessor :partner_name - # URL of the Partner?s portal for this Attachment. Partners may customise this + # URL of the Partner's portal for this Attachment. Partners may customise this # to be a deep link to the specific resource on the Partner portal. This value # may be validated to match approved Partner values. # Corresponds to the JSON property `portalUrl` @@ -13216,7 +13262,7 @@ module Google end # Diagnostics information about interconnect, contains detailed and current - # technical information about Google?s side of the connection. + # technical information about Google's side of the connection. class InterconnectDiagnostics include Google::Apis::Core::Hashable @@ -13279,12 +13325,12 @@ module Google class InterconnectDiagnosticsLinkLacpStatus include Google::Apis::Core::Hashable - # System ID of the port on Google?s side of the LACP exchange. + # System ID of the port on Google's side of the LACP exchange. # Corresponds to the JSON property `googleSystemId` # @return [String] attr_accessor :google_system_id - # System ID of the port on the neighbor?s side of the LACP exchange. + # System ID of the port on the neighbor's side of the LACP exchange. # Corresponds to the JSON property `neighborSystemId` # @return [String] attr_accessor :neighbor_system_id @@ -13872,7 +13918,7 @@ module Google include Google::Apis::Core::Hashable # Diagnostics information about interconnect, contains detailed and current - # technical information about Google?s side of the connection. + # technical information about Google's side of the connection. # Corresponds to the JSON property `result` # @return [Google::Apis::ComputeV1::InterconnectDiagnostics] attr_accessor :result @@ -14371,7 +14417,7 @@ module Google # Represents a Machine Type resource. # You can use specific machine types for your VM instances based on performance # and pricing requirements. For more information, read Machine Types. (== - # resource_for v1.machineTypes ==) (== resource_for beta.machineTypes ==) + # resource_for `$api_version`.machineTypes ==) class MachineType include Google::Apis::Core::Hashable @@ -14867,6 +14913,11 @@ module Google # @return [String] attr_accessor :instance + # [Output Only] Health state of the instance per health-check. + # Corresponds to the JSON property `instanceHealth` + # @return [Array] + attr_accessor :instance_health + # [Output Only] The status of the instance. This field is empty when the # instance does not exist. # Corresponds to the JSON property `instanceStatus` @@ -14893,12 +14944,39 @@ module Google @current_action = args[:current_action] if args.key?(:current_action) @id = args[:id] if args.key?(:id) @instance = args[:instance] if args.key?(:instance) + @instance_health = args[:instance_health] if args.key?(:instance_health) @instance_status = args[:instance_status] if args.key?(:instance_status) @last_attempt = args[:last_attempt] if args.key?(:last_attempt) @version = args[:version] if args.key?(:version) end end + # + class ManagedInstanceInstanceHealth + include Google::Apis::Core::Hashable + + # [Output Only] The current detailed instance health state. + # Corresponds to the JSON property `detailedHealthState` + # @return [String] + attr_accessor :detailed_health_state + + # [Output Only] The URL for the health check that verifies whether the instance + # is healthy. + # Corresponds to the JSON property `healthCheck` + # @return [String] + attr_accessor :health_check + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detailed_health_state = args[:detailed_health_state] if args.key?(:detailed_health_state) + @health_check = args[:health_check] if args.key?(:health_check) + end + end + # class ManagedInstanceLastAttempt include Google::Apis::Core::Hashable @@ -15171,8 +15249,8 @@ module Google # Represents a VPC Network resource. # Networks connect resources to each other and to the internet. For more - # information, read Virtual Private Cloud (VPC) Network. (== resource_for v1. - # networks ==) (== resource_for beta.networks ==) + # information, read Virtual Private Cloud (VPC) Network. (== resource_for `$ + # api_version`.networks ==) class Network include Google::Apis::Core::Hashable @@ -15316,8 +15394,7 @@ module Google # Represents a collection of network endpoints. # For more information read Setting up network endpoint groups in load balancing. - # (== resource_for v1.networkEndpointGroups ==) (== resource_for beta. - # networkEndpointGroups ==) Next ID: 21 + # (== resource_for `$api_version`.networkEndpointGroups ==) Next ID: 21 class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -16346,8 +16423,7 @@ module Google # instances only for your specific project. Use sole-tenant nodes to keep your # instances physically separated from instances in other projects, or to group # your instances together on the same host hardware. For more information, read - # Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1. - # nodeGroups ==) + # Sole-tenant nodes. (== resource_for `$api_version`.nodeGroups ==) class NodeGroup include Google::Apis::Core::Hashable @@ -16978,8 +17054,8 @@ module Google # Represent a sole-tenant Node Template resource. # You can use a template to define properties for nodes in a node group. For - # more information, read Creating node groups and instances. (== resource_for - # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) + # more information, read Creating node groups and instances. (== resource_for `$ + # api_version`.nodeTemplates ==) (== NextID: 18 ==) class NodeTemplate include Google::Apis::Core::Hashable @@ -17452,7 +17528,7 @@ module Google # total amount of cores and memory for that node. Currently, the only available # node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, # available in multiple zones. For more information read Node types. (== - # resource_for beta.nodeTypes ==) (== resource_for v1.nodeTypes ==) + # resource_for `$api_version`.nodeTypes ==) class NodeType include Google::Apis::Core::Hashable @@ -17868,6 +17944,10 @@ module Google end # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/latest/globalOperations) * [Regional](/ + # compute/docs/reference/rest/latest/regionOperations) * [Zonal](/compute/docs/ + # reference/rest/latest/zoneOperations) # You can use an operation resource to manage asynchronous API requests. For # more information, read Handling API responses. # Operations can be global, regional or zonal. @@ -17875,10 +17955,9 @@ module Google # - For regional operations, use the regionOperations resource. # - For zonal operations, use the zonalOperations resource. # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) class Operation include Google::Apis::Core::Hashable @@ -18606,6 +18685,613 @@ module Google end end + # Represents a PacketMirroring resource. + class PacketMirroring + include Google::Apis::Core::Hashable + + # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be + # used as collector for mirrored traffic. The specified forwarding rule must + # have isMirroringCollector set to true. + # Corresponds to the JSON property `collectorIlb` + # @return [Google::Apis::ComputeV1::PacketMirroringForwardingRuleInfo] + attr_accessor :collector_ilb + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Indicates whether or not this packet mirroring takes effect. If set to FALSE, + # this packet mirroring policy will not be enforced on the network. + # The default is TRUE. + # Corresponds to the JSON property `enable` + # @return [String] + attr_accessor :enable + + # Filter for mirrored traffic. If unspecified, all traffic is mirrored. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::ComputeV1::PacketMirroringFilter] + attr_accessor :filter + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#packetMirroring for packet + # mirrorings. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of + # mirrored VM instances, subnetworks and/or tags for which traffic from/to all + # VM instances will be mirrored. + # Corresponds to the JSON property `mirroredResources` + # @return [Google::Apis::ComputeV1::PacketMirroringMirroredResourceInfo] + attr_accessor :mirrored_resources + + # Name of the resource; provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Specifies the mirrored VPC network. Only packets in this network will be + # mirrored. All mirrored VMs should have a NIC in the given network. All + # mirrored subnetworks should belong to the given network. + # Corresponds to the JSON property `network` + # @return [Google::Apis::ComputeV1::PacketMirroringNetworkInfo] + attr_accessor :network + + # The priority of applying this configuration. Priority is used to break ties in + # cases where there is more than one matching rule. In the case of two rules + # that apply for a given Instance, the one with the lowest-numbered priority + # value wins. + # Default value is 1000. Valid range is 0 through 65535. + # Corresponds to the JSON property `priority` + # @return [Fixnum] + attr_accessor :priority + + # [Output Only] URI of the region where the packetMirroring resides. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collector_ilb = args[:collector_ilb] if args.key?(:collector_ilb) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @enable = args[:enable] if args.key?(:enable) + @filter = args[:filter] if args.key?(:filter) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @mirrored_resources = args[:mirrored_resources] if args.key?(:mirrored_resources) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @priority = args[:priority] if args.key?(:priority) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # Contains a list of packetMirrorings. + class PacketMirroringAggregatedList + 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 PacketMirroring 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::ComputeV1::PacketMirroringAggregatedList::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 PacketMirroringFilter + include Google::Apis::Core::Hashable + + # Protocols that apply as filter on mirrored traffic. If no protocols are + # specified, all traffic that matches the specified CIDR ranges is mirrored. If + # neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. + # Corresponds to the JSON property `IPProtocols` + # @return [Array] + attr_accessor :ip_protocols + + # IP CIDR ranges that apply as filter on the source (ingress) or destination ( + # egress) IP in the IP header. Only IPv4 is supported. If no ranges are + # specified, all traffic that matches the specified IPProtocols is mirrored. If + # neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. + # Corresponds to the JSON property `cidrRanges` + # @return [Array] + attr_accessor :cidr_ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_protocols = args[:ip_protocols] if args.key?(:ip_protocols) + @cidr_ranges = args[:cidr_ranges] if args.key?(:cidr_ranges) + end + end + + # + class PacketMirroringForwardingRuleInfo + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the forwarding rule; defined by the server. + # Corresponds to the JSON property `canonicalUrl` + # @return [String] + attr_accessor :canonical_url + + # Resource URL to the forwarding rule representing the ILB configured as + # destination of the mirrored traffic. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @canonical_url = args[:canonical_url] if args.key?(:canonical_url) + @url = args[:url] if args.key?(:url) + end + end + + # Contains a list of PacketMirroring resources. + class PacketMirroringList + 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 PacketMirroring resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#packetMirroring for + # packetMirrorings. + # 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::ComputeV1::PacketMirroringList::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 PacketMirroringMirroredResourceInfo + include Google::Apis::Core::Hashable + + # A set of virtual machine instances that are being mirrored. They must live in + # zones contained in the same region as this packetMirroring. + # Note that this config will apply only to those network interfaces of the + # Instances that belong to the network specified in this packetMirroring. + # You may specify a maximum of 50 Instances. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + # A set of subnetworks for which traffic from/to all VM instances will be + # mirrored. They must live in the same region as this packetMirroring. + # You may specify a maximum of 5 subnetworks. + # Corresponds to the JSON property `subnetworks` + # @return [Array] + attr_accessor :subnetworks + + # A set of mirrored tags. Traffic from/to all VM instances that have one or more + # of these tags will be mirrored. + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] if args.key?(:instances) + @subnetworks = args[:subnetworks] if args.key?(:subnetworks) + @tags = args[:tags] if args.key?(:tags) + end + end + + # + class PacketMirroringMirroredResourceInfoInstanceInfo + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the instance; defined by the server. + # Corresponds to the JSON property `canonicalUrl` + # @return [String] + attr_accessor :canonical_url + + # Resource URL to the virtual machine instance which is being mirrored. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @canonical_url = args[:canonical_url] if args.key?(:canonical_url) + @url = args[:url] if args.key?(:url) + end + end + + # + class PacketMirroringMirroredResourceInfoSubnetInfo + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the subnetwork; defined by the server. + # Corresponds to the JSON property `canonicalUrl` + # @return [String] + attr_accessor :canonical_url + + # Resource URL to the subnetwork for which traffic from/to all VM instances will + # be mirrored. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @canonical_url = args[:canonical_url] if args.key?(:canonical_url) + @url = args[:url] if args.key?(:url) + end + end + + # + class PacketMirroringNetworkInfo + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the network; defined by the server. + # Corresponds to the JSON property `canonicalUrl` + # @return [String] + attr_accessor :canonical_url + + # URL of the network resource. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @canonical_url = args[:canonical_url] if args.key?(:canonical_url) + @url = args[:url] if args.key?(:url) + end + end + + # + class PacketMirroringsScopedList + include Google::Apis::Core::Hashable + + # A list of packetMirrorings contained in this scope. + # Corresponds to the JSON property `packetMirrorings` + # @return [Array] + attr_accessor :packet_mirrorings + + # Informational warning which replaces the list of packetMirrorings when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::PacketMirroringsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @packet_mirrorings = args[:packet_mirrorings] if args.key?(:packet_mirrorings) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of packetMirrorings 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 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. @@ -18903,8 +19589,8 @@ module Google # Represents a Project resource. # A project is used to organize resources in a Google Cloud Platform environment. - # For more information, read about the Resource Hierarchy. (== resource_for v1. - # projects ==) (== resource_for beta.projects ==) + # For more information, read about the Resource Hierarchy. (== resource_for `$ + # api_version`.projects ==) class Project include Google::Apis::Core::Hashable @@ -19196,8 +19882,8 @@ module Google # Represents a Region resource. # A region is a geographical area where a resource is located. For more - # information, read Regions and Zones. (== resource_for beta.regions ==) (== - # resource_for v1.regions ==) + # information, read Regions and Zones. (== resource_for `$api_version`.regions == + # ) class Region include Google::Apis::Core::Hashable @@ -20357,12 +21043,19 @@ module Google include Google::Apis::Core::Hashable # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeV1::UrlMap] attr_accessor :resource @@ -20401,8 +21094,8 @@ module Google # Represents a reservation resource. A reservation ensures that capacity is held # in a specific zone even if the reserved VMs are not running. For more - # information, read Reserving zonal resources. (== resource_for beta. - # reservations ==) (== resource_for v1.reservations ==) + # information, read Reserving zonal resources. (== resource_for `$api_version`. + # reservations ==) class Reservation include Google::Apis::Core::Hashable @@ -21511,7 +22204,7 @@ module Google class ResourcePolicySnapshotSchedulePolicySnapshotProperties include Google::Apis::Core::Hashable - # Indication to perform a ?guest aware? snapshot. + # Indication to perform a 'guest aware' snapshot. # Corresponds to the JSON property `guestFlush` # @return [Boolean] attr_accessor :guest_flush @@ -21596,8 +22289,8 @@ module Google # Represents a Route resource. # A route defines a path from VM instances in the VPC network to a specific # destination. This destination can be inside or outside the VPC network. For - # more information, read the Routes overview. (== resource_for beta.routes ==) (= - # = resource_for v1.routes ==) + # more information, read the Routes overview. (== resource_for `$api_version`. + # routes ==) class Route include Google::Apis::Core::Hashable @@ -23067,20 +23760,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, SSL health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, SSL health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -23207,8 +23893,7 @@ module Google # Represents a Cloud Armor Security Policy resource. # Only external backend services that use load balancers can reference a # Security Policy. For more information, read Cloud Armor Security Policy - # Concepts. (== resource_for v1.securityPolicies ==) (== resource_for beta. - # securityPolicies ==) + # Concepts. (== resource_for `$api_version`.securityPolicies ==) class SecurityPolicy include Google::Apis::Core::Hashable @@ -23765,8 +24450,8 @@ module Google # Represents a Persistent Disk Snapshot resource. # You can use snapshots to back up data on a regular interval. For more - # information, read Creating persistent disk snapshots. (== resource_for beta. - # snapshots ==) (== resource_for v1.snapshots ==) + # information, read Creating persistent disk snapshots. (== resource_for `$ + # api_version`.snapshots ==) class Snapshot include Google::Apis::Core::Hashable @@ -23793,6 +24478,11 @@ module Google # @return [Fixnum] attr_accessor :disk_size_gb + # [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + # Corresponds to the JSON property `downloadBytes` + # @return [Fixnum] + attr_accessor :download_bytes + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -23909,6 +24599,7 @@ module Google @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @download_bytes = args[:download_bytes] if args.key?(:download_bytes) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @@ -24069,12 +24760,17 @@ module Google end # Represents an SSL Certificate resource. + # Google Compute Engine has two SSL Certificate resources: + # * [Global](/compute/docs/reference/rest/latest/sslCertificates) * [Regional](/ + # compute/docs/reference/rest/latest/regionSslCertificates) + # - sslCertificates are used by: - external HTTPS load balancers - SSL proxy + # load balancers + # - regionSslCertificates are used by: - internal HTTPS load balancers # This SSL certificate resource also contains a private key. You can use SSL # keys and certificates to secure connections to a load balancer. For more - # information, read Creating and Using SSL Certificates. (== resource_for beta. - # sslCertificates ==) (== resource_for v1.sslCertificates ==) (== resource_for - # beta.regionSslCertificates ==) (== resource_for v1.regionSslCertificates ==) - # Next ID: 17 + # information, read Creating and Using SSL Certificates. (== resource_for `$ + # api_version`.sslCertificates ==) (== resource_for `$api_version`. + # regionSslCertificates ==) Next ID: 17 class SslCertificate include Google::Apis::Core::Hashable @@ -24619,8 +25315,7 @@ module Google # Represents a Cloud Armor Security Policy resource. # Only external backend services used by HTTP or HTTPS load balancers can # reference a Security Policy. For more information, read read Cloud Armor - # Security Policy Concepts. (== resource_for beta.sslPolicies ==) (== - # resource_for v1.sslPolicies ==) + # Security Policy Concepts. (== resource_for `$api_version`.sslPolicies ==) class SslPolicy include Google::Apis::Core::Hashable @@ -24814,7 +25509,7 @@ module Google # A subnetwork (also known as a subnet) is a logical partition of a Virtual # Private Cloud network with one primary IP range and zero or more secondary IP # ranges. For more information, read Virtual Private Cloud (VPC) Network. (== - # resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==) + # resource_for `$api_version`.subnetworks ==) class Subnetwork include Google::Apis::Core::Hashable @@ -25444,20 +26139,13 @@ module Google # Specifies how port is selected for health checking, can be one of following # values: - # USE_FIXED_PORT: The port number in - # port - # is used for health checking. - # USE_NAMED_PORT: The - # portName - # is used for health checking. + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each # network endpoint is used for health checking. For other backends, the port or # named port specified in the Backend Service is used for health checking. - # If not specified, TCP health check follows behavior specified in - # port - # and - # portName - # fields. + # If not specified, TCP health check follows behavior specified in port and + # portName fields. # Corresponds to the JSON property `portSpecification` # @return [String] attr_accessor :port_specification @@ -25622,12 +26310,16 @@ module Google end # Represents a Target HTTP Proxy resource. - # A target HTTP proxy is a component of GCP HTTP load balancers. Forwarding - # rules reference a target HTTP proxy, and the target proxy then references a - # URL map. For more information, read Using Target Proxies and Forwarding rule - # concepts. (== resource_for beta.targetHttpProxies ==) (== resource_for v1. - # targetHttpProxies ==) (== resource_for beta.regionTargetHttpProxies ==) (== - # resource_for v1.regionTargetHttpProxies ==) + # Google Compute Engine has two Target HTTP Proxy resources: + # * [Global](/compute/docs/reference/rest/latest/targetHttpProxies) * [Regional]( + # /compute/docs/reference/rest/latest/regionTargetHttpProxies) + # A target HTTP proxy is a component of GCP HTTP load balancers. + # * targetHttpProxies are used by external HTTP load balancers and Traffic + # Director. * regionTargetHttpProxies are used by internal HTTP load balancers. + # Forwarding rules reference a target HTTP proxy, and the target proxy then + # references a URL map. For more information, read Using Target Proxies and + # Forwarding rule concepts. (== resource_for `$api_version`.targetHttpProxies ==) + # (== resource_for `$api_version`.regionTargetHttpProxies ==) class TargetHttpProxy include Google::Apis::Core::Hashable @@ -25995,12 +26687,16 @@ module Google end # Represents a Target HTTPS Proxy resource. - # A target HTTPS proxy is a component of GCP HTTPS load balancers. Forwarding - # rules reference a target HTTPS proxy, and the target proxy then references a - # URL map. For more information, read Using Target Proxies and Forwarding rule - # concepts. (== resource_for beta.targetHttpsProxies ==) (== resource_for v1. - # targetHttpsProxies ==) (== resource_for beta.regionTargetHttpsProxies ==) (== - # resource_for v1.regionTargetHttpsProxies ==) + # Google Compute Engine has two Target HTTPS Proxy resources: + # * [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) * [Regional] + # (/compute/docs/reference/rest/latest/regionTargetHttpsProxies) + # A target HTTPS proxy is a component of GCP HTTPS load balancers. + # * targetHttpsProxies are used by external HTTPS load balancers. * + # regionTargetHttpsProxies are used by internal HTTPS load balancers. + # Forwarding rules reference a target HTTPS proxy, and the target proxy then + # references a URL map. For more information, read Using Target Proxies and + # Forwarding rule concepts. (== resource_for `$api_version`.targetHttpsProxies == + # ) (== resource_for `$api_version`.regionTargetHttpsProxies ==) class TargetHttpsProxy include Google::Apis::Core::Hashable @@ -26345,8 +27041,7 @@ module Google # You can use a target instance to handle traffic for one or more forwarding # rules, which is ideal for forwarding protocol traffic that is managed by a # single source. For example, ESP, AH, TCP, or UDP. For more information, read - # Target instances. (== resource_for beta.targetInstances ==) (== resource_for - # v1.targetInstances ==) + # Target instances. (== resource_for `$api_version`.targetInstances ==) class TargetInstance include Google::Apis::Core::Hashable @@ -26760,8 +27455,7 @@ module Google # Target pools are used for network TCP/UDP load balancing. A target pool # references member instances, an associated legacy HttpHealthCheck resource, # and, optionally, a backup target pool. For more information, read Using target - # pools. (== resource_for beta.targetPools ==) (== resource_for v1.targetPools == - # ) + # pools. (== resource_for `$api_version`.targetPools ==) class TargetPool include Google::Apis::Core::Hashable @@ -27404,8 +28098,7 @@ module Google # A target SSL proxy is a component of a SSL Proxy load balancer. Global # forwarding rules reference a target SSL proxy, and the target proxy then # references an external backend service. For more information, read Using - # Target Proxies. (== resource_for beta.targetSslProxies ==) (== resource_for v1. - # targetSslProxies ==) + # Target Proxies. (== resource_for `$api_version`.targetSslProxies ==) class TargetSslProxy include Google::Apis::Core::Hashable @@ -27651,8 +28344,7 @@ module Google # A target TCP proxy is a component of a TCP Proxy load balancer. Global # forwarding rules reference target TCP proxy, and the target proxy then # references an external backend service. For more information, read TCP Proxy - # Load Balancing Concepts. (== resource_for beta.targetTcpProxies ==) (== - # resource_for v1.targetTcpProxies ==) + # Load Balancing Concepts. (== resource_for `$api_version`.targetTcpProxies ==) class TargetTcpProxy include Google::Apis::Core::Hashable @@ -27841,8 +28533,8 @@ module Google # Represents a Target VPN Gateway resource. # The target VPN gateway resource represents a Classic Cloud VPN gateway. For - # more information, read the the Cloud VPN Overview. (== resource_for beta. - # targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==) + # more information, read the the Cloud VPN Overview. (== resource_for `$ + # api_version`.targetVpnGateways ==) class TargetVpnGateway include Google::Apis::Core::Hashable @@ -28340,12 +29032,19 @@ module Google end # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. class UrlMap include Google::Apis::Core::Hashable @@ -28907,12 +29606,19 @@ module Google include Google::Apis::Core::Hashable # Represents a URL Map resource. - # A URL map resource is a component of certain types of load balancers. This - # resource defines mappings from host names and URL paths to either a backend - # service or a backend bucket. - # To use this resource, the backend service must have a loadBalancingScheme of - # either EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED For more - # information, read URL Map Concepts. + # Google Compute Engine has two URL Map resources: + # * [Global](/compute/docs/reference/rest/latest/urlMaps) * [Regional](/compute/ + # docs/reference/rest/latest/regionUrlMaps) + # A URL map resource is a component of certain types of GCP load balancers and + # Traffic Director. + # * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * + # regionUrlMaps are used by internal HTTP(S) load balancers. + # This resource defines mappings from host names and URL paths to either a + # backend service or a backend bucket. + # To use the global urlMaps resource, the backend service must have a + # loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the + # regionUrlMaps resource, the backend service must have a loadBalancingScheme of + # INTERNAL_MANAGED. For more information, read URL Map Concepts. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeV1::UrlMap] attr_accessor :resource @@ -29984,7 +30690,7 @@ module Google # Represents a Cloud VPN Tunnel resource. # For more information about VPN, read the the Cloud VPN Overview. (== - # resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==) + # resource_for `$api_version`.vpnTunnels ==) class VpnTunnel include Google::Apis::Core::Hashable @@ -30693,8 +31399,7 @@ module Google # Represents a Zone resource. # A zone is a deployment area. These deployment areas are subsets of a region. # For example the zone us-east1-a is located in the us-east1 region. For more - # information, read Regions and Zones. (== resource_for beta.zones ==) (== - # resource_for v1.zones ==) + # information, read Regions and Zones. (== resource_for `$api_version`.zones ==) class Zone include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index a71466401..d057192fa 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -1912,6 +1912,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ManagedInstanceInstanceHealth + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ManagedInstanceLastAttempt class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2452,6 +2458,102 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PacketMirroring + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringAggregatedList + 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 PacketMirroringFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringForwardingRuleInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringList + 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 PacketMirroringMirroredResourceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringMirroredResourceInfoInstanceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringMirroredResourceInfoSubnetInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringNetworkInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringsScopedList + 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 PathMatcher class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4560,6 +4662,7 @@ module Google property :device_name, as: 'deviceName' property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation property :index, as: 'index' @@ -5774,11 +5877,14 @@ module Google property :ip_address, as: 'IPAddress' property :ip_protocol, as: 'IPProtocol' property :all_ports, as: 'allPorts' + property :allow_global_access, as: 'allowGlobalAccess' property :backend_service, as: 'backendService' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' property :id, :numeric_string => true, as: 'id' property :ip_version, as: 'ipVersion' + property :is_mirroring_collector, as: 'isMirroringCollector' property :kind, as: 'kind' property :load_balancing_scheme, as: 'loadBalancingScheme' collection :metadata_filters, as: 'metadataFilters', class: Google::Apis::ComputeV1::MetadataFilter, decorator: Google::Apis::ComputeV1::MetadataFilter::Representation @@ -7828,6 +7934,8 @@ module Google property :current_action, as: 'currentAction' property :id, :numeric_string => true, as: 'id' property :instance, as: 'instance' + collection :instance_health, as: 'instanceHealth', class: Google::Apis::ComputeV1::ManagedInstanceInstanceHealth, decorator: Google::Apis::ComputeV1::ManagedInstanceInstanceHealth::Representation + property :instance_status, as: 'instanceStatus' property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Representation @@ -7836,6 +7944,14 @@ module Google end end + class ManagedInstanceInstanceHealth + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detailed_health_state, as: 'detailedHealthState' + property :health_check, as: 'healthCheck' + end + end + class ManagedInstanceLastAttempt # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8793,6 +8909,172 @@ module Google end end + class PacketMirroring + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :collector_ilb, as: 'collectorIlb', class: Google::Apis::ComputeV1::PacketMirroringForwardingRuleInfo, decorator: Google::Apis::ComputeV1::PacketMirroringForwardingRuleInfo::Representation + + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :enable, as: 'enable' + property :filter, as: 'filter', class: Google::Apis::ComputeV1::PacketMirroringFilter, decorator: Google::Apis::ComputeV1::PacketMirroringFilter::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :mirrored_resources, as: 'mirroredResources', class: Google::Apis::ComputeV1::PacketMirroringMirroredResourceInfo, decorator: Google::Apis::ComputeV1::PacketMirroringMirroredResourceInfo::Representation + + property :name, as: 'name' + property :network, as: 'network', class: Google::Apis::ComputeV1::PacketMirroringNetworkInfo, decorator: Google::Apis::ComputeV1::PacketMirroringNetworkInfo::Representation + + property :priority, as: 'priority' + property :region, as: 'region' + property :self_link, as: 'selfLink' + end + end + + class PacketMirroringAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::PacketMirroringsScopedList, decorator: Google::Apis::ComputeV1::PacketMirroringsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::PacketMirroringAggregatedList::Warning, decorator: Google::Apis::ComputeV1::PacketMirroringAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::PacketMirroringAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::PacketMirroringAggregatedList::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 PacketMirroringFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ip_protocols, as: 'IPProtocols' + collection :cidr_ranges, as: 'cidrRanges' + end + end + + class PacketMirroringForwardingRuleInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :canonical_url, as: 'canonicalUrl' + property :url, as: 'url' + end + end + + class PacketMirroringList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::PacketMirroring, decorator: Google::Apis::ComputeV1::PacketMirroring::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::PacketMirroringList::Warning, decorator: Google::Apis::ComputeV1::PacketMirroringList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::PacketMirroringList::Warning::Datum, decorator: Google::Apis::ComputeV1::PacketMirroringList::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 PacketMirroringMirroredResourceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances', class: Google::Apis::ComputeV1::PacketMirroringMirroredResourceInfoInstanceInfo, decorator: Google::Apis::ComputeV1::PacketMirroringMirroredResourceInfoInstanceInfo::Representation + + collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeV1::PacketMirroringMirroredResourceInfoSubnetInfo, decorator: Google::Apis::ComputeV1::PacketMirroringMirroredResourceInfoSubnetInfo::Representation + + collection :tags, as: 'tags' + end + end + + class PacketMirroringMirroredResourceInfoInstanceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :canonical_url, as: 'canonicalUrl' + property :url, as: 'url' + end + end + + class PacketMirroringMirroredResourceInfoSubnetInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :canonical_url, as: 'canonicalUrl' + property :url, as: 'url' + end + end + + class PacketMirroringNetworkInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :canonical_url, as: 'canonicalUrl' + property :url, as: 'url' + end + end + + class PacketMirroringsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :packet_mirrorings, as: 'packetMirrorings', class: Google::Apis::ComputeV1::PacketMirroring, decorator: Google::Apis::ComputeV1::PacketMirroring::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::PacketMirroringsScopedList::Warning, decorator: Google::Apis::ComputeV1::PacketMirroringsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::PacketMirroringsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::PacketMirroringsScopedList::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 PathMatcher # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10139,6 +10421,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :download_bytes, :numeric_string => true, as: 'downloadBytes' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 815db40e6..f443fe41b 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -3685,6 +3685,62 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified forwarding rule with the data included in the request. + # This method supports PATCH semantics and uses the JSON merge patch format and + # processing rules. Currently, you can only patch the network_tier field. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] forwarding_rule + # Name of the ForwardingRule resource to patch. + # @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) + command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation + command.request_object = forwarding_rule_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Changes target URL for forwarding rule. The new target should be of the same # type as the old target. # @param [String] project @@ -4151,6 +4207,59 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified forwarding rule with the data included in the request. + # This method supports PATCH semantics and uses the JSON merge patch format and + # processing rules. Currently, you can only patch the network_tier field. + # @param [String] project + # Project ID for this request. + # @param [String] forwarding_rule + # Name of the ForwardingRule resource to patch. + # @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_global_forwarding_rule(project, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/forwardingRules/{forwardingRule}', options) + command.request_representation = Google::Apis::ComputeV1::ForwardingRule::Representation + command.request_object = forwarding_rule_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Changes target URL for the GlobalForwardingRule resource. The new target # should be of the same type as the old target. # @param [String] project @@ -4416,14 +4525,17 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified Operations resource until it is done or timeout, and - # retrieves the specified Operations resource. 1. Immediately returns when the - # operation is already done. 2. Waits for no more than the default deadline (2 - # minutes, subject to change) and then returns the current state of the - # operation, which may be DONE or still in progress. 3. Is best-effort: a. The - # server can wait less than the default deadline or zero seconds, in overload - # situations. b. There is no guarantee that the operation is actually done when - # returns. 4. User should be prepared to retry if the operation is not DONE. + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the + # operation is not DONE. # @param [String] project # Project ID for this request. # @param [String] operation @@ -13280,6 +13392,392 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of packetMirrorings. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::PacketMirroringAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::PacketMirroringAggregatedList] + # + # @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_packet_mirroring_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/packetMirrorings', options) + command.response_representation = Google::Apis::ComputeV1::PacketMirroringAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::PacketMirroringAggregatedList + 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 PacketMirroring resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] packet_mirroring + # Name of the PacketMirroring 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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.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 PacketMirroring resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] packet_mirroring + # Name of the PacketMirroring 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::ComputeV1::PacketMirroring] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::PacketMirroring] + # + # @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_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command.response_representation = Google::Apis::ComputeV1::PacketMirroring::Representation + command.response_class = Google::Apis::ComputeV1::PacketMirroring + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.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 PacketMirroring 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 for this request. + # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_packet_mirroring(project, region, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/packetMirrorings', options) + command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation + command.request_object = packet_mirroring_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of PacketMirroring resources available to the specified + # project and region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::PacketMirroringList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::PacketMirroringList] + # + # @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_packet_mirrorings(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}/packetMirrorings', options) + command.response_representation = Google::Apis::ComputeV1::PacketMirroringList::Representation + command.response_class = Google::Apis::ComputeV1::PacketMirroringList + 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 PacketMirroring 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 for this request. + # @param [String] packet_mirroring + # Name of the PacketMirroring resource to patch. + # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation + command.request_object = packet_mirroring_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.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 permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_packet_mirroring_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Disable this project as a shared VPC host project. # @param [String] project # Project ID for this request. @@ -17026,14 +17524,16 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified region-specific Operations resource until it is done - # or timeout, and retrieves the specified Operations resource. 1. Immediately - # returns when the operation is already done. 2. Waits for no more than the - # default deadline (2 minutes, subject to change) and then returns the current - # state of the operation, which may be DONE or still in progress. 3. Is best- - # effort: a. The server can wait less than the default deadline or zero seconds, - # in overload situations. b. There is no guarantee that the operation is - # actually done when returns. 4. User should be prepared to retry if the + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the # operation is not DONE. # @param [String] project # Project ID for this request. @@ -26035,14 +26535,16 @@ module Google execute_or_queue_command(command, &block) end - # Waits for the specified zone-specific Operations resource until it is done or - # timeout, and retrieves the specified Operations resource. 1. Immediately - # returns when the operation is already done. 2. Waits for no more than the - # default deadline (2 minutes, subject to change) and then returns the current - # state of the operation, which may be DONE or still in progress. 3. Is best- - # effort: a. The server can wait less than the default deadline or zero seconds, - # in overload situations. b. There is no guarantee that the operation is - # actually done when returns. 4. User should be prepared to retry if the + # Waits for the specified Operation resource to return as DONE or for the + # request to approach the 2 minute deadline, and retrieves the specified + # Operation resource. This method differs from the GET method in that it waits + # for no more than the default deadline (2 minutes) and then returns the current + # state of the operation, which might be DONE or still in progress. + # This method is called on a best-effort basis. Specifically: + # - In uncommon cases, when the server is overloaded, the request might return + # before the default deadline is reached, or might return after zero seconds. + # - If the default deadline is reached, there is no guarantee that the operation + # is actually done when the method returns. Be prepared to retry if the # operation is not DONE. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 7f52fc803..ca4f70dcf 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20200104' + REVISION = '20200121' # 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/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 5ed7c55de..96e34b889 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -209,7 +209,7 @@ module Google class GoogleCloudDialogflowV2BatchDeleteEntitiesRequest include Google::Apis::Core::Hashable - # Required. The canonical `values` of the entities to delete. Note that + # Required. The reference `values` of the entities to delete. Note that # these are not fully-qualified names, i.e. they don't start with # `projects/`. # Corresponds to the JSON property `entityValues` @@ -727,7 +727,7 @@ module Google # For example, if the entity type is *vegetable*, the value could be # *scallions*. # For `KIND_MAP` entity types: - # * A canonical value to be used in place of synonyms. + # * A reference value to be used in place of synonyms. # For `KIND_LIST` entity types: # * A string that can contain references to other entity types (with or # without aliases). @@ -2897,8 +2897,8 @@ module Google end # Represents a session entity type. - # Extends or replaces a developer entity type at the user session level (we - # refer to the entity types defined at the agent level as "developer entity + # Extends or replaces a custom entity type at the user session level (we + # refer to the entity types defined at the agent level as "custom entity # types"). # Note: session entity types apply to all queries, regardless of the language. class GoogleCloudDialogflowV2SessionEntityType @@ -2911,7 +2911,7 @@ module Google attr_accessor :entities # Required. Indicates whether the additional data should override or - # supplement the developer entity type definition. + # supplement the custom entity type definition. # Corresponds to the JSON property `entityOverrideMode` # @return [String] attr_accessor :entity_override_mode @@ -3475,7 +3475,7 @@ module Google # For example, if the entity type is *vegetable*, the value could be # *scallions*. # For `KIND_MAP` entity types: - # * A canonical value to be used in place of synonyms. + # * A reference value to be used in place of synonyms. # For `KIND_LIST` entity types: # * A string that can contain references to other entity types (with or # without aliases). @@ -5709,8 +5709,8 @@ module Google end # Represents a session entity type. - # Extends or replaces a developer entity type at the user session level (we - # refer to the entity types defined at the agent level as "developer entity + # Extends or replaces a custom entity type at the user session level (we + # refer to the entity types defined at the agent level as "custom entity # types"). # Note: session entity types apply to all queries, regardless of the language. class GoogleCloudDialogflowV2beta1SessionEntityType @@ -5723,7 +5723,7 @@ module Google attr_accessor :entities # Required. Indicates whether the additional data should override or - # supplement the developer entity type definition. + # supplement the custom entity type definition. # Corresponds to the JSON property `entityOverrideMode` # @return [String] attr_accessor :entity_override_mode diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index e4c8dd934..b4a625035 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20200104' + REVISION = '20200121' # 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index a8aa59532..94668cb7b 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -268,7 +268,7 @@ module Google # For example, if the entity type is *vegetable*, the value could be # *scallions*. # For `KIND_MAP` entity types: - # * A canonical value to be used in place of synonyms. + # * A reference value to be used in place of synonyms. # For `KIND_LIST` entity types: # * A string that can contain references to other entity types (with or # without aliases). @@ -1932,8 +1932,8 @@ module Google end # Represents a session entity type. - # Extends or replaces a developer entity type at the user session level (we - # refer to the entity types defined at the agent level as "developer entity + # Extends or replaces a custom entity type at the user session level (we + # refer to the entity types defined at the agent level as "custom entity # types"). # Note: session entity types apply to all queries, regardless of the language. class GoogleCloudDialogflowV2SessionEntityType @@ -1946,7 +1946,7 @@ module Google attr_accessor :entities # Required. Indicates whether the additional data should override or - # supplement the developer entity type definition. + # supplement the custom entity type definition. # Corresponds to the JSON property `entityOverrideMode` # @return [String] attr_accessor :entity_override_mode @@ -2321,7 +2321,7 @@ module Google class GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest include Google::Apis::Core::Hashable - # Required. The canonical `values` of the entities to delete. Note that + # Required. The reference `values` of the entities to delete. Note that # these are not fully-qualified names, i.e. they don't start with # `projects/`. # Corresponds to the JSON property `entityValues` @@ -2883,7 +2883,7 @@ module Google # For example, if the entity type is *vegetable*, the value could be # *scallions*. # For `KIND_MAP` entity types: - # * A canonical value to be used in place of synonyms. + # * A reference value to be used in place of synonyms. # For `KIND_LIST` entity types: # * A string that can contain references to other entity types (with or # without aliases). @@ -5776,8 +5776,8 @@ module Google end # Represents a session entity type. - # Extends or replaces a developer entity type at the user session level (we - # refer to the entity types defined at the agent level as "developer entity + # Extends or replaces a custom entity type at the user session level (we + # refer to the entity types defined at the agent level as "custom entity # types"). # Note: session entity types apply to all queries, regardless of the language. class GoogleCloudDialogflowV2beta1SessionEntityType @@ -5790,7 +5790,7 @@ module Google attr_accessor :entities # Required. Indicates whether the additional data should override or - # supplement the developer entity type definition. + # supplement the custom entity type definition. # Corresponds to the JSON property `entityOverrideMode` # @return [String] attr_accessor :entity_override_mode diff --git a/generated/google/apis/doubleclickbidmanager_v1_1.rb b/generated/google/apis/doubleclickbidmanager_v1_1.rb index 697a47a9e..6f448a7a6 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1_1 VERSION = 'V1_1' - REVISION = '20200106' + REVISION = '20200116' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb index 6b9df5133..00e443f70 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb @@ -519,6 +519,11 @@ module Google # @return [String] attr_accessor :next_run_timezone_code + # When to start running the query. Not applicable to `ONE_TIME` frequency. + # Corresponds to the JSON property `startTimeMs` + # @return [Fixnum] + attr_accessor :start_time_ms + def initialize(**args) update!(**args) end @@ -529,6 +534,7 @@ module Google @frequency = args[:frequency] if args.key?(:frequency) @next_run_minute_of_day = args[:next_run_minute_of_day] if args.key?(:next_run_minute_of_day) @next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code) + @start_time_ms = args[:start_time_ms] if args.key?(:start_time_ms) end end diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb b/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb index 9b079d533..91fccbbd6 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb @@ -283,6 +283,7 @@ module Google property :frequency, as: 'frequency' property :next_run_minute_of_day, as: 'nextRunMinuteOfDay' property :next_run_timezone_code, as: 'nextRunTimezoneCode' + property :start_time_ms, :numeric_string => true, as: 'startTimeMs' end end diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 3968a7065..e794e077a 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20191213' + REVISION = '20200110' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index d5810da6c..3d4e5840c 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -3349,8 +3349,7 @@ module Google class Revision include Google::Apis::Core::Hashable - # Short term download URL for the file. This will only be populated on files - # with content stored in Drive. + # # Corresponds to the JSON property `downloadUrl` # @return [String] attr_accessor :download_url diff --git a/generated/google/apis/jobs_v3p1beta1.rb b/generated/google/apis/jobs_v3p1beta1.rb index c6544bfb2..c1d4f4908 100644 --- a/generated/google/apis/jobs_v3p1beta1.rb +++ b/generated/google/apis/jobs_v3p1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/talent-solution/job-search/docs/ module JobsV3p1beta1 VERSION = 'V3p1beta1' - REVISION = '20200109' + REVISION = '20200122' # 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/jobs_v3p1beta1/classes.rb b/generated/google/apis/jobs_v3p1beta1/classes.rb index 4cf1363e4..e10a88fd2 100644 --- a/generated/google/apis/jobs_v3p1beta1/classes.rb +++ b/generated/google/apis/jobs_v3p1beta1/classes.rb @@ -939,14 +939,19 @@ module Google # Required. Controls over how job documents get ranked on top of existing # relevance - # score (determined by API algorithm). The product of ranking expression - # and relevance score is used to determine job's final ranking position. + # score (determined by API algorithm). A combination of the ranking + # expression and relevance score is used to determine job's final ranking + # position. # The syntax for this expression is a subset of Google SQL syntax. # Supported operators are: +, -, *, /, where the left and right side of # the operator is either a numeric Job.custom_attributes key, # integer/double value or an expression that can be evaluated to a number. # Parenthesis are supported to adjust calculation precedence. The # expression must be < 100 characters in length. + # The expression is considered invalid for a job if the expression + # references custom attributes that are not populated on the job or if the + # expression results in a divide by zero. If an expression is invalid for a + # job, that job is demoted to the end of the results. # Sample ranking expression # (year + 25) * 0.25 - (freshness / 0.5) # Corresponds to the JSON property `rankingExpression` diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index f798f1e68..d930ed621 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20200118' + REVISION = '20200124' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 2060c8f97..00336a121 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -2135,28 +2135,10 @@ module Google class GoogleIamV1Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" # Corresponds to the JSON property `condition` # @return [Google::Apis::MlV1::GoogleTypeExpr] attr_accessor :condition @@ -2607,50 +2589,34 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" class GoogleTypeExpr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which + # An optional description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error + # An optional string indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing + # An optional title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` diff --git a/generated/google/apis/secretmanager_v1beta1.rb b/generated/google/apis/secretmanager_v1beta1.rb index 8a31f57d4..0208e66f0 100644 --- a/generated/google/apis/secretmanager_v1beta1.rb +++ b/generated/google/apis/secretmanager_v1beta1.rb @@ -20,12 +20,13 @@ module Google module Apis # Secret Manager API # - # Stores, manages, and secures access to application secrets. + # Stores and manages access to application secrets. Provides convenience while + # improving security. # # @see https://cloud.google.com/secret-manager/ module SecretmanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20191210' + REVISION = '20200118' # 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/secretmanager_v1beta1/classes.rb b/generated/google/apis/secretmanager_v1beta1/classes.rb index 4e473080b..3749d0e94 100644 --- a/generated/google/apis/secretmanager_v1beta1/classes.rb +++ b/generated/google/apis/secretmanager_v1beta1/classes.rb @@ -203,10 +203,28 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::SecretmanagerV1beta1::Expr] attr_accessor :condition @@ -322,34 +340,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` diff --git a/generated/google/apis/secretmanager_v1beta1/service.rb b/generated/google/apis/secretmanager_v1beta1/service.rb index 7d8d4b2b4..bba825541 100644 --- a/generated/google/apis/secretmanager_v1beta1/service.rb +++ b/generated/google/apis/secretmanager_v1beta1/service.rb @@ -22,7 +22,8 @@ module Google module SecretmanagerV1beta1 # Secret Manager API # - # Stores, manages, and secures access to application secrets. + # Stores and manages access to application secrets. Provides convenience while + # improving security. # # @example # require 'google/apis/secretmanager_v1beta1' diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index 83179b0b2..27d3d517d 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20200115' + REVISION = '20200118' # 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/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index 45b670132..2c0050cf5 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -618,10 +618,28 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::ServicemanagementV1::Expr] attr_accessor :condition @@ -1462,34 +1480,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` @@ -3981,6 +4015,48 @@ module Google end end + # The per-product per-project service identity for a service. + # Use this field to configure per-product per-project service identity. + # Example of a service identity configuration. + # usage: + # service_identity: + # - service_account_parent: "projects/123456789" + # display_name: "Cloud XXX Service Agent" + # description: "Used as the identity of Cloud XXX to access resources" + class ServiceIdentity + include Google::Apis::Core::Hashable + + # Optional. A user-specified opaque description of the service account. + # Must be less than or equal to 256 UTF-8 bytes. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. A user-specified name for the service account. + # Must be less than or equal to 100 UTF-8 bytes. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A service account project that hosts the service accounts. + # An example name would be: + # `projects/123456789` + # Corresponds to the JSON property `serviceAccountParent` + # @return [String] + attr_accessor :service_account_parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @service_account_parent = args[:service_account_parent] if args.key?(:service_account_parent) + end + end + # Request message for `SetIamPolicy` method. class SetIamPolicyRequest include Google::Apis::Core::Hashable @@ -4534,6 +4610,18 @@ module Google # @return [Array] attr_accessor :rules + # The per-product per-project service identity for a service. + # Use this field to configure per-product per-project service identity. + # Example of a service identity configuration. + # usage: + # service_identity: + # - service_account_parent: "projects/123456789" + # display_name: "Cloud XXX Service Agent" + # description: "Used as the identity of Cloud XXX to access resources" + # Corresponds to the JSON property `serviceIdentity` + # @return [Google::Apis::ServicemanagementV1::ServiceIdentity] + attr_accessor :service_identity + def initialize(**args) update!(**args) end @@ -4543,6 +4631,7 @@ module Google @producer_notification_channel = args[:producer_notification_channel] if args.key?(:producer_notification_channel) @requirements = args[:requirements] if args.key?(:requirements) @rules = args[:rules] if args.key?(:rules) + @service_identity = args[:service_identity] if args.key?(:service_identity) end end diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index b151eb355..0be3f380a 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -448,6 +448,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ServiceIdentity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1300,6 +1306,15 @@ module Google end end + class ServiceIdentity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + property :service_account_parent, as: 'serviceAccountParent' + end + end + class SetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1434,6 +1449,8 @@ module Google collection :requirements, as: 'requirements' collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::UsageRule, decorator: Google::Apis::ServicemanagementV1::UsageRule::Representation + property :service_identity, as: 'serviceIdentity', class: Google::Apis::ServicemanagementV1::ServiceIdentity, decorator: Google::Apis::ServicemanagementV1::ServiceIdentity::Representation + end end diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index b45b99bea..787f6580a 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20191213' + REVISION = '20200123' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index fabb3ebe7..7996fbcdc 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -1207,6 +1207,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :negative_color + # A color value. + # Corresponds to the JSON property `negativeColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :negative_color_style + # Position settings for text. # Corresponds to the JSON property `position` # @return [Google::Apis::SheetsV4::TextPosition] @@ -1319,6 +1324,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :positive_color + # A color value. + # Corresponds to the JSON property `positiveColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :positive_color_style + # The format of a run of text in a cell. # Absent values indicate that the field isn't specified. # Corresponds to the JSON property `textFormat` @@ -1334,8 +1344,10 @@ module Google @comparison_type = args[:comparison_type] if args.key?(:comparison_type) @description = args[:description] if args.key?(:description) @negative_color = args[:negative_color] if args.key?(:negative_color) + @negative_color_style = args[:negative_color_style] if args.key?(:negative_color_style) @position = args[:position] if args.key?(:position) @positive_color = args[:positive_color] if args.key?(:positive_color) + @positive_color_style = args[:positive_color_style] if args.key?(:positive_color_style) @text_format = args[:text_format] if args.key?(:text_format) end end @@ -1528,6 +1540,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :color + # A color value. + # Corresponds to the JSON property `colorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :color_style + # Properties that describe the style of a line. # Corresponds to the JSON property `lineStyle` # @return [Google::Apis::SheetsV4::LineStyle] @@ -1566,6 +1583,7 @@ module Google # Update properties of this object def update!(**args) @color = args[:color] if args.key?(:color) + @color_style = args[:color_style] if args.key?(:color_style) @line_style = args[:line_style] if args.key?(:line_style) @series = args[:series] if args.key?(:series) @target_axis = args[:target_axis] if args.key?(:target_axis) @@ -1748,10 +1766,9 @@ module Google class BatchClearValuesByDataFilterResponse include Google::Apis::Core::Hashable - # The ranges that were cleared, in A1 notation. - # (If the requests were for an unbounded range or a ranger larger - # than the bounds of the sheet, this will be the actual ranges - # that were cleared, bounded to the sheet's limits.) + # The ranges that were cleared, in A1 notation. If the requests are for an + # unbounded range or a ranger larger than the bounds of the sheet, this is + # the actual ranges that were cleared, bounded to the sheet's limits. # Corresponds to the JSON property `clearedRanges` # @return [Array] attr_accessor :cleared_ranges @@ -1795,10 +1812,9 @@ module Google class BatchClearValuesResponse include Google::Apis::Core::Hashable - # The ranges that were cleared, in A1 notation. - # (If the requests were for an unbounded range or a ranger larger - # than the bounds of the sheet, this will be the actual ranges - # that were cleared, bounded to the sheet's limits.) + # The ranges that were cleared, in A1 notation. If the requests are for an + # unbounded range or a ranger larger than the bounds of the sheet, this is + # the actual ranges that were cleared, bounded to the sheet's limits. # Corresponds to the JSON property `clearedRanges` # @return [Array] attr_accessor :cleared_ranges @@ -1824,9 +1840,8 @@ module Google class BatchGetValuesByDataFilterRequest include Google::Apis::Core::Hashable - # The data filters used to match the ranges of values to retrieve. Ranges - # that match any of the specified data filters will be included in the - # response. + # The data filters used to match the ranges of values to retrieve. Ranges + # that match any of the specified data filters are included in the response. # Corresponds to the JSON property `dataFilters` # @return [Array] attr_accessor :data_filters @@ -1841,10 +1856,9 @@ module Google # The major dimension that results should use. # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, - # then a request that selects that range and sets `majorDimension=ROWS` will - # return `[[1,2],[3,4]]`, - # whereas a request that sets `majorDimension=COLUMNS` will return - # `[[1,3],[2,4]]`. + # then a request that selects that range and sets `majorDimension=ROWS` + # returns `[[1,2],[3,4]]`, whereas a request that sets + # `majorDimension=COLUMNS` returns `[[1,3],[2,4]]`. # Corresponds to the JSON property `majorDimension` # @return [String] attr_accessor :major_dimension @@ -2002,8 +2016,8 @@ module Google include Google::Apis::Core::Hashable # The new values to apply to the spreadsheet. If more than one range is - # matched by the specified DataFilter the specified values will be - # applied to all of those ranges. + # matched by the specified DataFilter the specified values are applied to + # all of those ranges. # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data @@ -2011,10 +2025,10 @@ module Google # Determines if the update response should include the values # of the cells that were updated. By default, responses # do not include the updated values. The `updatedData` field within - # each of the BatchUpdateValuesResponse.responses will contain - # the updated values. If the range to write was larger than than the range - # actually written, the response will include all values in the requested - # range (excluding trailing empty rows and columns). + # each of the BatchUpdateValuesResponse.responses contains the updated + # values. If the range to write was larger than the range actually written, + # the response includes all values in the requested range (excluding trailing + # empty rows and columns). # Corresponds to the JSON property `includeValuesInResponse` # @return [Boolean] attr_accessor :include_values_in_response @@ -2117,10 +2131,10 @@ module Google # Determines if the update response should include the values # of the cells that were updated. By default, responses # do not include the updated values. The `updatedData` field within - # each of the BatchUpdateValuesResponse.responses will contain - # the updated values. If the range to write was larger than than the range - # actually written, the response will include all values in the requested - # range (excluding trailing empty rows and columns). + # each of the BatchUpdateValuesResponse.responses contains the updated + # values. If the range to write was larger than the range actually written, + # the response includes all values in the requested range (excluding trailing + # empty rows and columns). # Corresponds to the JSON property `includeValuesInResponse` # @return [Boolean] attr_accessor :include_values_in_response @@ -2551,6 +2565,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :bubble_border_color + # A color value. + # Corresponds to the JSON property `bubbleBorderColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :bubble_border_color_style + # The data included in a domain or series. # Corresponds to the JSON property `bubbleLabels` # @return [Google::Apis::SheetsV4::ChartData] @@ -2612,6 +2631,7 @@ module Google # Update properties of this object def update!(**args) @bubble_border_color = args[:bubble_border_color] if args.key?(:bubble_border_color) + @bubble_border_color_style = args[:bubble_border_color_style] if args.key?(:bubble_border_color_style) @bubble_labels = args[:bubble_labels] if args.key?(:bubble_labels) @bubble_max_radius_size = args[:bubble_max_radius_size] if args.key?(:bubble_max_radius_size) @bubble_min_radius_size = args[:bubble_min_radius_size] if args.key?(:bubble_min_radius_size) @@ -3233,6 +3253,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :background_color + # A color value. + # Corresponds to the JSON property `backgroundColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :background_color_style + # The specification for a basic chart. See BasicChartType for the list # of charts this supports. # Corresponds to the JSON property `basicChart` @@ -3359,6 +3384,7 @@ module Google def update!(**args) @alt_text = args[:alt_text] if args.key?(:alt_text) @background_color = args[:background_color] if args.key?(:background_color) + @background_color_style = args[:background_color_style] if args.key?(:background_color_style) @basic_chart = args[:basic_chart] if args.key?(:basic_chart) @bubble_chart = args[:bubble_chart] if args.key?(:bubble_chart) @candlestick_chart = args[:candlestick_chart] if args.key?(:candlestick_chart) @@ -4065,9 +4091,9 @@ module Google attr_accessor :major_dimension # The data to be written. If the provided values exceed any of the ranges - # matched by the data filter then the request will fail. If the provided - # values are less than the matched ranges only the specified values will be - # written, existing values in the matched ranges will remain unaffected. + # matched by the data filter then the request fails. If the provided values + # are less than the matched ranges only the specified values are written, + # existing values in the matched ranges remain unaffected. # Corresponds to the JSON property `values` # @return [Array>] attr_accessor :values @@ -6106,6 +6132,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :bar_color + # A color value. + # Corresponds to the JSON property `barColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :bar_color_style + # The data included in a domain or series. # Corresponds to the JSON property `data` # @return [Google::Apis::SheetsV4::ChartData] @@ -6118,6 +6149,7 @@ module Google # Update properties of this object def update!(**args) @bar_color = args[:bar_color] if args.key?(:bar_color) + @bar_color_style = args[:bar_color_style] if args.key?(:bar_color_style) @data = args[:data] if args.key?(:data) end end @@ -6848,6 +6880,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :node_color + # A color value. + # Corresponds to the JSON property `nodeColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :node_color_style + # The size of the org chart nodes. # Corresponds to the JSON property `nodeSize` # @return [String] @@ -6965,6 +7002,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :selected_node_color + # A color value. + # Corresponds to the JSON property `selectedNodeColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :selected_node_color_style + # The data included in a domain or series. # Corresponds to the JSON property `tooltips` # @return [Google::Apis::SheetsV4::ChartData] @@ -6978,9 +7020,11 @@ module Google def update!(**args) @labels = args[:labels] if args.key?(:labels) @node_color = args[:node_color] if args.key?(:node_color) + @node_color_style = args[:node_color_style] if args.key?(:node_color_style) @node_size = args[:node_size] if args.key?(:node_size) @parent_labels = args[:parent_labels] if args.key?(:parent_labels) @selected_node_color = args[:selected_node_color] if args.key?(:selected_node_color) + @selected_node_color_style = args[:selected_node_color_style] if args.key?(:selected_node_color_style) @tooltips = args[:tooltips] if args.key?(:tooltips) end end @@ -8454,7 +8498,7 @@ module Google # The data filters describing the criteria used to determine which # DeveloperMetadata entries to return. DeveloperMetadata matching any of the - # specified filters will be included in the response. + # specified filters are included in the response. # Corresponds to the JSON property `dataFilters` # @return [Array] attr_accessor :data_filters @@ -9514,8 +9558,8 @@ module Google # @return [String] attr_accessor :primary_font_family - # The spreadsheet theme color pairs. For update users need to give all pairs - # of theme colors. + # The spreadsheet theme color pairs. To update you must provide all theme + # color pairs. # Corresponds to the JSON property `themeColors` # @return [Array] attr_accessor :theme_colors @@ -9972,6 +10016,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :max_value_color + # A color value. + # Corresponds to the JSON property `maxValueColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :max_value_color_style + # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various # languages over compactness; for example, the fields of this representation @@ -10079,6 +10128,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :mid_value_color + # A color value. + # Corresponds to the JSON property `midValueColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :mid_value_color_style + # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various # languages over compactness; for example, the fields of this representation @@ -10186,6 +10240,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :min_value_color + # A color value. + # Corresponds to the JSON property `minValueColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :min_value_color_style + # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various # languages over compactness; for example, the fields of this representation @@ -10293,6 +10352,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :no_data_color + # A color value. + # Corresponds to the JSON property `noDataColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :no_data_color_style + def initialize(**args) update!(**args) end @@ -10300,9 +10364,13 @@ module Google # Update properties of this object def update!(**args) @max_value_color = args[:max_value_color] if args.key?(:max_value_color) + @max_value_color_style = args[:max_value_color_style] if args.key?(:max_value_color_style) @mid_value_color = args[:mid_value_color] if args.key?(:mid_value_color) + @mid_value_color_style = args[:mid_value_color_style] if args.key?(:mid_value_color_style) @min_value_color = args[:min_value_color] if args.key?(:min_value_color) + @min_value_color_style = args[:min_value_color_style] if args.key?(:min_value_color_style) @no_data_color = args[:no_data_color] if args.key?(:no_data_color) + @no_data_color_style = args[:no_data_color_style] if args.key?(:no_data_color_style) end end @@ -10427,6 +10495,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :header_color + # A color value. + # Corresponds to the JSON property `headerColorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :header_color_style + # True to hide tooltips. # Corresponds to the JSON property `hideTooltips` # @return [Boolean] @@ -10493,6 +10566,7 @@ module Google @color_data = args[:color_data] if args.key?(:color_data) @color_scale = args[:color_scale] if args.key?(:color_scale) @header_color = args[:header_color] if args.key?(:header_color) + @header_color_style = args[:header_color_style] if args.key?(:header_color_style) @hide_tooltips = args[:hide_tooltips] if args.key?(:hide_tooltips) @hinted_levels = args[:hinted_levels] if args.key?(:hinted_levels) @labels = args[:labels] if args.key?(:labels) @@ -11508,6 +11582,11 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :color + # A color value. + # Corresponds to the JSON property `colorStyle` + # @return [Google::Apis::SheetsV4::ColorStyle] + attr_accessor :color_style + # The label of the column's legend. # Corresponds to the JSON property `label` # @return [String] @@ -11520,6 +11599,7 @@ module Google # Update properties of this object def update!(**args) @color = args[:color] if args.key?(:color) + @color_style = args[:color_style] if args.key?(:color_style) @label = args[:label] if args.key?(:label) end end diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb index 18fd8a94b..b72c8ad17 100644 --- a/generated/google/apis/sheets_v4/representations.rb +++ b/generated/google/apis/sheets_v4/representations.rb @@ -1459,10 +1459,14 @@ module Google property :description, as: 'description' property :negative_color, as: 'negativeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :negative_color_style, as: 'negativeColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :position, as: 'position', class: Google::Apis::SheetsV4::TextPosition, decorator: Google::Apis::SheetsV4::TextPosition::Representation property :positive_color, as: 'positiveColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :positive_color_style, as: 'positiveColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation end @@ -1496,6 +1500,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :color_style, as: 'colorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :line_style, as: 'lineStyle', class: Google::Apis::SheetsV4::LineStyle, decorator: Google::Apis::SheetsV4::LineStyle::Representation property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation @@ -1717,6 +1723,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bubble_border_color, as: 'bubbleBorderColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :bubble_border_color_style, as: 'bubbleBorderColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :bubble_labels, as: 'bubbleLabels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation property :bubble_max_radius_size, as: 'bubbleMaxRadiusSize' @@ -1862,6 +1870,8 @@ module Google property :alt_text, as: 'altText' property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :background_color_style, as: 'backgroundColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :basic_chart, as: 'basicChart', class: Google::Apis::SheetsV4::BasicChartSpec, decorator: Google::Apis::SheetsV4::BasicChartSpec::Representation property :bubble_chart, as: 'bubbleChart', class: Google::Apis::SheetsV4::BubbleChartSpec, decorator: Google::Apis::SheetsV4::BubbleChartSpec::Representation @@ -2469,6 +2479,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bar_color, as: 'barColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :bar_color_style, as: 'barColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :data, as: 'data', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation end @@ -2609,11 +2621,15 @@ module Google property :node_color, as: 'nodeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :node_color_style, as: 'nodeColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :node_size, as: 'nodeSize' property :parent_labels, as: 'parentLabels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation property :selected_node_color, as: 'selectedNodeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :selected_node_color_style, as: 'selectedNodeColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :tooltips, as: 'tooltips', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation end @@ -3229,12 +3245,20 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :max_value_color, as: 'maxValueColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :max_value_color_style, as: 'maxValueColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :mid_value_color, as: 'midValueColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :mid_value_color_style, as: 'midValueColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :min_value_color, as: 'minValueColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :min_value_color_style, as: 'minValueColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :no_data_color, as: 'noDataColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :no_data_color_style, as: 'noDataColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + end end @@ -3247,6 +3271,8 @@ module Google property :header_color, as: 'headerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :header_color_style, as: 'headerColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :hide_tooltips, as: 'hideTooltips' property :hinted_levels, as: 'hintedLevels' property :labels, as: 'labels', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation @@ -3517,6 +3543,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + property :color_style, as: 'colorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation + property :label, as: 'label' end end diff --git a/generated/google/apis/sheets_v4/service.rb b/generated/google/apis/sheets_v4/service.rb index 7298903d3..8060aea41 100644 --- a/generated/google/apis/sheets_v4/service.rb +++ b/generated/google/apis/sheets_v4/service.rb @@ -352,7 +352,7 @@ module Google # The ID of the spreadsheet to update. # @param [String] range # The A1 notation of a range to search for a logical table of data. - # Values will be appended after the last row of the table. + # Values are appended after the last row of the table. # @param [Google::Apis::SheetsV4::ValueRange] value_range_object # @param [Boolean] include_values_in_response # Determines if the update response should include the values @@ -490,9 +490,8 @@ module Google # @param [String] major_dimension # The major dimension that results should use. # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, - # then requesting `range=A1:B2,majorDimension=ROWS` will return - # `[[1,2],[3,4]]`, - # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + # then requesting `range=A1:B2,majorDimension=ROWS` returns `[[1,2],[3,4]]`, + # whereas requesting `range=A1:B2,majorDimension=COLUMNS` returns # `[[1,3],[2,4]]`. # @param [Array, String] ranges # The A1 notation of the values to retrieve. @@ -690,10 +689,9 @@ module Google # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. # @param [String] major_dimension # The major dimension that results should use. - # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, - # then requesting `range=A1:B2,majorDimension=ROWS` will return - # `[[1,2],[3,4]]`, - # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then + # requesting `range=A1:B2,majorDimension=ROWS` returns `[[1,2],[3,4]]`, + # whereas requesting `range=A1:B2,majorDimension=COLUMNS` returns # `[[1,3],[2,4]]`. # @param [String] value_render_option # How values should be represented in the output. @@ -741,9 +739,9 @@ module Google # Determines if the update response should include the values # of the cells that were updated. By default, responses # do not include the updated values. - # If the range to write was larger than than the range actually written, - # the response will include all values in the requested range (excluding - # trailing empty rows and columns). + # If the range to write was larger than the range actually written, the + # response includes all values in the requested range (excluding trailing + # empty rows and columns). # @param [String] response_date_time_render_option # Determines how dates, times, and durations in the response should be # rendered. This is ignored if response_value_render_option is